/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Paleta */
  --cream: #F0EDE3;
  --cream-deep: #E8E5D5;
  --paper: #FBF9F2;
  --sage: #6B7F5C;
  --sage-dark: #3F4A35;
  --sage-light: #A8B89C;
  --sage-pale: #D4DCC8;
  --terracotta: #C97B5C;
  --terracotta-deep: #A8593E;
  --mustard: #D4A24C;
  --rose: #E8C7B8;
  --ink: #1F1E1A;
  --ink-soft: #5C5A52;
  --ink-faint: #8B8980;

  /* Tipografía */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  /* Espacios */
  --container: 1200px;
  --container-narrow: 880px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Textura sutil de papel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* Foco accesible visible para teclado */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--terracotta-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Oculto visual pero presente para lectores de pantalla */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--sage-dark);
  color: var(--cream);
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 200;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.display-1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.display-2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.display-3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.italic-flourish {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--terracotta-deep);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--sage);
  display: inline-block;
}

.lead {
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 400;
}

.body-large { font-size: 18px; line-height: 1.7; color: var(--ink-soft); }

/* Magazine number */
.mag-number {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 300;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  line-height: 0.9;
  color: var(--mustard);
  display: block;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

section { padding: clamp(72px, 10vw, 140px) 0; position: relative; z-index: 2; }
section.tight { padding: clamp(48px, 6vw, 80px) 0; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 237, 227, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31, 30, 26, 0.06);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.nav-logo-mark {
  width: 40px;
  height: 40px;
  background: var(--sage-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  flex-shrink: 0;
  position: relative;
}

/* Chispa mostaza — el "insight" */
.nav-logo-mark::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: var(--mustard);
  border-radius: 50%;
  border: 2px solid var(--cream);
}

.footer-brand .nav-logo-mark::after {
  border-color: var(--ink);
}

.nav-logo-text { line-height: 1.15; }
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-logo-sub {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  color: var(--ink);
  font-weight: 400;
  position: relative;
  transition: color 0.2s ease;
  padding: 4px 0;
  cursor: pointer;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--terracotta);
  transition: width 0.3s ease;
}

.nav-link:hover { color: var(--sage-dark); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--sage-dark); }
.nav-link.active::after { width: 100%; background: var(--sage-dark); }

.nav-cta {
  background: var(--terracotta);
  color: var(--paper);
  padding: 11px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.nav-cta:hover {
  background: var(--terracotta-deep);
  transform: translateY(-1px);
}

.nav-cta svg { width: 14px; height: 14px; }

.menu-toggle { display: none; }

@media (max-width: 968px) {
  .nav-menu { display: none; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    cursor: pointer;
  }
  .menu-toggle span {
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    transition: all 0.3s;
  }
  .nav-menu.open {
    display: flex;
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 32px;
    gap: 20px;
    align-items: flex-start;
    border-bottom: 1px solid rgba(31, 30, 26, 0.08);
    z-index: 99;
  }
}

/* ============================================
   HERO (HOME)
   ============================================ */
.hero {
  position: relative;
  padding: clamp(80px, 9vw, 130px) 0 clamp(60px, 7vw, 100px);
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  z-index: 1;
}

.hero-blob-1 {
  width: 480px; height: 480px;
  background: var(--sage-pale);
  top: -120px; right: -100px;
}

.hero-blob-2 {
  width: 360px; height: 360px;
  background: var(--rose);
  bottom: -120px; left: -80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text { animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero-text > * + * { margin-top: 28px; }

.hero h1 .underline-mark {
  position: relative;
  display: inline-block;
}

.hero h1 .underline-mark::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' fill='none'%3E%3Cpath d='M2 7C45 3 110 3 150 6C190 9 250 9 298 5' stroke='%23D4A24C' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
  background-size: 100% 100%;
}

.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;          /* nunca rompe a varias líneas (mantiene la pill) */
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
}

/* Si el botón es ancho completo (ej. en el formulario o móvil) sí permite envolver */
.btn-block, .form-submit {
  width: 100%;
  white-space: normal;
  border-radius: 14px;          /* radio menor para multilínea */
}

.btn-primary {
  background: var(--terracotta);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--terracotta-deep);
  transform: translateY(-2px);
}
.btn-primary svg { transition: transform 0.25s ease; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-light {
  background: var(--paper);
  color: var(--terracotta-deep);
}
.btn-light:hover {
  background: var(--ink);
  color: var(--paper);
}

.hero-image {
  position: relative;
  animation: fadeUp 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}

.hero-image-frame {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--sage-light), var(--sage));
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  transform: rotate(-1.2deg);
}

