/* =========================================
   1. VARIABLES Y BASE
   ========================================= */
:root {
    --azul-primario: #003875;
    --azul-fondo-main: #002b5c;
    --whatsapp-green: #25d366;
    --instagram-color: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --blanco: #ffffff;
    --gris-suave: #f4f8ff;
    --gris-texto: #333333;
    --sombra: 0 10px 40px rgba(0, 0, 0, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; background-color: var(--blanco); color: var(--gris-texto); line-height: 1.6; }

/* =========================================
   2. HEADER (SOLUCIÓN DE POSICIONAMIENTO)
   ========================================= */
header {
    background-color: var(--blanco);
    height: 140px;
    border-bottom: 3px solid #eee;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 40px;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    position: absolute;
    left: 40px;
    height: 100px;
    width: auto;
}

.logo-text {
    font-size: 1.8rem;
    color: var(--azul-primario);
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    max-width: 50%;
}

.nav-menu {
    position: absolute;
    right: 40px;
    display: flex;
    gap: 20px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--azul-primario);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* =========================================
   3. CONTENEDOR Y TABLAS (CUADRO COMPARATIVO)
   ========================================= */
main { background-color: var(--azul-fondo-main); padding: 40px 20px; min-height: 100vh; }
.content-wrapper { max-width: 1100px; margin: 0 auto; padding: 50px; background: var(--blanco); border-radius: 15px; box-shadow: var(--sombra); }

h1 { color: var(--azul-primario); font-size: 2.4rem; margin-bottom: 25px; }
h2 { color: var(--azul-primario); font-size: 1.6rem; border-left: 8px solid var(--azul-primario); padding-left: 15px; margin: 40px 0 20px 0; text-transform: uppercase; }

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th {
    background-color: var(--azul-primario);
    color: white;
    padding: 12px;
    text-align: left;
    text-transform: uppercase;
    font-size: 0.9rem;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

/* =========================================
   4. GALERÍA DE FOTOS (FLOTA)
   ========================================= */
.fotos-dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 20px; }
.foto-item { background: #f4f4f4; border-radius: 12px; padding: 15px; border: 1px solid #ddd; text-align: center; }
.foto-item img { width: 100%; height: 350px; object-fit: contain; background-color: #fff; border-radius: 8px; }
.foto-item span { display: block; margin-top: 10px; font-weight: bold; color: var(--azul-primario); text-transform: uppercase; font-size: 0.8rem; }

/* =========================================
   5. BOTONES (CORREGIDO BOTÓN SECUNDARIO)
   ========================================= */
.cta-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-top: 30px; }

.btn { 
    padding: 16px; 
    text-align: center; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: bold; 
    color: white; 
    transition: 0.3s;
    display: block;
}

.btn-azul { background: var(--azul-primario); }
.btn-whatsapp { background: var(--whatsapp-green); }
.btn-instagram { background: var(--instagram-color); }

/* Arreglo para el botón de Fotos Reales */
.btn-secundario { 
    background-color: #555555; 
    color: #ffffff;
    margin: 20px 0;
}

.btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }

footer { text-align: center; padding: 30px; color: white; background-color: var(--azul-fondo-main); }

/* =========================================
   6. RESPONSIVE
   ========================================= */
@media (max-width: 1000px) {
    header { height: auto; padding: 20px; flex-direction: column; }
    .header-container { flex-direction: column; }
    .logo-img, .nav-menu { position: static; margin-bottom: 15px; }
    .logo-text { max-width: 100%; font-size: 1.4rem; }
    .fotos-dupla { grid-template-columns: 1fr; }
}