/* Centinela · estilos
   Los colores salen de config.toml: publicar.py los escribe entre las
   marcas de abajo. No los cambies aquí, cámbialos allá. */

/*c:colores*/
:root {
  --fondo: #ffffff;
  --ink: #111418;
  --acento: #1d4ed8;
  --sobre-acento: #ffffff;
  --acento-texto: #1d4ed8;
  --acento-claro: #8ea8ff;
  --gray: #5b6270;
  --line: #dfe1e5;
  --soft: #f5f5f6;
  --destacado: #eef3ff;
  --verde: #0b7a3b;
  --ambar: #c9a227;
  --texto: #111418;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #0e1114;
    --texto: #eef0f2;
    --acento-texto: #8ea8ff;
    --gray: #a2a9b5;
    --line: #272c34;
    --soft: #161a1f;
    --destacado: #111a2e;
    --verde: #4cc27f;
    --ambar: #ddb94a;
  }
}
/*/c*/

:root {
  --fuente-titulo: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fuente-texto: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  --ancho: 1120px;
  --margen: clamp(16px, 5vw, 32px);
  --alto-cabecera: 64px;
  --radio: 16px;
  color-scheme: light dark;
}

/* ── Base ─────────────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--alto-cabecera) + 16px);
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--fuente-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--acento-texto); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 { text-wrap: balance; }

::selection { background: var(--acento); color: var(--sobre-acento); }

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

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.saltar {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--ink); color: #fff;
  border-radius: 8px;
}
.saltar:focus { top: 12px; }

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

/* ── Botones ─────────────────────────────────────────────────────── */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 50px;
  padding: 0 1.4em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.boton svg { width: 1.25em; height: 1.25em; flex: none; }
.boton:active { transform: translateY(1px); }

.boton-primario { background: var(--acento); color: var(--sobre-acento); }
.boton-primario:hover { background: color-mix(in srgb, var(--acento) 85%, #000); }

.boton-secundario { border-color: currentColor; color: var(--texto); }
.boton-secundario:hover { background: var(--texto); border-color: var(--texto); color: var(--fondo); }

.boton-chico { min-height: 42px; padding: 0 1.1em; font-size: .95rem; }

/* ── Cabecera ────────────────────────────────────────────────────── */

.cabecera {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--fondo) 90%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.cabecera-fila {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--alto-cabecera);
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fuente-titulo);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -.02em;
  text-decoration: none;
  color: var(--texto);
}
.marca-signo {
  width: 14px; height: 14px;
  background: var(--acento);
  border-radius: 3px;
  box-shadow: 5px 5px 0 -1px var(--texto);
}

.nav { display: none; margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--gray);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
}
.nav a:hover { color: var(--texto); background: var(--soft); }

.cabecera-wa { margin-left: auto; }

/* En pantallas muy angostas el botón de WhatsApp queda solo con el icono */
@media (max-width: 400px) {
  .cabecera-wa { width: 42px; padding: 0; }
  .cabecera-wa-texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

.menu summary {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--texto); color: var(--fondo); border-color: var(--texto); }
.menu nav {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--fondo);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 32px rgb(0 0 0 / .08);
}
.menu ul { list-style: none; margin: 0 auto; padding: 8px var(--margen) 16px; max-width: var(--ancho); }
.menu a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--fuente-titulo);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}
.menu li:last-child a { border-bottom: 0; }

@media (min-width: 880px) {
  .nav { display: block; }
  .cabecera-wa { margin-left: 8px; }
  .menu { display: none; }
}

/* ── Títulos comunes ─────────────────────────────────────────────── */

.antetitulo, .etiqueta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--gray);
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.antetitulo::before, .etiqueta::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  background: var(--acento-texto);
  border-radius: 2px;
}

