/* ==========================================================================
   VARIABLES DE MARCA - LEGACY AIRLIFT SOLUTIONS (TACTICAL DARK)
   ========================================================================== */
:root {
    /* Paleta Oficial (Basada en Logo LegRedBlk) */
    --brand-primary: #050505;
    /* Negro Profundo / Fondo Principal */
    --brand-surface: #0F0F0F;
    /* Negro Elevado / Tarjetas y Secciones */
    --brand-accent: #B91C1C;
    /* Rojo Institucional */
    --brand-accent-hover: #991B1B;
    --brand-silver: #D1D5DB;
    /* Texto Principal / Lectura */
    --brand-silver-muted: #9CA3AF;
    /* Texto Secundario / Descriptivo */
    --brand-white: #FFFFFF;

    /* Configuración de Layout */
    --nav-height-full: 120px;
    --nav-height-scrolled: 90px;
    --container-width: 1100px;
    --transition-smooth: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   RESET & ESTILOS GLOBALES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--brand-primary);
    color: var(--brand-silver);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: var(--brand-white);
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 1.5rem;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   NAVEGACIÓN (Soporte Multipage)
   ========================================================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height-full);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4rem;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav.scrolled {
    height: var(--nav-height-scrolled);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 90px;
    width: auto;
    transition: var(--transition-smooth);
}

nav.scrolled .logo img {
    height: 65px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--brand-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--brand-accent);
}

/* Menú Móvil */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--brand-primary);
    cursor: pointer;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-overlay a {
    color: var(--brand-white);
    font-size: 2rem;
    font-family: 'Rajdhani', sans-serif;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.mobile-overlay a:hover {
    color: var(--brand-accent);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height-full);
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* Altura extra para el parallax */
    z-index: 1;
}

