/* Mujer Sana SLP — hoja de estilos
   Vino y rosa claro, con el oro del escudo potosino como acento. */
:root {
  --vino: #7a1f4b;        /* vino: marca, títulos, botones */
  --vino-hondo: #4a1030;  /* vino oscuro: banda y pie */
  --oro: #e2a62b;         /* oro: el hilo de las etapas y los acentos */
  --rosa: #fbedf0;        /* rosa muy claro: fondos suaves */
  --papel: #fffcfc;       /* fondo general */
  --tinta: #2a1420;       /* texto */
  --tinta-suave: #6a5360; /* texto secundario */
  --linea: #ecd5dc;       /* líneas divisorias */
  --blanco: #ffffff;
  --accion: #0c7c45;        /* verde: reservado para los botones de WhatsApp */
  --accion-hondo: #095f35;
  --accion-claro: #37d07a;  /* el mismo verde, para fondos oscuros */

  --titulo: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --texto: 'Atkinson Hyperlegible', Verdana, sans-serif;

  --ancho: 1180px;
  --margen: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--texto);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--papel);
}

h1, h2, h3 {
  font-family: var(--titulo);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--vino); }
section[id], div[id] { scroll-margin-top: 90px; }

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

.wrap {
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 var(--margen);
}

.wrap.narrow { max-width: 820px; }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 200;
  background: var(--blanco);
  padding: 10px 14px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-family: var(--titulo);
  font-weight: 700;
  font-size: 1.12rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--accion);
  color: var(--blanco);
  box-shadow: 0 6px 18px rgba(12, 124, 69, 0.32);
}
.btn-primary:hover { background: var(--accion-hondo); }
/* icono de mensaje en los botones de WhatsApp */
.btn.whatsapp-btn::before {
  content: "";
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.5 8.5 0 0 1-12.6 7.4L3 20l1.2-5A8.5 8.5 0 1 1 21 11.5z'/%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 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.5 8.5 0 0 1-12.6 7.4L3 20l1.2-5A8.5 8.5 0 1 1 21 11.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn-quiet { border-color: var(--vino); color: var(--vino); background: transparent; }
.btn-quiet:hover { background: var(--rosa); }
.btn-light { background: var(--accion-claro); color: #06301a; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }
.btn-light:hover { background: #5be096; }
.btn-small { min-height: 46px; padding: 0 18px; font-size: 1rem; box-shadow: none; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 2px solid var(--vino);
  color: var(--vino);
  text-decoration: none;
}
.icon-btn:hover { background: var(--rosa); }

.text-link {
  display: inline-block;
  margin-right: 1.5rem;
  font-weight: 700;
  color: var(--vino);
  text-decoration-color: var(--oro);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}
.text-link:hover { text-decoration-color: var(--vino); }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--papel);
  border-bottom: 1px solid var(--linea);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-family: var(--titulo);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--vino);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark-city {
  padding: 1px 8px 2px;
  border-radius: 6px;
  background: var(--oro);
  color: var(--vino-hondo);
  font-size: 0.8em;
  letter-spacing: 0.02em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  font-size: 1rem;
  color: var(--tinta);
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover { color: var(--vino); text-decoration: underline; text-decoration-color: var(--oro); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.has-sub { position: relative; }
.sub-list {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 270px;
  padding: 8px 18px;
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-top: 3px solid var(--oro);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 18px 40px rgba(74, 16, 48, 0.14);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s;
}
.has-sub:hover .sub-list,
.has-sub:focus-within .sub-list { opacity: 1; visibility: visible; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 2px solid var(--vino);
  border-radius: 10px;
  background: transparent;
  color: var(--vino);
  font-family: var(--titulo);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(36px, 6vw, 72px); }
.hero-title {
  max-width: 15ch;
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--vino);
}
.hero-lead {
  max-width: 54ch;
  margin: clamp(20px, 3vw, 32px) 0 0;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  color: var(--tinta-suave);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 40px clamp(32px, 6vw, 80px);
  align-items: end;
}
/* Ficha con lo que se pregunta primero: precio, horario y cómo agendar */
.facts {
  margin: 0;
  border-top: 3px solid var(--oro);
}
.facts > div {
  padding: 16px 0;
  border-bottom: 1px solid var(--linea);
}
.facts dt {
  font-size: 0.95rem;
  color: var(--tinta-suave);
}
.facts dd {
  margin: 2px 0 0;
  font-family: var(--titulo);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--vino);
}
.facts > div:first-child dd {
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Selector por etapa: el hilo ---------- */
.stages {
  margin-top: clamp(36px, 5vw, 60px);
  padding: clamp(28px, 4vw, 44px) 0 clamp(40px, 6vw, 72px);
  background: var(--rosa);
}
.stages-title {
  font-size: 1.35rem;
  color: var(--vino);
  margin-bottom: 28px;
}
.stage-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
/* el hilo dorado que une las etapas */
.stage-tabs::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 3px;
  background: var(--oro);
  transform-origin: left center;
  animation: hilo 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes hilo {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.stage-tab {
  position: relative;
  padding: 40px 12px 14px 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: var(--titulo);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--tinta-suave);
  cursor: pointer;
}
/* el nudo de cada etapa sobre el hilo */
.stage-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--rosa);
  border: 3px solid var(--oro);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.stage-tab:hover { color: var(--vino); }
.stage-tab[aria-selected="true"] { color: var(--vino); font-weight: 700; }
.stage-tab[aria-selected="true"]::before {
  background: var(--vino);
  border-color: var(--vino);
  transform: scale(1.25);
}
.stage-panel {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--blanco);
  border-left: 6px solid var(--vino);
}
.stage-panel h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--vino);
  margin-bottom: 14px;
}
.stage-panel p { max-width: 68ch; }
.js .stage-panel[hidden] { display: none; }
/* sin JavaScript se muestran todas las etapas, una tras otra */
html:not(.js) .stage-panel[hidden] { display: block; }
html:not(.js) .stage-tabs { display: none; }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-title {
  max-width: 22ch;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  color: var(--vino);
}
.section-lead {
  max-width: 58ch;
  margin-top: 18px;
  font-size: 1.2rem;
  color: var(--tinta-suave);
}
.section-tint { background: var(--rosa); }
.section-dark { background: var(--vino-hondo); color: var(--blanco); }
.section-dark .section-title { color: var(--blanco); }
.section-dark .section-lead { color: #f1cfdb; margin-bottom: 28px; }

/* Índice de servicios: una lista, no tarjetas */
.service-index { margin-top: clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--linea); }
.service-index li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 8px 40px;
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--linea);
}
.service-index h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.service-index h3 a {
  color: var(--vino);
  text-decoration: none;
  background-image: linear-gradient(var(--oro), var(--oro));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 4px;
  transition: background-size 0.2s ease;
  padding-bottom: 4px;
}
.service-index h3 a:hover,
.service-index h3 a:focus-visible { background-size: 100% 4px; }
.service-index p { margin: 0; color: var(--tinta-suave); }

