/* 🎨 PALETA DE COLORES: NEO-LOGISTICS INDUSTRIAL */
:root {
    --primary-color: #0d151c;       /* Azul Pizarra Profundo (Acero) */
    --primary-light: #15222e;       /* Gris Contenedor */
    --accent-color: #ccdd00;        /* Lima Eléctrico Corporativo */
    --accent-hover: #b2c200;        /* Lima Oscurecido */
    --neutral-dark: #1e293b;        /* Texto Principal */
    --neutral-muted: #64748b;       /* Texto Secundario */
    --neutral-light: #fafbfd;       /* Fondo General Industrial */
    --white: #ffffff;
    --border-line: #cbd5e1;         /* Líneas de cuadrícula industrial */
    --border-light: rgba(255, 255, 255, 0.08);
}

/* 🛠️ RESET GENERAL Y ESTRUCTURA BRUTALISTA */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html { 
    scroll-behavior: smooth; 
}

body {
    background-color: var(--neutral-light);
    color: var(--neutral-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.contenedor, .section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-padding {
    padding: 120px 0;
    border-bottom: 1px solid rgba(13, 21, 28, 0.08);
}

/* --- VARIACIONES DE SECCIÓN --- */
.bg-light-section {
    background-color: var(--neutral-light);
}

.bg-dark-section {
    background-color: var(--primary-color);
    color: var(--white);
    border-bottom: none;
}

.bg-accent-section {
    background-color: var(--primary-light);
    color: var(--white);
    border-bottom: none;
}

/* --- ⚓ NUEVO MENU: HEADER EN CÁPSULA FLOTANTE --- */
.header-industrial {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1140px;
    background-color: rgba(13, 21, 28, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px; /* Forma de píldora moderna */
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
}

.logo-header {
    max-height: 38px;
    width: auto;
    object-fit: contain;
}

/* 🔗 ENLACES DEL MENÚ FLOTANTE */
.menu-lista {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.menu-link {
    text-decoration: none;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.25s ease;
}

.menu-link:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Botón Destacado de Acción */
.menu-link.contacto-btn {
    background-color: var(--accent-color);
    color: var(--primary-color) !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(204, 221, 0, 0.25);
}

.menu-link.contacto-btn:hover {
    background-color: var(--white);
    transform: scale(1.03);
}

/* --- TIPOGRAFÍAS ASIMÉTRICAS --- */
.section-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    background: rgba(13, 21, 28, 0.05);
    padding: 6px 14px;
    border-radius: 4px;
}

.bg-dark-section .section-tag, .bg-accent-section .section-tag {
    color: var(--accent-color);
    background: rgba(204, 221, 0, 0.1);
}

h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 45px;
}

.bg-dark-section h2, .bg-accent-section h2 {
    color: var(--white);
}

h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
}

.bg-dark-section h3, .bg-accent-section h3 { color: var(--white); }

p {
    font-size: 1.05rem;
    color: var(--neutral-muted);
}

.bg-dark-section p, .bg-accent-section p { color: #94a3b8; }

.text-highlight {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 30px;
}

/* --- HERO BANNER INDUSTRIAL INMERSIVO --- */
.hero-banner {
    padding: 220px 0 160px 0;
    background: linear-gradient(180deg, rgba(13, 21, 28, 0.85) 0%, var(--primary-color) 100%), url('banner.png') no-repeat center center;
    background-size: cover;
    color: var(--white);
    position: relative;
}

/* Línea de cuadrícula estética de fondo */
.hero-banner::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.hero-content { 
    max-width: 900px; 
    margin-left: 50px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 25px;
}

.hero-banner h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 35px;
}

.hero-banner h1 span {
    color: transparent;
    -webkit-text-stroke: 1px var(--white); /* Texto hueco industrial moderno */
}

.hero-lead {
    font-size: 1.3rem;
    color: #cbd5e1;
    margin-bottom: 45px;
}

.hero-actions { display: flex; gap: 16px; }

/* --- BOTONES BRUTALISTAS --- */
.btn-gold, .btn-outline {
    padding: 16px 36px;
    font-weight: 800;
    font-size: 0.85rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.btn-gold {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-gold:hover {
    background-color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* --- REJILLA DE SERVICIOS (BLOQUES ASIMÉTRICOS) --- */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.card {
    background-color: var(--white);
    border: 1px solid rgba(13, 21, 28, 0.08);
    padding: 45px 35px;
    border-radius: 4px; /* Bordes rectos imponentes */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(13, 21, 28, 0.05);
    border-color: var(--primary-color);
}

.numero {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(13, 21, 28, 0.04);
    position: absolute;
    top: 20px;
    right: 30px;
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--neutral-light);
}

.card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* --- DISEÑO SOBRE NOSOTROS Y MÉTRICAS INDUSTRIALES --- */
.grid-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-card {
    background-color: var(--primary-light);
    border: 1px solid var(--border-light);
    padding: 40px 24px;
    border-radius: 4px;
    text-align: center;
}

.stat-card h3 {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.stat-card p {
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- SECCIÓN COBERTURA / PRESENCIA --- */
.grid-presence {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.presence-node {
    background-color: var(--primary-color);
    border: 1px solid var(--border-light);
    padding: 40px;
    border-radius: 4px;
    position: relative;
}

.presence-node::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background-color: var(--accent-color);
}

.presence-node h4 {
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- FILOSOFÍA CORPORATIVA DE CARGA O PESADA --- */
.grid-corporate-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 60px;
}

.corp-card {
    background-color: var(--white);
    border: 1px solid rgba(13, 21, 28, 0.08);
    padding: 50px 40px;
    border-radius: 4px;
}

.corp-card h3 {
    color: var(--primary-color) !important;
    font-size: 1.6rem;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--neutral-light);
}

.corp-card p {
    color: var(--neutral-dark) !important;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.card-icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
    display: block;
}

.valores-pills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.pill {
    background-color: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--accent-color);
    padding: 24px;
}

.pill strong {
    color: var(--white);
    font-size: 1.05rem;
    display: block;
    margin-bottom: 6px;
}

/* --- CONTACTO INTEGRADO PREMIUM --- */
.contacto-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(13, 21, 28, 0.08);
}

.contacto-branding {
    padding: 70px;
    background-color: var(--primary-color);
    color: var(--white);
}

.contacto-branding h3 {
    color: var(--white);
    font-size: 2.4rem;
    margin-top: 20px;
    margin-bottom: 20px;
}

.contacto-details {
    padding: 70px;
    background-color: var(--neutral-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
}

.info-row {
    display: flex;
    gap: 24px;
    align-items: center;
}

.info-row .icon {
    font-size: 1.6rem;
    color: var(--primary-color);
    background-color: rgba(13, 21, 28, 0.05);
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.info-row h5 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--neutral-muted);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.info-row p, .info-row a {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

.info-row a:hover {
    color: var(--accent-hover);
}

/* --- FOOTER --- */
.main-footer {
    background-color: #080d12;
    padding: 50px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.pfooter { color: #526071; margin-bottom: 0; }
.footer-legal a { color: #526071; text-decoration: none; margin-left: 24px; font-weight: 600; }
.footer-legal a:hover { color: var(--white); }

/* 📱 ADAPTACIÓN TOTAL A DISPOSITIVOS MÓVILES */
.menu-toggle { display: none; }

@media (max-width: 968px) {
    .header-industrial {
        top: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        border-left: none; border-right: none; border-top: none;
    }
    
    .nav-container { padding: 14px 24px; }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 22px;
        height: 16px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .menu-toggle span {
        width: 100%;
        height: 2px;
        background-color: var(--white);
        transition: all 0.3s ease;
    }

    .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.open span:nth-child(2) { opacity: 0; }
    .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .menu-lista {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .menu-lista.active {
        max-height: 380px;
        padding: 20px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .menu-lista li { width: 100%; text-align: center; }
    .menu-link { display: block; padding: 14px 0; border-radius: 0; }
    .menu-link:hover { background-color: rgba(255,255,255,0.02); }
    
    .menu-link.contacto-btn {
        width: 80%;
        margin: 15px auto 0 auto;
        border-radius: 50px;
    }

    .grid-about, .grid-corporate-cards, .contacto-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contacto-branding, .contacto-details { padding: 40px 24px; }
    .hero-banner h1 { font-size: 2.8rem; }
}