/* ---------- tokens ---------- */
:root {
  --paper: #EBF7FA;
  --paper-2: #F4FAFC;
  --veil: #AFBEDA;
  --veil-soft: #CFD8EA;
  --ink: #303D69;
  --ink-soft: #5B6791;
  --ink-mute: #8F98B6;

  --serif-display: "Cormorant Garamond", "Cormorant", "EB Garamond", Georgia, serif;
  --serif-body: "Spectral", "Cormorant Garamond", Georgia, serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --measure: 36rem;
  --gutter: clamp(20px, 4vw, 56px);
  --rhythm: clamp(80px, 12vw, 180px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 900px) {
  html, body { font-size: 19px; }
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--ink); color: var(--paper); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  font-family: var(--serif-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--paper);
  pointer-events: none;
  transition: color 0.4s ease;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,30,55,0.45) 0%, rgba(20,30,55,0.1) 60%, transparent 100%);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.4s ease;
}
.nav.scrolled {
  color: var(--ink);
  /* fondo propio: sin él, el texto de la página pasa por debajo y se mezcla */
  background: rgba(235, 247, 250, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(175, 190, 218, 0.45);
  transition: color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled::before {
  opacity: 0;
}
@media (max-width: 640px) {
  .nav { padding-top: 14px; padding-bottom: 14px; font-size: 19px; }
  .nav-right { gap: 16px; }
  .nav .lang-toggle,
  .nav .nav-cta { font-size: 12px; }
  .nav .lang-toggle { gap: 5px; }
}
/* "Héctor Ventura Ebrí" siempre en una línea: en pantallas estrechas, todo un poco más compacto */
.nav-name { white-space: nowrap; }
@media (max-width: 440px) {
  .nav { font-size: 17px; }
  .nav-right { gap: 12px; }
  .nav .lang-toggle,
  .nav .nav-cta { font-size: 11px; letter-spacing: 0.1em; }
  .nav .lang-toggle { gap: 3px; }
}
@media (max-width: 375px) {
  .nav { font-size: 15px; padding-left: 14px; padding-right: 14px; }
  .nav-right { gap: 9px; }
  .nav .lang-toggle,
  .nav .nav-cta { font-size: 10px; letter-spacing: 0.06em; }
}
.nav > * { pointer-events: auto; }
.nav-name,
.nav .lang-toggle,
.nav .nav-cta {
  text-shadow: 0 1px 6px rgba(20,30,55,0.55);
  transition: text-shadow 0.4s ease;
}
.nav.scrolled .nav-name,
.nav.scrolled .lang-toggle,
.nav.scrolled .nav-cta {
  text-shadow: none;
}

/* over a dark section (sillas / plantas): force light header again,
   overriding .scrolled — these rules come later so they win on equal specificity */
.nav.over-dark {
  color: var(--paper);
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
.nav.over-dark::before { opacity: 1; }
.nav.over-dark .nav-name,
.nav.over-dark .lang-toggle,
.nav.over-dark .nav-cta {
  text-shadow: 0 1px 6px rgba(20,30,55,0.55);
}

.nav-name { font-style: italic; font-weight: 500; }
.nav-name .last { font-style: normal; font-weight: 500; }
.nav-name .middle { font-style: normal; font-weight: 500; opacity: 0.55; } /* Ventura, más clara */

.nav-right { display: flex; align-items: center; gap: 28px; }

.lang-toggle {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-toggle button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 4px 2px;
  font: inherit;
  letter-spacing: inherit;
  opacity: 0.5;
  transition: opacity 0.3s;
  position: relative;
}
.lang-toggle button.active { opacity: 1; }
.lang-toggle button:hover,
.lang-toggle button:focus-visible { opacity: 1; }
/* native-style tooltip on hover: a small floating label under the button */
.lang-toggle button::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-2px);
  font-family: var(--serif-body);
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--paper);
  background: rgba(20,30,55,0.92);
  padding: 4px 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav.scrolled .lang-toggle button::after {
  color: var(--paper);
  background: rgba(48,61,105,0.95);
}
.lang-toggle button:hover::after,
.lang-toggle button:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0.15s;
}
.lang-toggle .sep { opacity: 0.4; }