.hero-image-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--sage-dark);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.hero-image-tag {
  position: absolute;
  top: -16px;
  right: -16px;
  background: var(--mustard);
  color: var(--ink);
  padding: 14px 18px;
  border-radius: 50%;
  width: 110px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(8deg);
  box-shadow: 0 4px 20px rgba(212, 162, 76, 0.25);
}

.hero-image-tag-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}
.hero-image-tag-text {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 500;
}

.hero-trust {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(31, 30, 26, 0.1);
  font-size: 13px;
  color: var(--ink-faint);
}

.hero-trust span { display: flex; align-items: center; gap: 6px; }

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image-tag { width: 90px; height: 90px; right: 0; top: -8px; }
  .hero-trust { flex-direction: column; gap: 8px; }
}

/* ============================================
   QUOTE BAR
   ============================================ */
.quote-bar {
  background: var(--sage-dark);
  color: var(--cream);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.quote-bar::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 5%;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  transform: translateY(-50%);
}
.quote-bar::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 5%;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  transform: translateY(-50%);
}

.quote-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 0;
  color: var(--mustard);
  font-style: italic;
  display: inline-block;
  vertical-align: -28px;
  margin-right: 8px;
}

.quote-text {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  line-height: 1.3;
  max-width: 720px;
  margin: 0 auto;
  display: inline;
}

.quote-attribution {
  margin-top: 24px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-light);
}

/* ============================================
   SERVICES GRID
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header > * + * { margin-top: 18px; }

.services-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
  grid-template-areas:
    "star infant adult"
    "star online online";
}

.service-card {
  background: var(--paper);
  border-radius: 16px;
  padding: 36px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid rgba(31, 30, 26, 0.04);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 30, 26, 0.12);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-dark);
  transition: all 0.3s;
}

.service-card:hover .service-card-icon {
  background: var(--sage-pale);
}

.service-card-icon svg { width: 28px; height: 28px; stroke-width: 1.4; }

.service-card h3 {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
}

.service-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
}

.service-card-link {
  font-size: 13px;
  color: var(--terracotta-deep);
  font-weight: 500;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s;
}

.service-card:hover .service-card-link { gap: 10px; }

/* Star service (psicopedagogía) */
.service-star {
  grid-area: star;
  background: var(--sage-dark);
  color: var(--paper);
  padding: 44px;
  position: relative;
}

.service-star::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 162, 76, 0.18), transparent);
  border-radius: 50%;
}

.service-star .service-card-icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--mustard);
}

.service-star:hover .service-card-icon {
  background: rgba(255, 255, 255, 0.15);
}

.service-star h3 {
  color: var(--paper);
  font-size: 32px;
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.service-star p { color: rgba(251, 249, 242, 0.85); font-size: 16px; }

.service-star .service-card-link {
  color: var(--mustard);
  font-size: 14px;
}

.service-star-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--mustard);
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 5px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.service-card-infant { grid-area: infant; }
.service-card-adult { grid-area: adult; }
.service-card-online { grid-area: online; }

@media (max-width: 968px) {
  .services-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "star"
      "infant"
      "adult"
      "online";
  }
}

/* ============================================
   NEAE BANNER
   ============================================ */
.neae-banner {
  background: var(--terracotta);
  color: var(--paper);
  border-radius: 24px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.neae-banner::before {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}
.neae-banner::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.neae-content { position: relative; z-index: 2; }
.neae-content > * + * { margin-top: 18px; }

.neae-content .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}
.neae-content .eyebrow::before { background: rgba(255, 255, 255, 0.6); }

.neae-content h2 {
  color: var(--paper);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 300;
  line-height: 1.05;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

.neae-content p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(251, 249, 242, 0.92);
  max-width: 540px;
}

.neae-amount {
  position: relative;
  z-index: 2;
  text-align: center;
}

.neae-amount-circle {
  width: 240px;
  height: 240px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.06);
}

.neae-amount-num {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 300;
  line-height: 1;
  font-variation-settings: "opsz" 144;
}

.neae-amount-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 8px;
  opacity: 0.85;
}

@media (max-width: 800px) {
  .neae-banner { grid-template-columns: 1fr; padding: 40px; gap: 40px; }
  .neae-amount-circle { width: 180px; height: 180px; }
  .neae-amount-num { font-size: 56px; }
}

/* ============================================
   ABOUT PREVIEW
   ============================================ */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
}

.about-image-stack {
  position: relative;
  aspect-ratio: 1;
}

.about-image-main {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cream-deep), var(--rose));
  border-radius: 6px;
  overflow: hidden;
  transform: rotate(-2deg);
}

