/* Web de Mystic Mind MKT · 23-oct-2026 · un solo HTML, dos temas (data-tema="oscura" | "clara").
   Guía: branding-agencia/guia-diseno.md (§2 movimiento, §4 tipo, §5 espacio, §6 color).
   Decisiones de Mauricio del 21 y 23-oct: sin comparador deslizable, sin índice fijo, títulos con la bajada debajo
   y alineados a la izquierda, un filete un largo, sin precios, sin videos.
   Revisión independiente del 23-oct (4 lentes + verificación escéptica): correcciones aplicadas en esta versión. */

@font-face { font-family: "Gambetta"; src: url("fuentes/Gambetta-Variable.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fuentes/jost-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --tinta: #120A10;
  --ciruela: #2A1024;
  --hueso: #F2EDE4;
  --niebla: #EEE7EB;
  --oro: #D3AE35;
  --oro-claro: #E0BE4C;
  --vino: #610E2E;

  --font-display: "Gambetta", Georgia, "Times New Roman", serif;
  --font-texto: "Jost", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --t-display: clamp(2.75rem, 1.5rem + 3.6vw, 4.75rem);
  --t-h2: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  --t-h3: clamp(1.5rem, 1.25rem + 0.8vw, 2rem);
  --t-lead: clamp(1.125rem, 1.02rem + 0.42vw, 1.375rem);
  --t-texto: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --t-chico: 0.875rem;

  --contenedor: 1240px;
  --radio: 2px;
  --radio-pill: 999px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-reveal: 700ms;
  --stagger: 70ms;
}

/* Tema oscuro: tinta + ciruela */
[data-tema="oscura"] {
  color-scheme: dark;
  --fondo: var(--tinta);
  --texto: var(--hueso);
  --texto-suave: rgb(242 237 228 / .72);
  --texto-antes: rgb(242 237 228 / .55);
  --filete: rgb(242 237 228 / .14);
  --cifra: var(--oro);
  --foco: var(--oro);
  --cabecera: rgb(18 10 16 / .95);
  --borde-bloque: rgb(242 237 228 / .08);
}
/* Tema claro: niebla + ciruela */
[data-tema="clara"] {
  color-scheme: light;
  --fondo: var(--niebla);
  --texto: var(--ciruela);
  --texto-suave: rgb(42 16 36 / .76);
  --texto-antes: rgb(42 16 36 / .5);
  --filete: rgb(42 16 36 / .16);
  --cifra: var(--vino);
  --foco: var(--vino);
  --cabecera: rgb(238 231 235 / .95);
  --borde-bloque: transparent;
}
/* Superficie ciruela: igual en los dos temas (gráfico, servicios, cierre) */
.sup {
  background: var(--ciruela);
  color: var(--hueso);
  --texto: var(--hueso);
  --texto-suave: rgb(242 237 228 / .74);
  --texto-antes: rgb(242 237 228 / .55);
  --filete: rgb(242 237 228 / .16);
  --cifra: var(--oro);
  --foco: var(--oro);
  border: 1px solid var(--borde-bloque);
  border-radius: var(--radio);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (max-width: 959px) { html { scroll-padding-bottom: 88px; } }
@media (hover: hover) and (pointer: fine) { html { scroll-behavior: smooth; } }
body { background: var(--fondo); color: var(--texto); font-family: var(--font-texto); font-size: var(--t-texto); line-height: 1.6; font-weight: 400; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--foco); outline-offset: 3px; }
::selection { background: var(--oro); color: var(--tinta); }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 16px; top: -64px; z-index: 60; background: var(--oro); color: var(--tinta); padding: 10px 16px; border-radius: var(--radio); font-weight: 500; text-decoration: none; }
.saltar:focus { top: 12px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--texto); text-wrap: balance; }
h1 { font-size: var(--t-display); line-height: 1.02; letter-spacing: -0.015em; }
h2 { font-size: var(--t-h2); line-height: 1.06; letter-spacing: -0.01em; }
h3 { font-size: var(--t-h3); line-height: 1.15; }
p, li { text-wrap: pretty; }
.suave { color: var(--texto-suave); }
.tab { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: var(--contenedor); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 700px) { .wrap { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 1100px) { .wrap { padding-left: 48px; padding-right: 48px; } }

/* Aire entre secciones (guía §5): la suma de los dos rellenos da 96, 128 y 160 px */
.seccion { padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 700px) { .seccion { padding-top: 64px; padding-bottom: 64px; } }
@media (min-width: 1100px) { .seccion { padding-top: 80px; padding-bottom: 80px; } }

/* Cabeza de sección: título arriba, bajada debajo, todo a la izquierda */
.cabeza { max-width: 820px; margin-bottom: 40px; }
@media (min-width: 900px) { .cabeza { margin-bottom: 56px; } }
.cabeza p { margin-top: 20px; font-size: var(--t-lead); line-height: 1.5; color: var(--texto-suave); max-width: 52ch; }

/* Logo real: con sus colores sobre oscuro; en la versión clara, de un solo color (ciruela) para que se vea */
.logo-img { display: block; width: 40px; height: 40px; flex: none; background: url("logo-96.webp") center / contain no-repeat; }
[data-tema="clara"] .logo-img { background: var(--ciruela); -webkit-mask: url("logo-96.webp") center / contain no-repeat; mask: url("logo-96.webp") center / contain no-repeat; }

/* Botones y enlaces */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 26px; border-radius: var(--radio-pill); font-family: var(--font-texto); font-size: 1rem; font-weight: 500; line-height: 1.2; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 240ms ease, border-color 240ms ease, color 240ms ease; }
.btn:active { transform: scale(0.97); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-oro { background: var(--oro); color: var(--tinta); border-color: var(--oro); }
[data-tema="clara"] .btn-oro { border-color: #B8952A; }
.btn-fantasma { background: transparent; color: var(--texto); border-color: var(--filete); }
@media (hover: hover) and (pointer: fine) {
  .btn-oro:hover { background: var(--oro-claro); }
  .btn-fantasma:hover { border-color: var(--texto); }
}
.enlace { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--texto); font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1px no-repeat; transition: background-size 240ms var(--ease-out); }
.enlace svg { width: 20px; height: 20px; transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .enlace:hover { background-size: calc(100% - 28px) 1px; }
  .enlace.correo:hover { background-size: 100% 1px; }
  .enlace:hover svg { transform: translateX(3px); }
}

/* Cabecera */
.cab { position: sticky; top: 0; z-index: 40; transition: background-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
.cab.is-scrolled { background: var(--cabecera); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--filete); }
.cab .wrap { display: flex; align-items: center; gap: 12px; min-height: 72px; }
.marca { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; color: var(--texto); text-decoration: none; font-weight: 500; letter-spacing: 0.02em; font-size: 0.9375rem; white-space: nowrap; }
.marca-txt { display: none; }
@media (min-width: 380px) { .marca-txt { display: inline; } }
@media (max-width: 419px) {
  .cab .wrap { gap: 8px; }
  .marca { gap: 8px; font-size: 0.875rem; letter-spacing: 0.01em; }
  .cab .btn { padding: 8px 12px; gap: 8px; }
}
.nav { display: none; }
.nav ul { display: flex; gap: 32px; list-style: none; }
.nav a { color: var(--texto); text-decoration: none; font-size: 0.9375rem; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 240ms var(--ease-out); padding: 6px 0; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { background-size: 100% 1px; } }
.cab .btn { min-height: 44px; padding: 8px 18px; font-size: 0.9375rem; }
.cab .btn svg { width: 20px; height: 20px; }
@media (min-width: 960px) {
  .cab .wrap { gap: 40px; }
  .nav { display: block; }
}

/* Menú plegable del celular (funciona sin JS) */
.menu { position: static; }
.menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radio-pill); border: 1px solid var(--filete); cursor: pointer; color: var(--texto); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; }
.menu summary .cerrar { display: none; }
.menu[open] summary .abrir { display: none; }
.menu[open] summary .cerrar { display: block; }
.menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--fondo); border-bottom: 1px solid var(--filete); box-shadow: 0 1px 0 var(--filete); }
.menu ul { list-style: none; max-width: var(--contenedor); margin: 0 auto; padding: 8px 16px 24px; }
.menu li a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--filete); font-family: var(--font-display); font-size: 1.5rem; color: var(--texto); text-decoration: none; }
.menu li a svg { width: 20px; height: 20px; color: var(--texto-suave); }
@media (min-width: 960px) { .menu { display: none; } }

