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

/* Tipografías autoalojadas (SIL Open Font License)
   Literata: serif cálida, pensada para leer. Atkinson Hyperlegible Next: diseñada para baja visión. */
@font-face{font-family:"Literata";src:url("fonts/literata.woff2") format("woff2");font-weight:200 900;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 {
  /* Paleta Oncobrújula: crema + azul petróleo + verde salvia + terracota */
  --teal-dark: #3D5470;      /* azul petróleo (títulos, secciones oscuras) */
  --teal-mid: #52698A;       /* azul petróleo medio */
  --ice: #E4EBE6;            /* salvia muy suave (fondos de tarjetas y avisos) */
  --cream: #F7F4EF;          /* crema */
  --sage: #688172;           /* verde salvia (detalles, bordes, íconos) */
  --sage-dark: #4E6656;      /* salvia oscuro (texto chico sobre fondos claros) */
  --terracota: #9E5B3E;      /* llamados a la acción */
  --terracota-dark: #844A31;
  --text: #2C3338;
  --text-soft: #5B666C;
  --white: #FFFFFF;

  --font-serif: "Literata", 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: 10px;
  --radius-lg: 14px;
  --container: 1080px;

  --shadow: 0 8px 24px rgba(61, 84, 112, 0.10);
}

/* ---- 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: 500;
  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: 2px solid var(--terracota);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  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(--sage);
}
.btn--ghost:hover { border-color: var(--sage-dark); 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); }

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

.btn--large {
  padding: 18px 34px;
  font-size: 1.05rem;
}

/* 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(61, 84, 112, 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;
  gap: 8px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--teal-dark);
}
.nav__mark { color: var(--teal-dark); display: inline-flex; }

.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(61, 84, 112, 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(--terracota); } }

.nav__cta { align-self: flex-start; }

/* ---- Hero ---- */
.hero {
  position: relative;
  background: linear-gradient(170deg, var(--cream) 0%, #EFEBE3 100%);
  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(104, 129, 114, 0.28);
  padding: 18px 22px;
  border-radius: var(--radius);
  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(61, 84, 112, 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: linear-gradient(135deg, var(--teal-mid), 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(61, 84, 112, 0.12);
  border-radius: var(--radius);
  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: #2C3D52;
  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);
  max-width: 70ch;
  line-height: 1.6;
}

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

/* ==========================================================================
   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(104, 129, 114, 0.45);
}
.hero__byline strong { display: block; color: var(--teal-dark); font-weight: 700; }
@media (hover: hover) { .hero__byline:hover strong { color: var(--terracota); } }

/* ---- 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: #FAF1EC;
  border: 1px solid rgba(158, 91, 62, 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(--terracota-dark);
  margin-bottom: 6px;
}
.alert__icon { flex: none; color: var(--terracota); }
.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(--terracota);
}
.alert__action { font-weight: 700; color: var(--terracota-dark); }

/* ---- Superficies del navegador ---- */
::selection { background: rgba(104, 129, 114, 0.28); color: var(--teal-dark); }
html { accent-color: var(--terracota); scrollbar-color: rgba(61, 84, 112, 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(--terracota-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(104, 129, 114, 0.35); }
.gains li:last-child { border-bottom: 1px solid rgba(104, 129, 114, 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); }
@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: linear-gradient(170deg, var(--cream) 0%, #EFEBE3 100%); 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(--terracota); } }
.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(--terracota); }
.section--tint .about { box-shadow: var(--shadow); }
.accordion__panel a { color: var(--terracota); font-weight: 600; 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(61, 84, 112, 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(104, 129, 114, 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(104, 129, 114, 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(--terracota); 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; }
