/* Estilos comunes de las páginas internas de zan.cl (desarrollo, alerta, fit). */
:root {
--fondo: #ffffff;
--borde: #e4e4e7;
--texto: #0a0a0a;
--suave: #71717a;
--zanfit: #65a30d;
--alerta: #dc2626;
--escena: #c2410c;
color-scheme: light;
}
* { box-sizing: border-box; margin: 0; }
body {
background: var(--fondo);
color: var(--texto);
font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
-webkit-font-smoothing: antialiased;
-webkit-tap-highlight-color: transparent;
}
/* Grano suave, igual que la portada */
body::after {
content: ""; position: fixed; inset: 0; z-index: 10; pointer-events: none;
opacity: .045;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");
}
main {
max-width: 1040px; margin: 0 auto;
padding: calc(20px + env(safe-area-inset-top)) 20px calc(40px + env(safe-area-inset-bottom));
}
a { color: inherit; }

.volver {
display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
font-size: 14px; font-weight: 500; color: var(--suave); text-decoration: none;
}
.volver svg { width: 18px; height: 18px; }
.volver:hover { color: var(--texto); }

.cabecera { margin-top: 24px; }
.cabecera img { width: 64px; height: 64px; border-radius: 15px; display: block; }
.antetitulo { margin-top: 20px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--suave); }
h1 {
margin-top: 8px; max-width: 720px;
font: 800 34px/1.05 "Bricolage Grotesque", system-ui, sans-serif;
letter-spacing: -0.02em;
}
.bajada { margin-top: 14px; max-width: 620px; font-size: 17px; color: var(--suave); }

.seccion { margin-top: 56px; }
.seccion > h2 {
font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
color: var(--suave); margin-bottom: 12px;
}

/* Para quién */
.publicos { list-style: none; padding: 0; display: grid; gap: 12px; }
.publicos li { padding: 20px; border: 1px solid var(--borde); border-radius: 18px; }
.publicos .cabeza { display: flex; align-items: center; gap: 10px; }
.publicos svg { width: 26px; height: 26px; flex: none; }
.publicos h3 { font: 700 19px/1.2 "Bricolage Grotesque", system-ui, sans-serif; }
.publicos p { margin-top: 8px; font-size: 15px; color: var(--suave); }

/* Qué hacemos */
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
padding: 9px 14px; border-radius: 999px; border: 1px solid var(--borde);
font-size: 14px; font-weight: 500;
}

/* Cómo trabajamos */
.pasos { list-style: none; padding: 0; display: grid; gap: 0; counter-reset: paso; }
.pasos li {
display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-content: start;
padding: 16px 0; border-top: 1px solid var(--borde);
}
.pasos li:last-child { border-bottom: 1px solid var(--borde); }
.pasos li::before {
counter-increment: paso; content: counter(paso, decimal-leading-zero);
font: 800 20px/1.3 "Bricolage Grotesque", system-ui, sans-serif; color: var(--suave);
}
.pasos h3 { font-size: 16px; font-weight: 600; }
.pasos p { margin-top: 2px; font-size: 15px; color: var(--suave); }

/* Nuestro trabajo */
.trabajos { list-style: none; padding: 0; display: grid; gap: 10px; }
.trabajos a {
display: flex; align-items: center; gap: 14px; padding: 12px 0;
text-decoration: none; min-height: 44px;
}
.trabajos img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.trabajos .nombre { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; }
.trabajos .desc { font-size: 14px; color: var(--suave); }

/* Llamado final */
.cta {
margin-top: 56px; padding: 28px 22px; border-radius: 22px;
background: var(--texto); color: #fff; text-align: center;
}
.cta h2 { font: 800 26px/1.1 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -0.01em; }
.cta p { margin-top: 8px; color: #a1a1aa; font-size: 15px; }
.cta .botones { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.boton {
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
min-height: 50px; width: 100%; max-width: 320px; padding: 0 20px;
border-radius: 14px; font-size: 16px; font-weight: 700; text-decoration: none;
transition: transform .15s cubic-bezier(.2,.8,.2,1);
}
.boton:active { transform: scale(.98); }
.boton svg { width: 20px; height: 20px; }
.boton.principal { background: #fff; color: var(--texto); }
.boton.secundario { border: 1px solid #3f3f46; color: #fff; font-weight: 500; }

footer { margin-top: 32px; text-align: center; font-size: 13px; color: var(--suave); }

@media (min-width: 760px) {
main { padding-top: 32px; }
h1 { font-size: 52px; }
.bajada { font-size: 19px; }
.publicos { grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pasos { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pasos li, .pasos li:last-child { grid-template-columns: 1fr; gap: 8px; border-bottom: 0; padding-top: 20px; }
.trabajos { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cta { padding: 44px; }
.cta h2 { font-size: 34px; }
.cta .botones { flex-direction: row; justify-content: center; }
.boton { width: auto; }
}
@media (min-width: 1040px) {
.publicos { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .boton { transition: none; } }

/* Planes con precio */
.planes { list-style: none; padding: 0; display: grid; gap: 12px; }
.planes li { padding: 22px; border: 1px solid var(--borde); border-radius: 18px; }
.planes li.destacado { border-color: var(--c, var(--texto)); }
.planes .nombre-plan { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--suave); }
.planes .precio { margin-top: 6px; font: 800 30px/1.1 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -0.01em; }
.planes .precio small { font: 500 15px/1 system-ui, sans-serif; color: var(--suave); letter-spacing: 0; }
.planes .detalle-plan { margin-top: 8px; font-size: 15px; color: var(--suave); }
.planes .detalle-plan b { color: var(--texto); font-weight: 600; }
.nota { margin-top: 10px; font-size: 13px; color: var(--suave); }

/* Funciones con ícono */
.funciones { list-style: none; padding: 0; display: grid; gap: 0; }
.funciones li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--borde); }
.funciones li:last-child { border-bottom: 1px solid var(--borde); }
.funciones svg { width: 24px; height: 24px; color: var(--c, var(--texto)); margin-top: 1px; }
.funciones h3 { font-size: 16px; font-weight: 600; }
.funciones p { margin-top: 2px; font-size: 15px; color: var(--suave); }

/* Capturas de pantalla */
.capturas { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.capturas img { width: 230px; height: auto; aspect-ratio: 780 / 1688; object-fit: cover; flex: none; border-radius: 22px; border: 1px solid var(--borde); scroll-snap-align: start; }

/* Preguntas frecuentes */
.faq details { border-top: 1px solid var(--borde); }
.faq details:last-child { border-bottom: 1px solid var(--borde); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; font-weight: 400; color: var(--suave); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 16px; color: var(--suave); font-size: 15px; }

.boton.oscuro { background: var(--texto); color: #fff; }
.boton.borde { border: 1px solid var(--borde); color: var(--texto); font-weight: 500; }
.acciones { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }

@media (min-width: 760px) {
  .planes { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .funciones { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .funciones li:nth-last-child(2) { border-bottom: 1px solid var(--borde); }
  .capturas { margin: 0; padding: 0; overflow: visible; }
  .capturas img { width: calc((100% - 28px) / 3); }
  .acciones { flex-direction: row; }
}