/* Portada */
.hero { padding-top: 24px; padding-bottom: 48px; }
@media (min-width: 700px) { .hero { padding-top: 40px; padding-bottom: 64px; } }
.hero .wrap { display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .hero { min-height: calc(100svh - 72px); display: grid; align-content: center; padding-top: 40px; padding-bottom: 72px; }
  .hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
}
.hero h1 { font-size: clamp(2.75rem, 1.6rem + 3vw, 4rem); }
.hero h1 .h1-b { display: block; color: var(--cifra); }
.hero .lead { margin-top: 20px; font-size: var(--t-lead); line-height: 1.5; color: var(--texto-suave); max-width: 38ch; }
.hero .acciones { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 28px; }
@media (min-width: 700px) { .hero .lead { margin-top: 28px; } .hero .acciones { margin-top: 36px; } }
.hero .cta-principal { display: flex; flex-direction: column; gap: 12px; }
.hero .nota { font-size: var(--t-chico); color: var(--texto-suave); }
.hero .acciones .enlace { min-height: 52px; }
@media (max-width: 559px) {
  .hero .cta-principal, .hero .acciones .btn { width: 100%; }
  .hero .nota { text-align: center; }
  .hero .acciones .enlace { min-height: 44px; }
}

/* Gráfico de ventas por mes (momento firma) */
.grafico { padding: 20px 18px 18px; }
@media (min-width: 700px) { .grafico { padding: 32px 32px 24px; } }
.grafico__tit { font-size: var(--t-chico); line-height: 1.45; color: var(--texto); max-width: 40ch; }
.grafico__area { position: relative; height: 208px; margin-top: 32px; }
@media (min-width: 700px) { .grafico__area { height: 288px; margin-top: 44px; } }
.g-lineas { position: absolute; inset: 0 0 0 36px; }
.g-linea { position: absolute; left: 0; right: 0; bottom: calc(var(--v) / 320 * 100%); border-top: 1px solid var(--filete); }
.g-linea.base { border-top-color: rgb(242 237 228 / .34); }
.g-linea span { position: absolute; right: calc(100% + 8px); top: -0.75em; font-size: 12px; line-height: 1.5; color: var(--texto-suave); font-variant-numeric: tabular-nums; }
.g-barras { position: absolute; inset: 0 0 0 36px; display: grid; grid-template-columns: repeat(var(--meses), minmax(0, 1fr)); gap: 6px; list-style: none; }
@media (min-width: 700px) { .g-barras { gap: 10px; } }
.g-barras li { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.g-barras .b { width: 100%; max-width: 30px; height: calc(var(--v) / 320 * 100%); background: rgb(242 237 228 / .38); border-radius: 2px 2px 0 0; transform-origin: 50% 100%; }
.g-barras .on .b { background: var(--oro); }
.g-barras .n, .g-barras .marca-mes { position: absolute; left: 50%; translate: -50% 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.g-barras .n { bottom: calc(var(--v) / 320 * 100% + 8px); padding: 0 4px; background: var(--ciruela); font-family: var(--font-display); font-size: 1.25rem; line-height: 1; color: var(--texto); } /* el fondo corta la línea de la grilla detrás del número */
.g-barras .on .n { color: var(--oro); font-size: 1.5rem; }
@media (min-width: 700px) { .g-barras .on .n { font-size: 1.75rem; } }
.g-barras .marca-mes { bottom: calc(var(--v) / 320 * 100% + 40px); font-size: 13px; font-weight: 500; line-height: 1.3; letter-spacing: 0.02em; color: var(--texto); }
@media (min-width: 700px) { .g-barras .marca-mes { bottom: calc(var(--v) / 320 * 100% + 46px); } }
.g-meses { display: grid; grid-template-columns: repeat(var(--meses), minmax(0, 1fr)); gap: 6px; margin: 10px 0 0 36px; list-style: none; font-size: 12px; line-height: 1.5; color: var(--texto-suave); text-align: center; font-variant-numeric: tabular-nums; }
@media (min-width: 700px) { .g-meses { gap: 10px; } }
.g-eje-y { position: absolute; left: 0; bottom: calc(300 / 320 * 100% + 10px); font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--texto-suave); }
.g-eje-x { margin: 4px 0 0 36px; font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--texto-suave); text-align: center; }

