/* =========================================================
   CARLOS LÓPEZ — PSICÓLOGO ONLINE
   Landing page premium — hoja de estilos (v2)
   Dirección de arte: calidez clínica editorial.
   Sistema de diseño:
     Ink        #14211B  (texto principal, casi negro con verde)
     Forest     #1C2E25  (superficies oscuras / navbar en scroll)
     Deep       #22362B  (CTA final, acentos oscuros)
     Sage       #7E9884  (acento calmo, líneas, íconos)
     Sage Soft  #B7C6BA  (tintes suaves, hover)
     Bronze     #AE8556  (acento cálido / prestigio)
     Bronze Lt  #C9A276  (glow, gradientes)
     Bronze Dk  #8A6842  (hover, texto sobre claro)
     Paper      #FAF8F4  (fondo cálido)
     Paper Alt  #F3EFE5  (fondo secciones tinted)
     Line       #E8E3D6  (bordes sutiles)
   Tipografía:
     Display: 'Fraunces' (óptica variable, uso mesurado, con itálicas)
     Texto:   'Inter'
   Firma visual: anillos de "respiración" + marco desplazado en
   retratos + spotlight ambiental en el hero.
   ========================================================= */

:root {
  --ink: #14211B;
  --forest: #1C2E25;
  --deep: #22362B;
  --sage: #7E9884;
  --sage-soft: #B7C6BA;
  --sage-mist: #E3E9E1;
  --bronze: #AE8556;
  --bronze-light: #C9A276;
  --bronze-dark: #8A6842;
  --paper: #FAF8F4;
  --paper-alt: #F3EFE5;
  --line: #E8E3D6;
  --line-dark: rgba(250, 248, 244, 0.12);
  --white: #FFFFFF;
  --text-muted: #4E594F;
  --text-soft: #6B756C;

 --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-w: 1180px;
  --container-narrow: 760px;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 30px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(20, 33, 27, 0.04), 0 1px 1px rgba(20, 33, 27, 0.03);
  --shadow-sm: 0 2px 6px rgba(20, 33, 27, 0.04), 0 8px 20px rgba(20, 33, 27, 0.06);
  --shadow-md: 0 4px 10px rgba(20, 33, 27, 0.04), 0 20px 48px rgba(20, 33, 27, 0.09);
  --shadow-lg: 0 8px 20px rgba(20, 33, 27, 0.06), 0 32px 80px rgba(20, 33, 27, 0.14);
  --shadow-bronze: 0 6px 16px rgba(174, 133, 86, 0.18), 0 18px 40px rgba(174, 133, 86, 0.22);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.28s;
  --dur-med: 0.65s;
  --dur-slow: 1.2s;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: 16px;
  font-optical-sizing: auto;
}

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

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

ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, blockquote { margin: 0; }

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 28px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest);
  color: var(--paper);
  padding: 14px 22px;
  z-index: 2000;
  border-radius: 0 0 10px 0;
  font-weight: 600;
  font-size: 14px;
}
.skip-link:focus {
  left: 0;
}

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease-soft), transform 1s var(--ease-soft);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1.is-visible { transition-delay: 0.09s; }
.reveal--delay-2.is-visible { transition-delay: 0.18s; }
.reveal--delay-3.is-visible { transition-delay: 0.27s; }
.reveal--delay-4.is-visible { transition-delay: 0.36s; }
.reveal--delay-5.is-visible { transition-delay: 0.45s; }

/* =========================================================
   SCROLL PROGRESS BAR
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--sage), var(--bronze));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* =========================================================
   TYPOGRAPHY HELPERS
   ========================================================= */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze-dark);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bronze);
  flex-shrink: 0;
}
.eyebrow--light { color: var(--bronze-light); }
.eyebrow__dot--light { background: var(--bronze-light); }

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4.1vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.017em;
  color: var(--ink);
  max-width: 740px;
}
.section__title--light { color: var(--paper); }