.nav-tagline {
  /* moved out of the fixed nav into the hero so it scrolls away with the page */
  display: none;
}

.hero-tagline {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--paper);
  opacity: 0.92;
  pointer-events: none;
  text-shadow: 0 1px 6px rgba(20,30,55,0.55);
}
@media (max-width: 1100px) { .hero-tagline { display: none; } }

.nav-cta {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.25s ease;
}
.nav-cta:hover {
  border-bottom-color: currentColor;
}

/* ---------- hero (cielo) ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  overflow: hidden;
  background: #6B89B5;
}
.hero--sillas { /* keep hero size — separate selector for clarity */ }
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  transform: scale(1.04);
  filter: saturate(0.92);
}
.hero--sillas .hero-img {
  /* the new sillas image is symmetric — chairs centered, sun in the middle */
  object-position: center center;
  filter: saturate(0.9) contrast(1.02);
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(48,61,105,0.55) 0%, rgba(48,61,105,0.2) 50%, transparent 80%),
    linear-gradient(180deg, rgba(48,61,105,0.35) 0%, transparent 28%, transparent 70%, rgba(48,61,105,0.4) 100%);
  pointer-events: none;
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 var(--gutter);
  /* slight upward bias so the quote sits between the chairs, where the sun is */
  padding-bottom: 10vh;
  text-align: center;
  color: var(--paper);
}
.hero-name {
  position: absolute;
  top: 22px; left: var(--gutter);
  font-family: var(--serif-display);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.04em;
  opacity: 0;
}
.hero-quote {
  font-family: var(--serif-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(28px, 4.6vw, 60px);
  line-height: 1.18;
  max-width: 18ch;
  text-wrap: balance;
  letter-spacing: -0.005em;
  text-shadow:
    0 2px 30px rgba(20,30,55,0.75),
    0 1px 4px rgba(20,30,55,0.6);
}
.hero-attr {
  margin-top: 2.2em;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.95;
  text-shadow: 0 1px 3px rgba(20,30,55,0.75);
}
.hero-attr::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  vertical-align: 4px;
  margin-right: 12px;
  opacity: 0.7;
}
.hero-role {
  position: absolute;
  bottom: 40px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: 0.01em;
  opacity: 1;
  text-shadow: 0 1px 8px rgba(20,30,55,0.6);
}
.hero-role .sub {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-top: 12px;
  opacity: 0.7;
}

/* ---------- section base ---------- */
.section {
  padding: var(--rhythm) var(--gutter);
  position: relative;
}
.section--narrow {
  max-width: 1200px;
  margin: 0 auto;
}

/* warm earth-toned band — used to break up the run of blue sections.
   Overrides the palette tokens within this section only, so the inner
   eyebrow/h-display/body-text/portrait styles pick it up automatically. */
.section--warm {
  background: #F5F0E8;
  --ink: #3A2E26;
  --ink-soft: #6D5749;
  --ink-mute: #A89486;
  --veil: #D4B79A;
  --veil-soft: #E8D8C2;
  --paper: #F5F0E8;
  --paper-2: #FAF6EE;
}
.section--warm .portrait-frame { background: #E8D8C2; }

.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 28px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.h-display {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0 0 0.4em 0;
  text-wrap: balance;
}
.h-display .it { font-style: italic; font-weight: 300; }

.h-section {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0 0 1em 0;
}

.body-text p {
  margin: 0 0 1.3em 0;
  max-width: var(--measure);
  text-wrap: pretty;
}
.body-text p:last-child { margin-bottom: 0; }

.body-text em { color: var(--ink-soft); }

/* ---------- words section (his manifesto) ---------- */
.words {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
  max-width: 1280px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .words { grid-template-columns: 235px 1fr; gap: clamp(60px, 8vw, 120px); }
}
.words-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  align-self: start;
  line-height: 1.8;
}
@media (min-width: 900px) {
  .words-label {
    position: sticky;
    top: 120px;
  }
}
.words-label .num {
  display: block;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 64px;
  color: var(--veil);
  margin-bottom: 16px;
  letter-spacing: 0;
}
.words-body p {
  font-size: clamp(20px, 1.45vw, 24px);
  line-height: 1.55;
  margin: 0 0 1.2em 0;
  max-width: 32ch;
  text-wrap: pretty;
}
.words-body p:first-child {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 2.2vw, 36px);
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 1.4em;
}