html.js .grafico .b { transform: scaleY(0); transition: transform 900ms var(--ease-expo); transition-delay: calc(150ms + var(--i) * var(--stagger)); }
html.js .grafico.is-in .b { transform: scaleY(1); }
html.js .grafico .n, html.js .grafico .marca-mes { opacity: 0; transform: translateY(8px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); transition-delay: calc(560ms + var(--i) * var(--stagger)); }
html.js .grafico.is-in .n, html.js .grafico.is-in .marca-mes { opacity: 1; transform: none; }

/* Servicios: un solo panel ciruela con tres columnas (sin cajas a medio llenar) */
.servicios .grilla { display: grid; list-style: none; padding: 0 24px; }
@media (min-width: 700px) { .servicios .grilla { padding: 0 36px; } }
.servicio { padding: 32px 0 36px; display: flex; flex-direction: column; }
.servicio + .servicio { border-top: 1px solid var(--filete); }
.servicio h3 { font-size: clamp(1.75rem, 1.45rem + 0.9vw, 2.25rem); line-height: 1.1; }
.servicio > p { margin-top: 16px; color: var(--texto-suave); }
.servicio .lista { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--filete); }
@media (min-width: 960px) {
  .servicios .grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; }
  .servicio { padding: 44px 36px 48px; }
  .servicio + .servicio { border-top: 0; border-left: 1px solid var(--filete); }
  @supports (grid-template-rows: subgrid) {
    .servicio { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  }
}
.lista { list-style: none; display: grid; gap: 12px; align-content: start; }
.lista li { position: relative; padding-left: 26px; }
.lista li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 14px; height: 1px; background: var(--oro); }

