/* =========================================================================
   Ana González · Psicología — hoja de estilos principal
   Paleta "Cielo y arena" · tipografía serif + sans humanista
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Paleta acordada: Cielo y arena */
  --ivory: #F6F5EF;      /* fondo base */
  --sage: #B4CBD4;       /* fondos secundarios / de sección */
  --brown: #323834;      /* texto y titulares */
  --terracotta: #6E93A0; /* botones / enlaces / acentos */

  /* Derivados para contraste y profundidad (tintas y sombras de los 4 colores anteriores) */
  --ivory-deep: #ECEBE4;
  --sand: #EDE7DA;       /* barra superior, tono arena */
  --ivory-card: #FBFAF7;
  --sage-soft: #D3E1E6;
  --sage-deep: #7FA3AF;
  --brown-soft: #545E58;
  --brown-line: rgba(50, 56, 52, 0.14);

  /* Interacción (contraste AA sobre marfil) */
  --accent-text: #3F6472;   /* enlaces y texto de acento */
  --btn-bg: #467080;        /* fondo de botón */
  --btn-bg-hover: #33525E;
  --btn-text: #F8F7F2;
  --terracotta-light: #A9C4CC; /* acentos sobre fondo oscuro */

  --focus-ring: #3F6472;

  /* Tipografía */
  --font-serif: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-sans: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Ritmo */
  --container: 1140px;
  --container-narrow: 760px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(3.75rem, 9vw, 7.5rem);
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;
  --shadow-soft: 0 18px 50px -28px rgba(50, 56, 52, 0.35);
  --shadow-lift: 0 26px 60px -30px rgba(50, 56, 52, 0.42);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset suave ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--brown);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.16;
  color: var(--brown);
  margin: 0 0 0.6em;
  font-optical-sizing: auto;
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(2.35rem, 1.7rem + 3vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 1.4rem + 1.9vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.6rem); }

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent-text);
  text-decoration: none;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color 0.25s var(--ease);
}
a:hover { color: var(--btn-bg-hover); text-decoration: underline; }

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

strong { font-weight: 700; }

/* Foco visible y consistente */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Salto de accesibilidad */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 999;
  background: var(--brown);
  color: var(--ivory);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-s);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.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;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section[id] { scroll-margin-top: 6.5rem; }
.section--sage { background: var(--sage); }
.section--tint { background: var(--ivory-deep); }
.section--flush-top { padding-top: clamp(2rem, 5vw, 3.5rem); }

/* Enlaces de texto sobre fondo sage: marrón + subrayado para contraste AA */
.section--sage a:not(.btn) {
  color: var(--brown);
  text-decoration: underline;
  text-decoration-color: var(--accent-text);
  text-decoration-thickness: 1.5px;
}
.section--sage a:not(.btn):hover { color: #1E2220; text-decoration-color: var(--brown); }

.stack > * + * { margin-top: 1.15rem; }

/* ---------- Elementos tipográficos ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.section--sage .eyebrow { color: var(--brown); }
.eyebrow--lg { font-size: 0.92rem; }

.lead {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.65;
  color: var(--brown-soft);
  font-weight: 400;
}
.section--sage .lead { color: var(--brown); }

.section-head {
  max-width: 44ch;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .eyebrow::before { display: none; }

.tone-line {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.9rem);
  line-height: 1.4;
  color: var(--brown);
}

/* Adorno "sprig" */
.sprig {
  display: block;
  width: 34px;
  height: auto;
  margin: 0 auto 1.4rem;
  color: var(--sage-deep);
}
.section--sage .sprig { color: var(--brown); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-text);
}
.btn--primary:hover { background: var(--btn-bg-hover); color: var(--btn-text); }

.btn--ghost {
  background: transparent;
  color: var(--accent-text);
  border-color: rgba(63, 100, 114, 0.4);
}
.btn--ghost:hover {
  background: rgba(70, 112, 128, 0.08);
  color: var(--btn-bg-hover);
  border-color: rgba(63, 100, 114, 0.6);
}