/* ---------- portrait section ---------- */
.portrait-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .portrait-section { grid-template-columns: 0.85fr 1fr; }
}
.portrait-section.reverse > :first-child { order: 2; }
.portrait-frame {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--veil-soft);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
}
.portrait-frame--color img {
  filter: none;
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(48,61,105,0.08));
  pointer-events: none;
}
.portrait-caption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 12px;
}

/* ---------- sillas (the space) ---------- */
.sillas {
  position: relative;
  height: 75vh;
  min-height: 480px;
  width: 100%;
  overflow: hidden;
  background: #2a3656;
}
.sillas img,
.sillas .cielo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.sillas--cielo .cielo-img {
  transform: rotate(180deg);
  object-position: center 30%;
  filter: saturate(0.95);
}
.sillas-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(48,61,105,0.45) 0%, rgba(48,61,105,0.1) 30%, rgba(48,61,105,0) 60%, rgba(48,61,105,0.35) 100%);
}
.sillas-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: clamp(60px, 12vh, 140px) var(--gutter) 0;
  text-align: center;
  color: var(--paper);
}
.sillas-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0.85;
}
.sillas-title {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(32px, 4.5vw, 60px);
  line-height: 1.1;
  max-width: 16ch;
  text-wrap: balance;
  text-shadow:
    0 2px 30px rgba(20,30,55,0.55),
    0 1px 2px rgba(20,30,55,0.4);
}
/* darker reading band behind the title so it's legible over the sun */
.sillas-title-wrap {
  position: relative;
  padding: 28px 36px;
  isolation: isolate;
}
.sillas-title-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(20,30,55,0.45) 0%, rgba(20,30,55,0.25) 55%, rgba(20,30,55,0) 80%);
  z-index: -1;
  filter: blur(8px);
}
.sillas-attr {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.9;
  text-shadow: 0 1px 4px rgba(20,30,55,0.7);
}
.sillas-meta {
  position: absolute;
  bottom: 32px;
  left: var(--gutter); right: var(--gutter);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.8;
}
@media (max-width: 640px) {
  .sillas-meta { flex-direction: column; gap: 8px; text-align: center; }
}

/* ---------- path / trayectoria ---------- */
.path-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
  max-width: 1280px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .path-section { grid-template-columns: 1fr 0.7fr; }
}

.path-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0 0;
  border-top: 1px solid var(--veil);
}
.path-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--veil-soft);
  align-items: baseline;
}
.path-list .when {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 4px;
}
.path-list .what {
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.5;
}
.path-list .what strong {
  font-family: var(--serif-display);
  font-weight: 400;
  font-style: italic;
  font-size: 22px;
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

/* ---------- plant medicine ---------- */
.plantas {
  background: var(--ink);
  color: var(--paper);
  padding: var(--rhythm) var(--gutter);
}
.plantas-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (min-width: 900px) {
  .plantas-inner { grid-template-columns: 1fr 1fr; }
}
.plantas .eyebrow { color: var(--veil); }
.plantas .h-section { color: var(--paper); }
.plantas p { color: rgba(235,247,250,0.85); max-width: var(--measure); }
.plantas-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
}
.plantas-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- contact form ---------- */
.contact {
  background: var(--paper-2);
  padding: var(--rhythm) var(--gutter);
}
.contact-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
}
@media (min-width: 900px) {
  .contact-inner { grid-template-columns: 0.7fr 1fr; }
}
.contact-intro p { max-width: 30ch; }
.contact-info {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--veil);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 2.4;
  color: var(--ink-soft);
}
.contact-info a,
.contact-info .row .val {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.contact-info a { border-bottom: 1px solid var(--veil); }
.contact-info a:hover { border-color: var(--ink); }
.contact-info .row { display: flex; gap: 14px; align-items: baseline; }
.contact-info .row .lbl { color: var(--ink-mute); min-width: 80px; flex: none; }
.contact-info .addr-link { display: inline-flex; flex-direction: column; gap: 2px; }
.contact-info .addr-line { display: block; }

/* form */
.form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.form-steps {
  /* no top/bottom borders — keep only the input underlines as visual structure */
}
.form-step {
  padding: 28px 0;
}
.form-label {
  display: block;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 14px;
  text-wrap: balance;
}
.form-label .num {
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--ink-mute);
  margin-right: 14px;
  vertical-align: 5px;
}
.form-hint {
  display: block;
  font-family: var(--serif-body);
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 6px;
  font-weight: 300;
}
.form-input,
.form-textarea {
  width: 100%;
  border: none;
  background: transparent;
  border-bottom: 1px solid var(--veil);
  padding: 10px 0 8px;
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  outline: none;
  resize: none;
  transition: border-color 0.3s;
}
.form-input:focus,
.form-textarea:focus { border-color: var(--ink); }
.form-textarea { min-height: 84px; line-height: 1.5; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.form-radio label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--veil);
  border-radius: 999px;
  font-size: 14px;
  font-family: var(--serif-body);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s;
}
.form-radio label:hover { border-color: var(--ink-soft); }
.form-radio input { display: none; }
.form-radio label.checked {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
}
.form-submit-btn {
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 18px 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.form-submit-btn:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
}
.form-submit-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.form-submit-note {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 30ch;
}

