/* ==========================================================================
   Oncobrújula — estilos
   ========================================================================== */

/* Tipografías autoalojadas (SIL Open Font License)
   Fraunces (versión suave): serif cálida para títulos. Atkinson Hyperlegible Next: diseñada para baja visión. */
@font-face{font-family:"Fraunces";src:url("fonts/fraunces.woff2") format("woff2");font-weight:400 700;font-display:swap}
@font-face{font-family:"Atkinson Hyperlegible Next";src:url("fonts/atkinson-next.woff2") format("woff2");font-weight:200 800;font-display:swap}

:root {
  /* Sistema de diseño Oncobrújula: papel + rumbo (verde azulado) + norte (terracota).
     Los nombres de variables se mantienen para no romper los estilos existentes. */
  --teal-dark: #24585A;      /* rumbo: títulos, secciones oscuras, botón secundario */
  --teal-mid: #2E6668;       /* rumbo medio: textos destacados chicos */
  --teal-deep: #1B4547;      /* rumbo hondo: hover */
  --ice: #E2EEEA;            /* rumbo suave: fondos de tarjetas e información práctica */
  --cream: #F8F4EC;          /* papel */
  --sage: #6B8580;           /* bordes de controles, íconos y detalles (3:1 o más) */
  --sage-dark: #56625F;      /* texto chico sobre fondos claros */
  --line: #DDD3C3;           /* divisores decorativos */
  --terracota: #A84A23;      /* norte: la acción principal */
  --terracota-dark: #923F1D; /* norte hondo: hover */
  --norte-suave: #F7E5D9;    /* fondo cálido de citas */
  --arena: #E3BE78;          /* acento decorativo, nunca texto */
  --aviso: #A3362B;          /* señales de alerta */
  --aviso-suave: #F8E1DD;
  --text: #1E2B2E;           /* tinta */
  --text-soft: #56625F;      /* tinta suave */
  --white: #FFFFFF;

  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Atkinson Hyperlegible Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --radius: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --container: 1080px;

  --shadow: 0 1px 2px rgba(30, 43, 46, 0.08), 0 6px 20px rgba(30, 43, 46, 0.07);
  --focus-ring: 0 0 0 3px var(--cream), 0 0 0 6px var(--teal-dark);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
ul, ol { padding: 0; margin: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
p, li { text-wrap: pretty; }

p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--teal-dark);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius);
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* Focus visible everywhere */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible { outline: 2px solid transparent; outline-offset: 0; border-radius: var(--radius-full); box-shadow: var(--focus-ring); }
.section--dark a:focus-visible, .section--dark button:focus-visible,
.footer a:focus-visible { outline-color: var(--cream); }
.section--dark .btn:focus-visible { box-shadow: 0 0 0 3px var(--teal-dark), 0 0 0 6px var(--cream); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.4;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--terracota);
  color: var(--white);
}
.btn--primary:hover { background: var(--terracota-dark); }

.btn--ghost {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal-dark);
}
.btn--ghost:hover { border-color: var(--teal-deep); color: var(--teal-deep); background: var(--ice); }

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn--outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* WhatsApp = botón secundario (rumbo). La acción principal de cada pantalla es .btn--primary (norte). */
.btn--whatsapp {
  background: var(--teal-dark);
  color: var(--white);
}
.btn--whatsapp:hover { background: var(--teal-deep); }
/* Sobre la sección oscura, el botón se invierte para que se distinga del fondo */
.section--dark .btn--whatsapp { background: var(--cream); color: var(--teal-dark); }
.section--dark .btn--whatsapp:hover { background: var(--ice); color: var(--teal-deep); }

.btn--large {
  min-height: 60px;
  padding: 16px 34px;
  font-size: 1.1rem;
}

