/* Home.css - estilos de landing "Gana con SEARS" */

/* Variables básicas */
:root {
    --brand-red: #c92d2a;
    --brand-dark: #111;
    --muted: #6b6b6b;
    --container-width: 1150px;
    --max-banner-height: 420px;
    --page-bg: #ffffff;
}

/* Reset contextual (no tocar el global) */
.login-container {
    padding: 28px 18px;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}

/* Header estilo pieza */
.site-header {
    background: var(--brand-red);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 2px 0 rgba(0,0,0,0.04);
}

.header-inner {
    text-align: center;
}

.header-logo {
    height: 52px;
    width: auto;
    display: inline-block;
    filter: drop-shadow(0 2px 0 rgba(0,0,0,0.06));
}

/* HERO (banner grande) */
.hero {
    margin-top: 18px;
    text-align: center;
}

.hero-wrap {
    display: block;
    margin: 0 auto;
    max-width: 980px; /* ancho visual de la pieza */
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(201,45,42,0.04), transparent 70%);
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
}

/* imagen del banner: ocupa todo, se adapta */
.hero-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: var(--max-banner-height);
    object-fit: cover;
}

/* botón centrado debajo del banner (igual que la pieza) */
.hero-cta {
    margin-top: 16px;
    text-align: center;
}

.btn-primary {
    display: inline-block;
    background: var(--brand-red);
    color: #fff;
    font-weight: 800;
    padding: 12px 26px;
    border-radius: 8px;
    text-decoration: none;
    border: 3px solid #fff;
    box-shadow: 0 8px 0 rgba(0,0,0,0.06);
    transition: transform .12s ease, box-shadow .12s ease;
    font-size: 15px;
}

    .btn-primary:hover,
    .btn-primary:focus {
        transform: translateY(-4px);
        box-shadow: 0 12px 22px rgba(0,0,0,0.08);
        outline: none;
    }

/* meta (vigencia / permiso) */
.meta {
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.meta-inner {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.meta-sep {
    color: rgba(0,0,0,0.06);
    margin: 0 6px;
}

/* TERMS / BASES */
.terms {
    margin-top: 26px;
    margin-bottom: 60px;
}

.terms-card {
    background: #fff;
    border-radius: 6px;
    padding: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

    .terms-card h2 {
        font-size: 20px;
        margin: 2px 0 10px;
        color: var(--brand-dark);
        font-weight: 800;
    }

/* cuerpo desplazable para términos (y estilo de lista) */
.terms-body {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 8px;
    font-size: 14px;
    line-height: 1.55;
    color: #222;
}

/* lista con marca y color rojo en letra de cada ítem (como la pieza) */
.terms-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 8px;
}

    .terms-list li {
        margin-bottom: 10px;
        text-indent: -24px;
        padding-left: 24px;
        color: #333;
    }

        .terms-list li strong {
            color: var(--brand-red);
            margin-right: 6px;
            font-weight: 700;
        }

/* nota final */
.terms-note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
}

/* Enlaces dentro de términos */
.terms-body a {
    color: var(--brand-red);
    text-decoration: underline;
}

/* pequeño ajuste para que h1/h2 globales no rompan layout */
.hero, .terms-card {
    word-break: break-word;
}

.terms-content {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: #333;
    max-width: 1100px;
    margin: auto;
}

    .terms-content p,
    .terms-content li {
        margin-bottom: 10px;
    }

    .terms-content .letter {
        color: #e60000;
        font-weight: bold;
        margin-right: 5px;
    }

    .terms-content strong {
        font-weight: 700;
    }

    .terms-content ul {
        margin-top: 15px;
        padding-left: 20px;
    }

    .terms-content a {
        color: #e60000;
        text-decoration: none;
        font-weight: bold;
    }


/* RESPONSIVE */
@media (max-width: 1024px) {
    .login-container {
        padding: 20px 14px;
    }

    .hero-wrap {
        max-width: 900px;
    }

    .terms-body {
        max-height: 480px;
    }
}

@media (max-width: 640px) {
    .header-logo {
        height: 46px;
    }

    .hero-wrap {
        max-width: 100%;
        border-radius: 4px;
    }

    .btn-primary {
        width: 220px;
        padding: 12px 18px;
    }

    .terms-body {
        max-height: 300px;
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .btn-primary {
        width: 100%;
        box-sizing: border-box;
    }

    .meta-inner {
        flex-direction: column;
        gap: 6px;
    }
}
