/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:          #f9f7f4;
  --bg-2:        #f0ebe3;
  --bg-teal:     #1A7A6E;
  --bg-teal-dk:  #145f56;
  --bg-dark:     #0d1f1d;
  --paper:       #ffffff;
  --ink:         #1e1e1e;
  --ink-soft:    #3a3733;
  --ink-mute:    #7a7370;
  --teal:        #1A7A6E;
  --teal-lt:     #2a9d8f;
  --gold:        #C9A870;
  --gold-dk:     #a88450;
  --warm-gold:   #c7a97b;
  --sage:        #d5dec5;
  --line:        rgba(30,30,30,.10);
  --serif:       'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:        'Inter', system-ui, -apple-system, sans-serif;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --nav-h:       72px;
  --gutter:      clamp(1.25rem, 4vw, 2.5rem);
  --max-w:       1200px;
  --max-w-text:  740px;
  --radius:      12px;
  --radius-lg:   24px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtFadeOut .45s var(--ease-soft) both; }
::view-transition-new(root) { animation: vtFadeIn  .45s var(--ease-soft) both; }
@keyframes vtFadeOut { to   { opacity: 0; transform: translateY(-8px); } }
@keyframes vtFadeIn  { from { opacity: 0; transform: translateY(8px);  } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: clamp(15px, 1.5vw, 16px);
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  text-wrap: balance;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -.01em;
}
::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .5rem 1rem; background: var(--teal); color: #fff;
  z-index: 9999; border-radius: 8px; font-size: .875rem; font-weight: 500;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--text {
  max-width: var(--max-w-text);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.kicker--gold { color: var(--gold-dk); }
.kicker--muted { color: var(--ink-mute); }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .03em;
  padding: .75rem 1.75rem;
  border-radius: 100px;
  cursor: pointer;
  transition: background .22s var(--ease-out),
              color .22s var(--ease-out),
              transform .22s var(--ease-out),
              box-shadow .22s var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover {
  background: var(--bg-teal-dk);
  box-shadow: 0 8px 24px rgba(26,122,110,.30);
}
.btn-ghost {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}
.btn-ghost:hover {
  background: var(--teal);
  color: #fff;
}
.btn-white {
  background: #fff;
  color: var(--teal);
}
.btn-white:hover {
  background: var(--bg-2);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}

/* =============================================================
   5. Navigation
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background .35s var(--ease-soft), box-shadow .35s var(--ease-soft);
}
.nav.is-scrolled {
  background: rgba(249,247,244,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-brand { flex-shrink: 0; display: flex; align-items: center; }
.nav-logo-img { height: 52px; width: auto; }

.nav-links {
  display: none;
  gap: 2rem;
  align-items: center;
  margin-left: auto;
}
.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: .02em;
  transition: color .2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1.5px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease-out);
}
.nav-link:hover,
.nav-link.is-active { color: var(--teal); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }

.nav-cta { margin-left: auto; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  margin-left: auto;
  cursor: pointer;
  border-radius: 8px;
  transition: background .2s;
}
.nav-toggle:hover { background: var(--bg-2); }
.hamburger-line {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink-soft);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.nav.is-open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .hamburger-line:nth-child(2) { opacity: 0; }
.nav.is-open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.nav.is-open .nav-mobile {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* Cuando el menú está abierto: fondo sólido en la barra superior (cualquier estado de scroll) */
.nav.is-open {
  background: var(--bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 0 var(--line);
}
/* Hamburger (→ X) siempre oscuro cuando el menú está abierto */
.nav.is-open .hamburger-line { background: var(--ink-soft); }
.nav-mobile-link {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 400;
  color: var(--ink);
  transition: color .2s;
}
.nav-mobile-link:hover { color: var(--teal); }
.nav-mobile-cta { margin-top: .5rem; }

/* Transparent nav over hero / full-bleed banners */
.nav:not(.is-scrolled) .nav-link               { color: rgba(255,255,255,.85); }
.nav:not(.is-scrolled) .nav-link:hover,
.nav:not(.is-scrolled) .nav-link.is-active     { color: #fff; }
.nav:not(.is-scrolled) .nav-link::after        { background: rgba(255,255,255,.7); }
.nav:not(.is-scrolled) .hamburger-line         { background: rgba(255,255,255,.9); }
.nav:not(.is-scrolled) .nav-toggle:hover       { background: rgba(255,255,255,.10); }
.nav:not(.is-scrolled) .nav-cta {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.50);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav:not(.is-scrolled) .nav-cta:hover { background: rgba(255,255,255,.25); border-color: #fff; }

/* =============================================================
   6. Hero (homepage)
   ============================================================= */
.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: flex-end;
  background: var(--bg-dark);
  overflow: hidden;
}
.hero-text {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2rem 0 clamp(3rem, 7vw, 5rem);
}
.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: #fff;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255,255,255,.82);
  max-width: 52ch;
  margin-inline: auto;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.hero-text .kicker { color: var(--gold); }
.hero-text .btn-ghost {
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.5);
}
.hero-text .btn-ghost:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: #fff;
}
.hero-photo {
  position: absolute;
  inset: 0;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 20%;
}
.hero-deco {
  position: absolute;
  inset: 0;
  background: rgba(18,10,2,.42);
  pointer-events: none;
}

/* =============================================================
   7. Page header (inner pages)
   ============================================================= */
.page-header {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,30,28,.48);
  z-index: 1;
  pointer-events: none;
}
.page-header .container {
  position: relative;
  z-index: 2;
  padding-top: 1rem;
  padding-bottom: 3rem;
  width: 100%;
}
.page-header--split {
  display: grid;
  grid-template-columns: 1fr;
  max-width: var(--max-w-text);
  margin-inline: auto;
  gap: 0;
}
.page-header-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
  color: #fff;
}
.page-header-title em { font-style: italic; color: var(--gold); }
.page-header-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  max-width: 56ch;
  margin-inline: auto;
  line-height: 1.7;
}
.page-header .kicker { color: var(--gold); }
.page-header-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: unset;
}
.page-header-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 15%;
}
/* Banner photos always visible — no reveal animation */
.page-header-photo.reveal { opacity: 1; transform: none; }

