/* ============================================================
   Bono Navideño 2026 - Consulta por DNI
   Estilos principales (responsive: móvil primero)
   ============================================================ */

:root {
    --coopac-rojo: #b81d24;
    --coopac-rojo-oscuro: #7f1218;
    --coopac-verde: #1d7a4f;
    --coopac-dorado: #f2b234;
    --texto-oscuro: #1f2937;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    color: var(--texto-oscuro);
    /* Fondo: Papá Noel desenfocado + velo oscuro para legibilidad */
    background-color: var(--coopac-rojo-oscuro);
    background-image:
        linear-gradient(rgba(60, 5, 8, .55), rgba(60, 5, 8, .65)),
        url('../images/papanoelrojodesenfocado.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* ---------- Tipografía Poppins (mismas clases de antes) ---------- */
.poppins-thin { font-weight: 200; }
.poppins-light { font-weight: 300; }
.poppins-regular { font-weight: 400; }
.poppins-medium { font-weight: 500; }
.poppins-semibold { font-weight: 600; }
.poppins-bold { font-weight: 700; }
.poppins-semibold-italic { font-weight: 600; font-style: italic; }

.color-font-coopac { color: var(--coopac-rojo); }

/* ---------- Contenedor principal ---------- */
.seccion-consulta {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.tarjeta-consulta {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
    overflow: hidden;
    padding: 0;
}

/* ---------- Logo de la cooperativa (sobre el fondo rojo) ---------- */
.banner-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.logo-coopac {
    
    max-width: 380px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45));
}

/* ---------- Banner con Papá Noel señalando ---------- */
.banner-navidad {
    background: #8f1219 url('../images/papanoelpared.png') left center / cover no-repeat;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1.5rem 2rem;
}

.banner-texto {
    color: #fff;
    text-align: right;
    max-width: 60%;
    text-shadow: 0 3px 12px rgba(0, 0, 0, .6);
}

.banner-texto h1 {
    font-size: 1.9rem;
    margin-bottom: .35rem;
}

.banner-texto p {
    font-size: .95rem;
    opacity: .95;
    margin-bottom: 0;
}

/* ---------- Cuerpo (formulario / resultado) ---------- */
.cuerpo-tarjeta {
    padding: 2.5rem 2rem;
}

.form-container .form-control {
    border: 2px solid #e5e7eb;
    border-radius: .75rem;
    padding: .7rem 1rem;
    font-size: 1.05rem;
    text-align: center;
    letter-spacing: .15em;
    transition: border-color .2s, box-shadow .2s;
}

.form-container .form-control:focus {
    border-color: var(--coopac-rojo);
    box-shadow: 0 0 0 .2rem rgba(184, 29, 36, .15);
}

.boton-consultar {
    background: linear-gradient(135deg, var(--coopac-rojo) 0%, #d93636 100%);
    color: #fff;
    border: none;
    border-radius: .75rem;
    padding: .75rem 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: .03em;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 8px 20px rgba(184, 29, 36, .35);
}

.boton-consultar:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(184, 29, 36, .45);
    color: #fff;
}

.boton-consultar:active {
    transform: translateY(0);
}

/* ---------- Imágenes de resultado ---------- */
.imagen-papa-noel {
    max-width: 200px;
    width: 55%;
    height: auto;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .25));
}

.imagen-triste {
    max-width: 160px;
    width: 45%;
    border-radius: 1rem;
}

.resultado-icono {
    width: 80px;
    height: auto;
}

.resultado-nombre {
    color: var(--coopac-rojo);
    font-weight: 700;
}

.resultado-dni {
    display: inline-block;
    background: #fef2f2;
    border: 1px dashed var(--coopac-rojo);
    border-radius: .6rem;
    padding: .35rem 1rem;
    font-weight: 600;
    letter-spacing: .15em;
    color: var(--coopac-rojo-oscuro);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 767.98px) {
    .banner-navidad {
        min-height: 170px;
        padding: 1.25rem;
    }

    .banner-texto h1 {
        font-size: 1.35rem;
    }

    .banner-texto p {
        font-size: .8rem;
    }

    .banner-texto {
        max-width: 62%;
    }
}

@media (max-width: 575.98px) {
    .tarjeta-consulta {
        border-radius: 1rem;
    }

    .logo-coopac {
        max-width: 260px;
    }

    .banner-logo {
        margin-bottom: 1rem;
    }

    .cuerpo-tarjeta {
        padding: 2rem 1.25rem;
    }

    .seccion-consulta {
        padding: 1rem .5rem;
    }

    .banner-navidad {
        min-height: 140px;
    }

    .form-container .form-control {
        font-size: 1rem;
        letter-spacing: .1em;
    }
}