/* Compromisos */
.promises {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(28px, 4vw, 56px);
  margin-top: clamp(32px, 5vw, 56px);
}
.promises li {
  padding: 22px 0 26px;
  border-top: 1px solid #e6c4cf;
}
.promises h3 {
  font-size: 1.4rem;
  color: var(--vino);
  margin-bottom: 8px;
}
.promises p { margin: 0; color: var(--tinta-suave); }

/* Cuándo agendar */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px clamp(32px, 6vw, 88px);
  align-items: start;
}
.signal-list li {
  position: relative;
  padding: 16px 0 16px 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.signal-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.signal-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.45em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--oro);
}
.urgent-note {
  margin: 24px 0 0;
  padding: 16px 18px;
  border-left: 4px solid var(--oro);
  background: rgba(255, 255, 255, 0.07);
  font-size: 1rem;
}

/* Pasos de la consulta: aquí los números sí indican un orden */
.steps {
  counter-reset: paso;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: clamp(32px, 5vw, 56px);
}
.steps li {
  counter-increment: paso;
  padding-top: 18px;
  border-top: 3px solid var(--oro);
}
.steps li::before {
  content: counter(paso);
  display: block;
  font-family: var(--titulo);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
  color: var(--vino);
  margin-bottom: 10px;
}
.steps h3 { font-size: 1.35rem; margin-bottom: 8px; }
.steps p { margin: 0; font-size: 1.02rem; color: var(--tinta-suave); }

/* Preguntas */
.faq { margin-top: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--linea); }
.faq details { border-top: 1px solid var(--linea); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--titulo);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--vino);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--vino);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { max-width: 64ch; padding-bottom: 20px; margin: 0; }

/* Cierre */
.closing-title {
  max-width: 18ch;
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--vino);
}

