/* =========================================
   IMPORTACIÓN DE TIPOGRAFÍAS (Google Fonts)
   Orbitron (Marca), Montserrat (Títulos), Roboto (Textos)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Orbitron:wght@700;900&family=Roboto:wght@300;400;700&display=swap');

/* =========================================
   VARIABLES CORPORATIVAS LOCIFAM
   ========================================= */
:root {
    --bg-main: #0B1E36; /* Azul marino profundo */
    --logo-base: #1E517B; 
    --neon-cyan: #4DF3FF; /* Detalles deslumbrantes */
    --neon-blue: #00B4D8;
    --text-locifam: #2A81B8; /* Azul acero brillante */
    --text-tech: #4FA3D1; 
    --text-slogan: #A4C4DB; /* Gris plateado */
    --text-white: #ffffff;
}

/* Reseteo básico para consistencia en navegadores */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* El body usa Roboto para máxima legibilidad B2B (Mobile-First) */
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-white);
    line-height: 1.6;
    position: relative;
    z-index: 0;
    overflow-x: hidden;
}


/* =========================================
   LOGO DE FONDO PERSISTENTE (Fijo en el scroll)
   ========================================= */
body::before {
    content: ""; 
    position: fixed; /* Se queda pegado a la pantalla */
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('logo.png');
    background-size: 60%; /* Tamaño ideal para que no sature */
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08; /* Muy tenue para no tapar el texto */
    z-index: -1; /* Se asegura de estar detrás de absolutamente todo */
    pointer-events: none;
}

/* =========================================
   BARRA DE NAVEGACIÓN (NAVBAR)
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(11, 30, 54, 0.95); /* Azul marino casi sólido pero con efecto cristal */
    backdrop-filter: blur(10px); /* Desenfoque tipo Apple/Glassmorphism */
    position: fixed; /* Sticky top */
    top: 0; left: 0; width: 100%;
    z-index: 9999; /* Máxima prioridad sobre el resto de la web */
    border-bottom: 1px solid rgba(77, 243, 255, 0.2);
}

.nav-brand {
    font-size: 1.5rem;
    color: var(--neon-cyan);
    text-decoration: none;
    letter-spacing: 2px;
}

/* Enlaces base */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}
.nav-links li a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s ease;
}
.nav-links li a:hover { color: var(--neon-cyan); }
.nav-cta {
    background-color: var(--neon-blue);
    padding: 8px 18px;
    border-radius: 6px;
    color: var(--bg-main) !important;
    font-weight: bold;
}

/* =========================================
   MENÚS DESPLEGABLES (Dropdown)
   ========================================= */