.hero-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: url('../img/imagen_fondo.jpg') center/cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Gradiente oscuro para asegurar legibilidad del texto */
    background: linear-gradient(90deg,
            rgba(5, 5, 5, 0.95) 0%,
            rgba(5, 5, 5, 0.6) 50%,
            rgba(5, 5, 5, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding-left: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   SECCIONES Y COMPONENTES (Cards, Buttons, Reveals)
   ========================================================================== */
section {
    padding: 120px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.section-tag {
    color: var(--brand-accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 3.5rem;
}

.card-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.card:hover {
    border-color: var(--brand-accent);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card i {
    color: var(--brand-accent);
    margin-bottom: 1.5rem;
    width: 32px;
    height: 32px;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--brand-silver-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Botones */
.btn-primary {
    background: transparent;
    color: var(--brand-accent);
    padding: 1.2rem 2.5rem;
    border: 1px solid var(--brand-accent);
    border-radius: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.btn-primary:hover {
    background: rgba(185, 28, 28, 0.1);
    color: var(--brand-accent);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(185, 28, 28, 0.6), inset 0 0 10px rgba(185, 28, 28, 0.4);
    text-shadow: 0 0 8px rgba(185, 28, 28, 0.8);
}

/* Liderazgo */
.leader-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 5px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.card:hover .leader-img {
    border-color: var(--brand-accent);
}

/* ==========================================================================
   FOOTER & CONTACTO
   ========================================================================== */
footer {
    background: var(--brand-surface);
    padding: 80px 0 30px;
    color: var(--brand-silver);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer h3,
footer h4 {
    color: var(--brand-white);
    margin-bottom: 1.5rem;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition-smooth);
}

footer a:hover {
    color: var(--brand-white);
}

.footer-contact {
    margin-bottom: 0.8rem;
    display: block;
}

/* ==========================================================================
   MODAL & FORMULARIOS (Extended)
   ========================================================================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--brand-surface);
    padding: 3rem;
    max-width: 850px;
    width: 100%;
    border-radius: 4px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-height: 90vh;
    overflow-y: auto;
}

/* Estilos de formulario para Contact.html */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.modal-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    color: var(--brand-white);
    font-family: 'Inter', sans-serif;
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.modal-input:focus {
    outline: none;
    border-color: var(--brand-accent);
    background: rgba(255, 255, 255, 0.05);
}

/* Fix para el texto invisible en los dropdown (select > option) */
select.modal-input option {
    background-color: var(--brand-primary);
    color: var(--brand-white);
}

textarea.modal-input {
    grid-column: span 2;
    resize: vertical;
}

.col-span-2 {
    grid-column: span 2;
}

/* ==========================================================================
   ANIMACIONES (REVEAL ON SCROLL)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    nav {
        padding: 0 1.5rem;
        height: 80px;
    }

    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-content {
        padding-left: 0;
        text-align: center;
        margin: 0 auto;
    }

    .section-title {
        font-size: 2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    textarea.modal-input, .col-span-2 {
        grid-column: span 1 !important;
    }

    section {
        padding: 80px 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   PAGE HERO Y LAYOUTS ESPECÍFICOS (About, Training, Contact)
   ========================================================================== */
.page-hero {
    height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height-full);
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    /* Ajustado para apuntar desde la carpeta css/ a img/ */
    background: url('../img/imagen_fondo.jpg') center/cover;
    z-index: 1;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0.7) 100%);
    z-index: 2;
}

.page-hero .container { 
    position: relative; 
    z-index: 3; 
}

.page-title { 
    font-size: 3.5rem; 
    margin-bottom: 1rem; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); 
}

/* ==========================================================================
   LAYOUT DE PÁGINA DE CONTACTO (contact.html)
   ========================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas proporcionales */
    gap: 4rem;
    align-items: start;
}

.contact-info-card {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
}

.contact-info-list {
    list-style: none;
    padding: 0;
}

.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-list li i {
    color: var(--brand-accent);
}

.contact-info-list li a {
    color: var(--brand-white);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-info-list li a:hover {
    color: var(--brand-accent);
}

.contact-form-container {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr; /* En móviles se apila verticalmente */
        gap: 2rem;
    }
}

/* Specific grids & lists */
.core-values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
/* ==========================================================================
   LISTAS DE CARACTERÍSTICAS (Feature Lists)
   ========================================================================== */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-list li i {
    color: var(--brand-accent);
    flex-shrink: 0; /* Evita que el ícono se aplaste si el texto es muy largo */
    width: 24px;
    height: 24px;
    margin-top: 2px; /* Alineación óptica con la primera línea de texto */
}

.feature-list li p {
    color: var(--brand-silver);
    font-size: 1rem;
    line-height: 1.6;
}

/* ==========================================================================
   UTILITY CLASSES & CAPABILITIES PAGE STYLES
   ========================================================================== */
.bg-surface { background: var(--brand-surface); }
.pt-80 { padding-top: 80px; }
.pb-60 { padding-bottom: 60px; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-1-5 { margin-bottom: 1.5rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }
.pt-3 { padding-top: 3rem; }
.pt-2 { padding-top: 2rem; }

.text-white { color: var(--brand-white); }
.text-silver { color: var(--brand-silver); }
.text-silver-dark { color: var(--brand-silver-muted); }
.text-accent { color: var(--brand-accent); }
.text-center { text-align: center; }

.font-rajdhani { font-family: 'Rajdhani', sans-serif; }
.text-2xl { font-size: 2.5rem; }
.text-xl { font-size: 1.2rem; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.8rem; }
.font-semibold { font-weight: 600; }

.max-w-800 { max-width: 800px; }

.border-t-light { border-top: 1px solid rgba(255,255,255,0.1); }
.border-t-very-light { border-top: 1px solid rgba(255,255,255,0.05); }

.grid-cols-400 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 4rem; }
.grid-cols-350 { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 4rem; }
.grid-cols-250 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 4rem; }
.grid-cols-250-gap2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }

.flex-start-gap-0-5 { display: flex; align-items: flex-start; gap: 0.5rem; }
.icon-small { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; }

.cap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.signature-box {
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.1) 0%, rgba(5, 5, 5, 0.9) 100%);
    border-left: 6px solid var(--brand-accent);
    border-radius: 0 12px 12px 0;
    padding: 3rem;
    margin: 4rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.no-margin { margin: 0; }