/* ---------- Pie ---------- */
.site-footer {
  background: var(--vino-hondo);
  color: #f1cfdb;
  padding: clamp(48px, 7vw, 80px) 0 28px;
  font-size: 1rem;
}
.site-footer a { color: var(--blanco); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 40px;
}
.wordmark-footer { color: var(--blanco); margin-bottom: 14px; }
.footer-note { font-size: 0.92rem; }
.footer-title {
  font-size: 1.1rem;
  color: var(--blanco);
  margin-bottom: 14px;
}
.footer-title-gap { margin-top: 24px; }
.footer-links li { padding: 5px 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--oro); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.92rem;
}
.footer-bottom p { margin: 0; }

.mobile-bar { display: none; }

/* ---------- Tableta y móvil ---------- */
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: 73px 0 0 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 24px var(--margen) 140px;
    background: var(--papel);
    overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--linea); }
  .nav-link { padding: 14px 0; font-size: 1.1rem; white-space: normal; }
  .caret { display: none; }
  .sub-list {
    position: static;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    padding: 0 0 10px 16px;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .sub-list .nav-link { padding: 9px 0; font-size: 1rem; color: var(--tinta-suave); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 1.06rem; padding-bottom: 84px; }
  .split, .footer-grid { grid-template-columns: 1fr; }
  .service-index li { grid-template-columns: 1fr; padding: 20px 0; }

  /* El hilo pasa a vertical: las etapas se leen de arriba abajo */
  .stage-tabs { grid-template-columns: 1fr; gap: 0; }
  .stage-tabs::before {
    left: 10px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 3px;
    height: auto;
    transform-origin: center top;
    animation-name: hilo-vertical;
  }
  @keyframes hilo-vertical {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
  }
  .stage-tab { padding: 12px 0 12px 40px; min-height: 48px; }
  .stage-tab::before { top: 12px; }

  .steps { grid-template-columns: 1fr; gap: 24px; }
  .promises { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; white-space: normal; }
  /* en móvil la barra fija ya ofrece WhatsApp */
  .hero .hero-grid .hero-actions .whatsapp-btn { display: none; }
  .site-nav .nav-actions { display: none; }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    gap: 10px;
    padding: 12px var(--margen) calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--papel);
    border-top: 1px solid var(--linea);
    box-shadow: 0 -8px 24px rgba(74, 16, 48, 0.1);
  }
  .mobile-bar .btn { flex: 1; padding: 0 14px; font-size: 1.08rem; }
  .mobile-bar .icon-btn { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage-tabs::before { animation: none; }
  * { transition: none !important; }
}

/* =====================================================
   Movimiento: respuestas al cursor, a la selección y al
   desplazamiento. Todo se desactiva si la persona pidió
   reducir el movimiento en su dispositivo.
   ===================================================== */

/* Cabecera: gana sombra al bajar por la página */
.site-header { transition: box-shadow 0.25s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(74, 16, 48, 0.12); }

.wordmark-city { transition: transform 0.2s ease; }
.wordmark:hover .wordmark-city { transform: rotate(-4deg) scale(1.06); }

.caret { transition: transform 0.2s ease; }
.has-sub:hover .caret,
.has-sub:focus-within .caret { transform: rotate(180deg); }
.sub-list { transform: translateY(6px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s; }
.has-sub:hover .sub-list,
.has-sub:focus-within .sub-list { transform: translateY(0); }
.sub-list .nav-link { transition: transform 0.15s ease, color 0.15s ease; }
.sub-list .nav-link:hover { transform: translateX(5px); }

/* Botones: se elevan al pasar el cursor y se hunden al pulsar */
.btn, .icon-btn {
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover, .icon-btn:hover { transform: translateY(-3px); }
.btn:active, .icon-btn:active { transform: translateY(0) scale(0.97); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(12, 124, 69, 0.42); }
.btn-light:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38); }
.btn.whatsapp-btn::before { transition: transform 0.25s ease; }
.btn.whatsapp-btn:hover::before { transform: rotate(-12deg) scale(1.15); }
.icon-btn svg { transition: transform 0.25s ease; }
.icon-btn:hover svg { transform: rotate(14deg) scale(1.1); }

.text-link { transition: text-underline-offset 0.15s ease, text-decoration-color 0.15s ease; }
.text-link:hover { text-underline-offset: 8px; }