.dropdown { position: relative; }
.dropdown-content {
    display: none; /* Oculto por defecto */
    position: absolute;
    top: 100%; left: 0;
    background-color: var(--logo-base);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    border-radius: 8px;
    overflow: hidden;
    z-index: 10000;
}
.dropdown-content li { width: 100%; }
.dropdown-content li a {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dropdown-content li a:hover { background-color: var(--neon-cyan); color: var(--bg-main); }
/* El hover mágico que despliega el menú en PC */
.dropdown:hover .dropdown-content { display: block; }

/* =========================================
   MÓVIL: MENÚ HAMBURGUESA
   ========================================= */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger .bar { width: 25px; height: 3px; background-color: var(--neon-cyan); transition: 0.3s; }

/* Media Query para pantallas pequeñas */
@media (max-width: 768px) {
    .hamburger { display: flex; } /* Mostramos las 3 rayas */
    .nav-links {
        position: fixed;
        right: -100%; /* Oculto fuera de la pantalla a la derecha */
        top: 60px;
        flex-direction: column;
        background-color: rgba(11, 30, 54, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.4s ease;
        padding: 40px 0;
        gap: 20px;
    }
    /* Clase que JS activará para deslizar el menú */
    .nav-links.active { right: 0; }
    
    /* En móviles, los desplegables se muestran siempre como lista normal */
    .dropdown-content { position: relative; display: block; box-shadow: none; background-color: transparent; }
    .dropdown-content li a { padding: 8px; color: var(--text-slogan); }
}

/* =========================================
   COMPENSACIÓN DE NAVBAR FIX
   Evita que la barra tape los H1 de las secciones al estar pegada arriba
   ========================================= */
body { padding-top: 70px; }

/* Aseguramos que el contenedor atrape la imagen y el texto quede por encima */
header.section-container, 
.subpage-header {
    position: relative; 
    overflow: hidden; 
    z-index: 1;
}

header.section-container > *, 
.subpage-header > * {
    position: relative; 
    z-index: 2; /* Empuja los textos y botones por encima del logo */
}


/* =========================================
   TIPOGRAFÍA ESTRUCTURAL (Jerarquía UX)
   ========================================= */
h1, h2, h3 { font-family: 'Montserrat', sans-serif; }
.font-orbitron { font-family: 'Orbitron', sans-serif; }
.brand-title { color: var(--text-locifam); text-transform: uppercase; letter-spacing: 2px; }
.brand-subtitle { color: var(--text-tech); letter-spacing: 4px; }
.brand-slogan { color: var(--text-slogan); text-transform: uppercase; letter-spacing: 5px; font-weight: 300; }

/* =========================================
   EFECTO SCROLL REVEAL (Scale-in)
   ========================================= */
/* Estado inicial (oculto y pequeño) */

/* =========================================
   EFECTO SCROLL REVEAL (Scale-in Corregido)
   ========================================= */
/* Estado Inicial: Oculto y al 85% de su tamaño */
.reveal {
    opacity: 0;
    transform: scale(0.85);
    /* Transición exclusiva para la aparición, separada del hover */
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Estado Final: Tamaño 100% y totalmente visible cuando JS detecta el scroll */
.reveal.active {
    opacity: 1;
    transform: scale(1) !important;
}

/* Estado final (Activado por JS cuando el usuario hace scroll) */
.reveal.active {
    opacity: 1;
    transform: scale(1);
}

/* =========================================
   BOTONES Y WIDGETS FLOTANTES
   ========================================= */
.floating-container { position: fixed; bottom: 25px; right: 25px; display: flex; flex-direction: column; gap: 15px; z-index: 1000; }
.floating-btn {
    padding: 12px 20px; border-radius: 50px; font-weight: bold; color: white !important; font-family: 'Montserrat', sans-serif;
    text-decoration: none !important; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5); transition: transform 0.3s ease; cursor: pointer; border: none;
}
.floating-btn:hover { transform: scale(1.08); }
.btn-wsp { background-color: #25D366; }
.btn-ia { background-color: var(--neon-blue); border: 1px solid var(--neon-cyan); color: var(--bg-main) !important;}

/* =========================================
   ESTRUCTURA DE SECCIONES Y TARJETAS
   ========================================= */
.section-container { padding: 80px 20px; max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 50px; color: var(--neon-cyan); }
.grid-container { display: grid; grid-template-columns: 1fr; gap: 25px; } /* Mobile First: 1 columna */

/* Tarjetas base con estética Glassmorphism corporativo */
.card {
    position: relative;
    background: linear-gradient(145deg, rgba(30, 81, 123, 0.2), rgba(11, 30, 54, 0.6));
    padding: 40px 25px;
    border-radius: 12px;
    border: 1px solid rgba(77, 243, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card h3 { color: var(--neon-cyan); margin-bottom: 15px; font-size: 1.4rem; }
.card p { color: var(--text-slogan); font-size: 1rem; }
.price { font-size: 1.2rem; font-weight: bold; color: var(--neon-blue); margin-bottom: 15px; display: block; }

/* Efecto hover interactivo */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(77, 243, 255, 0.15);
    border-color: var(--neon-blue);
}

.btn-info {
    display: inline-block; margin-top: 20px; background-color: transparent; color: var(--neon-cyan) !important;
    padding: 8px 16px; font-size: 0.9rem; font-weight: bold; border-radius: 6px; border: 1px solid var(--neon-cyan);
    text-decoration: none !important; transition: all 0.3s ease;
}
.card:hover .btn-info { background-color: var(--neon-cyan); color: var(--bg-main) !important; }

/* Botones Principales (CTA) */
.action-buttons { display: flex; gap: 15px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }
.btn-action {
    padding: 16px 32px; font-size: 1.1rem; font-weight: bold; border-radius: 8px; font-family: 'Montserrat', sans-serif;
    text-decoration: none !important; display: inline-flex; align-items: center; transition: all 0.2s ease; cursor: pointer;
}
.btn-primary { background-color: var(--neon-blue); color: var(--bg-main) !important; border: none; box-shadow: 0 0 15px rgba(0, 180, 216, 0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 25px rgba(77, 243, 255, 0.6); }
.btn-outline { background-color: transparent; color: var(--neon-cyan) !important; border: 2px solid var(--neon-cyan); }
.btn-outline:hover { background-color: rgba(77, 243, 255, 0.1); }

/* Steps (Cómo Funciona) */
.step-box { text-align: center; padding: 20px; }
.step-number { font-family: 'Orbitron', sans-serif; font-size: 3rem; color: var(--logo-base); display: block; margin-bottom: 10px; }

/* Footer */
footer { text-align: center; padding: 40px 20px; background-color: #05101E; color: var(--text-slogan); font-size: 0.85rem; border-top: 1px solid rgba(77,243,255,0.1); }
.footer-links a { color: var(--text-locifam); text-decoration: none; }

/* Media Queries para Tablets y Escritorio */
@media (min-width: 768px) {
    .grid-container { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 3.2rem; }
}
@media (min-width: 1024px) {
    .grid-container { grid-template-columns: repeat(4, 1fr); }
}