:root {
    --brand-blue: #0b3182;
    /* Color Extraído del Logo A&O */
    --brand-dark: #05163f;
    /* Versión más oscura para difuminados / fondo */
    --silver: #e0e0e0;
    --gold-accent: #b0b8c4;
    --text-light: #f5f5f5;
    --pop-blue: #0b3182;
    /* Ajustando detalles de contraste para evitar azul cyan no corporativo */
    --pop-light: #4671c6;
    /* Azul claro armónico para hovers/botones en vez del cyan */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden !important;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

body {
    font-family: 'Calibri', 'Segoe UI', sans-serif;
    background-color: var(--brand-dark);
    color: var(--text-light);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 80px;
    z-index: 1000;
    transition: 0.4s;
    background: linear-gradient(to bottom, rgba(0, 43, 92, 0.9), rgba(0, 0, 0, 0));
}

.navbar.scrolled {
    background: #ffffff;
    padding: 15px 80px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-links a {
    color: var(--brand-blue);
}

.navbar.scrolled .nav-links li>a:hover {
    color: var(--pop-light);
}

.navbar.scrolled .contact-btn {
    border-color: var(--brand-blue);
    color: var(--brand-blue) !important;
}

.navbar.scrolled .contact-btn:hover {
    background: var(--brand-blue);
    color: #fff !important;
}

.navbar.scrolled .dropdown-content {
    background-color: rgba(255, 255, 255, 0.98);
    border-top: 2px solid var(--brand-blue);
}

.navbar.scrolled .dropdown-content a {
    color: var(--brand-blue);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .dropdown-content a:hover {
    background-color: rgba(11, 49, 130, 0.08);
    color: var(--pop-light);
}

.navbar.scrolled .lang-switcher {
    border-left-color: rgba(11, 49, 130, 0.2) !important;
}

.navbar.scrolled .logo {
    color: var(--brand-blue);
}

.navbar.scrolled .logo span {
    color: var(--brand-blue);
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: flex-end;
    /* Alineado a la base inferior */
    gap: 12px;
    text-decoration: none;
    color: #fff;
    height: 50px;
    /* Logo más grande */
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.logo span {
    font-family: 'Calibri', 'Segoe UI', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 1;
    margin-bottom: 0px;
    white-space: nowrap;
    line-height: 1.1;
    color: #fff;
}

/* Nav Link Hover & Dropdown */
.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: 0.3s;
    position: relative;
}

.nav-links>li>a:hover {
    color: var(--pop-light);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(0, 43, 92, 0.95);
    /* Deep Blue */
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    border-top: 2px solid var(--pop-light);
    border-radius: 0 0 4px 4px;
    padding: 10px 0;
}

.dropdown-content a {
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--pop-blue);
    opacity: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    color: var(--pop-blue);
}

.contact-btn {
    border: 1px solid var(--pop-light);
    /* Updated to Pop Blue */
    padding: 10px 30px;
    border-radius: 2px;
    text-transform: uppercase;
    font-size: 0.8rem !important;
    letter-spacing: 2px;
    transition: 0.3s;
}

.contact-btn:hover {
    background: var(--pop-light);
    color: #fff !important;
    box-shadow: 0 0 15px rgba(70, 113, 198, 0.4);
}

/* Hero */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Hero Slide System */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    /* Hidden by default */
    transition: opacity 1.5s ease-in-out;
    /* Smooth fade */
    filter: none;
}

.hero-slide.active {
    opacity: 1;
    /* Visible */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* No overlay, showing original image colors */
    background: transparent;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 95%;
    padding: 0 20px;
}

/* Clean H1 Style (Em is handled above) */
h1 {
    font-family: 'Calibri', 'Segoe UI', sans-serif;
    /* Changed to Sans-Serif Corporate */
    font-size: 4rem;
    /* Adjusted for bolder font */
    line-height: 1.2;
    margin-bottom: 30px;
    font-weight: 700;
    /* Bold */
    text-transform: uppercase;
    /* More impactful */
    letter-spacing: 2px;
    /* Ultra Strong Shadow */
    text-shadow: 0 10px 30px rgba(0, 0, 0, 1), 0 0 50px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-family: 'Calibri', 'Segoe UI', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 50px;
    font-weight: 400;
    opacity: 1;
    letter-spacing: 1px;
    /* Ultra Strong Shadow */
    text-shadow: 0 5px 15px rgba(0, 0, 0, 1), 0 0 30px rgba(0, 0, 0, 0.5);
}

.scroll-btn {
    text-decoration: none;
    color: #fff;
    border-bottom: 1px solid #fff;
    padding-bottom: 5px;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.scroll-btn:hover {
    opacity: 0.7;
}

/* Services Cards */
.services {
    padding: 100px 80px;
    background: var(--brand-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-family: 'Calibri', 'Segoe UI', sans-serif;
    font-size: 3rem;
    margin-bottom: 20px;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--brand-blue);
    margin: 0 auto;
}

.cards-container {
    display: flex;
    /* Changed from grid to flex for better centering of 2 items */
    justify-content: center;
    gap: 60px;
    /* Increased gap for better separation */
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #022044;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    top: 0;
    flex: 0 1 450px;
    /* Fixed width basis but flexible */
    max-width: 500px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.08), transparent);
    transition: left 0.6s;
    z-index: 1;
    pointer-events: none;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 255, 0.15);
}