.section__lead {
  margin-top: 24px;
  font-size: 17.5px;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 600px;
  letter-spacing: -0.001em;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.001em;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  transition: transform 0.45s var(--ease-soft), box-shadow 0.45s var(--ease-soft), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
}
.btn svg { transition: transform var(--dur-fast) var(--ease); position: relative; z-index: 1; }
.btn span { position: relative; z-index: 1; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.965); }

.btn--primary {
  background: var(--forest);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.16), transparent);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
  z-index: 0;
}
.btn--primary:hover {
  background: var(--bronze-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-bronze);
}
.btn--primary:hover::before { transform: translateX(120%); }

.btn--ghost {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.btn--ghost:hover {
  border-color: var(--sage);
  background: rgba(126, 152, 132, 0.06);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.btn--lg { padding: 18px 34px; font-size: 16px; }

.btn--nav {
  padding: 12px 24px;
  font-size: 14px;
}

/* =========================================================
   BRAND
   ========================================================= */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--sage-soft);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--forest);
  flex-shrink: 0;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.brand:hover .brand__mark {
  border-color: var(--bronze);
  box-shadow: 0 0 0 4px rgba(174, 133, 86, 0.12);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}
.brand__title {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(250, 248, 244, 0.7);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(232, 227, 214, 0.55);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease, padding 0.4s ease;
}
.navbar.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 28px rgba(20, 33, 27, 0.05);
  background: rgba(250, 248, 244, 0.86);
}

.navbar__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  transition: padding 0.4s var(--ease-soft);
}
.navbar.is-scrolled .navbar__inner {
  padding: 14px 28px;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.navbar__links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.003em;
  color: #4C574C;
  position: relative;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.navbar__links a::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 5px;
  height: 1.5px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--bronze);
  transition: transform 0.35s var(--ease);
}
.navbar__links a:hover {
  color: var(--ink);
  background: rgba(126, 152, 132, 0.07);
}
.navbar__links a:hover::after,
.navbar__links a.is-active::after { transform: scaleX(1); }
.navbar__links a.is-active { color: var(--ink); }

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
}
.navbar__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur-fast) ease, opacity var(--dur-fast) ease;
}
.navbar__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle.is-open span:nth-child(2) { opacity: 0; }
.navbar__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   BREATHING RINGS + SPOTLIGHT (elemento distintivo)
   ========================================================= */
.breathing-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--sage);
  opacity: 0.35;
  animation: breathe 7s var(--ease-soft) infinite;
}
.breathing-ring--1 { width: 340px; height: 340px; animation-delay: 0s; }
.breathing-ring--2 { width: 460px; height: 460px; animation-delay: 1.2s; opacity: 0.2; }
.breathing-ring--3 { width: 580px; height: 580px; animation-delay: 2.4s; opacity: 0.11; }

@keyframes breathe {
  0%, 100% { transform: scale(0.94); opacity: 0.32; }
  50% { transform: scale(1.045); opacity: 0.13; }
}

.hero__spotlight {
  position: absolute;
  inset: -20%;
  background: radial-gradient(480px circle at var(--mx, 70%) var(--my, 45%), rgba(174, 133, 86, 0.14), transparent 60%);
  transition: background 0.25s ease-out;
  pointer-events: none;
}

/* Textura de grano sutil para secciones oscuras (profundidad premium) */
.section__noise {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

.section__glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 320px;
  background: radial-gradient(closest-side, rgba(174, 133, 86, 0.10), transparent 75%);
  pointer-events: none;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 116px 0 96px;
  background:
    radial-gradient(880px 520px at 88% -8%, rgba(174, 133, 86, 0.09), transparent 60%),
    radial-gradient(720px 480px at -6% 100%, rgba(126, 152, 132, 0.10), transparent 62%);
}

