/* =============================================================================
 * salvatusumario.cl — hoja de estilo unica
 *
 * CSS propio, servido desde el mismo origen, sin CDN ni tipografias remotas —
 * mismo estandar de portafolio que salvatudominio.cl. Cuando el sitio pase a
 * produccion, la CSP debe declarar default-src 'self' igual que alla.
 *
 * -----------------------------------------------------------------------------
 * LA PALETA — alternativa A de BOCETOS-LANDING.md ("el reloj de descargos"),
 * elegida por el titular el 2026-09-09. Metafora: el plazo mismo, no un
 * objeto de rescate (el salvavidas de salvatudominio no traslada aqui).
 *
 *   --ink      azul grafito oscuro. Fondos oscuros, marca, texto principal.
 *   --accent   verde institucional apagado. Accion, "procedimiento", enlaces.
 *   --deadline naranja quemado. RESERVADO para plazos y advertencias legales.
 *              Mas presente que el amarillo de salvatudominio: aqui el plazo
 *              es el eje del sitio, no un detalle (RUTA-SALVATUSUMARIO §3.3).
 *   --success  verde salvia. Confirmaciones, deliberadamente distinto del
 *              acento para que "hecho" y "accion disponible" no se confundan.
 *   --paper    fondo claro, papel calido — no blanco clinico.
 *
 * Regla del proyecto: AA en todo el texto. Medir contraste antes de sumar
 * un color nuevo.
 * ========================================================================== */

:root {
  --ink: #132A3D;
  --ink-2: #3c5468;
  --paper: #fbf9f5;
  --paper-2: #ffffff;
  --mist: #eaf0ee;
  --accent: #2F6B5E;
  --accent-dark: #23524a;
  --accent-light: #6fb3a2;
  --deadline: #C1571C;
  --deadline-bg: #fdece0;
  --success: #5c8a63;
  --success-bg: #e6efe3;
  --danger: #a13a31;
  --line: #dde3e0;
  --shadow: 0 22px 70px rgba(19, 42, 61, .14);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
img, svg { max-width: 100%; }
p, li, dd, blockquote, figcaption, small { text-align: left; }
.center, .center p, .center li { text-align: center; }
.container { width: min(1160px, calc(100% - 40px)); margin: auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 14px; top: 14px; z-index: 20; background: white; padding: 10px 14px; border-radius: 10px; }

/* Transparencia basica: quien presta el servicio y que no es un canal oficial
   de la Contraloria. Sin el mismo peso visual que el aviso de independencia
   de salvatudominio frente a NIC — decision del despacho (BITACORA
   2026-09-09, "el titular resolvio las 4 decisiones de negocio"): aqui basta
   con que la frase exista y sea legible, no que domine la cabecera. */
.notice { margin: 0; background: var(--paper-2); color: var(--ink-2); text-align: center; padding: 7px 20px; font-size: .74rem; border-bottom: 1px solid var(--line); }

/* --- cabecera -------------------------------------------------------------- */

.site-header { position: sticky; top: 0; z-index: 5; background: rgba(251, 249, 245, .92); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(19, 42, 61, .08); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 900; letter-spacing: -.03em; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px; overflow: hidden; }
.brand em { font-style: normal; color: var(--accent-dark); }
nav { display: flex; align-items: center; gap: 18px; font-size: .86rem; font-weight: 780; flex-wrap: wrap; }
nav a { text-decoration: none; }
nav a[aria-current="page"]:not(.button) { color: var(--ink); background: var(--mist); padding: 8px 14px; margin: -8px -14px; border-radius: 10px; font-weight: 900; }
nav .button-secondary { border-color: var(--accent); color: var(--accent-dark); }
nav .button-secondary:hover { border-color: var(--accent-dark); background: var(--mist); }

/* --- botones ----------------------------------------------------------------- */

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 14px; text-decoration: none; font: inherit; font-weight: 850; border: 2px solid transparent; cursor: pointer; transition: .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent-dark); color: white; box-shadow: 0 10px 26px rgba(35, 82, 74, .3); }
.button-primary:hover { background: #1c433c; }
.button-secondary { border-color: rgba(19, 42, 61, .2); background: rgba(255, 255, 255, .6); }
.button-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.32); color: white; box-shadow: none; }
.button-ghost:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.55); }

/* --- portada: hero ------------------------------------------------------------ */

.hero { padding: 54px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--accent-dark); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; }
.eyebrow::before { content: ""; width: 28px; height: 4px; border-radius: 4px; background: var(--deadline); }
h1 { font-size: clamp(2.5rem, 4.6vw, 4.3rem); line-height: 1.02; letter-spacing: -.045em; margin: 18px 0 20px; max-width: 720px; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 16px; }
h3 { line-height: 1.25; }

