/* ============================================================
   BRIQO - CONFIGURACIÓN MAESTRA DE ESTILOS
   Soporte: iPhone, Android, Tablet y Laptop
   ============================================================ */

:root {
    --primary: #ea580c;
    --primary-orange: #ea580c; /* Definida para compatibilidad */
    --dark: #0f172a;
    --accent: #25d366;
    --glass: rgba(255, 255, 255, 0.95);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    background-color: #ffffff;
}

/* Barra de progreso superior (Efecto Lectura) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), #fb923c);
    z-index: 10000;
    transition: width 0.1s linear;
}

/* --- TIPOGRAFÍA FORZADA --- */
h1, h2, h3, h4, h5, h6, b, strong, .font-bold {
    font-weight: 800 !important;
}

h1 {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

/* --- NAVEGACIÓN Y MENÚS (DROPDOWNS) --- */
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #f1f5f9;
}

.dropdown {
    position: relative;
    padding: 10px 0;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    background: white;
    min-width: 240px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border: 1px solid #f1f5f9;
    padding: 12px 0;
    z-index: 1000;
    max-height: 80vh; 
    overflow-y: auto;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.2s;
    text-decoration: none;
    border-bottom: 1px solid #f8fafc;
}

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

.dropdown-item:hover {
    background-color: #fff7ed;
    color: var(--primary);
    padding-left: 25px;
}

.dropdown-item i {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* --- HERO & VIDEO (SEPARACIÓN PREMIUM) --- */
.hero {
    background: radial-gradient(circle at top right, #fff7ed, #ffffff);
    padding: 120px 20px 40px;
}

.video-separation-frame {
    margin-top: 180px !important; /* Espacio masivo solicitado */
    position: relative;
    z-index: 5;
}

.video-outer-glow {
    position: relative;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.08) 0%, transparent 80%);
    padding: 20px;
    border-radius: 60px;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: 40px;
    overflow: hidden;
    border: 12px solid white;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.3);
}

/* --- TARJETAS TÉCNICAS --- */
.card {
    background: white;
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    box-shadow: 0 30px 50px rgba(234, 88, 12, 0.15);
}

/* Efecto Glow Industrial */
.card::after {
    content: "";
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.05) 0%, transparent 70%);
    opacity: 0; transition: opacity 0.5s ease;
}
.card:hover::after { opacity: 1; }

/* --- WHATSAPP PREMIUM (REDISEÑADO) --- */
.wa-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    z-index: 5000;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    transition: all 0.4s ease;
}

.wa-btn:hover {
    transform: scale(1.1) rotate(15deg);
}

/* Anillo de pulso sónico */
.wa-btn::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    background: var(--accent);
    animation: shockwave 2.5s infinite;
    z-index: -1;
}

@keyframes shockwave {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* --- MAPA DARK LOGÍSTICA --- */
#mapa-logistica {
    background-image: linear-gradient(to bottom, #0a0a0a, #0f172a);
}

.animate-ping {
    animation: ping 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping { 75%, 100% { transform: scale(3); opacity: 0; } }

/* --- RESPONSIVIDAD TOTAL --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.8rem !important; }

    .video-separation-frame {
        margin-top: 60px !important;
    }

    .video-container {
        border-radius: 20px;
        border-width: 6px;
    }

    /* Forzar rejillas a 1 columna en móvil */
    .grid {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
        gap: 20px !important;
    }

    .dropdown-menu {
        min-width: 90vw;
        position: fixed;
        left: 5vw;
        top: 70px;
    }
}

/* Animaciones Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- ESTILOS DE CALCULADORA --- */
#bar-pet, #bar-uni {
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
/* --- OPTIMIZACIÓN DE FLUIDEZ MÓVIL --- */
@media (max-width: 768px) {
    * {
        -webkit-overflow-scrolling: touch;
    }
    .reveal {
        transition: all 0.5s ease-out; /* Animaciones más rápidas en móvil */
    }
}