/* ================================
   CORPORATE USA — GLOBAL STYLE
   A1 Global Logistics LLC
===================================*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    background: #f4f7fb;
    color: #0e1a2b;
    line-height: 1.6;
}

/* ===========================
   HEADER CORPORATIVO
===========================*/
.header {
    background: #0d1b2a;
    color: white;
    padding: 20px 20px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.header-flex {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.logo {
    width: 170px;
    height: auto;
    filter: brightness(2.6);
}

/* Título centrado */
.title-box {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.title-box h1 {
    font-size: 24px;
    margin: 0;
    font-weight: 700;
}

.subtitle {
    font-size: 12px;
    color: #dfe8f2;
    margin-top: 4px;
}

/* Selector idioma */
.lang-switch {
    position: absolute;
    right: 55px;
    top: 5px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.lang-btn {
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 4px;
}

.lang-btn.active {
    background: #415a77;
}

/* Carrito */
.header-icons .cart {
    font-size: 22px;
    position: absolute;
    right: 10px;
    top: 0;
    cursor: pointer;
    color: white;
}

/* ===========================
   MENÚ DESKTOP
===========================*/
.nav {
    margin-top: 16px;
    text-align: center;
}

.nav a {
    color: #fff;
    margin: 0 22px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.nav a:hover {
    color: #79a6ff;
}

/* ===========================
   HERO SECTION
===========================*/
.hero {
    background: white;
    text-align: center;
    padding: 60px 25px;
    border-bottom: 1px solid #dce3ea;
}

.hero h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 12px;
}

.btn-whatsapp {
    display: inline-block;
    padding: 14px 30px;
    background: #25d366;
    color: white;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    font-size: 17px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.22);
    margin-top: 18px;
}

/* ===========================
   INFO SECTIONS
===========================*/
.info {
    padding: 50px 25px;
    background: #f5f7fb;
}

.info ul {
    list-style: none;
    padding-left: 0;
    font-size: 18px;
}

/* ===========================
   CONTENT BLOCK
===========================*/
.content-block {
    padding: 50px 25px;
    background: white;
    text-align: center;
}

.content-block.alt {
    background: #dde7f5;
}

/* ===========================
   FORMULARIO CORPORATIVO
===========================*/
.contact-form {
    max-width: 650px;
    margin: 40px auto;
    background: white;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.contact-form label {
    display: block;
    margin-top: 18px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-top: 6px;
    border-radius: 6px;
    border: 1px solid #b0bccd;
    font-size: 16px;
}

textarea {
    height: 140px;
    resize: vertical;
}

.btn-submit {
    margin-top: 25px;
    padding: 14px 25px;
    background: #1d72ff;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 17px;
    width: 100%;
}

.btn-submit:hover {
    background: #0b5eea;
}

/* ===========================
   FOOTER
===========================*/
.footer {
    background: #0d1b2a;
    color: white;
    text-align: center;
    padding: 25px;
    font-size: 14px;
    border-top: 1px solid #1c2b3d;
}

/* ===========================
   RESPONSIVE — MÓVIL
===========================*/
@media (max-width: 900px) {

    /* Reducir altura del header */
    .header {
        padding: 12px 15px;
    }

    /* LOGO más pequeño */
    .logo {
        width: 135px;
    }

    /* Ocultar menú normal */
    .nav {
        display: none !important;
    }

    /* Evitar menú duplicado lateral */
    .header a {
        display: none;
    }

    /* Títulos */
    .title-box {
        position: static;
        transform: none;
        text-align: center;
        width: 100%;
        margin-top: 10px;
    }

    .title-box h1 {
        font-size: 20px;
    }

    /* Hacer el header más compacto */
    .header-flex {
        flex-direction: column;
        justify-content: center;
        gap: 6px;
    }

    /* Botón idioma */
    .lang-switch {
        position: absolute;
        top: 10px;
        right: 15px;
    }

    /* BURGER visible */
    .burger {
        display: block;
        position: absolute;
        right: 10px;
        top: 45px;
        cursor: pointer;
        width: 35px;
        height: 25px;
        z-index: 1000;
    }

    .burger-line {
        width: 100%;
        height: 4px;
        background: #fff;
        margin: 5px 0;
        transition: 0.3s;
    }

    /* MENU MÓVIL */
    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        background: #0d1b2a;
        width: 70%;
        height: 100vh;
        padding-top: 80px;
        padding-left: 30px;
        box-shadow: -4px 0 12px rgba(0,0,0,0.3);
        z-index: 9999;
    }

    .mobile-menu a {
        display: block;
        padding: 20px 0;
        font-size: 22px;
        color: white;
    }

/* ===========================================
   FIX: evitar que el nav se duplique o expanda
===========================================*/

/* Forzar que nav solo mida su contenido real */
.nav {
    white-space: nowrap;
    display: flex;
    justify-content: center;
    gap: 30px;
    overflow: hidden;
}

/* Cuando un idioma está oculto, que no deje espacio */
.lang {
    display: none !important;
}

.lang-btn.active ~ .lang,
.lang-btn.active[data-lang="en"] ~ .lang.en,
.lang-btn.active[data-lang="es"] ~ .lang.es {
    display: block !important;
}

/* ===========================================
   DESKTOP — solo un menú, centrado
===========================================*/
@media (min-width: 901px) {
    .mobile-menu {
        display: none !important;
    }
}

/* ===========================================
   MOBILE — ocultar menú de escritorio SIEMPRE
===========================================*/
@media (max-width: 900px) {

    /* Ocultar menú desktop */
    .nav {
        display: none !important;
    }

    /* Asegurar que no aparezca nada fantasma */
    .nav a {
        display: none !important;
    }

    /* Ajustar header para que no crezca */
    .header {
        padding-bottom: 10px;
    }
}

