/* 🎨 PALETA DE COLORES FUTURISTA INDUSTRIAL (HIGH-TECH DARK) */
:root {
    --bg-main: #0a0f1d;          /* Fondo ultra oscuro tecnológico */
    --bg-card: #131a30;          /* Fondo de tarjetas premium */
    --primary-neon: #00f2fe;     /* Cian Eléctrico (Conectividad) */
    --accent-neon: #ffb800;      /* Oro Industrial (Precisión) */
    --text-main: #f1f5f9;        /* Blanco brillante para textos */
    --text-muted: #94a3b8;       /* Gris azulado para textos secundarios */
    --border-glow: rgba(0, 242, 254, 0.15);
    --shadow-glow: 0 8px 32px 0 rgba(0, 242, 254, 0.05);
}

/* 🛠️ RESET Y ESTILOS GENERALES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html { 
    scroll-behavior: smooth; 
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.contenedor {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ⚓ NUEVO MENÚ: PÍLDORA FLOTANTE INTERACTIVA */
.header-industrial {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    background: rgba(19, 26, 48, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px; /* Forma de píldora */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
}

.logo-header {
    max-height: 38px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.2));
}

/* Enlaces del menú estilo cápsula */
.menu-lista {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.menu-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.menu-link:hover {
    color: var(--primary-neon);
    background: rgba(0, 242, 254, 0.06);
}

/* Botón de Cotización integrado fluidamente */
.menu-link.contacto-btn {
    background: linear-gradient(135deg, var(--primary-neon), #0072ff);
    color: #0a0f1d;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.menu-link.contacto-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
    color: #0a0f1d;
}

/* --- DISEÑO DE LAS SECCIONES --- */
.section-padding {
    padding: 120px 0;
}

.bg-light-section { background-color: #0d1527; }
.bg-dark-section { background-color: #070b14; }
.bg-accent-section { background-color: #091122; }

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--primary-neon);
    margin-bottom: 12px;
    position: relative;
    padding-left: 15px;
}
.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--accent-neon);
    border-radius: 50%;
}

h2, h3 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 35px;
}

p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.text-highlight {
    font-size: 1.25rem; 
    font-weight: 600; 
    color: var(--accent-neon);
    line-height: 1.5;
}

/* --- BOTONES DE ACCIÓN FUTURISTAS --- */
.btn-gold, .btn-outline {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 30px; /* Bordes redondeados modernos */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 50px;
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent-neon), #ff8800);
    color: #0a0f1d;
    box-shadow: 0 4px 20px rgba(255, 184, 0, 0.25);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 184, 0, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
    border-color: var(--primary-neon);
    color: var(--primary-neon);
    background: rgba(0, 242, 254, 0.02);
    transform: translateY(-3px);
}

/* --- HERO BANNER CON OVERLAY TECNOLÓGICO --- */
.hero-banner {
    position: relative;
    padding: 220px 0 450px 0;
    background: linear-gradient(180deg, rgba(10, 15, 29, 0.4) 0%, var(--bg-main) 100%), url('banner2.png') no-repeat center center;
    background-size: cover;
}

.hero-badge {
    display: inline-block;
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--primary-neon);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
    letter-spacing: 1.5px;
    background: rgba(0, 242, 254, 0.05);
    margin-left: 50px;
}

.hero-banner h1 {
    font-size: 3.8rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 24px;
    margin-left: 50px;
}

.hero-banner h1 span {
    color: transparent;
    -webkit-text-stroke: 1px var(--primary-neon); /* Efecto de texto calado futurista */
}

.hero-lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 45px;
    margin-left: 50px;
}

.hero-actions { display: flex; gap: 20px; }

/* --- CUADRÍCULA DE SERVICIOS: TARJETAS CYBERPUNK --- */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 45px 35px;
    border-radius: 12px; /* Esquinas más suaves */
    height: 100%;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-glow);
    overflow: hidden;
}