.about-image-secondary {
  position: absolute;
  width: 50%;
  aspect-ratio: 3/4;
  bottom: -30px;
  right: -30px;
  background: linear-gradient(135deg, var(--sage-light), var(--sage));
  border-radius: 6px;
  transform: rotate(4deg);
  box-shadow: -8px 8px 32px rgba(31, 30, 26, 0.08);
}

.image-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 10px;
  color: var(--sage-dark);
  font-weight: 500;
}

/* Fotos reales dentro de los marcos: rellenan el hueco y respetan el recorte */
.hero-image-frame img,
.about-image-main img,
.about-image-secondary img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.about-image-secondary { overflow: hidden; }
/* Las etiquetas-caption quedan por encima de la foto */
.hero-image-label,
.image-label { z-index: 2; }

.about-text > * + * { margin-top: 24px; }

.about-text blockquote {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 300;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.about-text blockquote::before {
  content: '"';
  font-size: 1.5em;
  color: var(--mustard);
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 4px;
}

@media (max-width: 768px) {
  .about-preview { grid-template-columns: 1fr; gap: 50px; }
}

/* ============================================
   PROCESS (How I work)
   ============================================ */
.process {
  background: var(--paper);
  border-radius: 24px;
  padding: 80px 60px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
}

.process-step {
  position: relative;
  padding-top: 16px;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 60px;
  right: -30px;
  width: 24px;
  height: 1px;
  background: var(--sage-light);
}

.process-step h3 {
  font-size: 22px;
  font-weight: 400;
  margin: 16px 0 12px;
}

.process-step p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .process { padding: 50px 30px; }
  .process-grid { grid-template-columns: 1fr; gap: 32px; }
  .process-step:not(:last-child)::after { display: none; }
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: var(--paper);
  padding: 32px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial-stars { color: var(--mustard); display: flex; gap: 2px; }
.testimonial-stars svg { width: 16px; height: 16px; fill: var(--mustard); }

.testimonial-text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.01em;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(31, 30, 26, 0.08);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sage-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--sage-dark);
  font-weight: 500;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.testimonial-role {
  font-size: 12px;
  color: var(--ink-faint);
}

@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
  text-align: center;
  padding: clamp(80px, 10vw, 140px) 32px;
  position: relative;
}

.final-cta-content > * + * { margin-top: 28px; }

.final-cta h2 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  max-width: 760px;
  margin: 0 auto;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0 32px;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .nav-logo-mark {
  background: var(--cream);
  color: var(--ink);
}
.footer-brand .nav-logo-name { color: var(--cream); }
.footer-brand .nav-logo-sub { color: var(--ink-faint); }

.footer-tagline {
  margin-top: 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.4;
  color: rgba(240, 237, 227, 0.7);
  max-width: 320px;
  font-weight: 300;
}

footer h4 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mustard);
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-list { list-style: none; }
.footer-list li { margin-bottom: 12px; }
.footer-list a, .footer-list span {
  font-size: 14px;
  color: rgba(240, 237, 227, 0.75);
  transition: color 0.2s;
}
.footer-list a:hover { color: var(--cream); }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(240, 237, 227, 0.5);
}

.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-legal a { transition: color 0.2s; }
.footer-legal a:hover { color: var(--cream); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }
}

/* ============================================
   FLOATING WHATSAPP
   ============================================ */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  z-index: 50;
  transition: all 0.25s;
}

.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-fab svg { width: 26px; height: 26px; }

/* ============================================
   STICKY MOBILE CTA — pill flotante editorial
   ============================================ */
.mobile-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 55;
  display: none;
  gap: 8px;
  align-items: center;
  background: var(--paper);
  border: 1px solid rgba(31, 30, 26, 0.06);
  border-radius: 100px;
  padding: 6px 6px 6px 6px;
  box-shadow: 0 14px 36px rgba(31, 30, 26, 0.14),
              0 2px 8px  rgba(31, 30, 26, 0.05);
  transform: translateY(calc(100% + 24px)) scale(0.96);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity   0.3s ease;
}
.mobile-cta.visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.mobile-cta-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  background: var(--terracotta);
  color: var(--paper);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.mobile-cta-pill:active { background: var(--terracotta-deep); }
.mobile-cta-pill svg {
  width: 16px; height: 16px;
  stroke-width: 1.8;
  transition: transform 0.2s ease;
}
.mobile-cta-pill:active svg { transform: translateX(2px); }