/* Selector por etapa: el hilo se recorre hasta la etapa elegida */
.stage-tabs::after {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  height: 3px;
  width: var(--avance-x, 11px);
  background: var(--vino);
  transition: width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.stage-tab { transition: color 0.15s ease, transform 0.18s ease; }
.stage-tab::before { z-index: 1; transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.stage-tab:hover::before { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(226, 166, 43, 0.25); }
.stage-tab.passed::before { background: var(--vino); border-color: var(--vino); }
.stage-tab[aria-selected="true"]::before { box-shadow: 0 0 0 6px rgba(122, 31, 75, 0.16); }
.stage-panel { transition: border-color 0.2s ease; }
.stage-panel.entering { animation: panel-entra 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes panel-entra {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Índice de servicios: toda la fila responde y es clicable */
.service-index li {
  position: relative;
  margin: 0 -18px;
  padding-left: 18px;
  padding-right: 64px;
  transition: background-color 0.2s ease;
}
.service-index li:hover { background: var(--rosa); }
.service-index h3 a::after { content: ""; position: absolute; inset: 0; }
.service-index h3, .service-index p { transition: transform 0.25s ease; }
.service-index li:hover h3 { transform: translateX(8px); }
.service-index li::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  background: var(--vino);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.2s ease, transform 0.25s ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%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 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.service-index li:hover::after { opacity: 1; transform: translateX(0); }

/* Compromisos: la línea superior se vuelve dorada */
.promises li { position: relative; transition: transform 0.25s ease; }
.promises li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 3px;
  width: 100%;
  background: var(--oro);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.promises li:hover { transform: translateY(-4px); }
.promises li:hover::before { transform: scaleX(1); }

/* Señales: el punto se rellena */
.signal-list li { transition: padding-left 0.2s ease, background-color 0.2s ease; }
.signal-list li::before { transition: background-color 0.2s ease, transform 0.2s ease; }
.signal-list li:hover { padding-left: 42px; background: rgba(255, 255, 255, 0.05); }
.signal-list li:hover::before { background: var(--oro); transform: scale(1.15); }

/* Pasos: el número responde */
.steps li { transition: transform 0.25s ease; }
.steps li::before { transition: color 0.2s ease, transform 0.25s ease; transform-origin: left bottom; }
.steps li:hover { transform: translateY(-6px); }
.steps li:hover::before { color: var(--oro); transform: scale(1.15); }

/* Preguntas: el signo gira y la respuesta se despliega */
.faq summary { transition: color 0.15s ease, padding-left 0.2s ease; }
.faq summary:hover { padding-left: 8px; color: var(--vino-hondo); }
.faq summary::after { content: "+"; transition: transform 0.25s ease; }
.faq details[open] summary::after { content: "+"; transform: rotate(45deg); }
.faq details[open] p { animation: respuesta-abre 0.3s ease both; }
@keyframes respuesta-abre {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.footer-links a { display: inline-block; transition: transform 0.15s ease; }
.footer-links a:hover { transform: translateX(4px); }

/* Aparición al desplazarse: solo si hay JavaScript (clase .reveal) */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--retraso, 0ms);
}
.reveal.visible { opacity: 1; transform: none; }
/* una vez visible, el retraso ya no debe afectar al cursor */
.reveal.done { transition-delay: 0ms; }

/* Llamado de atención suave en el botón principal */
.hero-grid .btn-primary,
.mobile-bar .btn-primary { animation: latido 3.2s ease-out 2s infinite; }
@keyframes latido {
  0% { box-shadow: 0 6px 18px rgba(12, 124, 69, 0.32), 0 0 0 0 rgba(12, 124, 69, 0.45); }
  30% { box-shadow: 0 6px 18px rgba(12, 124, 69, 0.32), 0 0 0 14px rgba(12, 124, 69, 0); }
  100% { box-shadow: 0 6px 18px rgba(12, 124, 69, 0.32), 0 0 0 0 rgba(12, 124, 69, 0); }
}
.hero-grid .btn-primary:hover,
.mobile-bar .btn-primary:hover { animation: none; }

@media (max-width: 760px) {
  /* hilo vertical: el avance crece hacia abajo */
  .stage-tabs::after {
    left: 10px;
    top: 0;
    width: 3px;
    height: var(--avance-y, 23px);
    transition: height 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .service-index li { margin: 0 -12px; padding-left: 12px; padding-right: 48px; }
  .service-index li::after { opacity: 1; transform: none; right: 12px; width: 22px; height: 22px; margin-top: -11px; }
}

@media (hover: none) {
  /* en pantallas táctiles no hay cursor: se evita que los efectos se queden "pegados" */
  .btn:hover, .icon-btn:hover, .promises li:hover, .steps li:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-grid .btn-primary, .mobile-bar .btn-primary, .stage-panel.entering, .faq details[open] p { animation: none; }
  .btn:hover, .icon-btn:hover, .promises li:hover, .steps li:hover, .service-index li:hover h3 { transform: none; }
}

/* =====================================================
   Páginas interiores: servicios y páginas legales
   ===================================================== */
.page-hero {
  padding: clamp(28px, 5vw, 56px) 0 clamp(36px, 6vw, 64px);
  background: var(--rosa);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: clamp(20px, 3vw, 32px);
  font-size: 0.98rem;
  color: var(--tinta-suave);
}
.crumbs a { color: var(--vino); }
.crumbs span[aria-hidden] { color: var(--oro); font-weight: 700; }
.page-title {
  max-width: 20ch;
  font-size: clamp(2.2rem, 5.6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--vino);
}
.page-hero .hero-lead { max-width: 60ch; }

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 48px clamp(32px, 6vw, 88px);
  align-items: start;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(56px, 8vw, 104px);
}
.page-aside {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.page-aside .facts { margin-bottom: 12px; }

/* Texto corrido */
.prose > section + section { margin-top: clamp(40px, 6vw, 64px); }
.prose h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  color: var(--vino);
  margin-bottom: 16px;
}
.prose h3 {
  font-size: 1.3rem;
  color: var(--vino);
  margin: 28px 0 8px;
}
.prose p { max-width: 68ch; }
.prose a:not(.btn) {
  color: var(--vino);
  font-weight: 700;
  text-decoration-color: var(--oro);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
.prose .btn { margin-top: 8px; }
.prose-narrow { max-width: 760px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 104px); }
.prose-narrow h2 { margin-top: 40px; }
.prose-narrow ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1rem; }
.prose-narrow li { margin-bottom: 6px; }

/* Listas con el nudo dorado del hilo */
.dots { margin: 8px 0 16px; max-width: 68ch; }
.dots li {
  position: relative;
  padding: 10px 0 10px 32px;
  border-top: 1px solid var(--linea);
  transition: padding-left 0.2s ease;
}
.dots li:last-child { border-bottom: 1px solid var(--linea); }
.dots li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.05em;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 3px solid var(--oro);
  transition: background-color 0.2s ease;
}
.dots li:hover { padding-left: 38px; }
.dots li:hover::before { background: var(--oro); }
.dots strong { color: var(--vino); }

/* Tablas */
.tabla-wrap { overflow-x: auto; margin: 12px 0 16px; }
.tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.02rem;
}
.tabla th, .tabla td {
  padding: 13px 16px 13px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--linea);
}
.tabla thead th {
  font-family: var(--titulo);
  font-weight: 700;
  color: var(--vino);
  border-bottom: 3px solid var(--oro);
}
.tabla tbody th { font-weight: 700; color: var(--vino); white-space: nowrap; }
.tabla tbody tr { transition: background-color 0.2s ease; }
.tabla tbody tr:hover { background: var(--rosa); }