.card-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    filter: none;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.card-slider-container {
    background: #000;
}

.card-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.card-slide.active {
    opacity: 1;
}

.card:hover .card-img {
    filter: none;
    height: 240px;
}

.card-text {
    padding: 40px 30px;
    text-align: center;
}

.card-text i {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
    opacity: 0.7;
}

.card-text h3 {
    font-family: 'Calibri', 'Segoe UI', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.card-text p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.7;
    margin-bottom: 30px;
}

.card-text a {
    text-decoration: none;
    color: var(--brand-blue);
    background: #fff;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 800;
    padding: 12px 30px;
    border-radius: 4px;
    display: inline-block;
    transition: 0.3s;
}

.card-text a:hover {
    background: var(--brand-blue);
    color: #fff;
    box-shadow: 0 5px 15px rgba(11, 49, 130, 0.4);
}

/* Trust Banner (Restored Original Blue) */
.trust-banner {
    padding: 120px 20px;
    text-align: center;
    background: var(--brand-blue);
    background: linear-gradient(to right, var(--brand-dark), var(--brand-blue), var(--brand-dark));
    color: #fff;
}

.trust-banner h2 {
    font-family: 'Calibri', 'Segoe UI', sans-serif;
    font-size: 4rem;
    /* Larger */
    margin-bottom: 25px;
    font-style: italic;
    font-weight: 800;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.trust-banner p {
    letter-spacing: 5px;
    font-size: 1.3rem;
    /* Larger */
    text-transform: uppercase;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    padding: 80px 80px;
    background: #fff;
    font-size: 1.25rem;
    /* Larger */
    color: var(--brand-blue);
    border-top: 2px solid rgba(11, 49, 130, 0.1);
    font-weight: 500;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content h4 {
    color: var(--brand-blue);
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 1.6rem;
    /* Larger */
    font-weight: 800;
}

/* Experience Stats */
.experience-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 80px 40px;
    background: var(--brand-dark);
    text-align: center;
    flex-wrap: wrap;
    color: #fff;
}

.stat-item {
    background: linear-gradient(135deg, rgba(0, 43, 92, 0.4), rgba(0, 26, 56, 0.8));
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    flex: 0 1 320px;
    max-width: 350px;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.05), transparent);
    transition: left 0.6s;
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item h3 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 10px;
    font-family: 'Calibri', 'Segoe UI', sans-serif;
    font-weight: 700;
}

.stat-item p {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    color: #fff;
    font-weight: 700;
}