/* =============================================================
   8. Section generic
   ============================================================= */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--bg2 { background: var(--bg-2); }
.section--paper { background: var(--paper); }
.section--teal {
  background: var(--bg-teal);
  color: #fff;
}
.section--sage { background: var(--sage); }
.section--warm { background: var(--warm-gold); }
.section--warm .kicker             { color: var(--ink); }
.section--warm .section-heading em { color: var(--gold-dk); }
.section--warm .divider            { background: var(--gold-dk); }
.section-heading {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}
.section-heading em { font-style: italic; color: var(--teal); }
.section--teal .section-heading em { color: var(--gold); }
.section-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 60ch;
  line-height: 1.75;
  margin-bottom: 3rem;
}
.section--teal .section-lead { color: rgba(255,255,255,.80); }

/* =============================================================
   9. Service cards (homepage + servicios)
   ============================================================= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
  cursor: default;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(26,122,110,.10);
  border-color: rgba(26,122,110,.20);
}
.service-icon {
  width: 48px; height: 48px;
  background: rgba(26,122,110,.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
  color: var(--teal);
}
.service-card-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: .6rem;
  color: var(--ink);
}
.service-card-text {
  font-size: .9375rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.service-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: .03em;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: gap .2s var(--ease-out);
}
.service-link:hover { gap: .6rem; }

/* Full service blocks (servicios.html) */
.service-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}
.service-block:last-child { border-bottom: 0; }
.service-block-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.service-block-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 1rem;
}
.service-block-text {
  color: var(--ink-soft);
  line-height: 1.8;
}
.service-list {
  list-style: none;
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
}
.service-list li {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  font-size: .9375rem;
  color: var(--ink-soft);
}
.service-list li::before {
  content: '•';
  color: var(--teal);
  font-size: 1.1em;
  flex-shrink: 0;
}
.service-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.service-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

/* =============================================================
   10. About split (homepage teaser)
   ============================================================= */