.btn--on-dark {
  background: var(--ivory);
  color: var(--brown);
}
.btn--on-dark:hover { background: #fff; color: var(--brown); }

.btn--block { width: 100%; }

.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--sand);
  color: var(--brown);
  border-bottom: 1px solid var(--brown-line);
  font-size: 0.85rem;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1.1rem;
  padding-block: 0.6rem;
  text-align: center;
}
.topbar a {
  color: var(--brown);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.topbar a:hover { color: var(--accent-text); text-decoration: none; }
.topbar svg { width: 0.95rem; height: 0.95rem; opacity: 0.8; }
.topbar__sep { opacity: 0.5; }
@media (max-width: 600px) {
  .topbar { font-size: 0.8rem; }
  .topbar__inner { gap: 0.2rem 0.85rem; }
  .topbar__sep { display: none; }
}

/* ---------- Cabecera / navegación ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--brown-line);
  box-shadow: 0 10px 30px -24px rgba(50, 56, 52, 0.5);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-serif);
  color: var(--brown);
  line-height: 1.1;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; color: var(--brown); }
.brand__logo {
  display: block;
  height: 88px;
  width: auto;
  max-width: 320px;
}
@media (max-width: 900px) {
  .header__inner { padding-block: 1.1rem; }
  .brand__logo { height: 64px; max-width: 240px; }
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
}
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brown);
  padding-block: 0.3rem;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover,
.nav-link[aria-current="page"] { color: var(--accent-text); text-decoration: none; }
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* Desplegable de "Servicios": Cómo acompaño / Terapia online */
.nav-item--dropdown { position: relative; }
.nav-item--dropdown > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-item--dropdown > .nav-link::before {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s var(--ease);
  flex: none;
}
.nav-dropdown {
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 901px) {
  .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 200px;
    background: var(--ivory-card);
    border: 1px solid var(--brown-line);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-soft);
    padding: 0.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
    z-index: 110;
  }
  .nav-item--dropdown:hover .nav-dropdown,
  .nav-item--dropdown:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
  .nav-item--dropdown:hover > .nav-link::before,
  .nav-item--dropdown:focus-within > .nav-link::before { transform: rotate(225deg) translateY(2px); }
  .nav-dropdown__link {
    display: block;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-s);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--brown);
    white-space: nowrap;
  }
  .nav-dropdown__link:hover {
    background: var(--ivory-deep);
    color: var(--accent-text);
    text-decoration: none;
  }
}
@media (max-width: 900px) {
  .nav-item--dropdown > .nav-link::before { display: none; }
  .nav-dropdown {
    padding-left: 1.1rem;
    margin-bottom: 0.3rem;
  }
  .nav-dropdown__link {
    display: block;
    padding: 0.7rem 0;
    font-size: 1rem;
    font-family: var(--font-serif);
    color: var(--brown-soft);
  }
  .nav-dropdown__link:hover { color: var(--accent-text); }
}

.nav-cta { flex: none; }

/* Botón hamburguesa: visible por defecto, se oculta en escritorio.
   (Se invierte la lógica a min-width para evitar depender de que un
   max-width se reevalúe correctamente junto a otras reglas móviles.) */
.nav-toggle {
  display: block;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  flex: none;
}
@media (min-width: 901px) {
  .nav-toggle { display: none; }
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--brown);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-toggle { position: relative; z-index: 120; }