/* On dark contact section, primary button should use teal text but section already dark; keep .btn--primary white bg / teal text works there too */

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid rgba(36, 88, 90, 0.10);
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__brand { display: flex; align-items: center; }
.nav__logo { display: block; height: 36px; width: auto; }
@media (min-width: 860px) { .nav__logo { height: 40px; } }

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav__toggle-bar,
.nav__toggle-bar::before,
.nav__toggle-bar::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--teal-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__toggle-bar::before { transform: translateY(-7px); }
.nav__toggle-bar::after { transform: translateY(5px); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::before { transform: translateY(0) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::after { transform: translateY(-2px) rotate(-45deg); }

.nav__menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid rgba(36, 88, 90, 0.10);
  display: none;
  flex-direction: column;
  gap: 18px;
  padding: 22px 24px 28px;
  box-shadow: var(--shadow);
}
.nav__menu.is-open { display: flex; }

.nav__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nav__links a {
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: color 160ms ease;
}
@media (hover: hover) { .nav__links a:hover { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 6px; } }

.nav__cta { align-self: flex-start; }
.nav__cta--text {
  font-weight: 600;
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background: var(--cream);
  color: var(--text);
  overflow: hidden;
  padding: 64px 0 72px;
}

.hero__compass {
  position: absolute;
  top: -40px;
  right: -60px;
  opacity: 0.9;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 720px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 18px;
}

.hero__title {
  font-size: clamp(2.35rem, 6.4vw, 4.1rem);
  font-variation-settings: "opsz" 72;
  color: var(--teal-dark);
  margin-bottom: 22px;
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 54ch;
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.br-desktop { display: none; }

/* ---- Sections ---- */
.section {
  padding: 76px 0;
}
.section--tint { background: var(--cream); }
.section--dark {
  background: var(--teal-dark);
  color: var(--white);
}

.section__title {
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  color: var(--teal-dark);
  margin-bottom: 22px;
}
.section__title--light { color: var(--white); }

.section__lead {
  font-size: 1.12rem;
  color: var(--text-soft);
  max-width: 60ch;
  margin-bottom: 40px;
}
.section__lead--light { color: rgba(255,255,255,0.88); }

/* ---- Para quién ---- */
.check-list {
  display: grid;
  gap: 16px;
  max-width: 780px;
  margin-bottom: 32px;
}
.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 1.08rem;
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sage);
}

.notice {
  background: var(--ice);
  border: 1px solid rgba(107, 133, 128, 0.28);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  color: var(--text);
  max-width: 780px;
}

/* ---- Qué incluye / no incluye ---- */
.cols-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.col-card {
  background: var(--white);
  border: 1px solid rgba(36, 88, 90, 0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.col-card__title { font-size: 1.45rem; margin-bottom: 20px; }
.col-card__title--yes { color: var(--teal-dark); }
.col-card__title--no { color: var(--text-soft); }

.feature-list { display: grid; gap: 14px; }
.feature-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
}
.feature-list--yes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 18px;
  height: 18px;
  background: var(--sage);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l3.8 3.8L16 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l3.8 3.8L16 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.feature-list--no li {
  color: var(--text-soft);
}
.feature-list--no li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text-soft);
  font-weight: 700;
}

.fineprint {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* ---- Cómo se agenda ---- */
.steps {
  display: grid;
  gap: 22px;
  max-width: 720px;
  margin-bottom: 48px;
}
.steps li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  font-size: 1.02rem;
}
.steps__num {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
}
.steps li p { padding-top: 5px; }

.info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.info-card {
  background: var(--ice);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.info-card__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-dark);
}
.info-card__value {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--teal-dark);
}

.info-cards--dark { }
.info-card--dark {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
}
.info-card--dark .info-card__label { color: var(--ice); }
.info-card--dark .info-card__value { color: var(--white); }

/* ---- Quién soy ---- */
.about {
  max-width: 560px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.about__name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--teal-dark);
  margin-bottom: 4px;
}
.about__role {
  color: var(--teal-mid);
  font-weight: 600;
  margin-bottom: 18px;
}
.about__text {
  color: var(--text-soft);
  font-size: 1.02rem;
}

/* ---- Ficha ---- */
.ficha-card {
  background: var(--teal-dark);
  border-radius: var(--radius-lg);
  padding: 44px;
  color: var(--white);
}
.ficha-card .section__title { color: var(--white); margin-bottom: 14px; }
.ficha-card__text p { color: rgba(255,255,255,0.9); margin-bottom: 24px; max-width: 60ch; }
.ficha-card .btn--primary { margin-bottom: 18px; }
.ficha-card .fineprint { color: rgba(255,255,255,0.75); margin-top: 0; }

