/* Estilos de la landing de insolvencia.
   Este archivo vive fuera del HTML desde el 2026-10-14 (pendiente P24): el
   bloque <style> que estaba en index.html se extrajo aqui para que la politica
   de contenido pueda quedar con `style-src 'self'` y sin 'unsafe-inline'. */
:root {
    --primary: #1e3a5f;
    --primary-light: #2d5a8a;
    --secondary: #28a745;
    /* Verde de los botones de acción. NO es el --secondary de arriba: con
       texto blanco, ese daba 3.13:1 y fallaba el contraste AA de WCAG que
       pide 4.5:1. Este da 5.40:1 (medido el 2026-10-15). El botón de
       entrada de la landing es el texto más importante de la página, así que
       no puede fallar el contraste que mide Lighthouse. */
    --green-accion: #1e7a34;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --border: #dee2e6;
    --white: #ffffff;
    --danger: #dc3545;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
    --radius: 8px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f4f6f9;
    color: var(--dark);
    line-height: 1.6;
}
/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    text-align: center;
    padding: 4rem 1.5rem 3.5rem;
}
.hero h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.75rem; max-width: 720px; margin-left: auto; margin-right: auto; }
.hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-block;
    background: var(--green-accion);
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0.9rem 2.2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.3); }
/* Tablas de contenido (guías) */
table.tabla { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
table.tabla th, table.tabla td { border: 1px solid var(--border); padding: 0.6rem 0.8rem; text-align: left; }
table.tabla th { background: var(--primary); color: var(--white); font-weight: 600; }
table.tabla tr:nth-child(even) td { background: var(--light); }
section { margin-bottom: 3rem; }
h2 { font-size: 1.5rem; color: var(--primary); margin-bottom: 1rem; }
h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 0.4rem; }
.pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.paso {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.paso-num { display: inline-block; background: var(--primary); color: var(--white); font-weight: 700; border-radius: 50%; width: 2rem; height: 2rem; text-align: center; line-height: 2rem; margin-bottom: 0.75rem; }
ul { padding-left: 1.25rem; margin: 0.5rem 0; }
li { margin-bottom: 0.35rem; }
.aviso {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    color: #664d03;
    font-size: 0.95rem;
}
.footer {
    background: var(--dark);
    color: #cbd5e0;
    padding: 1.75rem 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}
.footer a { color: var(--white); }
@media (max-width: 560px) {
    .hero h1 { font-size: 1.55rem; }
}

/* Clases que reemplazaron los tres atributos style= inline del HTML el
   2026-10-14 (P24). Cada una conserva exactamente el espaciado que tenia
   inline; ninguna pisa a otra porque son elementos distintos. La tercera
   (.cta-titulo) salio el 2026-10-14 con la seccion "Da el primer paso". */
.nota-seccion { margin-top: 0.75rem; }
.aviso-pie { margin-top: 2rem; }

.checklist {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.checklist li {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    line-height: 1.5;
}

/* ============================================================
   Accesibilidad del portal (Tarea 2, 2026-10-17).

   Foco visible con teclado (WCAG 2.4.7). La pagina no dibujaba ningun
   contorno propio; el del navegador es fino y sobre el verde del boton
   principal casi no se distingue.
   Aqui se devuelve un anillo grueso, y solo cuando el navegador sabe que
   se navega con teclado (:focus-visible), para no ensuciar el uso con
   raton. Este bloque va al final del archivo a proposito: asi gana sobre
   los `outline: none` anteriores, que tienen igual o menor especificidad.

   Movimiento reducido (WCAG 2.3.3). Quien pida menos animacion en su
   sistema deja de ver los avisos deslizandose.
   ============================================================ */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ============================================================
   Sello de privacidad y ejemplo de documento (2026-11-02).

   Antes vivian como atributos style= dentro del HTML. La politica de
   contenido (style-src 'self') los bloqueaba, asi que el navegador los
   ignoraba. Ahora son clases y se aplican de verdad.
   ============================================================ */
.privacidad-sello {
    text-align: center;
    padding: 1rem;
    background: #e8f5e9;
    border-radius: 8px;
    margin: 1rem auto;
    max-width: 600px;
}
.privacidad-sello p {
    margin: 0;
    font-size: 0.9rem;
    color: #1e7a34;
    font-weight: 600;
}
.ejemplo-documento {
    max-width: 700px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}
.ejemplo-documento h2 {
    text-align: center;
    margin-bottom: 1rem;
}
.ejemplo-documento-caja {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 1rem;
    font-size: 0.85rem;
    line-height: 1.6;
    max-height: 300px;
    overflow: auto;
}
.ejemplo-documento-titulo {
    text-align: center;
    font-weight: 600;
    margin-bottom: 1rem;
}
.ejemplo-documento-seccion {
    margin-top: 1rem;
}
.ejemplo-documento-aviso {
    margin-top: 1rem;
    color: #8a6800;
    font-weight: 600;
}
.ejemplo-documento-pie {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #5f666d;
}

/* ============================================================
   Sección "¿Por qué no solo usar ChatGPT?" (2026-11-12).
   Comparación visual entre IA genérica y www.acuerdopago.com.
   ============================================================ */
.comparacion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.comparacion-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.comparacion-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}
.comparacion-chatgpt {
    border-left: 4px solid var(--danger);
}
.comparacion-acuerdo {
    border-left: 4px solid var(--secondary);
}
.comparacion-item .checklist li {
    font-size: 0.95rem;
    padding: 0.35rem 0;
}
/* Preguntas frecuentes */
.faq {
    display: grid;
    gap: 0.75rem;
}
.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.9rem 1.1rem;
    box-shadow: var(--shadow);
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
}
.faq-item p {
    margin-top: 0.7rem;
    color: var(--dark);
    line-height: 1.5;
}