@media (max-width: 900px) {
  .primary-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 110;
    width: min(88vw, 360px);
    background: var(--ivory-card);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 6rem 2rem 2.5rem;
    box-shadow: var(--shadow-lift);
    transform: translateX(102%);
    transition: transform 0.4s var(--ease);
    overflow-y: auto;
  }
  .primary-nav.is-open { transform: translateX(0); }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.15rem;
    font-family: var(--font-serif);
    border-bottom: 1px solid var(--brown-line);
    color: var(--brown) !important;
  }
  .nav-link::after { display: none; }
  .nav-cta { margin-top: 1.75rem; }
  .nav-cta .btn { width: 100%; }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(50, 56, 52, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
    z-index: 90;
  }
  .nav-backdrop.is-visible { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Héroe (inicio) ---------- */
.hero {
  position: relative;
  min-height: clamp(30rem, 78vh, 44rem);
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Encuadre hacia el agua (izquierda): en móvil el titular queda sobre el mar y no sobre la arena clara */
  object-position: 25% center;
}
/* Sin velo oscuro: la imagen se muestra limpia y luminosa; la legibilidad la aporta el subrayado del titular */
.hero__inner {
  padding-block: clamp(3rem, 12vh, 8rem) clamp(3rem, 9vh, 6rem);
  max-width: min(46rem, 100%);
  margin-inline: auto;
  width: 100%;
}
@media (min-width: 1240px) {
  .hero__inner { max-width: 1140px; }
  .hero__inner .tone-line, .hero__inner .hero__actions { max-width: 40rem; }
  .hero__inner h1 { max-width: 44rem; }
}
.hero h1 {
  color: #232825; /* tono de texto del sitio, algo más profundo para el contraste sobre el agua */
  font-weight: 460;
  margin-bottom: 2rem;
  text-shadow: 0 0 2px rgba(246, 240, 228, 0.7), 0 0 16px rgba(246, 240, 228, 0.6);
}
/* Efecto rotulador: banda de arena que cubre la mayor parte de las letras, con el borde
   superior difuminado para que no parezca una caja; sigue cada línea al partirse */
.hero__highlight {
  padding-inline: 0.14em;
  background-image: linear-gradient(to bottom, rgba(243, 235, 220, 0) 22%, rgba(243, 235, 220, 0.92) 38%, rgba(243, 235, 220, 0.92) 96%, rgba(243, 235, 220, 0) 96%);
  border-radius: 0.15em 0.35em 0.2em 0.4em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero .tone-line {
  color: rgba(245, 240, 232, 0.94);
  margin-bottom: 2rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
/* Sombra suave para despegar los botones del agua */
.hero__actions .btn { box-shadow: 0 8px 24px -10px rgba(35, 40, 37, 0.45); }
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  color: var(--brown);
  text-shadow: 0 0 8px rgba(246, 245, 239, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
/* En móvil el héroe es más compacto y el indicador choca con los botones
   de la CTA: se oculta y se conserva solo en pantallas de escritorio. */
@media (max-width: 768px) {
  .hero__scroll { display: none; }
}
.hero__scroll span {
  width: 1px; height: 34px;
  background: currentColor;
  animation: scrollHint 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollHint {
  0%, 100% { transform: scaleY(0.3); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Cabecera de página interior ---------- */
.page-hero {
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4rem);
  background: var(--ivory-deep);
  border-bottom: 1px solid var(--brown-line);
}
.page-hero__inner { max-width: 52ch; }
.page-hero h1 { margin-bottom: 0.5rem; }
.breadcrumb {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--brown-soft);
  margin-bottom: 1.1rem;
}
.breadcrumb a { color: var(--brown-soft); }
.breadcrumb span[aria-current] { color: var(--accent-text); }

/* ---------- Bloque intro con imagen ---------- */
.split {
  display: grid;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
@media (min-width: 820px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-first .split__media { order: -1; }
  .split--wide-text { grid-template-columns: 1.15fr 0.85fr; }
}
.split__media {
  position: relative;
}
.split__media img {
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  width: 100%;
}
.split__media--portrait img { aspect-ratio: 3 / 4; object-fit: cover; }
.split__media--frame::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--sage-deep);
  border-radius: var(--radius-m);
  z-index: -1;
}
/* Retrato contenido junto a una cabecera de sección (fotos 3:4) */
.split__media--compact {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}
.split__media--compact img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
}
.split--intro .section-head { margin-bottom: 0; }
.split--intro + .steps { margin-top: clamp(3rem, 6vw, 4.5rem); }
@media (min-width: 820px) {
  .split--wide-text .split__media--compact { max-width: 400px; margin-right: 0; }
  .split--media-first .split__media--compact { max-width: 460px; margin-left: 0; }
}

/* ---------- Pasos "cómo te acompaño" ---------- */
.steps {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  counter-reset: step;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  position: relative;
  padding-top: 2.5rem;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--accent-text);
  letter-spacing: 0.05em;
}
.step::after {
  content: "";
  position: absolute;
  top: 0.55rem; left: 2.6rem;
  height: 1px;
  width: calc(100% - 2.6rem);
  background: var(--brown-line);
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.step p { color: var(--brown-soft); margin: 0; font-size: 0.98rem; }

/* ---------- Tarjetas de servicio ---------- */
.card-grid {
  display: grid;
  gap: clamp(1.5rem, 3.5vw, 2.25rem);
}
@media (min-width: 680px) { .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card-grid--2 {
  max-width: 840px;
  margin-inline: auto;
}
@media (min-width: 680px) { .card-grid--2 { grid-template-columns: repeat(2, 1fr); } }

.section-head__note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-text);
}
.section-head__note svg { width: 1.1rem; height: 1.1rem; flex: none; }

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--ivory-card);
  border: 1px solid var(--brown-line);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}