/* El caso */
.caso .cabeza { max-width: 900px; }
.caso .cabeza p { max-width: 56ch; }
.tabla { margin-top: 8px; border-top: 1px solid var(--filete); position: relative; }
.tabla .fila { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; padding: 18px 0; border-bottom: 1px solid var(--filete); align-items: baseline; }
.tabla .rot { grid-column: 1 / -1; font-size: var(--t-chico); line-height: 1.45; color: var(--texto-suave); }
.tabla .encabezado .rot { position: absolute; }
.tabla .encabezado .c { font-size: var(--t-chico); font-weight: 500; color: var(--texto-suave); }
.tabla .v { font-family: var(--font-display); font-size: clamp(1.625rem, 1.1rem + 1.9vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--texto-antes); }
.tabla .v.dest { color: var(--cifra); }
@media (min-width: 800px) {
  .tabla .fila { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); padding: 26px 0; align-items: center; }
  .tabla .rot { grid-column: auto; font-size: var(--t-texto); color: var(--texto); max-width: 26ch; }
  .tabla .encabezado .rot { position: static; }
}
.caso .conv { margin-top: 36px; font-size: var(--t-lead); line-height: 1.5; max-width: 54ch; }
.caso .conv .tab { color: var(--cifra); font-weight: 600; }

