/* ==========================================================================
   Galaxy Lifeline — hoja de estilos
   Servida como archivo externo para cumplir la CSP (style-src 'self'),
   sin estilos inline ni dependencias de terceros.
   Mobile-first; se amplía en breakpoints mayores.
   ========================================================================== */

/* ---- Tokens de marca ---- */
:root {
    --blue:        #0C71C3; /* azul primario (fondos de sección) */
    --green:       #7CDA24; /* verde CTA (botones) */
    --btn-text:    #000000; /* texto de botón */
    --yellow:      #EDF000; /* amarillo destacado */
    --text:        #212121; /* color de texto base */
    --white:       #ffffff;
    --radius-btn:  14px;
    --maxw:        980px;
    /* Stack de fuentes del sistema: cero peticiones externas → CSP estricta. */
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
            Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

html, body {
    max-width: 100%;
    overflow-x: hidden; /* defensa: nunca permitir scroll horizontal en móvil */
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    overflow-wrap: break-word; /* parte palabras largas en pantallas estrechas */
}

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; }

p { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Header ---- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid #eee;
    padding: 14px 0;
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between; /* logo a la izquierda, menú a la derecha */
    gap: 16px;
    flex-wrap: wrap;
}
.site-logo { width: 160px; height: auto; }

/* ---- Navegación (header) ---- */
.site-nav { display: flex; align-items: center; }
.site-nav__link {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 4px;
    border-bottom: 2px solid transparent;
    transition: border-color .15s ease;
}
.site-nav__link:hover,
.site-nav__link:focus { border-bottom-color: var(--green); }
.site-nav__link:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---- Botones ---- */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05rem;
    transition: filter .15s ease;
}
.btn--cta {
    background: var(--green);
    color: var(--btn-text);
}
.btn--cta:hover,
.btn--cta:focus { filter: brightness(.92); }
.btn:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }

/* ---- Hero ---- */
.hero {
    position: relative;
    color: var(--white);
    /* Imagen responsive vía image-set; se sirve local (CSP img-src 'self'). */
    background: #0a3a63 url("/assets/img/hero-1024.jpg") center/cover no-repeat;
    padding: 90px 0;
    text-align: center;
}
@media (min-width: 1100px) {
    .hero { background-image: url("/assets/img/hero-1536.jpg"); }
}
.hero__overlay {
    position: absolute; inset: 0;
    background: rgba(8, 35, 58, .62); /* oscurece para contraste del texto */
}
.hero__content { position: relative; }
.hero__title {
    font-size: 2.4rem;
    margin-bottom: .2em;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hero__subtitle {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .5px;
}
.hero__highlight {
    color: var(--yellow);
    font-weight: 800;
    font-size: 1.15rem;
    margin: .4em 0 1.4em;
}

/* ---- Secciones ---- */
.section { padding: 56px 0; }

.section--intro { background: var(--white); color: var(--text); }

.section--lifeline {
    background: var(--blue);
    color: var(--white);
}
.section--lifeline h2,
.section--lifeline h3,
.section--lifeline h4 { color: var(--white); }

.section--apply { background: var(--white); color: var(--text); text-align: center; }
.section--apply .list-check { display: inline-block; text-align: left; }

/* ---- Tipografía auxiliar ---- */
.eyebrow {
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .5px;
    color: var(--blue);
    margin-bottom: 1em;
}
.eyebrow--green { color: #4f9c0f; }
.lead { font-size: 1.15rem; }
.note { color: inherit; opacity: .9; }
.veterans { font-size: 1.1rem; }

/* ---- Listas con check ---- */
.list-check {
    list-style: none;
    padding: 0;
    margin: 0 0 1.4em;
}
.list-check li {
    position: relative;
    padding-left: 28px;
    margin-bottom: .5em;
}
.list-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: 800;
    color: var(--green);
}
/* En el bloque azul el check necesita más contraste. */
.section--lifeline .list-check li::before { color: var(--yellow); }

/* ---- Utilidades ---- */
.text-center { text-align: center; }

/* ---- Footer ---- */
.site-footer {
    background: #0a2236;
    color: #cdd7e0;
    padding: 24px 0;
    text-align: center;
    font-size: .9rem;
}
.site-footer p { margin: 0; }

/* ---- Breakpoints ---- */
@media (min-width: 768px) {
    .hero { padding: 130px 0; }
    .hero__title { font-size: 3.4rem; }
    .hero__subtitle { font-size: 1.7rem; }
    .hero__highlight { font-size: 1.35rem; }
    .section { padding: 72px 0; }
}