.about-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  position: relative;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.about-photo-deco {
  position: absolute;
  top: -12px; right: -12px;
  width: 80px; height: 80px;
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  opacity: .45;
  pointer-events: none;
}
.about-text .section-heading { margin-bottom: .75rem; }
.about-body {
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* =============================================================
   11. Pull quote
   ============================================================= */
.pull-quote {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--bg-2);
  text-align: center;
  position: relative;
}
.pull-quote::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 48px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.pull-quote-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 860px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  margin-bottom: 1.5rem;
}
.pull-quote-author {
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
}
.pull-quote--warm                 { background: var(--warm-gold); }
.pull-quote--warm .pull-quote-author { color: var(--ink-soft); }

/* =============================================================
   12. Centre teaser (homepage)
   ============================================================= */
.centre-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.centre-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.centre-photo img { width: 100%; height: 100%; object-fit: cover; }
.centre-text .section-heading { margin-bottom: .75rem; }
.centre-body {
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.centre-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 2rem;
}
.centre-features li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9375rem;
  color: var(--ink-soft);
}
.centre-features li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
}

/* =============================================================
   13. CTA section
   ============================================================= */
.cta-section {
  background: var(--bg-teal);
  padding: clamp(4rem, 8vw, 7rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(201,168,112,.25), transparent 65%);
  pointer-events: none;
}
.cta-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.cta-title em { font-style: italic; color: var(--gold); }
.cta-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.80);
  max-width: 52ch;
  margin-inline: auto;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

/* =============================================================
   14. Modality cards
   ============================================================= */
.modality-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.modality-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.modality-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}
.modality-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: .2rem;
}
.modality-desc { font-size: .875rem; color: var(--ink-mute); }

/* =============================================================
   15. Formation list (enfoque + sobre-mi)
   ============================================================= */
.formation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}
.formation-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--paper);
  border-radius: var(--radius);
  border-left: 3px solid var(--teal);
}
.formation-dot {
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: .45rem;
}
.formation-text {
  font-size: .9375rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* =============================================================
   16. Editorial text blocks (long-form pages)
   ============================================================= */
.editorial-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.55;
  color: var(--teal);
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.editorial-body { color: var(--ink-soft); line-height: 1.85; }
.editorial-body p { margin-bottom: 1.25rem; }
.editorial-body p:last-child { margin-bottom: 0; }
.editorial-section-title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin: 2.5rem 0 1rem;
  color: var(--ink);
}
.editorial-section-title em { font-style: italic; color: var(--teal); }

/* =============================================================
   17. Values / pillars
   ============================================================= */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.pillar {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--line);
}
.pillar-num {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: .75rem;
  display: block;
}
.pillar-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: .6rem;
}
.pillar-text { font-size: .9375rem; color: var(--ink-soft); line-height: 1.65; }

/* =============================================================
   18. Centro features list
   ============================================================= */
.centro-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
.centro-feature {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.centro-feature-icon {
  width: 44px; height: 44px;
  background: rgba(26,122,110,.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  color: var(--teal);
}
.centro-feature-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: .25rem;
}
.centro-feature-text { font-size: .9rem; color: var(--ink-mute); line-height: 1.6; }

/* =============================================================
   19. Gallery / photo grid
   ============================================================= */
.photo-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.photo-duo-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.photo-duo-item.tall { aspect-ratio: 2 / 3; }
.photo-duo-item img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================================
   20. Centro carousel
   ============================================================= */
.centro-carousel-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  background: var(--sage);
}
.centro-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.centro-carousel-slide.active { opacity: 1; }
.centro-carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.centro-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.centro-carousel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sage-dark);
  opacity: 0.3;
  transition: opacity 0.3s;
}
.centro-carousel-dot.active { opacity: 1; }

/* =============================================================
   20. Valoraciones
   ============================================================= */
.reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,.55);
  border-radius: 50px;
  padding: 0.45rem 1.25rem;
  margin-top: 1.25rem;
}
.reviews-badge-stars { color: var(--gold); font-size: 0.95rem; letter-spacing: 2px; }
.reviews-badge-text {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.review-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.review-stars { color: var(--gold); font-size: 0.8rem; letter-spacing: 2px; }
.review-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  flex: 1;
}
.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  margin-top: 0.15rem;
}
.review-author {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.review-date {
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--ink-mute);
  white-space: nowrap;
}
.reviews-cta {
  text-align: center;
  margin-top: 3rem;
}
@media (min-width: 640px) {
  .reviews-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================================
   21. Footer
   ============================================================= */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.80);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.10);
  margin-bottom: 2rem;
}
.footer-logo { height: 56px; width: auto; margin-bottom: 1rem; }
.footer-tagline {
  font-size: .875rem;
  color: rgba(255,255,255,.50);
  letter-spacing: .05em;
}
.footer-col-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-nav a {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  transition: color .2s;
}
.footer-nav a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: .6rem; }
.footer-contact p, .footer-contact a {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  transition: color .2s;
}
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  align-items: center;
}
.footer-copyright, .footer-legal {
  font-size: .8125rem;
  color: rgba(255,255,255,.35);
}
.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.65);
  transition: background .2s, color .2s;
  flex-shrink: 0;
}
.footer-social-link:hover { background: var(--teal); color: #fff; }
.footer-social-link svg { width: 15px; height: 15px; display: block; }

.hero-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 2rem;
}
.hero-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.85);
  transition: background .2s, color .2s;
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}
.hero-social-link:hover { background: rgba(255,255,255,.30); color: #fff; }
.hero-social-link svg { width: 17px; height: 17px; display: block; }

.social-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}
.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.social-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.social-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.social-card-icon--instagram { background: linear-gradient(135deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.social-card-icon--facebook  { background: #1877F2; }
.social-card-icon--linkedin  { background: #0077B5; }
.social-card-icon--doctoralia { background: var(--teal); }
.social-card-icon svg { width: 24px; height: 24px; display: block; }
.social-card-name {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}
.social-card-handle {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  margin-top: 0.15rem;
}
@media (min-width: 560px) {
  .social-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .social-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   21. Reveal animations
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; } /* gotcha A.4.5 */

.reveal--left  { transform: translateX(-28px); }
.reveal--right { transform: translateX(28px); }
.reveal--scale { transform: scale(.96); }
.reveal--left.is-visible,
.reveal--right.is-visible,
.reveal--scale.is-visible { transform: none; }

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }


/* =============================================================
   22. Custom cursor (desktop)
   ============================================================= */
.cursor { display: none; }

/* =============================================================
   23. Section divider line
   ============================================================= */
.divider {
  width: 48px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0 0 2rem;
}
.divider--center { margin-inline: auto; }

/* =============================================================
   24. Sobre mí — intro
   ============================================================= */
.sobre-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
.sobre-intro-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  order: 1;
}
.sobre-intro-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 10%; }

/* =============================================================
   25a. Text centering — global
   ============================================================= */
.hero-title, .hero-sub   { text-align: center; }
.hero-actions            { justify-content: center; }
.page-header-title,
.page-header-sub         { text-align: center; }
.kicker                  { display: block; text-align: center; }
.section-heading         { text-align: center; }
.section-lead            { text-align: center; margin-inline: auto; }
.divider                 { margin: 0 auto 2rem; }
.about-text              { text-align: center; }
.about-body              { text-align: center; }
.centre-text             { text-align: center; }
.centre-body             { text-align: center; }
.service-card            { text-align: center; }
.service-icon            { margin-inline: auto; }
.service-link            { justify-content: center; }
.pillar                  { text-align: center; }
.pillar-num              { text-align: center; }


/* =============================================================
   25. Responsive — tablet+
   ============================================================= */
@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .formation-grid { grid-template-columns: repeat(2, 1fr); }
  .modality-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .centro-features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-cta { margin-left: 0; }

  .page-header { min-height: 90vh; }

  .about-split { grid-template-columns: 380px 1fr; gap: 5rem; }
  .centre-split { grid-template-columns: 1fr 440px; gap: 5rem; }
  .about-photo { aspect-ratio: unset; align-self: stretch; }
  .centre-photo { aspect-ratio: unset; align-self: stretch; }
  .sobre-intro { grid-template-columns: 380px 1fr; gap: 5rem; }
  .sobre-intro-photo { position: sticky; top: calc(var(--nav-h) + 2rem); order: 0; }


  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .service-block { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
  .service-block.reverse .service-photo { order: -1; }
  .service-photo { aspect-ratio: unset; align-self: stretch; }

  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (min-width: 1280px) {
  .formation-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================================
   26. Reduced motion — INTRUSIVE only
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}