/* Contact Section (Transition) */
.contact-section {
    padding: 100px 20px;
    background: var(--brand-dark);
    /* Solid dark blue as requested */
    color: #fff;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    padding: 50px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Mobile Integrated Social Bar */
.hero-social-mobile {
    display: none; /* Hidden on Desktop */
    justify-content: center;
    gap: 30px;
    margin: 25px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08); /* Sophisticated glass look */
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: fit-content;
    align-self: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-social-mobile a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.hero-social-mobile a.fb { background-color: #1877f2; }
.hero-social-mobile a.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.hero-social-mobile a.wa { background-color: #25d366; }

.hero-social-mobile a:hover {
    transform: scale(1.1);
}

.contact-container h2 {
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Calibri', 'Segoe UI', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

input,
select,
textarea {
    width: 100%;
    padding: 15px;
    background: #fdfdfd;
    border: 1px solid rgba(11, 49, 130, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--brand-dark);
    transition: 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--pop-blue);
    box-shadow: 0 0 10px rgba(0, 150, 255, 0.2);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Dynamic Fields Animation */
#aviation-fields,
#aviation-fields-en {
    animation: fadeInDown 0.4s ease-out forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

select {
    color: var(--brand-blue);
    border-radius: 5px;
    font-family: 'Calibri', 'Segoe UI', sans-serif;
}

select option {
    background-color: #fff;
    color: #000;
}

textarea {
    height: 120px;
    resize: none;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--pop-light);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--pop-light);
    color: #fff;
    border: none;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    box-shadow: 0 0 20px rgba(70, 113, 198, 0.6);
    transform: scale(1.02);
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: #FFF;
}

/* Social Floating Stack */
.social-float-stack {
    position: fixed;
    right: 40px;
    bottom: 100px;
    /* Above WhatsApp button (50px height + 10px gap + 40px bottom) */
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
    max-width: 50px;
}

.social-float {
    width: 50px;
    height: 50px;
    background-color: var(--brand-blue);
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: bold;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.social-float::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.social-float:hover::before {
    left: 100%;
}

.social-float:hover {
    transform: scale(1.1);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.social-float.fb {
    background-color: #1877f2;
}

.social-float.ig {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

@media (max-width: 992px) {
    /* ========== STRICT OVERFLOW CONTROL ========== */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        position: relative;
    }

    * {
        max-width: 100vw;
    }

    /* ========== FORCE REMOVE floating social elements ========== */
    .social-float-stack,
    .social-float-stack *,
    .whatsapp-float {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        pointer-events: none !important;
    }

    /* ========== NAVBAR MOBILE ========== */
    .navbar {
        position: relative !important;
        padding: 12px 15px;
        flex-direction: column;
        gap: 10px;
        background: #ffffff !important;
    }

    .navbar.scrolled {
        position: fixed !important;
        padding: 8px 15px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .navbar .nav-links a {
        color: var(--brand-blue);
    }

    .navbar .logo {
        color: var(--brand-blue);
    }

    .navbar .logo span {
        color: var(--brand-blue);
        white-space: normal;
        text-align: left;
        font-size: 0.9rem;
    }

    .navbar .lang-switcher {
        border-left-color: rgba(11, 49, 130, 0.2) !important;
        padding-left: 10px !important;
        margin-left: 5px !important;
    }

    .navbar .contact-btn {
        border-color: var(--brand-blue);
        color: var(--brand-blue) !important;
        padding: 6px 15px;
        font-size: 0.7rem !important;
    }

    .logo {
        height: auto;
        min-height: 40px;
    }

    .logo img {
        height: 40px;
    }

    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    /* ========== HERO MOBILE ========== */
    .hero {
        height: 100vh;
        min-height: 500px;
    }

    .hero-content {
        max-width: 100% !important;
        padding: 0 15px !important;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-top: 0;
        white-space: normal !important;
        overflow-wrap: break-word;
        word-break: break-word;
        line-height: 1.2;
    }

    .hero p,
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 20px !important;
    }

    .scroll-btn {
        font-size: 0.8rem;
    }

    /* ========== SECTIONS MOBILE ========== */
    .section-header h2 {
        font-size: 2rem;
    }

    .services {
        padding: 50px 15px;
    }

    .cards-container {
        gap: 30px;
    }

    .card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .card-text h3 {
        font-size: 1.5rem;
    }

    .experience-stats {
        flex-direction: column;
        gap: 30px;
        padding: 50px 15px;
    }

    .stat-item {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .stat-item h3 {
        font-size: 2.2rem;
    }

    /* ========== CONTACT / FORMS MOBILE ========== */
    .contact-section {
        padding: 50px 10px;
    }

    .contact-container {
        padding: 25px 15px;
        max-width: 100%;
    }

    .contact-container h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    /* Stack all form grids into single column on mobile */
    .form-group[style*="grid-template-columns"],
    .contact-container .form-group[style*="grid-template-columns"] {
        display: block !important;
        grid-template-columns: 1fr !important;
    }

    .form-group[style*="grid-template-columns"] > div,
    .contact-container .form-group[style*="grid-template-columns"] > div {
        margin-bottom: 15px;
    }

    input, select, textarea {
        font-size: 0.9rem;
        padding: 12px;
    }

    /* ========== TRUST BANNER MOBILE ========== */
    .trust-banner {
        padding: 60px 15px;
    }

    .trust-banner h2 {
        font-size: 1.6rem;
    }

    /* ========== FOOTER MOBILE ========== */
    footer {
        padding: 40px 20px;
        font-size: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-content h4 {
        font-size: 1.2rem;
    }

    /* ========== HERO SOCIAL BAR (MOBILE ONLY) ========== */
    .hero-social-mobile {
        display: flex !important;
        z-index: 100;
    }
}