/* ==========================================================
NAVBAR TOP — Franja roja con Logo y texto principal
========================================================== */
.navbar-top {
background-color: #d40a14;
text-align: center;
padding: 0 !important;
margin: 0 !important;
display: flex;
align-items: center;
justify-content: center;
min-height: auto !important;
line-height: 0 !important;
}

.hero-inner {
display: flex;
flex-direction: column;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 0 !important;
width: 100%;
max-width: 980px;
padding: 0 1rem !important;
line-height: 0 !important;
margin: 0 !important;
}

.logo-circulo {
height: auto;
width: auto;
max-height: 126px;
margin: 0 !important;
padding: 0 !important;
display: block;
line-height: 0;
}

.logo-portada {
height: auto;
width: auto;
max-height: 286px;
margin: 0 !important;
padding: 0 !important;
display: block;
line-height: 0;
}

/* Desktop */
@media (min-width: 992px) {
.hero-inner {
flex-direction: row;
align-items: center;
justify-content: center;
gap: 0 !important;
max-width: 900px;
padding: 0 !important;
margin: -20px 0 !important;
}

.logo-circulo {
max-height: 114px;
margin: -40px 0 !important;
}

.logo-portada {
max-height: 262px;
margin: -40px 0 !important;
}
}

@media (min-width: 1200px) {
.navbar-top {
padding: 0 !important;
margin: 0 !important;
}

.hero-inner {
gap: 0 !important;
max-width: 890px;
padding: 0 !important;
margin: -20px 0 !important;
}

.logo-circulo {
max-height: 137px;
margin: -40px 0 !important;
}

.logo-portada {
max-height: 280px;
margin: -45px 0 !important;
}
}

/* Tablet y desktop pequeño */
@media (min-width: 992px) and (max-width: 1199px) {
.navbar-top {
padding: 0 !important;
margin: 0 !important;
}

.hero-inner {
max-width: 840px;
padding: 0 !important;
margin: -20px 0 !important;
}

.logo-circulo {
max-height: 111px;
margin: -40px 0 !important;
}

.logo-portada {
max-height: 253px;
margin: -40px 0 !important;
}
}

/* Tablet Mediana */
@media (min-width: 768px) and (max-width: 991px) {
.navbar-top {
padding: 0 !important;
margin: 0 !important;
}

.hero-inner {
padding: 0 1rem !important;
margin: -10px 0 !important;
}

.logo-circulo {
max-height: 107px;
margin: -15px 0 !important;
}

.logo-portada {
max-height: 245px;
margin: -15px 0 !important;
}
}

/* Móviles Grandes */
@media (min-width: 576px) and (max-width: 767px) {
  .navbar-top { padding: 0 !important; margin: 0 !important; }
  .hero-inner { padding: 0 1rem !important; margin: 0 !important; }
  .logo-circulo { max-height: 120px; margin: 15px 0 !important; margin-bottom: -25px !important; }
  .logo-portada { max-height: 245px; margin: -60px 0 !important; margin-bottom: -65px !important; }
}

/* Móviles Pequeños */
@media (max-width: 575px) {
  .navbar-top { padding: 0 !important; margin: 0 !important; }
  .hero-inner { padding: 0 0.8rem !important; margin: 0 !important; }
  .logo-circulo { max-height: 100px; width: auto; margin: 10px 0 !important; margin-bottom: -18px !important; }
  .logo-portada { max-height: 205px; width: auto; margin: -45px 0 !important; margin-bottom: -50px !important; }
}

/* Móviles muy pequeños - iPhone 14 Pro Max y similares */
@media (max-width: 430px) {
  .navbar-top { padding: 0 !important; margin: 0 !important; }
  .hero-inner { padding: 0 0.5rem !important; margin: 0 !important; }
  .logo-circulo { max-height: 108px; margin: 12px 0 !important; margin-bottom: -20px !important; }
  .logo-portada { max-height: 220px; margin: -50px 0 !important; margin-bottom: -55px !important; }
}

/* Específico para Poco F3 (393px) */
@media (max-width: 393px) {
  .navbar-top {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .hero-inner {
    padding: 0 0.5rem !important;
    margin: 0 !important;
  }

  .logo-circulo {
    max-height: 98px; /* Ajustado de 108px */
    margin: 10px 0 !important;
    margin-bottom: -18px !important;
  }

  .logo-portada {
    max-height: 200px; /* Ajustado de 220px */
    margin: -45px 0 !important;
    margin-bottom: -50px !important;
  }
}

/* Móviles extra pequeños */
@media (max-width: 375px) {
  .navbar-top { padding: 0 !important; margin: 0 !important; }
  .hero-inner { padding: 0 0.5rem !important; margin: 0 !important; }
  
  /* Círculo: Reducido proporcionalmente a ~94px */
  .logo-circulo { 
    max-height: 94px; 
    width: auto; 
    margin: 10px 0 !important; 
    margin-bottom: -17px !important; 
  }
  
  /* Portada: Reducida proporcionalmente a ~192px */
  .logo-portada { 
    max-height: 192px; 
    width: auto; 
    margin: -44px 0 !important; 
    margin-bottom: -48px !important; 
  }
}

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

.container.mt-2 {
    margin: 20px auto 0 auto !important;
    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; }
}