.nota {
  max-width: 68ch;
  margin: 20px 0 0;
  padding: 16px 18px;
  border-left: 4px solid var(--oro);
  background: var(--rosa);
  font-size: 1.02rem;
}

.prose .faq { margin-top: 8px; }
.prose .faq summary { font-size: 1.15rem; }

@media (max-width: 1020px) {
  .page-grid { grid-template-columns: 1fr; }
  .page-aside { position: static; order: -1; }
}
@media (max-width: 760px) {
  /* en móvil la barra fija ya tiene los botones */
  .page-aside .btn { display: none; }
  .prose .btn { white-space: normal; text-align: center; padding-top: 10px; padding-bottom: 10px; max-width: 100%; }
  .page-grid > * { min-width: 0; }
  .tabla tbody th { white-space: normal; }
}

/* Precio destacado en la sección de precios */
.price-big {
  margin: 24px 0 24px;
  font-family: var(--titulo);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--vino);
}
.price-big span {
  display: block;
  margin-top: 8px;
  font-family: var(--texto);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0;
  color: var(--tinta-suave);
}
.split .section-lead { margin-bottom: 28px; }
.split .dots { margin-top: 0; }
.section-tint .tabla th, .section-tint .tabla td { border-bottom-color: #e6c4cf; }
.section-tint .tabla tbody tr:hover { background: rgba(255, 255, 255, 0.6); }