.service-card__media {
  aspect-ratio: 10 / 7;
  overflow: hidden;
}
.service-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.04); }
.service-card__body {
  padding: clamp(1.4rem, 3vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}
.service-card__body h3 { margin: 0; }
.service-card__body p { color: var(--brown-soft); margin: 0; font-size: 0.97rem; }
.service-card__link {
  margin-top: auto;
  padding-top: 0.6rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.service-card__link svg { width: 1em; height: 1em; transition: transform 0.3s var(--ease); }
.service-card:hover .service-card__link svg { transform: translateX(4px); }

/* ---------- Botones-tarjeta de servicio (inicio) ---------- */
.service-links {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
}
.service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem 1.15rem 1.5rem;
  background: var(--ivory-card);
  border: 1px solid var(--brown-line);
  border-radius: var(--radius-m);
  color: var(--brown);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.service-link:hover,
.service-link:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: var(--sage-deep);
  color: var(--brown);
  text-decoration: none;
}
.service-link__text { display: flex; flex-direction: column; gap: 0.2rem; }
.service-link__title {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.3;
  transition: color 0.35s var(--ease);
}
.service-link__desc { font-size: 0.92rem; color: var(--accent-text); }
.service-link__arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--accent-text);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.service-link__arrow svg { width: 1.1rem; height: 1.1rem; }
.service-link:hover .service-link__title { color: var(--accent-text); }
.service-link:hover .service-link__arrow {
  transform: translateX(4px);
  background: var(--btn-bg);
  color: var(--btn-text);
}

/* ---------- Servicio en profundidad ---------- */
.service-detail {
  display: grid;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.service-detail + .service-detail { border-top: 1px solid var(--brown-line); }
@media (min-width: 860px) {
  .service-detail { grid-template-columns: 0.9fr 1.1fr; }
  .service-detail:nth-child(even) .service-detail__media { order: 2; }
}
.service-detail__media img {
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 10 / 7;
  object-fit: cover;
  width: 100%;
}
.service-detail h2,
.service-detail h3 { margin-bottom: 0.3rem; }
.service-detail__meta {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}
.feature-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.feature-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--brown-soft);
  font-size: 0.97rem;
}
.feature-list__title {
  font-size: 1.15rem;
  margin: 1.75rem 0 0;
}
.feature-list__title + .feature-list { margin-top: 0.9rem; }
.service-detail h3 + .feature-list__title { margin-top: 1rem; }
.service-detail__duration {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brown);
}
.service-detail__duration svg { width: 1.1rem; height: 1.1rem; color: var(--accent-text); flex: none; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 0.7rem; height: 0.7rem;
  border: 1px solid var(--sage-deep);
  border-radius: 50%;
}

/* ---------- Enfoque / cita ---------- */
.approach-quote {
  max-width: 30ch;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.3rem);
  line-height: 1.3;
  font-style: italic;
}
.approach-body { color: var(--brown); }
.section--sage .approach-body { color: var(--brown); }

/* ---------- Testimonios ---------- */
.testimonials {
  display: grid;
  gap: clamp(1.5rem, 3.5vw, 2.25rem);
}
@media (min-width: 820px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }
.testimonial {
  background: var(--ivory-card);
  border: 1px solid var(--brown-line);
  border-radius: var(--radius-m);
  padding: clamp(1.6rem, 3.5vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.testimonial__quote {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--brown);
  margin: 0;
}
.testimonial__quote::before {
  content: "\201C";
  display: block;
  font-size: 2.4rem;
  line-height: 0.4;
  color: var(--sage-deep);
  margin-bottom: 0.6rem;
}
.testimonial__author {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown-soft);
}
.privacy-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--brown-soft);
  margin-top: 2rem;
  max-width: 52ch;
  margin-inline: auto;
}