/* El deadline-badge va ANTES del cuerpo del hero, no despues, y ya no
   necesita competir por espacio con un precio: el CTA principal es gratis
   (MODELO-COMERCIAL-Y-DATOS.md, "el primer escrito, siempre"). */
.deadline-badge-inline {
  display: inline-flex; align-items: flex-start; gap: 10px; margin: 0 0 22px;
  padding: 14px 16px; border-radius: 16px; background: var(--deadline-bg);
  border: 1px solid rgba(193, 87, 28, .35); color: var(--ink);
}
.deadline-badge-inline .tag {
  flex: none; background: var(--deadline); color: white; border-radius: 999px;
  padding: 4px 10px; font-size: .68rem; font-weight: 900; letter-spacing: .08em;
  text-transform: uppercase; margin-top: 2px;
}
.deadline-badge-inline p { margin: 0; font-size: .92rem; color: var(--ink); font-weight: 650; }

.hero-copy { font-size: 1.14rem; color: var(--ink-2); max-width: 620px; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 24px; color: var(--ink-2); font-size: .82rem; font-weight: 700; }
.trust span::before { content: "✓"; color: var(--success); margin-right: 6px; }

.hero-product {
  position: relative; padding: 34px; border-radius: 28px; color: white;
  background: linear-gradient(150deg, #132A3D 0%, #0e2130 100%);
  box-shadow: 0 26px 70px rgba(19,42,61,.24); overflow: hidden;
}
.hero-product::after { content: ""; position: absolute; width: 200px; height: 200px; right: -70px; top: -80px; border-radius: 50%; background: var(--accent); opacity: .22; }
.product-kicker { color: var(--accent-light); font-size: .75rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.hero-product h2 { position: relative; margin: 10px 0 12px; color: white; font-size: clamp(1.6rem, 3vw, 2.1rem); z-index: 1; }
.product-promise { color: #dfe6e3; font-size: 1.03rem; margin: 0 0 16px; }
.product-list { padding-left: 20px; color: #dfe6e3; margin: 0 0 22px; }
.product-list li { margin: 8px 0; }
.hero-product .button { width: 100%; }
.hero-product .button + .button { margin-top: 12px; }
.lawyer-secondary { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); color: #c7d2cd; font-size: .84rem; flex-wrap: wrap; }
.lawyer-secondary a.chip-link { color: var(--accent-light); font-weight: 800; font-size: .82rem; text-decoration: none; padding: 7px 14px; border: 1.5px solid rgba(111,179,162,.45); border-radius: 10px; white-space: nowrap; }
.lawyer-secondary a.chip-link:hover { background: rgba(111,179,162,.14); border-color: rgba(111,179,162,.8); }

/* --- banda de plazos: el naranja es exclusivamente esto ---------------------- */

.deadline { padding: 16px 0; background: var(--deadline); color: white; }
.deadline-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; text-align: center; font-weight: 780; }
.deadline-pill { flex: none; background: var(--ink); color: white; border-radius: 999px; padding: 5px 11px; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }

/* --- secciones generales ------------------------------------------------------ */

section { padding: 74px 0; }
.section-lead { font-size: 1.06rem; color: var(--ink-2); max-width: 640px; margin: 0 auto 40px; }
.plain-section { background: var(--paper-2); }

/* --- portada: el recorrido en tres pasos (teaser, enlaza a /salvate-solo/) --- */

.process { background: var(--paper-2); }
.route { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
  padding: 66px 26px 26px; box-shadow: 0 14px 40px rgba(19,42,61,.07); overflow: hidden;
}
.step::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--accent); }
.step:nth-child(2)::before { background: var(--deadline); }
.step:nth-child(3)::before { background: var(--ink); }
.step-dot {
  position: absolute; left: 26px; top: 20px; width: 42px; height: 42px; border-radius: 13px;
  background: var(--ink); color: white; display: grid; place-items: center; font-weight: 950;
}
.step:nth-child(2) .step-dot { background: var(--deadline); }
.step:nth-child(3) .step-dot { background: var(--accent); }
.step h3 { margin: 4px 0 8px; font-size: 1.2rem; }
.step p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.step-link { color: var(--ink); text-decoration: none; display: block; transition: transform .2s ease, box-shadow .2s ease; }
.step-link:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(19,42,61,.13); }
.step-action { display: inline-block; margin-top: 14px; color: var(--accent-dark); font-weight: 900; font-size: .9rem; }

/* --- el reloj de tres pasos: registro / examen / abogado --------------------- */

