/* ===== RESET BÁSICO ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

/* ===== CONTENIDO PRINCIPAL ===== */

.container.mt-2 {
    flex: 1 0 auto;
}

/* ===== HEADER DE CAMPAÑA (index.php) =====
   Mobile: hero_mobile.png (1366x762). Escritorio (≥992px): hero_padron_escritorio.png (3840x350). */

.padron-hero {
    width: 100%;
    aspect-ratio: 1366 / 762;
    overflow: hidden;
    flex-shrink: 0;
}

.padron-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (min-width: 992px) {
    .padron-hero { aspect-ratio: 3840 / 350; }
}

/* ===== TÍTULO Y SUBTÍTULO DE CONSULTA ===== */

.titulo-consulta {
    color: #333;
    font-size: 1.8rem;
}

.subtitulo-consulta {
    color: #666;
    font-size: 0.9rem;
}

/* ===== FORMULARIO — INPUT DE CÉDULA ===== */

.input-cedula-large {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    border: 2px solid #e0e0e0 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
    padding: 0.75rem 1rem !important;
    letter-spacing: -1px;
}

.input-cedula-large:-webkit-autofill {
    -webkit-text-fill-color: #333 !important;
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
}

.input-cedula-large:focus {
    border-color: #d30000 !important;
    box-shadow: 0 0 0 0.2rem rgba(211, 0, 0, 0.25) !important;
}

.input-cedula-large::placeholder {
    color: #999 !important;
    font-style: italic;
    font-size: 1.3rem;
}

/* ===== BOTÓN CONSULTAR ===== */

.btn-consultar {
    background-color: #bb0811;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    height: 50px;
    border-radius: 8px;
    border: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(187, 8, 17, 0.2);
}

.btn-consultar:hover {
    background-color: #9a060e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(187, 8, 17, 0.3);
}

.btn-consultar:active {
    transform: translateY(0);
    color: white;
}

/* ===== TARJETA DE RESULTADOS ===== */

.card {
    border: none !important;
    border-radius: 10px !important;
    overflow: hidden;
}

.card-title {
    color: #d30000;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

/* ===== BOTÓN WHATSAPP ===== */

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
    font-weight: 400;
    padding: 0.75rem;
}

.btn-whatsapp:hover {
    background-color: #1fb855;
    color: white;
}

.btn-whatsapp:active {
    color: white;
}

/* ===== FOOTER ===== */

/* footer.png (3840x309): multitud con banderas arriba (huecos transparentes)
   y franja roja "Juntos hacemos grande a Itacurubí del Rosario". */
.site-footer {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    margin-top: auto !important;
    overflow: hidden;
}

.site-footer img {
    width: 100%;
    height: auto;
    display: block;
}

/* En mobile la imagen a ancho completo queda muy baja: se muestra al doble de
   ancho de pantalla, centrada, para que se vea la mitad central del banner
   (texto "Juntos hacemos grande a Itacurubí del Rosario" completo). */
@media (max-width: 991.98px) {
    .site-footer img {
        width: 200%;
        max-width: none;
        margin-left: -50%;
    }
}

/* ===== LAYOUT — BODY STICKY FOOTER ===== */

body.d-flex.flex-column.min-vh-100 {
    min-height: 100vh !important;
}

/* ===== RESPONSIVE — FORMULARIO EN MÓVILES ===== */

@media (max-width: 576px) {
    .titulo-consulta {
        font-size: 1.6rem !important;
    }

    .subtitulo-consulta {
        font-size: 0.9rem !important;
        margin-bottom: 0.8rem !important;
    }

    .input-cedula-large {
        height: 45px !important;
        font-size: 1.2rem !important;
    }

    .btn-consultar {
        height: 45px !important;
        font-size: 1rem !important;
        margin-bottom: 0.6rem !important;
    }

    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .container.mt-2 {
        margin-top: 0.8rem !important;
        padding-bottom: 15px;
    }
}

@media (max-width: 375px) {
    .input-cedula-large {
        font-size: 0.85rem !important;
    }
}