/* ---- FAQ / Accordion ---- */
.accordion {
  display: grid;
  gap: 12px;
  max-width: 780px;
}
.accordion__item {
  background: var(--white);
  border: 1px solid rgba(36, 88, 90, 0.14);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.accordion__item h3 { margin: 0; }

.accordion__trigger {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 22px;
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--teal-dark);
  transition: background-color 160ms ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.accordion__icon {
  flex: none;
  width: 20px;
  height: 20px;
  position: relative;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--sage);
  border-radius: 2px;
  transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out);
}
.accordion__icon::before {
  top: 9px; left: 0;
  width: 20px; height: 2px;
}
.accordion__icon::after {
  top: 0; left: 9px;
  width: 2px; height: 20px;
}
.accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.accordion__panel {
  padding: 0 22px 20px;
  color: var(--text-soft);
}
.accordion__panel:not([hidden]) { animation: panel-in 220ms var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---- Contacto ---- */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 40px 0 28px;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
}
.contact-details a { text-decoration: underline; text-underline-offset: 3px; }
.contact-details a:hover { color: var(--white); }

/* ---- Footer ---- */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.82);
  padding: 48px 0 40px;
  font-size: 0.92rem;
}
.footer__brand {
  font-family: var(--font-serif);
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.footer__meta { margin-bottom: 4px; }
.footer__disclaimer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.62);
  line-height: 1.6;
}

/* ---- Floating WhatsApp ---- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--teal-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(36, 88, 90, 0.35);
  z-index: 90;
  transition: transform 0.15s ease, background 0.15s ease;
}
.whatsapp-float:hover {
  transform: translateY(-2px);
  background: var(--teal-deep);
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media (min-width: 720px) {
  .cols-2 { grid-template-columns: 1fr 1fr; }
  .info-cards { grid-template-columns: repeat(3, 1fr); }
  .br-desktop { display: inline; }
}

@media (min-width: 1040px) {
  .nav__toggle { display: none; }

  .nav__menu {
    position: static;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    width: auto;
  }
  .nav__links {
    flex-direction: row;
    gap: 24px;
    font-size: 0.98rem;
  }
  .nav__cta { align-self: center; }
}

@media (min-width: 860px) {
  .hero { padding: 112px 0 120px; }
  .hero__compass { top: -20px; right: 40px; opacity: 1; }

  .section { padding: 96px 0; }

  .ficha-card { padding: 56px; }
}

@media (min-width: 1100px) {
  .hero__compass {
    width: 340px; height: 340px;
    right: 60px;
  }
  .hero__compass svg { width: 340px; height: 340px; }
}

/* ---- Hero: firma ---- */
.hero__byline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.35;
}
.hero__byline img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 4px rgba(107, 133, 128, 0.45);
}
.hero__byline strong { display: block; color: var(--teal-dark); font-weight: 700; }
@media (hover: hover) { .hero__byline:hover strong { text-decoration: underline; text-underline-offset: 3px; } }

.hero__note {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--text-soft);
}

/* ---- Brújula: la aguja busca el norte una sola vez ---- */
.hero__needle { transform-origin: 100px 100px; transform-box: view-box; animation: needle-settle 1.6s var(--ease-out) 0.25s both; }
@keyframes needle-settle {
  0%   { transform: rotate(-48deg); }
  45%  { transform: rotate(14deg); }
  70%  { transform: rotate(-6deg); }
  88%  { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}

/* ---- Señales de alerta ---- */
.alert {
  background: var(--aviso-suave);
  border: 1px solid rgba(163, 54, 43, 0.28);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  max-width: 780px;
  color: var(--text);
}
.alert__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--aviso);
  margin-bottom: 6px;
}
.alert__icon { flex: none; color: var(--aviso); }
.alert__list { display: grid; gap: 8px; margin: 14px 0 16px; }
.alert__list li { position: relative; padding-left: 22px; }
.alert__list li::before {
  content: ""; position: absolute; left: 2px; top: 0.6em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--aviso);
}
.alert__action { font-weight: 700; color: var(--aviso); }

/* ---- Superficies del navegador ---- */
::selection { background: var(--ice); color: var(--teal-deep); }
html { accent-color: var(--teal-dark); scrollbar-color: rgba(36, 88, 90, 0.35) var(--cream); }
input, textarea { caret-color: var(--terracota); }
a { text-underline-offset: 3px; }