/* Further Utilities for Phase 1 Cleanup */
.max-w-900 { max-width: 900px; }
.text-3xl { font-size: 3rem; }
.mb-2-5 { margin-bottom: 2.5rem; }
.pb-60 { padding-bottom: 60px; }
.text-lg { font-size: 1.1rem; }
.leading-relaxed { line-height: 1.8; }
.flex-wrap-gap-1 { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-outline-accent { background: transparent; border: 2px solid var(--brand-accent); color: var(--brand-white); }
.btn-outline-white { background: transparent; border: 2px solid var(--brand-white); color: var(--brand-white); }
.btn-outline-silver { background: transparent; border: 2px solid var(--brand-silver); color: var(--brand-silver); }
.btn-sm { padding: 0.8rem 1.5rem; font-size: 0.85rem; }
.btn-large { padding: 1.2rem; font-size: 1.1rem; width: 100%; margin-top: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.bg-primary { background: var(--brand-primary); }
.p-4-2 { padding: 4rem 2rem; }
.border-t-4-accent { border-top: 4px solid var(--brand-accent); }
.border-t-4-silver { border-top: 4px solid var(--brand-silver); }
.border-l-4-accent { border-left: 4px solid var(--brand-accent); }
.border-1-light { border: 1px solid rgba(255,255,255,0.05); }
.icon-64 { width: 64px; height: 64px; }
.icon-48 { width: 48px; height: 48px; }
.icon-40 { width: 40px; height: 40px; }
.icon-bg-accent { background: var(--brand-accent); padding: 8px; border-radius: 5px; }
.icon-bg-silver { background: var(--brand-silver); padding: 8px; border-radius: 5px; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.mt-3 { margin-top: 3rem; }
.avatar-ring { width: 100px; height: 100px; border-radius: 50%; border: 2px solid var(--brand-accent); display: flex; align-items: center; justify-content: center; background: rgba(185, 28, 28, 0.1); }
.no-list-style { list-style: none; padding: 0; }
.grid-cols-300-items-center { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 4rem; align-items: center; }
.flex-center-gap-1 { display: flex; align-items: center; gap: 1rem; }
.text-2rem { font-size: 2rem; }
.text-1-5rem { font-size: 1.5rem; }
.p-2 { padding: 2rem; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-sm { font-size: 0.8rem; }
.text-silver-muted { color: var(--brand-silver-muted); }
.mt-neg-0-5 { margin-top: -0.5rem; }
.mb-0-5 { margin-bottom: 0.5rem; }
.mt-1 { margin-top: 1rem; }
.bg-success-light { background: rgba(5, 150, 105, 0.1); }
.border-success { border: 1px solid #059669; }
.text-success { color: #059669; }
.flex-col-gap-1 { display: flex; flex-direction: column; gap: 1rem; }
.hero-50vh { height: 50vh; min-height: 400px; }
.bg-overlay-dark { background: rgba(5,5,5,0.85); }
.img-cover-full { width: 100%; height: 100%; object-fit: cover; }
.relative-z-3 { position: relative; z-index: 3; }
.block { display: block; }
.select-custom {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23B91C1C%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 1rem top 50%;
    background-size: 0.65rem auto;
}.lang-active { color: var(--brand-accent) !important; font-weight: 800 !important; text-decoration: none; padding: 0.5rem; }
.lang-inactive { color: var(--brand-primary) !important; font-weight: 600 !important; text-decoration: none; padding: 0.5rem; }
.lang-inactive:hover { color: var(--brand-accent) !important; }
.lang-sep { color: var(--brand-silver-muted) !important; }
@media (max-width: 768px) {
    .page-hero {
        height: auto !important;
        min-height: 50vh !important;
        padding-top: calc(var(--nav-height-full) + 2rem) !important;
        padding-bottom: 3rem !important;
    }
    .page-title {
        font-size: 2.2rem !important;
    }
}
@media (max-width: 768px) {
    .page-hero {
        align-items: flex-start !important;
        padding-top: 120px !important;
        padding-bottom: 40px !important;
        height: auto !important;
        min-height: auto !important;
    }
    .page-hero .container {
        margin-top: auto;
        margin-bottom: auto;
    }
    .page-title {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }
}