.embudo { background: var(--paper-2); }
.niveles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.nivel {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
  padding: 30px 26px; display: flex; flex-direction: column; box-shadow: 0 14px 40px rgba(19,42,61,.07);
}
.nivel::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; border-radius: 22px 22px 0 0; background: var(--accent); }
.nivel-2::before { background: var(--deadline); }
.nivel-3::before { background: var(--ink); }
.nivel-precio { font-size: 1.9rem; font-weight: 950; margin: 4px 0 2px; }
.nivel-precio.gratis { color: var(--accent-dark); }
.nivel-ventana { display: block; font-size: .78rem; color: var(--ink-2); font-weight: 700; margin-bottom: 14px; }
.nivel h3 { margin: 6px 0 6px; font-size: 1.2rem; }
.nivel p { margin: 0 0 18px; color: var(--ink-2); font-size: .93rem; flex: 1; }
.nivel .button { margin-top: auto; align-self: flex-start; }
.nivel-nota { margin-top: 14px; font-size: .78rem; color: var(--ink-2); }

/* --- el aviso de extemporaneidad ----------------------------------------------
 * Naranja de plazos, no rojo de error: no es una falla del sitio, es
 * informacion sobre la situacion legal del cliente. No promete revertir un
 * plazo vencido (BOCETOS-LANDING.md §3-ter). */
.aviso-extemporaneo {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: flex-start;
  background: var(--deadline-bg); border: 1px solid rgba(193,87,28,.35);
  border-radius: var(--radius); padding: 26px 28px;
}
.aviso-extemporaneo .icono {
  flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--deadline);
  color: white; display: grid; place-items: center; font-size: 1.3rem; font-weight: 950;
}
.aviso-extemporaneo h3 { margin: 0 0 8px; }
.aviso-extemporaneo p { margin: 0 0 10px; color: var(--ink); }
.aviso-extemporaneo p:last-child { margin-bottom: 0; }

/* --- preguntas ----------------------------------------------------------------- */

.faq { background: var(--paper-2); }
.faq-list { max-width: 800px; margin: auto; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; font-weight: 850; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 6px; border-radius: 12px; transition: background-color .15s ease;
}
summary::-webkit-details-marker { display: none; }
summary:hover { background: var(--mist); }
summary::after {
  content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--mist); color: var(--accent-dark); font-size: 1.05rem; font-weight: 900;
  display: grid; place-items: center;
}
details[open] summary::after { content: "–"; background: var(--accent-dark); color: white; }
details p { color: var(--ink-2); margin: 0; max-width: 720px; padding: 0 6px 20px; }

/* --- pie ------------------------------------------------------------------------ */

footer { background: var(--ink); color: #dfe6e3; padding: 44px 0 26px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: white; font-weight: 900; }
.footer-brand small { display: block; color: #a9b7b0; font-size: .68rem; font-weight: 700; }
.footer-aviso-fuerte { margin: 0; font-size: .86rem; }
.footer-aviso-fuerte a { color: var(--accent-light); font-weight: 800; text-decoration: none; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.14); margin: 22px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: #a9b7b0; }
.footer-links a { color: #dfe6e3; text-decoration: none; margin-left: 18px; }
.footer-links a:first-child { margin-left: 0; }

/* --- textos largos: términos, privacidad, artículos del blog --------------- */

.prosa { max-width: 72ch; }
.narrow .prosa { max-width: none; }
.prosa h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 2.2rem 0 .8rem; letter-spacing: -.03em; }
.prosa h3 { font-size: 1.1rem; margin: 1.6rem 0 .5rem; }
.prosa p, .prosa li { color: var(--ink-2); }
.prosa p { margin: 0 0 1rem; }
.prosa ul, .prosa ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.prosa li { margin-bottom: .5rem; }
.prosa strong { color: var(--ink); }

/* --- portada del blog: tarjetas de artículo --------------------------------- */

.deliverables { padding: 70px 0; }
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 34px; }
.narrow .doc-grid { grid-template-columns: 1fr; }
.doc { background: var(--paper-2); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: 0 14px 40px rgba(19,42,61,.07); }
.doc h3 { margin: 6px 0 8px; font-size: 1.15rem; }
.doc h3 a { text-decoration: none; color: var(--ink); }
.doc p { margin: 0 0 16px; color: var(--ink-2); font-size: .93rem; }

/* --- artículo individual del blog ------------------------------------------- */

.example-hero { padding: 60px 0; }
.example-hero h1 { margin: 10px 0 22px; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .evidence-grid { grid-template-columns: 1fr; }
  .niveles { grid-template-columns: 1fr; }
  .aviso-extemporaneo { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
}
