/* =========================================
   css/aspa.css - ESPECÍFICO PARA LA PÁGINA 'ASPA'
   ========================================= */

/* 1. HERO PEQUEÑO (Cabecera de sección) */
/* A diferencia del Home, aquí el banner es más corto */
.small-hero {
    position: relative;
    height: 40vh;           /* Altura reducida */
    min-height: 300px;
    background-color: var(--ea-blue);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-media { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; 
}
.hero-media img { 
    width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5); 
}

.hero-content { position: relative; z-index: 1; color: white; }
.hero-content h1 { font-size: 3rem; margin-bottom: 0.5rem; }


/* 2. CAJA DE MISIÓN DESTACADA */
.intro-section { padding: 4rem 0; }

.mission-box {
    background-color: white;
    padding: 3rem;
    border-left: 5px solid var(--ea-yellow); /* Borde lateral amarillo */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 0 auto;
    border-radius: 0 8px 8px 0;
}

.mission-label {
    text-transform: uppercase; 
    color: var(--ea-red); 
    font-weight: 700; 
    font-size: 0.85rem; 
    letter-spacing: 1px; 
    display: block; 
    margin-bottom: 0.5rem;
}

.lead-text { 
    font-size: 1.25rem; 
    color: var(--ea-blue); 
    margin-bottom: 1.5rem; 
}


/* 3. TIMELINE (Línea de Tiempo Vertical) */
.history-section { padding-bottom: 5rem; }
.section-title { 
    text-align: center; color: var(--ea-blue); margin-bottom: 3rem; font-size: 2rem; 
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* La línea vertical central */
.timeline::after {
    content: ''; 
    position: absolute; 
    width: 4px; 
    background-color: var(--ea-blue);
    top: 0; bottom: 0; left: 50%; 
    margin-left: -2px; 
    border-radius: 2px;
}

/* Las Cajas (Items) */
.timeline-item {
    padding: 10px 40px; 
    position: relative; 
    background-color: inherit; 
    width: 50%; 
    box-sizing: border-box;
}

/* Los puntos amarillos sobre la línea */
.timeline-item::after {
    content: ''; 
    position: absolute; 
    width: 20px; height: 20px;
    right: -10px; 
    background-color: white; 
    border: 4px solid var(--ea-yellow);
    top: 20px; 
    border-radius: 50%; 
    z-index: 1;
}

/* Lógica Izquierda / Derecha */
.left { left: 0; }
.right { left: 50%; }

/* Corrección del punto para el lado derecho */
.right::after { left: -10px; }

/* Contenido interno de la tarjeta */
.timeline-content {
    padding: 20px 30px; 
    background-color: white; 
    position: relative;
    border-radius: 6px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 3px solid var(--ea-blue);
}

.timeline-content .date { 
    font-weight: 800; color: var(--ea-red); margin-bottom: 0.5rem; font-size: 0.9rem; 
}
.timeline-content h3 { margin-top: 0; color: var(--ea-blue); }


/* 4. RESPONSIVE TIMELINE (Móvil) */
@media (max-width: 768px) {
    /* La línea se mueve a la izquierda */
    .timeline::after { left: 31px; }
    
    /* Las cajas ocupan todo el ancho */
    .timeline-item { 
        width: 100%; 
        padding-left: 70px; 
        padding-right: 25px; 
    }
    
    /* Ajustar puntos y flechas */
    .timeline-item::after { left: 21px; }
    .right { left: 0%; }
}

/* =========================================
   css/aspa.css - CORRECCIÓN: IMAGEN ANCHO CONTENEDOR
   ========================================= */

/* Sección contenedora de la imagen */
.separator-image-section {
    /* CAMBIO: Ya no es width: 100% */
    width: 100%;                    
    max-width: var(--container-width); /* Se limita a 1200px (igual que el texto) */
    
    /* Centrado horizontal */
    margin-left: auto;
    margin-right: auto;
    
    /* Espaciado vertical */
    margin-top: 2rem;
    margin-bottom: 5rem;
    
    /* Estética */
    border-radius: 8px;             /* Bordes redondeados */
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Sombra suave */
}

/* La imagen en sí */
.separator-image-section img {
    width: 100%;
    height: 400px;          /* Altura fija controlada */
    object-fit: cover;      /* Recorta para rellenar sin deformar */
    display: block;
    object-position: center center;
}

/* Ajuste para móviles: que no toque los bordes de la pantalla */
@media (max-width: 1240px) {
    .separator-image-section {
        width: 90%; /* Deja un margen del 5% a cada lado en pantallas medianas */
    }
}

/* --- ESTILOS MISIÓN Y ESCUDO ALA 78 --- */

/* Layout Flex: Texto Izq | Escudo Der */
.mission-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    justify-content: space-between;
}

.mission-text {
    flex: 1; /* Ocupa el espacio restante */
}

/* Contenedor del Escudo */
.unit-badge-container {
    flex-shrink: 0; /* No encoger */
    width: 220px;
    text-align: center;
    margin-top: 1rem;
}

/* La tarjeta del escudo */
.ala78-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

/* Efecto Hover: Tarjeta sube y sombra crece */
.ala78-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(24, 56, 96, 0.15);
    border-color: var(--aspa-yellow, #FFC400);
}

/* Imagen del escudo */
.ala78-badge img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
}

.ala78-badge:hover img {
    transform: scale(1.05);
}

/* Textos del badge */
.badge-label {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    display: block;
}

.badge-label strong {
    color: var(--aspa-blue, #183860);
    font-size: 1.2rem;
    display: block;
}

.badge-cta {
    font-size: 0.8rem;
    color: var(--aspa-red, #C60B1E);
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* Animación del texto "Ver ficha" al hacer hover */
.ala78-badge:hover .badge-cta {
    opacity: 1;
    transform: translateY(0);
}

/* Separador horizontal */
.mission-separator {
    border: 0; 
    border-top: 1px solid #eee; 
    margin: 3rem 0;
}

/* Separador horizontal */
.mission-separator2 {
    border: 0; 
    border-top: 1px solid #eee; 
    margin: 1.5rem 0;
}

.pilots-info h3 {
    color: var(--aspa-blue, #183860); /* Aseguramos azul corporativo */
    margin-bottom: 1rem;
}

/* RESPONSIVE: En móvil, el escudo pasa abajo */
@media (max-width: 768px) {
    .mission-layout {
        flex-direction: column;
        gap: 2rem;
    }
    
    .unit-badge-container {
        width: 100%; /* Ocupa todo el ancho */
        display: flex;
        justify-content: center;
        margin-top: 0;
    }

    .ala78-badge {
        max-width: 200px; /* Tamaño controlado en móvil */
        padding: 1rem;
    }
}