/* Cómo trabajamos */
.pasos { display: grid; gap: 40px; list-style: none; }
@media (min-width: 960px) { .pasos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.paso { border-top: 1px solid var(--filete); padding-top: 24px; }
.paso .num { display: block; font-family: var(--font-display); font-size: clamp(3rem, 2.4rem + 1.8vw, 4.25rem); line-height: 1; color: var(--cifra); font-variant-numeric: tabular-nums; }
.paso h3 { margin-top: 24px; }
.paso p { margin-top: 12px; color: var(--texto-suave); max-width: 42ch; }
.pasos-cta { margin-top: 56px; }
@media (max-width: 559px) { .pasos-cta .btn { width: 100%; } }

/* Quiénes somos */
.equipo { display: grid; gap: 28px; list-style: none; }
.persona { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; align-items: start; align-content: start; }
.persona .foto { aspect-ratio: 4 / 5; border-radius: var(--radio); overflow: hidden; background: var(--ciruela); display: grid; place-items: center; }
.persona .foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.persona .foto .logo-trazo { width: 82%; height: auto; }
.persona h3 { font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.875rem); }
.persona p { margin-top: 8px; color: var(--texto-suave); max-width: 38ch; }
@media (min-width: 700px) {
  .equipo { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .persona { grid-template-columns: 1fr; gap: 0; }
  .persona h3 { margin-top: 22px; }
}

/* Logo que se dibuja por su trazo: máscara SVG sobre el PNG real (sin redibujar la marca).
   La demora va dentro del shorthand con --d: si se declara aparte, el shorthand la pisa. */
.logo-trazo .trazo { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.logo-trazo .relleno { fill: #fff; }
html.js .logo-trazo .trazo { stroke-dashoffset: 1; }
html.js .logo-trazo .relleno { opacity: 0; }
html.js .logo-trazo.is-in .trazo { animation: trazo 800ms var(--ease-in-out) var(--d, 0ms) forwards; }
html.js .logo-trazo.is-in .relleno { animation: aparecer 600ms ease var(--d, 0ms) forwards; }
@keyframes trazo { to { stroke-dashoffset: 0; } }
@keyframes aparecer { to { opacity: 1; } }
.logo-trazo .d1 { --d: 0ms; } .logo-trazo .d2 { --d: 250ms; } .logo-trazo .d3 { --d: 450ms; }
.logo-trazo .d4 { --d: 650ms; } .logo-trazo .d5 { --d: 850ms; } .logo-trazo .d6 { --d: 950ms; } .logo-trazo .d7 { --d: 1100ms; }

/* Preguntas frecuentes */
.faq { max-width: 880px; }
details.pregunta { border-top: 1px solid var(--filete); }
details.pregunta:last-of-type { border-bottom: 1px solid var(--filete); }
.pregunta summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 64px; padding: 16px 4px 16px 0; font-weight: 500; font-size: 1.125rem; line-height: 1.4; }
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::after { content: ""; width: 20px; height: 20px; flex: none; background: currentColor; transition: transform 220ms var(--ease-out);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z'/%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 256 256'%3E%3Cpath d='M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.pregunta[open] summary::after { transform: rotate(45deg); }
.pregunta p { padding: 0 0 22px; color: var(--texto-suave); max-width: 62ch; }

/* Cierre: banda ciruela a todo el ancho */
.cierre.sup { border: 0; border-radius: 0; }
.cierre { padding-top: 72px; padding-bottom: 72px; }
@media (min-width: 700px) { .cierre { padding-top: 112px; padding-bottom: 112px; } }
@media (min-width: 1100px) { .cierre { padding-top: 144px; padding-bottom: 144px; } }
.cierre h2 { font-size: clamp(2.75rem, 1.3rem + 4.8vw, 6rem); line-height: 1; letter-spacing: -0.015em; max-width: 16ch; }
.cierre .lead { margin-top: 24px; font-size: var(--t-lead); line-height: 1.5; color: var(--texto-suave); max-width: 40ch; }
.cierre .acciones { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.cierre .correo { color: var(--texto); }
@media (max-width: 559px) { .cierre .acciones .btn { width: 100%; } }

/* Pie */
.pie-sitio { padding: 40px 0 120px; border-top: 1px solid var(--filete); font-size: var(--t-chico); color: var(--texto-suave); }
html.js .pie-sitio { padding-bottom: 48px; }
.pie-sitio .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.pie-sitio .marca-pie { display: inline-flex; align-items: center; gap: 12px; color: var(--texto); margin-right: auto; }
.pie-sitio .marca-pie .logo-img { width: 32px; height: 32px; }
.pie-sitio a { color: var(--texto); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.pie-sitio a svg { width: 18px; height: 18px; }
@media (max-width: 699px) {
  .pie-sitio .wrap { flex-direction: column; align-items: flex-start; gap: 4px; }
  .pie-sitio .marca-pie { margin-bottom: 12px; }
  .pie-sitio .copy { margin-top: 8px; }
}

/* Botón fijo del celular: aparece fuera de la portada y se esconde cuando hay otro botón a la vista */
.cta-fijo { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--cabecera); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--filete); }
.cta-fijo .btn { width: 100%; }
html.js .cta-fijo { transform: translateY(110%); transition: transform 320ms var(--ease-out); }
html.js .cta-fijo.is-visible { transform: none; }
@media (min-width: 960px) { .cta-fijo { display: none; } }

/* Entradas: la portada sin esperar al JS; el resto, una sola vez al entrar */
html.js .in { animation: entrar 760ms var(--ease-expo) both; }
html.js .in-1 { animation-delay: 80ms; } html.js .in-2 { animation-delay: 200ms; } html.js .in-3 { animation-delay: 320ms; } html.js .in-4 { animation-delay: 420ms; }
@keyframes entrar { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
html.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * var(--stagger)); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .in { animation: none; }
  html.js [data-reveal], html.js .grafico .b, html.js .grafico .n, html.js .grafico .marca-mes { opacity: 1 !important; transform: none !important; transition: none !important; }
  html.js .logo-trazo .trazo, html.js .logo-trazo .relleno { animation: none !important; stroke-dashoffset: 0; opacity: 1; }
  .btn, .enlace, .enlace svg, .pregunta summary::after, .cta-fijo { transition: none !important; }
}

/* Alto contraste de Windows: las barras, las marcas de lista y el + siguen viéndose */
@media (forced-colors: active) {
  .g-barras .b { forced-color-adjust: none; background: GrayText; }
  .g-barras .on .b { background: Highlight; }
  .lista li::before, .pregunta summary::after { forced-color-adjust: none; background: CanvasText; }
  .logo-img { forced-color-adjust: none; }
}
