/* =======================================================
   ESTILOS MAESTROS Y LAYOUT (layout.css)
   Prefijo de encapsulamiento: layout-
   ======================================================= */

/* Importar tipografía Montserrat de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');

/* Variables de color de INTRA WCS */
:root {
    --azul-intra: #003366;
    --rojo-intra: #E30613;
    --blanco: #ffffff;
    --gris-fondo: #f8f9fa;
    --texto-oscuro: #333333;
    --gris-borde: #e2e8f0;
}

/* Reset básico y configuración general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--gris-fondo);
    color: var(--texto-oscuro);
    font-size: 17px; 
    padding-top: 110px; /* Compensación exacta por el header fijo */
    overflow-x: hidden;
}

/* --- UTILIDADES GLOBALES MAESTRAS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* --- SISTEMA UNIVERSAL DE BOTONES --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--rojo-intra);
    color: var(--blanco);
    border-color: var(--rojo-intra);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--azul-intra);
    border-color: var(--azul-intra);
}

.btn-secondary {
    background-color: transparent;
    color: var(--blanco);
    border-color: var(--blanco);
}

.btn-secondary:hover {
    background-color: var(--blanco);
    color: var(--azul-intra);
}

.btn-outline-blue {
    background-color: transparent;
    color: var(--azul-intra);
    border-color: var(--azul-intra);
}

.btn-outline-blue:hover {
    background-color: var(--azul-intra);
    color: var(--blanco);
}

/* =======================================================
   HEADER FIJO BLINDADO
   ======================================================= */
.layout-header {
    background-color: var(--azul-intra);
    width: 100%;
    height: 110px; 
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease;
}

.layout-header-container {
    max-width: 1200px; 
    margin: 0 auto; 
    width: 90%; 
    height: 100%;
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.layout-logo a {
    color: var(--blanco);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.layout-logo img {
    max-height: 85px; 
    width: auto;
    display: block;
}

.layout-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.layout-nav a {
    text-decoration: none;
    color: var(--blanco);
    font-weight: 600;
    font-size: 1.1rem; 
    transition: color 0.3s ease;
    text-transform: capitalize;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

/* Efecto de línea roja sutil al pasar el cursor en el menú */
.layout-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--rojo-intra);
    transition: width 0.3s ease;
}

.layout-nav a:hover {
    color: var(--rojo-intra);
}

.layout-nav a:hover::after {
    width: 100%;
}

/* --- ANIMACIÓN DEL AVIÓN --- */
@keyframes vueloSuave {
    0% { transform: translateY(0) translateX(0) rotate(15deg); }
    50% { transform: translateY(-5px) translateX(5px) rotate(15deg); }
    100% { transform: translateY(0) translateX(0) rotate(15deg); }
}

.layout-avion-animado {
    display: inline-block;
    color: var(--rojo-intra);
    animation: vueloSuave 4s ease-in-out infinite;
}
/* =======================================================
   FOOTER BLINDADO (SIN ESPACIO SUPERIOR)
   ======================================================= */
.layout-footer {
    background-color: var(--azul-intra);
    color: var(--blanco);
    padding: 60px 5% 25px;
    margin-top: 0; /* <-- CAMBIADO A 0 PARA UNIRLO CON LA SECCIÓN ANTERIOR */
    border-top: 5px solid var(--rojo-intra);
}

.layout-footer-content {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.layout-footer-section h3 {
    color: var(--blanco);
    margin-bottom: 20px;
    font-size: 1.35rem;
    position: relative;
    padding-bottom: 10px;
    font-weight: 700;
}

.layout-footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--rojo-intra);
}

.layout-footer-section p {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Lista de enlaces rápidos en el footer */
.layout-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.layout-footer-links li {
    margin-bottom: 12px;
}

.layout-footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.layout-footer-links a:hover {
    color: var(--rojo-intra);
    padding-left: 6px;
}

/* Ítems de contacto con iconos */
.layout-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: #cbd5e1;
    font-size: 1.05rem;
}

.layout-footer-contact-item i {
    color: var(--rojo-intra);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.layout-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 25px;
    font-size: 0.95rem; 
    color: #94a3b8;
}

.layout-footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.layout-footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-radius: 50%;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.layout-footer-socials a:hover {
    background-color: var(--rojo-intra, #cc0000);
    transform: translateY(-3px);
}

/* =======================================================
   RESPONSIVE PARA HEADER Y FOOTER (CELULARES)
   ======================================================= */
@media (max-width: 992px) {
    .layout-header-container {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }

    .layout-header {
        height: auto;
        padding: 15px 0;
    }

    body {
        padding-top: 140px;
    }

    .layout-nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .layout-nav a {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 170px;
    }
}