.mobile-cta-wa {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.mobile-cta-wa:active { transform: scale(0.94); }
.mobile-cta-wa svg { width: 22px; height: 22px; }

@media (max-width: 768px) {
  .mobile-cta { display: flex; }
  .whatsapp-fab { display: none; }
  body { padding-bottom: 92px; }
  /* En móvil la cookie-notice se reposiciona arriba del CTA flotante */
  .cookie-notice {
    bottom: 96px;
    right: 16px;
    left: 16px;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 16px 18px;
    border-radius: 14px;
  }
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumb-wrap { padding: 28px 0 0; }
.breadcrumb {
  font-size: 13px;
  color: var(--ink-faint);
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after {
  content: '/';
  color: rgba(31, 30, 26, 0.25);
}
.breadcrumb a {
  color: var(--ink-soft);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--terracotta-deep); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 500; }

/* Cuando hay breadcrumb justo antes del page-hero, recortar el padding-top
   del hero para que la migaja no quede flotando con 130px de aire debajo. */
.breadcrumb-wrap + .page-hero,
.breadcrumb-wrap + section.page-hero {
  padding-top: clamp(32px, 5vw, 64px);
}

/* ============================================
   IN-CONTENT INFO BOX (related links)
   ============================================ */
.related-link {
  margin: 32px 0;
  padding: 20px 24px;
  background: var(--paper);
  border-left: 3px solid var(--sage-light);
  border-radius: 6px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.related-link strong { color: var(--ink); }
.related-link a { color: var(--terracotta-deep); text-decoration: underline; }

/* ============================================
   COOKIE NOTICE
   ============================================ */
.cookie-notice {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 96px;
  max-width: 520px;
  background: var(--ink);
  color: var(--cream);
  padding: 18px 22px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 60;
  font-size: 13px;
  line-height: 1.5;
  animation: fadeUp 0.4s ease both;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p { flex: 1; color: rgba(240, 237, 227, 0.92); }
.cookie-notice a { color: var(--mustard); text-decoration: underline; }
.cookie-accept {
  background: var(--terracotta);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
  transition: background 0.2s;
}
.cookie-accept:hover { background: var(--terracotta-deep); }

/* Nota: el reposicionamiento en móvil ya lo gestiona la regla principal del mobile-cta */

/* ============================================
   INNER PAGES — HERO
   ============================================ */
.page-hero {
  padding: clamp(80px, 9vw, 130px) 0 clamp(60px, 7vw, 90px);
  position: relative;
  overflow: hidden;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: end;
  position: relative;
  z-index: 2;
}

.page-hero-text > * + * { margin-top: 28px; }

.page-hero h1 {
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

.page-hero-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid rgba(31, 30, 26, 0.1);
  border-bottom: 1px solid rgba(31, 30, 26, 0.1);
}

.page-hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-hero-meta-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.page-hero-meta-value {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
}

@media (max-width: 768px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 50px; }
}

/* ============================================
   CONTENT SECTIONS (inner pages)
   ============================================ */
.prose {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
}

.prose > * + * { margin-top: 1.4em; }

.prose h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  margin-top: 2em;
  letter-spacing: -0.02em;
}

.prose h3 {
  font-size: 22px;
  font-weight: 500;
  margin-top: 1.6em;
  font-family: var(--font-body);
}

.prose strong { color: var(--ink); font-weight: 600; }
.prose em { color: var(--terracotta-deep); font-style: italic; }

.prose ul {
  list-style: none;
  padding: 0;
}
.prose ul li {
  position: relative;
  padding-left: 28px;
  margin: 8px 0;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.7em;
  width: 12px;
  height: 1px;
  background: var(--terracotta);
}

/* Areas grid */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0;
}

.area-pill {
  padding: 18px 22px;
  background: var(--paper);
  border-radius: 12px;
  font-size: 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(31, 30, 26, 0.04);
  transition: all 0.2s;
}

.area-pill:hover {
  border-color: var(--sage-light);
  transform: translateX(2px);
}

.area-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .areas-grid { grid-template-columns: 1fr; }
}