h1 {
  margin: 0 0 .4em;
  font-family: var(--fuente-titulo);
  font-weight: 800;
  font-size: clamp(2.6rem, 9.5vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.035em;
}

h2 {
  margin: 0 0 .45em;
  font-family: var(--fuente-titulo);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -.03em;
}

h3 {
  margin: 0;
  font-family: var(--fuente-titulo);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.intro {
  max-width: 38em;
  color: var(--gray);
  font-size: clamp(1.08rem, 2.2vw, 1.22rem);
  line-height: 1.55;
}

.seccion { padding-block: clamp(72px, 11vw, 128px); }
.encabezado-seccion { margin-bottom: clamp(32px, 5vw, 56px); }
.mas { margin-top: 20px; font-weight: 600; }

/* ── Encabezado (hero) ───────────────────────────────────────────── */

.hero { padding-block: clamp(40px, 8vw, 96px) clamp(56px, 9vw, 112px); }

.hero-rejilla { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }

.acento { color: var(--acento-texto); }

.hero-sub {
  max-width: 32em;
  color: var(--gray);
  font-size: clamp(1.12rem, 2.6vw, 1.32rem);
  line-height: 1.5;
}

.botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-firma { margin-top: 24px; color: var(--gray); font-size: .95rem; }

@media (min-width: 960px) {
  .hero-rejilla { grid-template-columns: 1.2fr .8fr; }
}

/* La conversación de ejemplo */
.chat {
  justify-self: center;
  width: 100%;
  max-width: 420px;
  margin: 0;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 28px;
}
.chat-barra {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  line-height: 1.25;
}
.chat-barra strong { display: block; font-size: .95rem; }
.chat-barra small { color: var(--gray); font-size: .8rem; }
.chat-avatar {
  position: relative;
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
}
.chat-avatar::after {
  content: "";
  position: absolute;
  inset: 12px;
  background: var(--acento);
  border-radius: 2px;
}
.chat-mensajes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.msj {
  max-width: 85%;
  padding: 9px 14px;
  border-radius: 16px;
  font-size: .98rem;
  line-height: 1.4;
}
.msj-entra {
  align-self: flex-start;
  background: var(--fondo);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.msj-aviso {
  align-self: center;
  margin: 4px 0;
  padding: 3px 12px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  background: var(--fondo);
  color: var(--gray);
  font-size: .78rem;
}
.msj-sale {
  align-self: flex-end;
  max-width: 92%;
  padding: 6px;
  background: var(--destacado);
  border: 1px solid color-mix(in srgb, var(--acento-texto) 35%, transparent);
  border-bottom-right-radius: 4px;
}
.vista-previa {
  display: grid;
  grid-template-columns: 92px 1fr;
  overflow: hidden;
  border-left: 4px solid var(--acento-texto);
  border-radius: 12px;
  background: var(--fondo);
  color: inherit;
  text-decoration: none;
}
.vista-previa img { width: 92px; height: 100%; min-height: 92px; object-fit: cover; background: #fff; }
.vp-texto { display: grid; align-content: center; gap: 3px; min-width: 0; padding: 10px 12px; line-height: 1.3; }
.vp-texto strong { font-size: .92rem; }
.vp-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  color: var(--gray);
  font-size: .82rem;
}
.vp-dominio { color: var(--gray); font-size: .78rem; }
.msj-texto { display: block; padding: 8px 8px 3px; font-size: .98rem; }
.chat-pie { margin-top: 14px; color: var(--gray); font-size: .82rem; line-height: 1.45; text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .chat-mensajes > li { animation: entra .5s cubic-bezier(.2, .7, .3, 1) both; }
  .chat-mensajes > li:nth-child(1) { animation-delay: .15s; }
  .chat-mensajes > li:nth-child(2) { animation-delay: .45s; }
  .chat-mensajes > li:nth-child(3) { animation-delay: .75s; }
  .chat-mensajes > li:nth-child(4) { animation-delay: 1.05s; }
  .chat-mensajes > li:nth-child(5) { animation-delay: 1.4s; }
}
@keyframes entra { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ── No te quito Facebook ────────────────────────────────────────── */

.seccion-facebook { padding-top: 0; }
.recuadro-facebook {
  padding: clamp(28px, 6vw, 64px);
  background: var(--destacado);
  border: 1px solid color-mix(in srgb, var(--acento-texto) 22%, transparent);
  border-radius: 28px;
}
.flujo {
  display: grid;
  gap: 10px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.flujo li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--fondo);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.flujo span {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--texto);
  color: var(--fondo);
  font-family: var(--mono);
  font-size: .85rem;
}
.flujo .flujo-tuyo { border: 2px solid var(--acento-texto); }
.flujo .flujo-tuyo span { background: var(--acento); color: var(--sobre-acento); }
.remate { font-size: 1.15rem; font-weight: 600; }

@media (min-width: 760px) {
  .flujo { grid-template-columns: repeat(4, 1fr); }
  .flujo li { flex-direction: column; align-items: flex-start; }
}

/* ── Servicios ───────────────────────────────────────────────────── */

.servicios { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }

.servicio {
  display: grid;
  gap: 16px 40px;
  padding: 28px clamp(16px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
}
.servicio.destacado {
  margin: 12px 0;
  background: var(--destacado);
  border: 2px solid var(--acento-texto);
  border-radius: 22px;
}
.clave { margin: 0 0 6px; color: var(--gray); font-family: var(--mono); font-size: .85rem; }
.servicio h3 { font-size: 1.5rem; }
.sello {
  display: inline-block;
  margin: 12px 0 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--acento);
  color: var(--sobre-acento);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.servicio-cuerpo > p { color: var(--gray); }

.incluye { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.incluye li { position: relative; padding-left: 28px; line-height: 1.45; }
.incluye li::before {
  content: "";
  position: absolute;
  left: 3px; top: .38em;
  width: 13px; height: 7px;
  border-left: 2.5px solid var(--verde);
  border-bottom: 2.5px solid var(--verde);
  transform: rotate(-45deg);
}

.precio {
  margin: 0;
  font-family: var(--fuente-titulo);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -.03em;
}
.nota { margin: .45em 0 0; color: var(--gray); font-size: .92rem; }
.servicio-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

@media (min-width: 920px) {
  .servicio { grid-template-columns: 15rem 1fr 13rem; padding-block: 36px; }
  .servicio-precio { text-align: right; }
  .servicio-acciones { justify-content: flex-end; }
}

.letra-chica { margin-top: 20px; color: var(--gray); font-size: .9rem; }

.no-encaja {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 32px;
  padding: 24px;
  border: 1px dashed var(--gray);
  border-radius: var(--radio);
}
.no-encaja p { max-width: 40em; margin: 0; }

/* ── El caso ─────────────────────────────────────────────────────── */

.seccion-caso { background: var(--soft); }

.caso-rejilla { display: grid; gap: 40px; align-items: start; }
@media (min-width: 920px) { .caso-rejilla { grid-template-columns: 290px 1fr; gap: 64px; } }

.caso-celular { justify-self: center; width: 100%; max-width: 290px; margin: 0; }
.caso-celular img {
  width: 100%;
  border: 8px solid var(--ink);
  border-radius: 34px;
  box-shadow: 0 0 0 1px var(--line), 0 24px 48px rgb(0 0 0 / .12);
}
.caso-celular figcaption { margin-top: 12px; color: var(--gray); font-size: .88rem; text-align: center; }

.antes-hoy { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
.antes-hoy th, .antes-hoy td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.antes-hoy thead th {
  color: var(--gray);
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.antes-hoy tbody th { width: 30%; font-weight: 600; }
.antes-hoy td:nth-of-type(1) { color: var(--gray); }
.antes-hoy td:nth-of-type(2) { font-weight: 600; }

@media (max-width: 699px) {
  .antes-hoy thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .antes-hoy, .antes-hoy tbody, .antes-hoy tr { display: block; }
  .antes-hoy tr {
    margin-bottom: 12px;
    padding: 16px;
    background: var(--fondo);
    border: 1px solid var(--line);
    border-radius: 14px;
  }
  .antes-hoy th, .antes-hoy td { display: block; padding: 0; border: 0; }
  .antes-hoy tbody th { width: auto; margin-bottom: 10px; font-family: var(--fuente-titulo); font-size: 1.12rem; }
  .antes-hoy td { display: grid; grid-template-columns: 3.6rem 1fr; gap: 8px; padding-top: 6px; }
  .antes-hoy td::before {
    content: attr(data-etiqueta);
    padding-top: .2em;
    color: var(--gray);
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 400;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .antes-hoy td:nth-of-type(2)::before { color: var(--verde); }
}

.liga-viva {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--fondo);
  border: 2px solid var(--texto);
  border-radius: var(--radio);
  color: var(--texto);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.liga-viva:hover { border-color: var(--acento-texto); transform: translateY(-2px); }
.liga-viva-texto { flex: 1; min-width: 0; line-height: 1.3; }
.liga-viva small { display: block; color: var(--gray); font-size: .85rem; }
.liga-viva strong {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.05rem, 4vw, 1.45rem);
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}
.liga-viva-flecha { font-size: 1.5rem; }
.liga-viva-punto {
  flex: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--verde);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--verde) 55%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .liga-viva-punto { animation: latido 2.2s ease-out infinite; }
}
@keyframes latido { 70%, 100% { box-shadow: 0 0 0 11px transparent; } }

.cifras, .resultados {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 48px 0 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radio);
}
.cifras li, .resultados li { padding: 20px; background: var(--fondo); color: var(--gray); font-size: .95rem; line-height: 1.35; }
.cifras strong, .resultados strong {
  display: block;
  margin-bottom: 6px;
  color: var(--texto);
  font-family: var(--fuente-titulo);
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 2.9rem);
  line-height: 1;
  letter-spacing: -.03em;
}
.resultados { margin-top: 28px; }
@media (min-width: 920px) { .cifras { grid-template-columns: repeat(4, 1fr); } }

/* ── Reseñas (solo aparecen si hay en config.toml) ───────────────── */

.resenas { display: grid; gap: 20px; }
@media (min-width: 760px) { .resenas { grid-template-columns: repeat(2, 1fr); } }
.resena { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radio); }
.resena blockquote { margin: 0 0 14px; font-size: 1.1rem; }
.resena figcaption { color: var(--gray); font-size: .92rem; }

/* ── Cómo trabajo ────────────────────────────────────────────────── */

.como-rejilla { display: grid; gap: 8px 64px; }
@media (min-width: 920px) {
  .como-rejilla { grid-template-columns: .9fr 1.1fr; align-items: start; }
  .como-rejilla .encabezado-seccion { position: sticky; top: calc(var(--alto-cabecera) + 32px); }
}

.pasos { margin: 0; padding: 0; list-style: none; counter-reset: paso; border-top: 1px solid var(--line); }
.pasos li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 6px 14px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: paso;
}
.pasos li::before {
  content: counter(paso, decimal-leading-zero);
  grid-row: span 2;
  padding-top: .3em;
  color: var(--gray);
  font-family: var(--mono);
  font-size: .85rem;
}
.pasos h3 { font-size: 1.28rem; }
.pasos p { margin: 0; color: var(--gray); }

/* ── Bots ────────────────────────────────────────────────────────── */

.seccion-bots { padding-top: 0; }
.recuadro-aviso {
  padding: clamp(28px, 6vw, 56px);
  background: color-mix(in srgb, var(--ambar) 9%, var(--fondo));
  border: 1px solid color-mix(in srgb, var(--ambar) 40%, transparent);
  border-left: 6px solid var(--ambar);
  border-radius: 8px 28px 28px 8px;
}
.recuadro-aviso p { max-width: 42em; }
.etiqueta-aviso::before { background: var(--ambar); }
.recuadro-aviso .remate { margin-top: 1.4em; font-weight: 400; }
.recuadro-aviso .remate strong { color: var(--verde); }

/* ── Preguntas ───────────────────────────────────────────────────── */

.preguntas { max-width: 54rem; border-top: 1px solid var(--line); }
.pregunta { border-bottom: 1px solid var(--line); }
.pregunta summary {
  position: relative;
  padding: 20px 48px 20px 0;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::after {
  content: "";
  position: absolute;
  right: 8px; top: 50%;
  width: 11px; height: 11px;
  border-right: 2px solid var(--gray);
  border-bottom: 2px solid var(--gray);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.pregunta[open] summary::after { transform: translateY(-25%) rotate(-135deg); border-color: var(--acento-texto); }
.pregunta summary:hover { color: var(--gray); }
.respuesta { max-width: 44em; padding: 0 0 24px; color: var(--gray); }

/* Apertura suave donde el navegador lo permite; donde no, abre de golpe. */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .preguntas { interpolate-size: allow-keywords; }
    .pregunta::details-content {
      height: 0;
      overflow: clip;
      transition: height .3s ease, content-visibility .3s allow-discrete;
    }
    .pregunta[open]::details-content { height: auto; }
  }
}

/* ── Contacto ────────────────────────────────────────────────────── */

.seccion-contacto {
  --fondo: var(--ink);
  --texto: #f3f4f6;
  --gray: #a7aebb;
  --line: #2c323b;
  --campo: #1a1f25;
  --acento-texto: var(--acento-claro);
  background: var(--fondo);
  color: var(--texto);
}
@media (prefers-color-scheme: dark) {
  .seccion-contacto { border-top: 1px solid var(--line); }
}

.contacto-rejilla { display: grid; gap: 48px; }
@media (min-width: 920px) { .contacto-rejilla { grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: start; } }

.contacto-directo { margin-top: 36px; color: var(--gray); }
.contacto-directo p { margin: 0; }
.telefono {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 8px;
  color: var(--texto);
  font-family: var(--fuente-titulo);
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: -.02em;
  text-decoration: none;
}
.telefono svg { width: .8em; height: .8em; color: var(--acento-texto); }
.telefono:hover { color: var(--acento-texto); }

.boton-claro { border-color: var(--texto); color: var(--texto); }
.boton-claro:hover { background: var(--texto); color: var(--ink); }

.formulario {
  display: grid;
  gap: 20px;
  padding: clamp(20px, 4vw, 36px);
  background: var(--campo);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.campo { min-width: 0; margin: 0; padding: 0; border: 0; }
.campo label, .campo legend { display: block; margin-bottom: 8px; padding: 0; font-weight: 600; }
.campo small { color: var(--gray); font-weight: 400; }
.formulario input[type="text"], .formulario textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--texto);
  font: inherit;
  font-size: 16px;
}
.formulario textarea { resize: vertical; }
.formulario input::placeholder { color: #7d8492; }
.formulario input:focus, .formulario textarea:focus { outline: 2px solid var(--acento-texto); outline-offset: 1px; border-color: transparent; }
.campo .opcion {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
}
.opcion input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--acento-texto); }
.opcion:has(input:checked) { border-color: var(--acento-texto); background: color-mix(in srgb, var(--acento-texto) 14%, transparent); }