.hero__ambient {
  position: absolute;
  top: 50%;
  right: -6%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  pointer-events: none;
}
.hero__ambient .breathing-ring { top: 50%; left: 50%; margin-top: calc(-1 * var(--r)); margin-left: calc(-1 * var(--r)); }
.hero__ambient .breathing-ring--1 { --r: 170px; }
.hero__ambient .breathing-ring--2 { --r: 230px; }
.hero__ambient .breathing-ring--3 { --r: 290px; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5.8vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--ink);
  max-width: 660px;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(100deg, var(--bronze-dark), var(--bronze-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin-top: 28px;
  font-size: 18.5px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 500px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 58px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  max-width: 560px;
}
.hero__trust li {
  font-size: 13.5px;
  color: var(--text-soft);
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 40px;
  margin-right: 40px;
  border-right: 1px solid var(--line);
}
.hero__trust li:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hero__trust-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.hero__trust-label { max-width: 120px; }

.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__portrait { position: relative; width: 100%; max-width: 420px; }

.hero__portrait::before {
  content: "";
  position: absolute;
  top: 8%; left: 8%; right: -14%; bottom: -10%;
  background: linear-gradient(150deg, var(--sage-mist) 0%, var(--paper-alt) 100%);
  border-radius: 46% 54% 58% 42% / 48% 44% 56% 52%;
  z-index: -2;
  opacity: 0.8;
}

.hero__portrait-frame {
  position: absolute;
  top: 20px; left: -20px;
  right: -20px; bottom: -20px;
  border: 1.5px solid var(--bronze-light);
  border-radius: var(--radius-lg);
  opacity: 0.55;
  z-index: -1;
  display: none;
}

.hero__chip {
  position: absolute;
  top: -16px;
  left: -16px;
  background: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 2;
}
.hero__chip span {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.hero__chip small {
  font-size: 11px;
  color: var(--sage);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero__badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--white);
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.hero__badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 0 rgba(126,152,132,0.6);
  animation: pulse-dot 2.2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(126,152,132,0.5); }
  70% { box-shadow: 0 0 0 9px rgba(126,152,132,0); }
  100% { box-shadow: 0 0 0 0 rgba(126,152,132,0); }
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--line);
  border-radius: 20px;
}
.scroll-cue span {
  display: block;
  width: 4px;
  height: 8px;
  margin: 7px auto 0;
  border-radius: 2px;
  background: var(--sage);
  animation: scroll-cue 1.8s ease infinite;
}
@keyframes scroll-cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { opacity: 0; }
}

/* =========================================================
   IMAGE PLACEHOLDERS
   ========================================================= */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    repeating-linear-gradient(135deg, rgba(126,152,132,0.14) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #EFEAE0, #E4DED0);
  border: 1.5px dashed var(--sage);
  color: var(--deep);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.5;
  padding: 24px;
}
.img-placeholder--portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur-med) var(--ease-soft);
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  /* Anula el tratamiento de "placeholder de texto" ahora que hay foto real */
  overflow: hidden;
  padding: 0;
  border: none;
  background: var(--paper-alt);
}

.img-placeholder--portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: inherit;
  display: block;
}
.img-placeholder--square {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  padding: 0;
  border: none;
  background: var(--paper-alt);
  filter: contrast(1.05) saturate(1.08) brightness(1.01);
}

.img-placeholder--square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  border-radius: inherit;
  display: block;
  filter: contrast(1.05) saturate(1.08) brightness(1.01);
}