/* FAQ */
.faq {
  border-top: 1px solid rgba(31, 30, 26, 0.1);
}
.faq-item {
  border-bottom: 1px solid rgba(31, 30, 26, 0.1);
  padding: 24px 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--terracotta);
  transition: transform 0.25s;
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item-content {
  padding-top: 16px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

/* NEAE feature box on psicopedagogía page */
.feature-box {
  background: var(--sage-dark);
  color: var(--paper);
  border-radius: 24px;
  padding: 56px 60px;
  margin: 60px 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "content amount"
    "list    list";
  column-gap: 56px;
  row-gap: 36px;
  align-items: start;
}

.feature-content { grid-area: content; min-width: 0; }
.feature-content > * + * { margin-top: 18px; }

.feature-box h2 {
  color: var(--paper);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  line-height: 1.1;
}
.feature-box p {
  color: rgba(251, 249, 242, 0.88);
  font-size: 16px;
  line-height: 1.7;
}
.feature-cta-link a {
  color: var(--mustard);
  text-decoration: underline;
  font-weight: 500;
  text-underline-offset: 3px;
}

.feature-amount {
  grid-area: amount;
  text-align: right;
  align-self: start;
  /* Pequeño tirón hacia arriba para que el 913€ quede al nivel del eyebrow */
  margin-top: -8px;
}
.feature-amount-num {
  font-family: var(--font-display);
  font-size: clamp(64px, 7vw, 96px);
  font-weight: 300;
  line-height: 1;
  color: var(--mustard);
  font-variation-settings: "opsz" 144;
  white-space: nowrap;
}
.feature-amount-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(251, 249, 242, 0.7);
  margin-top: 8px;
}

.feature-list {
  grid-area: list;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.feature-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: rgba(251, 249, 242, 0.92);
}
.feature-list-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mustard);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-list-icon svg { width: 12px; height: 12px; }

@media (max-width: 768px) {
  .feature-box {
    padding: 40px 30px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "amount"
      "content"
      "list";
    column-gap: 0;
    row-gap: 28px;
  }
  .feature-amount { text-align: left; margin-top: 0; }
  .feature-list { grid-template-columns: 1fr; }
}

/* CONTACT page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-dark);
  flex-shrink: 0;
  border: 1px solid rgba(31, 30, 26, 0.04);
}
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.contact-info-value {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink);
  line-height: 1.4;
}
.contact-info-value a { color: inherit; transition: color 0.2s; }
.contact-info-value a:hover { color: var(--terracotta-deep); }

.contact-form {
  background: var(--paper);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid rgba(31, 30, 26, 0.04);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(31, 30, 26, 0.12);
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: white;
  transition: border-color 0.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--sage);
}
.form-field textarea { resize: vertical; min-height: 120px; }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 24px;
}
.form-checkbox input { margin-top: 2px; }
.form-checkbox a { color: var(--terracotta-deep); text-decoration: underline; }

.form-submit { width: 100%; justify-content: center; }

.form-status {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 20px;
}
.form-status.success { background: var(--sage-pale); color: var(--sage-dark); }
.form-status.error   { background: rgba(201, 123, 92, 0.15); color: var(--terracotta-deep); }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
}

/* TARIFAS table */
.pricing-card {
  background: var(--paper);
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  border: 1px solid rgba(31, 30, 26, 0.04);
  transition: all 0.2s;
}
.pricing-card:hover {
  border-color: var(--sage-light);
}
.pricing-card-info > * + * { margin-top: 8px; }
.pricing-card h3 {
  font-size: 22px;
  font-weight: 500;
  font-family: var(--font-body);
}
.pricing-card p {
  color: var(--ink-soft);
  font-size: 14px;
}
.pricing-card-price {
  text-align: right;
}
.pricing-card-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
}
.pricing-card-currency {
  font-size: 24px;
  vertical-align: super;
  color: var(--ink-faint);
}
.pricing-card-duration {
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  margin-top: 4px;
}
.pricing-card-consult {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 500;
  color: var(--terracotta);
  white-space: nowrap;
  transition: gap 0.2s, color 0.2s;
}
.pricing-card-consult:hover {
  color: var(--terracotta-deep);
  gap: 10px;
}

.pricing-note {
  margin-top: 60px;
  padding: 32px;
  background: var(--paper);
  border-radius: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.pricing-note strong { color: var(--ink); }

@media (max-width: 600px) {
  .pricing-card { grid-template-columns: 1fr; gap: 16px; }
  .pricing-card-price { text-align: left; }
}

/* ============================================
   ENTER ANIMATIONS
   ============================================ */
main {
  animation: pageIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section enter animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   ACCESIBILIDAD: Reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .nav, footer, .whatsapp-fab, .cookie-notice, .skip-link { display: none !important; }
  body { background: white; color: black; }
  body::before { display: none; }
  a { color: black; text-decoration: underline; }
}

/* Página utilitaria de páginas legales */
.legal {
  padding: clamp(48px, 6vw, 80px) 0 clamp(80px, 10vw, 140px);
}
.legal .prose h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  margin-bottom: 32px;
}
.legal-pending {
  margin: 24px 0;
  padding: 18px 22px;
  background: rgba(212, 162, 76, 0.15);
  border-left: 3px solid var(--mustard);
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}
