@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #fb6e1e;
    --primary-hover: #e05c12;
    --dark-color: #1a1a1a;
    --text-color: #333333;
    --text-muted: #666666;
    --bg-color: #ffffff;
    --light-bg: #fdfbf7;
    --card-bg: #ffffff;
    --border-color: #eeeeee;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 35px rgba(251, 110, 30, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* Fallback tipográfico para Logo */
.logo-fallback {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-color);
}
.logo-fallback span {
    color: var(--primary-color);
}

/* Botones reutilizables */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--primary-color);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(251, 110, 30, 0.3);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 110, 30, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid #ffffff;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: var(--dark-color);
    transform: translateY(-2px);
}

.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.btn-sm:hover {
    background-color: var(--primary-hover);
}

/* Botón flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 58px;
    height: 58px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(8deg);
}

/* Global Footer */
footer {
    background-color: #121212;
    color: #dddddd;
    padding-top: 70px;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 50px 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-col p {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 10px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--primary-color);
}

.links-col ul {
    list-style: none;
}

.links-col li {
    margin-bottom: 10px;
}

.links-col a {
    color: #aaa;
    font-size: 0.9rem;
}

.links-col a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background-color: #222222;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-col i {
    color: var(--primary-color);
    margin-right: 8px;
}

.map-container iframe {
    width: 100%;
    height: 160px;
    border: none;
    border-radius: 8px;
}

.footer-bottom {
    background-color: #0a0a0a;
    text-align: center;
    padding: 20px 5%;
    border-top: 1px solid #222222;
    font-size: 0.85rem;
    color: #888888;
}

.footer-bottom strong {
    color: #ffffff;
}

/* Ocultar botón hamburguesa en computadora */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* =========================================
   ADAPTACIÓN MÓVIL EXACTA (RESPONSIVE)
========================================= */
@media (max-width: 768px) {
    /* 1. Estado inicial y alineación de logo/botón a los extremos */
    .navbar {
        display: flex;
        justify-content: space-between; /* Empuja el botón a la derecha */
        align-items: center;
        padding: 15px 5%;
        background: transparent !important;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    /* 2. Al hacer scroll: aparece barra oscura con logo y botón */
    .navbar.scrolled {
        opacity: 1;
        visibility: visible;
        background-color: #ffffff !important; /* Negro más elegante */
        box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    }

    .navbar.scrolled .logo img {
        max-height: 40px !important; /* Logo ligeramente más pequeño */
    }

    /* Mostrar botón hamburguesa a la derecha */
    .menu-toggle {
        display: block;
        color: #313030;
        padding: 6px 10px;
        border: 1px solid #333333;
        border-radius: 4px;
        background-color: transparent; /* Fondo transparente más limpio */
        margin-left: auto; /* Asegura que se pegue a la derecha */
    }

    /* 3. Menú Desplegable Oscuro */
/* 3. Menú Desplegable Oscuro y Compacto */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #161616 !important;
        flex-direction: column;
        align-items: center;
        gap: 0 !important; /* Fuerza a eliminar huecos entre botones */
        margin: 0 !important;
        padding: 0 !important;
        max-height: 0; 
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    .nav-links.open {
        max-height: 400px !important; /* Altura de sobra para que nada se corte */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 0 !important; /* Elimina márgenes rebeldes del CSS global */
        padding: 0 !important;
    }

    /* 4. Textos finos, pequeños y estrictamente controlados */
    .nav-links a {
        display: block !important;
        padding: 16px 0 !important; /* Espacio vertical exacto y delgado */
        margin: 0 !important;
        color: #cccccc !important;
        font-size: 0.8rem !important; 
        font-weight: 500 !important;
        letter-spacing: 2px !important;
        text-transform: uppercase !important;
        line-height: 1 !important; /* Evita que la altura de línea infle la caja */
        text-shadow: none !important;
        border-bottom: 1px solid #2a2a2a !important;
        transition: color 0.3s ease;
    }

    .nav-links li:last-child a {
        border-bottom: none !important;
    }

    .nav-links a:hover, 
    .nav-links a.active {
        color: var(--primary-color) !important;
        background-color: rgba(255, 255, 255, 0.05) !important;
    }

    .nav-links a::after {
        display: none !important; 
    }

    /* 4. Textos más pequeños, finos y profesionales */
    .nav-links a {
        display: block;
        padding: 14px 0; /* Reduce el espacio vertical excesivo */
        color: #cccccc !important; /* Blanco un poco más apagado para no deslumbrar */
        font-size: 0.75rem; /* Letra más pequeña y estética */
        font-weight: 500;
        letter-spacing: 2px;
        text-transform: uppercase;
        text-shadow: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Línea separadora casi invisible */
        transition: color 0.3s ease;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-links a:hover, 
    .nav-links a.active {
        color: var(--primary-color) !important;
        background-color: rgba(255, 255, 255, 0.02);
    }

    .nav-links a::after {
        display: none; 
    }

    .nav-links a:hover, 
    .nav-links a.active {
        color: var(--primary-color) !important;
        background-color: rgba(255, 255, 255, 0.02);
    }

    .nav-links a::after {
        display: none; 
    }

    /* Ajuste de Hero para evitar superposición */
    h1, .hero-content h1, .nosotros-hero h1, .contacto-hero h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }
}