/* ---------- Blog ---------- */
.posts-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
}
@media (min-width: 680px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .posts-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--ivory-card);
  border: 1px solid var(--brown-line);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.post-card__media { aspect-ratio: 8 / 5; overflow: hidden; }
.post-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body {
  padding: clamp(1.35rem, 3vw, 1.8rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown-soft);
}
.post-meta .cat { color: var(--accent-text); font-weight: 700; }
.post-card__body h3 { margin: 0; font-size: 1.25rem; }
.post-card__body p { color: var(--brown-soft); font-size: 0.95rem; margin: 0; }
.post-card__link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

/* Artículo */
.article {
  padding-block: clamp(2.5rem, 6vw, 4rem) var(--section-y);
}
.article__header {
  max-width: var(--container-narrow);
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.article__header h1 { margin-bottom: 0.7rem; }
.article__cover {
  max-width: 980px;
  margin: 0 auto clamp(2.5rem, 6vw, 3.5rem);
}
.article__cover img {
  width: 100%;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.prose {
  max-width: var(--container-narrow);
  margin-inline: auto;
}
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.5rem, 1.3rem + 1vw, 1.9rem); }
.prose h3 { margin-top: 2rem; }
.prose p { color: var(--brown); }
.prose blockquote {
  margin: 2rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-left: 2px solid var(--terracotta);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--brown);
}
.prose ul { padding-left: 1.2rem; color: var(--brown); }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--sage-deep); }
.article__footer {
  max-width: var(--container-narrow);
  margin: clamp(2.5rem, 6vw, 3.5rem) auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--brown-line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: var(--container-narrow);
  margin-inline: auto;
}
.faq-item {
  border-bottom: 1px solid var(--brown-line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 3rem 1.4rem 0;
  position: relative;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  color: var(--brown);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 14px; height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(var(--accent-text), var(--accent-text)) center/100% 1.5px no-repeat,
    linear-gradient(var(--accent-text), var(--accent-text)) center/1.5px 100% no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__panel {
  padding: 0 2.5rem 1.5rem 0;
  color: var(--brown-soft);
}
.faq-item__panel p { margin: 0; }
.faq-item[open] .faq-item__panel {
  animation: fadeIn 0.4s var(--ease);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Banda CTA ---------- */
.cta-band {
  background: var(--brown);
  color: var(--ivory);
  text-align: center;
}
.cta-band h2 { color: var(--ivory); }
.cta-band p { color: rgba(245, 240, 232, 0.82); max-width: 46ch; margin-inline: auto; }
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 2rem;
}

/* ---------- Formulario ---------- */
.form-wrap {
  background: var(--ivory-card);
  border: 1px solid var(--brown-line);
  border-radius: var(--radius-l);
  padding: clamp(1.75rem, 5vw, 3rem);
  box-shadow: var(--shadow-soft);
}
.section--sage .form-wrap { box-shadow: var(--shadow-lift); }
.booking-form {
  display: grid;
  gap: 1.35rem;
}
@media (min-width: 620px) {
  .booking-form .field--half { grid-column: span 1; }
  .booking-form .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.35rem;
  }
}
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brown);
}
.field .req { color: var(--accent-text); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--brown);
  background: var(--ivory);
  border: 1px solid rgba(50, 56, 52, 0.22);
  border-radius: var(--radius-s);
  padding: 0.85rem 1rem;
  width: 100%;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%233F6472' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-text);
  box-shadow: 0 0 0 3px rgba(63, 100, 114, 0.16);
}
.field--error input,
.field--error select,
.field--error textarea { border-color: #a3402b; }
.field__error {
  font-size: 0.8rem;
  color: #a3402b;
  font-weight: 600;
  min-height: 0;
}

.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--brown-soft);
  line-height: 1.5;
}
.consent input {
  margin-top: 0.2rem;
  width: 1.15rem; height: 1.15rem;
  accent-color: var(--btn-bg);
  flex: none;
}
.form-note {
  font-size: 0.82rem;
  color: var(--brown-soft);
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.form-note svg { width: 1rem; height: 1rem; flex: none; margin-top: 0.15rem; color: var(--sage-deep); }

.form-feedback {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-text);
  padding: 0.75rem 0 0;
}
.form-feedback:empty { padding: 0; }
.form-feedback--success { color: var(--btn-bg-hover); font-weight: 700; }
.form-feedback--error { color: #a3402b; }

.form-privacy {
  font-size: 0.78rem;
  color: var(--brown-soft);
  text-align: center;
  margin-top: 0.9rem;
}

.form-closing {
  margin: 1.75rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--brown-line);
  text-align: center;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
}

