/* ==========================================================================
   RESET & INITIALIZATION - Transfers Plus
   ========================================================================== */

:root {
    --primary-color: #0056b3;    
    --secondary-color: #f8f9fa;  
    --text-color: #333333;       
    --text-light: #666666;       
    --white: #ffffff;
    --black: #000000;
    --font-main: 'Inter', sans-serif;
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px; 
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* TRANSICIÓN PARA EL EMPUJE */
    position: relative;
    left: 0;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

/* CLASE QUE ACTIVA EL EMPUJE */
body.no-scroll {
    overflow: hidden;
    transform: translateX(-20px); /* Empuja la web a la izquierda */
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   HEADER PRINCIPAL
   ========================================================================== */

.main-header {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    padding: 0 20px;
}

.logo img {
    width: 210px;
    height: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
    margin: 0;
}

.nav-menu > li > a {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    text-decoration: none;
}

/* ==========================================================================
   IDIOMAS ESCRITORIO
   ========================================================================== */

.lang-item { 
    margin-left: 15px; 
    position: relative; 
    list-style: none;
    padding-bottom: 20px; 
    margin-bottom: -20px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border: 1.5px solid #eee;
    border-radius: 8px;
    background: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
}

.lang-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    background: #fff;
    min-width: 160px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 10px;
    display: none;
    padding: 10px 0;
    z-index: 1100;
    border: 1px solid #f0f0f0;
}

.lang-item:hover .lang-dropdown { 
    display: block; 
}

.lang-dropdown a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.85rem;
}

.lang-dropdown a:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

/* ==========================================================================
   BOTÓN HAMBURGUESA / X
   ========================================================================== */

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 10001;
    padding: 10px;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 5px;
    transition: 0.3s;
}

/* ==========================================================================
   RESPONSIVE MÓVIL (Corrección de Ancho Basura)
   ========================================================================== */

@media (max-width: 991px) {
    .menu-toggle { display: flex !important; }

    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important; 
        
        /* CAMBIO 1: Quitamos los 250px y hacemos que se ajuste al texto */
        width: max-content !important; 
        min-width: 180px !important; 
        
        height: 100vh !important;
        background: #fff !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        
        /* CAMBIO 2: Ajustamos el padding para que no sobre aire a la derecha */
        padding: 80px 40px 40px 25px !important; 
        
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
        z-index: 9999 !important;
        transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1) !important;
    }

    .nav-menu.active { 
        right: 0 !important; 
    }

    .lang-item {
        display: none !important;
    }

    .nav-menu > li { 
        width: 100%; 
        border-bottom: 1px solid #f2f2f2;
    }

    .nav-menu > li > a {
        display: block;
        padding: 18px 0;
        font-size: 0.9rem !important;
        color: #333;
        
        /* CAMBIO 3: Evitamos que el texto se rompa, el menú crecerá lo justo */
        white-space: nowrap !important; 
    }

    /* X de cierre */
    .menu-toggle.active {
        position: fixed;
        right: 20px;
        top: 25px;
    }

    .menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); background: #333; }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background: #333; }
}


/* ==========================================================================
   FOOTER RESPONSIVO (APILADO PARA MÓVIL)
   ========================================================================== */

.main-footer { 
    background-color: #1a1a1a; 
    color: #ffffff; 
    padding: 60px 20px 0; /* Espacio a los lados para que no toque el borde del cel */
}

.footer-grid { 
    display: grid; 
    /* Escritorio: 4 columnas */
    grid-template-columns: 1.2fr 1fr 1fr 1fr; 
    gap: 30px; 
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 50px; 
}

.footer-title { 
    color: #ffffff; 
    font-size: 16px; 
    font-weight: 700; 
    margin-bottom: 25px; 
    text-transform: uppercase; 
}

/* Estilo para las listas dentro del footer para que no tengan bullets */
.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-grid ul li {
    margin-bottom: 10px;
}

.footer-grid ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-grid ul li a:hover {
    color: #fff;
}

.footer-social { 
    display: flex; 
    gap: 10px; 
    margin-top: 15px; 
}

.social-btn { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 36px; 
    height: 36px; 
    background: #2a2a2a; 
    color: #ffffff !important; 
    border-radius: 50%; 
}

.footer-bottom { 
    background-color: #111111; 
    padding: 25px 20px; 
    border-top: 1px solid #252525; 
    text-align: center; 
    font-size: 14px;
    color: #888;
}

/* --- RESPONSIVO --- */

/* Tablets (1024px): Bajamos a 2 columnas para que no se vea apretado */
@media (max-width: 1024px) { 
    .footer-grid { 
        grid-template-columns: 1fr 1fr; 
    } 
}

/* Móviles (768px para abajo): UNA SOLA COLUMNA (Fluido) */
@media (max-width: 768px) { 
    .footer-grid { 
        grid-template-columns: 1fr !important; /* Una bajo la otra */
        text-align: left; /* O center si prefieres que todo esté centrado */
        gap: 40px; /* Más espacio entre bloques para que respire */
    } 

    .footer-social { 
        justify-content: flex-start; /* Alineado al texto */
    } 
    
    .main-footer {
        padding-top: 40px;
    }
}