.section__visual { position: relative; }
.section__visual-frame {
  position: absolute;
  top: -18px; right: -18px;
  bottom: 18px; left: 18px;
  border: 1.5px solid var(--sage-soft);
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* =========================================================
   GENERIC SECTION LAYOUT
   ========================================================= */
.section {
  padding: 132px 0;
  position: relative;
  overflow: hidden;
}
.section--tint { background: var(--paper-alt); }
.section--dark {
  background: var(--forest);
  color: var(--paper);
}

/* Atmósfera de fondo sutil, propia de cada sección — evita la
   sensación de "bloques rectangulares" planos entre secciones. */
.section::after {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(126, 152, 132, 0.08), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
#motivos::after { top: auto; bottom: -180px; right: auto; left: -140px; background: radial-gradient(closest-side, rgba(174, 133, 86, 0.07), transparent 72%); }
#proceso::after { background: radial-gradient(closest-side, rgba(126, 152, 132, 0.07), transparent 72%); }
#preguntas-frecuentes::after { top: auto; bottom: -160px; right: -140px; background: radial-gradient(closest-side, rgba(174, 133, 86, 0.06), transparent 72%); }
#como-trabajo::after, .section--dark::after { display: none; }
.section > .container { position: relative; z-index: 1; }

.section__header {
  margin-bottom: 72px;
  position: relative;
}
.section__header--light .section__lead { color: rgba(250,248,244,0.7); }

.section__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: center;
}
.section__grid--reverse { grid-template-columns: 0.85fr 1.15fr; }

/* =========================================================
   CREDENTIALS
   ========================================================= */
.credentials {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.credential {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  transition: padding-left var(--dur-fast) var(--ease);
}
.credential:hover { padding-left: 6px; }
.credential__label {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage);
}
.credential__value {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
}

.postgrados {
  margin-top: 38px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.postgrados summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--bronze-dark);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.postgrados summary::-webkit-details-marker { display: none; }
.postgrados__icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--bronze-light);
  position: relative;
  flex-shrink: 0;
  transition: transform var(--dur-fast) ease, background var(--dur-fast) ease;
}
.postgrados__icon::before, .postgrados__icon::after {
  content: "";
  position: absolute;
  background: var(--bronze-dark);
  top: 50%; left: 50%;
  transition: transform var(--dur-fast) ease;
}
.postgrados__icon::before { width: 9px; height: 1.4px; transform: translate(-50%, -50%); }
.postgrados__icon::after { width: 1.4px; height: 9px; transform: translate(-50%, -50%); }
.postgrados[open] .postgrados__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.postgrados ul {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px 24px;
}
.postgrados li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.postgrados li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sage);
}

/* =========================================================
   CARD GRID — CÓMO TRABAJA
   ========================================================= */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(232, 227, 214, 0.7);
  border-radius: var(--radius-md);
  padding: 38px 32px;
  transition: transform 0.5s var(--ease-soft), box-shadow 0.5s var(--ease-soft), border-color 0.4s ease;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--sage), var(--bronze));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, rgba(126, 152, 132, 0.14), rgba(174, 133, 86, 0.12));
  border: 1px solid rgba(126, 152, 132, 0.18);
  color: var(--deep);
  margin-bottom: 26px;
  transition: transform 0.45s var(--ease-soft), background var(--dur-fast) ease;
}
.card:hover .card__icon {
  transform: scale(1.07);
  background: linear-gradient(150deg, rgba(126, 152, 132, 0.2), rgba(174, 133, 86, 0.18));
}
.card__title {
  font-family: var(--font-display);
  font-size: 19.5px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--ink);
  letter-spacing: -0.008em;
}
.card__text {
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* =========================================================
   MOTIVOS DE CONSULTA
   ========================================================= */
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.tag {
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.tag:hover {
  border-color: var(--bronze);
  background: rgba(174, 133, 86, 0.08);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.motivos__note {
  margin-top: 32px;
  font-size: 15px;
  color: var(--text-soft);
  max-width: 620px;
  line-height: 1.7;
}

.audience-strip {
  margin-top: 60px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
}
.audience-strip span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--sage);
  text-transform: uppercase;
}

/* =========================================================
   BENEFICIOS (DARK — glass cards)
   ========================================================= */
.beneficios__ambient {
  position: absolute;
  top: 50%; left: 8%;
  transform: translateY(-50%);
  width: 420px; height: 420px;
  pointer-events: none;
}
.beneficios__ambient .breathing-ring { top: 50%; left: 50%; margin-top: calc(-1 * var(--r)); margin-left: calc(-1 * var(--r)); border-color: var(--paper); }
.beneficios__ambient .breathing-ring--1 { --r: 150px; opacity: 0.08; }
.beneficios__ambient .breathing-ring--2 { --r: 210px; opacity: 0.05; }

.benefit {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-md);
  background: rgba(250, 248, 244, 0.035);
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(6px);
  transition: transform 0.5s var(--ease-soft), background 0.4s ease, border-color 0.4s ease;
}
.benefit:hover {
  transform: translateY(-6px);
  background: rgba(250, 248, 244, 0.06);
  border-color: rgba(201, 162, 118, 0.4);
}
.benefit__num {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  color: var(--bronze-light);
  margin-bottom: 13px;
}
.benefit p {
  font-size: 14.5px;
  color: rgba(250,248,244,0.66);
  line-height: 1.7;
}