/* Hover solo en dispositivos con puntero */
@media (hover: none) {
  .ficha-card-lib:hover { transform: none; box-shadow: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Brújula en celular: más chica y detrás del título */
@media (max-width: 859px) {
  .hero__compass { top: -36px; right: -54px; opacity: 0.55; }
  .hero__compass svg { width: 168px; height: 168px; }
}
.hero__inner { z-index: 1; }

/* Números de teléfono, horarios y datos: cifras alineadas */
.recurso-card__meta, .contact-details, .steps__num, .info-card__value { font-variant-numeric: lining-nums tabular-nums; }

/* ---- El dolor: líneas cortas, una por renglón ---- */
.pain .section__title { max-width: 18ch; }
.pain__lines { display: grid; gap: 10px; max-width: 46ch; }
.pain__lines p {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  line-height: 1.4;
  color: var(--text-soft);
}
.pain__close {
  margin-top: 28px;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.8vw, 1.7rem);
  color: var(--teal-dark);
}

/* ---- Qué ganás: tres resultados, sin tarjetas ---- */
.gains { display: grid; gap: 0; margin-bottom: 36px; }
.gains li { padding: 26px 0; border-top: 1px solid rgba(107, 133, 128, 0.35); }
.gains li:last-child { border-bottom: 1px solid rgba(107, 133, 128, 0.35); }
.gains h3 { font-size: clamp(1.35rem, 2.6vw, 1.6rem); color: var(--teal-dark); margin-bottom: 8px; }
.gains p { color: var(--text-soft); max-width: 48ch; }
@media (min-width: 860px) {
  .gains { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .gains li, .gains li:last-child { border-bottom: none; padding: 28px 0 0; }
}

/* ---- Empezar es simple: 3 pasos ---- */
.steps--three { max-width: none; margin-bottom: 0; gap: 28px; }
.steps--three li { gap: 18px; }
.steps--three h3 { font-size: 1.3rem; color: var(--teal-dark); margin-bottom: 4px; }
.steps--three p { padding-top: 0; color: var(--text-soft); }
.steps__cta { margin-top: 36px; }
@media (min-width: 860px) {
  .steps--three { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .steps--three li { flex-direction: column; gap: 16px; }
}

/* ---- Página Recursos ---- */
.page-intro { background: var(--cream); padding: 48px 0 56px; }
.page-intro__back a { color: var(--sage-dark); font-weight: 600; font-size: 0.95rem; }
@media (hover: hover) { .page-intro__back a:hover { color: var(--teal-dark); text-decoration: underline; } }
.page-intro__title { font-size: clamp(2.4rem, 6vw, 3.6rem); color: var(--teal-dark); margin: 18px 0 14px; }
.page-intro__lead { font-size: 1.15rem; color: var(--text-soft); max-width: 52ch; }
.page-intro__jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.page-intro__jump a {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--sage);
  color: var(--teal-dark); font-weight: 600; font-size: 0.95rem;
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}
.page-intro__jump a:active { transform: scale(0.97); }
@media (hover: hover) { .page-intro__jump a:hover { background: var(--ice); } }
.nav__links a[aria-current="page"] { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.section--tint .about { box-shadow: var(--shadow); }
.accordion__panel a { color: var(--teal-dark); font-weight: 700; text-decoration: underline; }

/* ---- Brújula interactiva: ¿en qué momento del camino estás? ---- */
.moment {
  display: grid;
  gap: 24px;
  margin-bottom: 40px;
  grid-template-areas: "dial" "opts" "out";
}
.moment__dial { grid-area: dial; justify-self: center; }
.moment__dial svg { width: 150px; height: 150px; filter: drop-shadow(0 6px 16px rgba(36, 88, 90, 0.10)); }
.moment__needle {
  transform-origin: 100px 100px;
  transform-box: view-box;
  transition: transform 520ms cubic-bezier(0.34, 1.36, 0.64, 1); /* leve rebote: es un momento ocasional */
}
.moment__opts { grid-area: opts; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.moment__opt {
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  text-align: left;
  color: var(--teal-dark);
  background: var(--white);
  border: 1px solid rgba(107, 133, 128, 0.45);
  border-radius: var(--radius-lg);
  padding: 16px 16px;
  min-height: 64px;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.moment__opt:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .moment__opt:hover { border-color: var(--sage-dark); background: var(--ice); }
}
.moment__opt[aria-pressed="true"] { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }

.moment__out { grid-area: out; min-height: 120px; }
.moment__hint { color: var(--text-soft); font-style: italic; }
.moment__panel {
  background: var(--white);
  border: 1px solid rgba(107, 133, 128, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.moment__panel.is-in { animation: moment-in 260ms var(--ease-out); }
@keyframes moment-in { from { opacity: 0; transform: translateY(6px) scale(0.99); } }
.moment__echo { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.35; color: var(--teal-dark); margin-bottom: 10px; }
.moment__text { color: var(--text-soft); margin-bottom: 20px; }
.moment__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.moment__link { color: var(--teal-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 860px) {
  .moment {
    grid-template-columns: 220px 1fr;
    grid-template-areas: "dial opts" "dial out";
    column-gap: 48px;
    align-items: start;
  }
  .moment__dial { align-self: start; padding-top: 4px; }
  .moment__dial svg { width: 210px; height: 210px; }
  .moment__opts { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Menú del celular: entrada suave ---- */
@media (max-width: 1039px) {
  .nav__menu.is-open { animation: menu-in 200ms var(--ease-out); }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
}
.accordion__panel { overflow: hidden; }
.accordion__panel:not([hidden]) { animation: none; }

/* ---- Líneas del dolor: aparecen una vez, escalonadas ---- */
.pain.will-reveal .pain__lines p,
.pain.will-reveal .pain__close {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.pain.is-revealed .pain__lines p,
.pain.is-revealed .pain__close { opacity: 1; transform: none; }
.pain.is-revealed .pain__lines p:nth-child(2) { transition-delay: 90ms; }
.pain.is-revealed .pain__lines p:nth-child(3) { transition-delay: 180ms; }
.pain.is-revealed .pain__lines p:nth-child(4) { transition-delay: 270ms; }
.pain.is-revealed .pain__close { transition-delay: 420ms; }

/* Que el menú fijo no tape los títulos al saltar */
section[id], [id="alerta-titulo"] { scroll-margin-top: 84px; }

/* ---- Marca en el pie ---- */
.footer__logo { display: block; height: 40px; width: auto; margin-bottom: 18px; }
.footer a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Camino punteado: separa el dolor de la solución (concepto de la marca) ---- */
.pain__close::before {
  content: ""; display: block; width: 76px; height: 8px; margin-bottom: 20px;
  background: radial-gradient(circle, var(--arena) 3.5px, transparent 4px) 0 50% / 19px 8px repeat-x;
}
.section--dark { background: var(--teal-dark); }
.quote { background: var(--white); }

/* Aire entre los pasos y el precio */
.steps--three + .price { margin-top: 44px; }

/* Señales de alerta como sección propia, sin aire de más */
.section--alert { padding: 56px 0; }
@media (min-width: 860px) { .section--alert { padding: 72px 0; } }

/* ==========================================================================
   Inicio tipo tablero: la persona elige su momento y recién ahí
   aparece la orientación pensada para ese momento.
   ========================================================================== */
.hero--tablero { padding: 40px 0 56px; }
.hero--tablero .hero__head { max-width: 760px; margin-bottom: 28px; }
.hero--tablero .hero__title { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 14px; }
.hero--tablero .hero__lead { margin-bottom: 0; font-size: 1.1rem; }

.tablero {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
}
.tablero .moment { margin-bottom: 0; grid-template-areas: "ask" "out"; gap: 20px; }
.tablero .moment__dial { display: none; }
.moment__ask { grid-area: ask; }
.moment__question {
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  color: var(--teal-dark);
  margin-bottom: 16px;
}
.tablero .moment__opts { grid-template-columns: 1fr; gap: 10px; }
.tablero .moment__opt {
  display: flex; flex-direction: column; gap: 4px;
  min-height: 84px; padding: 14px 16px;
  background: var(--cream);
  border: 2px solid transparent;
}
@media (hover: hover) and (pointer: fine) {
  .tablero .moment__opt:hover { background: var(--ice); border-color: var(--teal-dark); }
}
.moment__opt-title { font-size: 1.02rem; font-weight: 700; color: var(--teal-dark); line-height: 1.25; }
.moment__opt-sub { font-size: 0.9rem; font-weight: 400; color: var(--text-soft); line-height: 1.3; }
.tablero .moment__opt[aria-pressed="true"] { background: var(--teal-dark); border-color: var(--teal-dark); }
.tablero .moment__opt[aria-pressed="true"] .moment__opt-title,
.tablero .moment__opt[aria-pressed="true"] .moment__opt-sub { color: var(--white); }

.tablero .moment__out { min-height: 0; }
.tablero .moment__hint { font-style: normal; color: var(--text-soft); }
.tablero .moment__panel {
  display: grid; gap: 18px;
  padding: 0; border: 0; box-shadow: none; background: transparent;
}
.tablero .moment__panel[hidden] { display: none; }
.moment__guide { padding: 4px 2px; }
.moment__guide .moment__text { margin-bottom: 12px; }

.moment__offer {
  margin-top: 18px;
  background: var(--ice);
  border-radius: var(--radius-md);
  padding: 20px 22px 22px;
}
.moment__offer-title { font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem; line-height: 1.25; color: var(--teal-dark); margin-bottom: 12px; }
.moment__offer-list { display: grid; gap: 8px; margin-bottom: 16px; }
.moment__offer-list li { position: relative; padding-left: 26px; }
.moment__offer-list li::before {
  content: ""; position: absolute; left: 0; top: 0.25em; width: 18px; height: 18px; background: var(--teal-dark);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l3.8 3.8L16 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l3.8 3.8L16 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.moment__offer .btn { width: 100%; }
.moment__offer .offer__trust { margin-top: 14px; }
@media (min-width: 720px) { .moment__offer .btn { width: auto; } }

.hero__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 28px; }
.hero--tablero .hero__byline { margin-top: 0; }
.hero--tablero .offer__trust { margin-top: 0; }

@media (min-width: 860px) {
  .hero--tablero { padding: 56px 0 72px; }
  .tablero { padding: 32px 36px; }
  .tablero .moment {
    grid-template-columns: 200px 1fr;
    grid-template-areas: "dial ask" "out out";
    column-gap: 40px; row-gap: 28px; align-items: center;
  }
  .tablero .moment__dial { display: block; }
  .tablero .moment__dial svg { width: 190px; height: 190px; }
  .tablero .moment__opts { grid-template-columns: repeat(5, 1fr); }
  .tablero .moment__panel { grid-template-columns: 1fr; max-width: 640px; align-items: start; border-top: 1px solid var(--line); padding-top: 26px; }
}
.tablero .moment__panel { border-radius: 0; }
@media (max-width: 859px) {
  .hero--tablero { padding-top: 28px; }
  .hero--tablero .hero__title { font-size: 2rem; }
  .hero--tablero .hero__lead { font-size: 1.02rem; }
  .hero--tablero .hero__head { margin-bottom: 20px; }
}

/* Tablero: momento elegido, confianza junto al botón */
.moment__chosen { display: none; font-size: 0.95rem; color: var(--text-soft); margin-bottom: 8px; }
.moment__chosen strong { color: var(--teal-dark); }
.moment__panel:focus { outline: none; }
.offer__trust { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 1rem; font-weight: 700; color: var(--teal-dark); }
.offer__trust svg { flex: none; margin-top: 2px; }
@media (max-width: 859px) {
  .moment__chosen { display: block; }
  .tablero .moment__opt[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--teal-dark); }
}

/* ---- Acceso para profesionales: franja superior y botón con borde en el menú ---- */
.pro-bar { background: var(--teal-dark); color: var(--cream); font-size: 0.9rem; text-align: center; padding: 8px 16px; }
.pro-bar__text { margin: 0; }
.pro-bar a { color: var(--cream); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pro-bar a:hover { color: var(--arena); }
.nav__pro {
  align-self: flex-start;
  display: inline-block;
  padding: 8px 16px;
  border: 2px solid var(--teal-dark);
  border-radius: var(--radius-full);
  color: var(--teal-dark);
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}
.nav__pro:hover { background: var(--ice); color: var(--teal-deep); }
@media (min-width: 1040px) { .nav__pro { align-self: center; margin-left: -12px; } }

/* ---- Brújula: invitación discreta a reservar al final de cada momento ---- */
.moment__reserve { display: inline-block; margin-top: 14px; color: var(--terracota); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.moment__reserve:hover { color: var(--terracota-dark); }

/* ---- Aviso de que el botón abre WhatsApp ---- */
.wa-note { margin-top: 10px; font-size: 0.88rem; color: var(--text-soft); }
.wa-note--light { color: rgba(255, 255, 255, 0.8); }