.form-success {
  padding: 60px 0;
  text-align: center;
}
.form-success .h-section { margin-bottom: 0.3em; }
.form-success p { margin: 0 auto; max-width: 36ch; color: var(--ink-soft); }

/* honeypot — visually hidden, off-screen, but submitted with the form */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* form error */
.form-error {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid var(--veil);
  background: rgba(255,255,255,0.5);
  font-family: var(--serif-body);
  font-size: 15px;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
  text-wrap: pretty;
}

/* ---------- footer ---------- */
.footer {
  padding: 60px var(--gutter) 40px;
  border-top: 1px solid var(--veil);
  background: var(--paper);
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.footer .signature {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-right a {
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.footer-right a:hover { color: var(--ink); border-bottom-color: var(--veil); }
.footer-right .dot { opacity: 0.5; }

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s cubic-bezier(.2,.7,.2,1), transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

.fade-slow {
  opacity: 0;
  animation: fadeSlow 2.4s 0.3s forwards ease-out;
}
@keyframes fadeSlow { to { opacity: 1; } }

.fade-slower {
  opacity: 0;
  animation: fadeSlow 3s 1.2s forwards ease-out;
}

/* hero name only appears once you've scrolled away from quote */
.hero-name.in {
  opacity: 1;
  transition: opacity 1s;
}

/* language fade */
.lang-fade {
  animation: langFade 0.5s ease;
}
@keyframes langFade {
  0% { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: none; }
}

/* obfuscated email — @ and . injected via CSS so source has no full address */
.obf-email { display: inline; }
.obf-email .obf-at::before { content: "\0040"; }
.obf-email .obf-dot::before { content: "."; }

/* small accents */
.ornament {
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
  display: inline-block;
  transform: rotate(45deg);
  opacity: 0.5;
  margin: 0 12px;
  vertical-align: 2px;
}

/* ---------- words illustration (replaces the numbered label) ---------- */
.words-aside {
  align-self: start;
  max-width: 235px;
}
@media (min-width: 900px) {
  .words-aside { position: sticky; top: 120px; }
}
.words-illus {
  width: 100%;
  height: auto;
  display: block;
}
.words-body p.words-accent {
  font-family: var(--serif-body);
  font-weight: 300;
  font-size: clamp(20px, 1.45vw, 24px);
  line-height: 1.55;
  color: var(--ink);
}

/* ---------- intro (foto + presentación, primera sección) ---------- */
.intro-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .intro-inner { grid-template-columns: 0.8fr 1fr; }
}
.intro .portrait-frame { max-width: 480px; }
/* el h1 se ve como el eyebrow de siempre */
.intro-h1 { font-weight: 400; line-height: inherit; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 899px) {
  .intro .portrait-frame { margin: 0 auto; max-width: 400px; }
}
.intro-lead {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.3;
  margin: 0 0 1.2em 0;
  max-width: 24ch;
  text-wrap: pretty;
}

/* ---------- sobre mí ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 4vw, 40px);
  max-width: 1180px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .about-inner { grid-template-columns: 0.8fr 1fr; gap: clamp(40px, 6vw, 96px); }
}

/* ---------- journey / recorrido (horizontal blocks) ---------- */
.journey {
  padding: clamp(36px, 5vw, 70px) var(--gutter) var(--rhythm);
}
.journey-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.journey-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
  margin-top: 36px;
  padding-top: 40px;
  border-top: 1px solid var(--veil);
}
@media (max-width: 1080px) { .journey-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } }
@media (max-width: 560px)  { .journey-grid { grid-template-columns: 1fr; } }
.journey-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 1081px) {
  .journey-block { padding-left: clamp(20px, 2vw, 32px); border-left: 1px solid var(--veil-soft); }
  .journey-block:first-child { padding-left: 0; border-left: none; }
}
.journey-when {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.journey-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-style: italic;
  font-size: 21px;
  line-height: 1.22;
  color: var(--ink);
}
.journey-title-line { display: block; }
.journey-desc {
  font-family: var(--serif-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  text-wrap: pretty;
}

/* ---------- formación completa (desplegable bajo el recorrido) ---------- */
.edu-list { list-style: none; margin: 0; padding: 0; }
.edu-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  column-gap: 20px;
  padding: 13px 0;
  border-top: 1px solid var(--veil-soft);
  break-inside: avoid;
}
.edu-year {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  padding-top: 4px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.edu-title {
  display: block;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 20px;
  line-height: 1.25;
  color: var(--ink);
}
.edu-detail {
  display: block;
  margin-top: 2px;
  font-family: var(--serif-body);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.edu-practice { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--veil); }
.edu-practice-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.edu-practice ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

@media (min-width: 900px) {
  .edu-list { column-count: 2; column-gap: clamp(32px, 5vw, 72px); }
  .edu-practice ul { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.edu-slot { margin-top: 44px; }
.edu-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 0 0 4px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--veil);
  cursor: pointer;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.2;
  text-align: left;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.edu-toggle:hover { border-color: var(--ink); }
.edu-toggle.open,
.edu-toggle.open:hover { border-color: transparent; } /* abierto: sin línea */
.edu-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.edu-icon { position: relative; flex: none; width: 13px; height: 13px; }
.edu-icon::before,
.edu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 13px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s ease;
}
.edu-icon::after { transform: rotate(90deg); }
.edu-toggle.open .edu-icon::after { transform: rotate(0deg); }

.edu-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.45s ease, visibility 0.45s;
}
.edu-panel.open { grid-template-rows: 1fr; visibility: visible; }
.edu-panel-inner { overflow: hidden; min-height: 0; }
.edu-panel-inner .edu { padding-top: 28px; }
@media (prefers-reduced-motion: reduce) {
  .edu-panel, .edu-icon::before, .edu-icon::after { transition: none; }
}