/* =========================================================
   PROCESO — timeline conectada
   ========================================================= */
.process {
  display: flex;
  flex-direction: column;
  max-width: 760px;
  position: relative;
}
.process__step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 26px;
  padding: 8px 0 44px;
  position: relative;
}
.process__step:last-child { padding-bottom: 4px; }
.process__marker {
  position: relative;
  display: flex;
  justify-content: center;
}
.process__marker::after {
  content: "";
  position: absolute;
  top: 56px;
  bottom: -8px;
  width: 1px;
  background: var(--line);
}
.process__step:last-child .process__marker::after { display: none; }
.process__number {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--sage-soft);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--deep);
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease, color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, transform 0.4s var(--ease-soft);
  z-index: 1;
}
.process__step:hover .process__number {
  transform: scale(1.06);
  box-shadow: var(--shadow-sm);
  border-color: var(--bronze);
  background: var(--bronze);
  color: var(--paper);
}
.process__body { padding-top: 8px; }
.process__body h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--ink);
}
.process__body p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
}

/* =========================================================
   TESTIMONIOS
   ========================================================= */
.testimonial {
  background: var(--white);
  border: 1px dashed var(--sage-soft);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  text-align: left;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}
.testimonial__stars {
  display: flex;
  gap: 4px;
  color: var(--bronze-light);
  margin-bottom: 20px;
}
.testimonial__text {
  font-size: 14.5px;
  color: var(--text-soft);
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 24px;
}
.testimonial__person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--sage-mist), var(--paper-alt));
  border: 1px dashed var(--sage-soft);
  flex-shrink: 0;
}
.testimonial__name {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bronze-dark);
}

/* =========================================================
   FAQ
   ========================================================= */
.faq__item {
  border-top: 1px solid var(--line);
  transition: background var(--dur-fast) ease;
}
.faq__item:last-child { border-bottom: 1px solid var(--line); }

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 500;
  color: var(--ink);
  transition: color var(--dur-fast) ease;
}
.faq__question:hover { color: var(--bronze-dark); }
.faq__chevron {
  flex-shrink: 0;
  color: var(--sage);
  transition: transform var(--dur-fast) var(--ease);
}
.faq__question[aria-expanded="true"] .faq__chevron {
  transform: rotate(180deg);
  color: var(--bronze);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-med) var(--ease);
}
.faq__answer p {
  padding: 0 4px 27px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 620px;
}

/* =========================================================
   CTA FINAL
   ========================================================= */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  padding: 140px 0;
  text-align: center;
}
.cta__ambient {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  pointer-events: none;
}
.cta__ambient .breathing-ring { top: 50%; left: 50%; margin-top: calc(-1 * var(--r)); margin-left: calc(-1 * var(--r)); border-color: var(--paper); }
.cta__ambient .breathing-ring--1 { --r: 220px; opacity: 0.09; }
.cta__ambient .breathing-ring--2 { --r: 320px; opacity: 0.05; }

.cta__inner { position: relative; z-index: 1; }

.cta__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
  color: var(--bronze-light);
  max-width: 560px;
  margin: 0 auto 36px;
  opacity: 0.92;
}
.cta__quote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(250,248,244,0.5);
}