/* Efecto de línea de luz superior al hacer hover */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-neon), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 242, 254, 0.2);
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.1);
}

.card:hover::before {
    transform: scaleX(1);
}

.numero {
    font-size: 2.5rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
    line-height: 1;
    display: block;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.card:hover .numero {
    -webkit-text-stroke: 1px var(--accent-neon);
}

.card h3 {
    font-size: 1.35rem;
    color: var(--text-main);
    margin-bottom: 15px;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- SECCIÓN SOBRE NOSOTROS --- */
.grid-about {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background-color: var(--bg-card);
    padding: 40px 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.stat-card h3 {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--primary-neon);
    margin-bottom: 5px;
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

.stat-card p {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- PRESENCIA --- */
.presence-intro { max-width: 800px; font-size: 1.1rem; }
.grid-presence {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.presence-node {
    background: #0d1527;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
}

.presence-node::after {
    content: '';
    position: absolute;
    left: 0; top: 35px; width: 4px; height: 30px;
    background-color: var(--primary-neon);
    border-radius: 0 4px 4px 0;
}

.presence-node h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-left: 10px;
}

.presence-node p { padding-left: 10px; }

/* --- FILOSOFÍA (MISIÓN Y VISIÓN) --- */
.grid-corporate-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.corp-card {
    background-color: var(--bg-card);
    padding: 50px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.card-icon { font-size: 2.8rem; margin-bottom: 20px; }

.valores-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 50px;
    text-align: center;
}

.valores-pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; }
.pill {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 14px 28px;
    border-radius: 50px; /* Estilo píldora */
    color: var(--text-muted);
    font-size: 0.95rem;
}
.pill strong { color: var(--primary-neon); }

/* --- SECCIÓN CONTACTO (BENTO GRID MODERNO) --- */
.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contacto-branding {
    padding: 60px;
    background: radial-gradient(circle at top left, rgba(0, 242, 254, 0.1), transparent);
}

.contacto-details {
    padding: 60px;
    background-color: rgba(10, 15, 29, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 35px;
}

.info-row .icon { color: var(--primary-neon); font-size: 1.6rem; }
.info-row h5 { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.info-row p, .info-row a { color: var(--text-main); font-size: 1.05rem; text-decoration: none; }
.info-row a:hover { color: var(--primary-neon); }

/* --- FOOTER --- */
.main-footer {
    background-color: #050811;
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    padding-left: 350px;
    padding-right: 350px;
}

.footer-content { display: flex; justify-content: space-between; align-items: center; }
.pfooter { margin-bottom: 0; color: var(--text-muted); }
.footer-legal { display: flex; gap: 25px; }
.footer-legal a { color: var(--text-muted); text-decoration: none; }
.footer-legal a:hover { color: var(--primary-neon); }

/* 📱 MENÚ RESPONSIVO (HAMBURGUESA MODERNA) */
.menu-toggle {
    display: none;
    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(--text-main);
    transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background-color: var(--primary-neon); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background-color: var(--primary-neon); }

/* 📱 MEDIA QUERIES RESPONSIVIDAD */
@media (max-width: 992px) {
    .grid-about, .grid-corporate-cards, .contacto-wrapper {
        grid-template-columns: 1fr;
    }
    .contacto-branding, .contacto-details { padding: 40px; }
    .hero-banner h1 { font-size: 2.8rem; }
    .header-industrial { top: 10px; width: 95%; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .section-padding { padding: 80px 0; }
    
    .menu-lista {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #131a30;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .menu-lista.active { max-height: 450px; padding: 15px 0; }
    .menu-lista li { width: 100%; text-align: center; }
    .menu-link { display: block; padding: 12px 0; width: 100%; border-radius: 0; }
    .menu-link.contacto-btn { width: 80%; margin: 10px auto; border-radius: 30px; }
    .footer-content { flex-direction: column; gap: 15px; text-align: center; }
}