/* ---------- Datos de contacto ---------- */
.contact-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 1.5rem;
}
.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-list .ico {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--brown-line);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--accent-text);
}
.contact-list .ico svg { width: 1.15rem; height: 1.15rem; }
.contact-list b { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 1.1rem; }
.contact-list a { color: var(--brown); }
.contact-list a:hover { color: var(--accent-text); }
.contact-list span { color: var(--brown-soft); font-size: 0.92rem; }

/* Tarjetas informativas breves (modo de atención, horario…) */
.info-cards {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 560px) {
  .info-cards { grid-template-columns: 1fr 1fr; }
}
.info-card {
  padding: 1.6rem 1.75rem;
  border-radius: var(--radius-m);
  border: 1px solid var(--brown-line);
  background: var(--ivory-deep);
}
.info-card__icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--brown-line);
  display: grid;
  place-items: center;
  color: var(--accent-text);
  margin-bottom: 0.9rem;
}
.info-card__icon svg { width: 1.05rem; height: 1.05rem; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.info-card p { color: var(--brown-soft); font-size: 0.92rem; margin: 0; }

/* Nota breve y discreta (p. ej. colaboración con nutricionistas TCA) */
.note-card {
  max-width: 700px;
  margin: 0 auto;
  padding: 1.6rem 2rem;
  border-radius: var(--radius-m);
  background: var(--ivory-deep);
  border: 1px solid var(--brown-line);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
/* Variante integrada dentro de un servicio (Terapia individual) */
.note-card--inline {
  max-width: none;
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.4rem;
  text-align: left;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
}
.note-card--inline .note-card__icon { flex: none; width: 26px; height: 26px; }
.note-card__icon { width: 30px; height: 30px; color: var(--sage-deep); }
.note-card p { color: var(--brown-soft); font-size: 0.95rem; margin: 0; max-width: 58ch; }
.note-card strong { color: var(--brown); }

/* ---------- Pie ---------- */
.site-footer {
  background: var(--brown);
  color: rgba(245, 240, 232, 0.78);
  font-size: 0.92rem;
}
.site-footer a { color: rgba(245, 240, 232, 0.82); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3rem, 7vw, 4.5rem) 2rem;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-logo { display: block; height: 64px; width: auto; max-width: 240px; margin-bottom: 0.25rem; }
@media (max-width: 900px) {
  .footer-logo { height: 50px; max-width: 190px; }
}
.footer-brand p { margin-top: 1rem; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.6);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.footer-social svg { width: 1.15rem; height: 1.15rem; }
.footer-bottom {
  border-top: 1px solid rgba(245, 240, 232, 0.14);
  padding-block: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(245, 240, 232, 0.6);
}
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-colegiada {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: rgba(245, 240, 232, 0.7);
  border: 1px solid rgba(245, 240, 232, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 80;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-text);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lift);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.07); background: var(--btn-bg-hover); color: var(--btn-text); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float.is-raised { bottom: calc(clamp(1rem, 3vw, 1.75rem) + 96px); }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed;
  left: clamp(1rem, 3vw, 1.75rem);
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 85;
  max-width: 620px;
  margin-inline: auto;
  background: var(--ivory-card);
  border: 1px solid var(--brown-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-lift);
  padding: 1.4rem 1.5rem;
  transform: translateY(140%);
  transition: transform 0.5s var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner p { font-size: 0.88rem; color: var(--brown-soft); margin-bottom: 1rem; }
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.cookie-banner__actions .btn { padding: 0.7rem 1.3rem; font-size: 0.88rem; }

/* ---------- Animaciones de entrada ---------- */
/* Solo se ocultan si JavaScript está activo (clase .js en <html>);
   sin JS, todo el contenido permanece visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span { animation: none; }
}

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.measure { max-width: 62ch; }
.measure-narrow { max-width: 52ch; }