.cta__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(31px, 4.6vw, 48px);
  line-height: 1.18;
  color: var(--paper);
  max-width: 700px;
  margin: 0 auto;
}
.cta__text {
  margin: 24px auto 42px;
  font-size: 17.5px;
  color: rgba(250,248,244,0.68);
  max-width: 480px;
}
.cta .btn--primary {
  background: var(--bronze);
  color: var(--forest);
}
.cta .btn--primary:hover {
  background: var(--paper);
}
.cta__microtrust {
  margin-top: 28px;
  font-size: 13px;
  color: rgba(250,248,244,0.48);
  letter-spacing: 0.03em;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--ink);
  color: rgba(250,248,244,0.6);
  padding: 84px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-dark);
}
.brand--footer { margin-right: 0; }
.brand--footer .brand__mark {
  border-color: rgba(183, 198, 186, 0.35);
  color: var(--paper);
}
.brand__name--footer {
  color: var(--paper);
}
.footer__brand .brand__title { color: var(--sage-soft); }
.footer__tagline {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 260px;
}

.footer__links, .footer__contact {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.footer__links-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--sage-soft);
  margin-bottom: 6px;
}
.footer__links a, .footer__contact a {
  font-size: 14.5px;
  transition: color var(--dur-fast) ease;
  width: fit-content;
}
.footer__links a:hover, .footer__contact a:hover { color: var(--paper); }
.footer__location {
  font-size: 14.5px;
}

.footer__bottom {
  padding: 28px 28px;
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================================================
   WHATSAPP FLOAT BUTTON
   ========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 800;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) ease;
}
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--sage-soft);
  opacity: 0;
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease;
  transform: scale(0.85);
}
.whatsapp-float:hover {
  background: var(--bronze-dark);
  transform: scale(1.08);
}
.whatsapp-float:hover::before {
  opacity: 0.6;
  transform: scale(1);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 380px; margin: 0 auto 12px; }
  .hero__ambient { display: none; }
  .hero__content { text-align: left; }
  .section__grid, .section__grid--reverse { grid-template-columns: 1fr; gap: 48px; }
  .section__visual { max-width: 380px; margin: 0 auto; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__trust li { padding-right: 26px; margin-right: 26px; }
  .section { padding: 108px 0; }
  .section__header { margin-bottom: 56px; }
}

/* Ajuste fino para tablets (768–1024px): más aire, sin
   elementos apretados entre el layout de escritorio y el móvil. */
@media (max-width: 1024px) and (min-width: 641px) {
  .hero { padding: 88px 0 72px; }
  .hero__title { max-width: 100%; }
  .hero__subtitle { max-width: 560px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .credentials { max-width: 640px; }
}

@media (max-width: 860px) {
  .navbar__links {
    position: fixed;
    inset: 0;
    top: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--paper);
    gap: 6px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease), visibility var(--dur-med);
    z-index: -1;
  }
  .navbar__links.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    z-index: 850;
  }
  .navbar__links a {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 500;
    padding: 14px 0;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }
  .navbar__links.is-open a {
    opacity: 1;
    transform: translateY(0);
  }
  .navbar__links.is-open li:nth-child(1) a { transition-delay: 0.06s; }
  .navbar__links.is-open li:nth-child(2) a { transition-delay: 0.11s; }
  .navbar__links.is-open li:nth-child(3) a { transition-delay: 0.16s; }
  .navbar__links.is-open li:nth-child(4) a { transition-delay: 0.21s; }
  .navbar__links.is-open li:nth-child(5) a { transition-delay: 0.26s; }
  .navbar__links.is-open li:nth-child(6) a { transition-delay: 0.31s; }
  .navbar__toggle { display: flex; position: relative; z-index: 900; }
  .navbar__toggle.is-open span { background: var(--ink); }
  .btn--nav { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 92px 0; }
  .hero { padding: 68px 0 60px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .hero__trust { gap: 0; }
  .hero__trust li { padding-right: 20px; margin-right: 20px; }
  .hero__chip { display: none; }
  .grid--4, .grid--3 { grid-template-columns: 1fr; }
  .postgrados ul { grid-template-columns: 1fr; }
  .credential { grid-template-columns: 1fr; gap: 4px; }
  .footer__grid { grid-template-columns: 1fr; gap: 38px; }
  .cta { padding: 92px 0; }
  .process__step { grid-template-columns: 52px 1fr; gap: 18px; }
  .process__number { width: 48px; height: 48px; font-size: 15px; }
  .process__marker::after { top: 48px; }
}