/* ---------- contact photos (sillas2 + sillas3, side by side under the info) ---------- */
.contact-photo {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 100%;
}
.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- espaciado uniforme entre secciones ----------
   Cada sección clara solo lleva aire abajo (y la que va tras el cielo, también arriba),
   así el blanco entre dos secciones es siempre --section-space. */
:root { --section-space: clamp(56px, 7vw, 100px); }
.intro { padding: clamp(110px, 14vh, 160px) var(--gutter) var(--section-space); }
.journey,
.about { padding: 0 var(--gutter) var(--section-space); }
.contact { padding: var(--section-space) var(--gutter); }

/* ---------- botón flotante de WhatsApp ---------- */
.whatsapp-btn {
  position: fixed;
  right: clamp(16px, 2.5vw, 32px);
  bottom: clamp(16px, 2.5vw, 32px);
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 16px rgba(20,30,55,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-btn:hover,
.whatsapp-btn:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 6px 22px rgba(20,30,55,0.32);
}
/* que el botón no tape el pie al llegar abajo */
.footer { padding-bottom: 104px; }

/* cielo (Jean Klein): la franja se ajusta a la frase, con menos cielo arriba y abajo */
.sillas--cielo { height: auto; min-height: 0; }
.sillas--cielo .sillas-content {
  position: relative;
  inset: auto;
  padding: clamp(48px, 8vh, 90px) var(--gutter);
}
