/* ==========================================================
   RESET
   ========================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    color: #333;
}

/* ==========================================================
NAVBAR TOP — Franja roja con "Juntos Llegaremos"
========================================================== */
.navbar-top {
background-color: #d40a14;
text-align: center;
padding: 8px 0; /* Padding mínimo */
display: flex;
align-items: center;
justify-content: center;
}
.navbar-top .logo-juntos {
    height: 250px!important; /* Desktop - Más grande y visible */
    width: auto;
    max-width: 100%!important;
    margin-top: -90px!important;
    margin-bottom: -90px!important;
}

/* Tablet y desktop pequeño */
@media (min-width: 992px) and (max-width: 1199px) {
    .navbar-top .logo-juntos {
        height: 220px !important;
        margin-top: -80px!important;
        margin-bottom: -80px!important;
    }
}

/* Tablet Mediana */
@media (min-width: 768px) and (max-width: 991px) {
    .navbar-top .logo-juntos {
        height: 190px !important;
        margin-top: -70px!important;
        margin-bottom: -70px!important;
    }
}

/* Móviles Grandes */
@media (min-width: 576px) and (max-width: 767px) {
    .navbar-top .logo-juntos {
        height: 190px !important;
        margin-top: -70px!important;
        margin-bottom: -70px!important;
    }
}

/* Móviles Pequeños */
@media (max-width: 575px) {
    .navbar-top .logo-juntos {
        height: 180px !important;
        margin-top: -70px!important;
        margin-bottom: -70px!important;
    }
}

/* ==========================================================
   HERO — Imagen responsive
   ========================================================== */

.hero {
    background-color: #fff;
    line-height: 0;
}

.hero-img {
    width: 60%; /* Desktop */
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Móvil: 100% de ancho */
@media (max-width: 991px) {
    .hero-img {
        width: 100%;
    }
}

/* ==========================================================
   CONTENIDO PRINCIPAL
   ========================================================== */

.container.mt-2 {
    flex: 1 0 auto;
}

.titulo-consulta {
    color: #333;
    font-size: 1.8rem;
}

.subtitulo-consulta {
    color: #666;
    font-size: 0.9rem;
}

/* ==========================================================
   FORMULARIO
   ========================================================== */

.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;
}

.btn-consultar {
    background-color: #d40a14;
    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-principal {
    background-color: #d40a14 !important;
    flex-shrink: 0;
    margin-top: auto !important;
}

.footer-logo {
    height: 38px;
}

/* ==========================================================
   LAYOUT — STICKY FOOTER
   ========================================================== */

body.d-flex.flex-column.min-vh-100 {
    min-height: 100vh !important;
}

/* ==========================================================
   RESPONSIVE — FORMULARIO 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; }
}