.vista-titulo { margin: 0 0 8px; color: var(--gray); font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.vista-burbuja {
  margin: 0;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--acento) 32%, var(--ink));
  border-radius: 14px 14px 4px 14px;
  font-size: .95rem;
  line-height: 1.45;
  white-space: pre-line;
}
.formulario .boton { width: 100%; }
.nota-form { margin: -6px 0 0; color: var(--gray); font-size: .88rem; text-align: center; }

/* ── Página de servicio ──────────────────────────────────────────── */

.tarjeta-precio {
  padding: clamp(24px, 4vw, 36px);
  background: var(--destacado);
  border: 2px solid var(--acento-texto);
  border-radius: 24px;
}
.tarjeta-precio .precio { font-size: clamp(3rem, 10vw, 4.2rem); }
.tarjeta-precio .incluye { margin-top: 22px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--acento-texto) 30%, transparent); }

.hero-404 { padding-block: clamp(64px, 12vw, 160px); }

/* ── Pie ─────────────────────────────────────────────────────────── */

.pie { padding-block: 48px 112px; border-top: 1px solid var(--line); color: var(--gray); font-size: .95rem; }
.pie-rejilla { display: grid; gap: 28px; }
.pie .marca { margin-bottom: 12px; }
.pie a { color: var(--texto); }
.pie ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pie-legal { margin: 0; }
@media (min-width: 880px) {
  .pie { padding-bottom: 48px; }
  .pie-rejilla { grid-template-columns: 1.3fr 1fr 1fr; }
}

/* ── Botón fijo de WhatsApp (solo celular) ───────────────────────── */

.barra-wa {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border-radius: 999px;
  background: var(--acento);
  color: var(--sobre-acento);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 28px rgb(0 0 0 / .22);
  transition: transform .25s ease, opacity .25s ease;
}
.barra-wa svg { width: 1.3em; height: 1.3em; }
.barra-wa.escondida { transform: translateY(160%); opacity: 0; pointer-events: none; }
@media (min-width: 880px) { .barra-wa { display: none; } }

/* ── Aparición al bajar (solo si cargó sitio.js) ─────────────────── */

[data-aparece] { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1); }
.aparece-pendiente { opacity: 0; transform: translateY(18px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
