/* ============================================================
   VMS PLUS - SISTEMA DE DISEÑO GLOBAL (MASTER)
   ============================================================ */

:root {
    --primary: #E31E24;        /* Rojo VMS */
    --primary-dark: #b3151a;
    --bg-dark: #050505;        /* Negro profundo Tech */
    --bg-card: #111111;        /* Gris para profundidad */
    --text-main: #ffffff;
    --text-muted: #888888;
    --header-bg: rgba(255, 255, 255, 0.98); /* Blanco para logo negro */
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 1. RESET & BASES */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: var(--font-main); 
    background-color: var(--bg-dark); 
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 2. TIPOGRAFÍA GLOBAL (SEO & JERARQUÍA) */
h1, h2, h3 { font-weight: 900; text-transform: uppercase; letter-spacing: -1px; line-height: 0.9; }
p { font-weight: 300; font-size: 1.1rem; }

/* 3. HEADER UNIVERSAL (Optimizado para Logo Negro) */
.main-header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.logo img { height: 50px; width: auto; transition: var(--transition); }

/* Navegación Desktop */
.nav-menu { display: flex; list-style: none; gap: 35px; align-items: center; }
.nav-menu a { 
    color: #000; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 0.85rem; 
    letter-spacing: 1px;
    transition: var(--transition);
}
.nav-menu a:hover { color: var(--primary); }

/* 4. BOTONES DEL SISTEMA */
.btn-vms {
    background: var(--primary);
    color: #fff !important;
    padding: 16px 35px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 900;
    display: inline-block;
    transition: var(--transition);
    border: 2px solid var(--primary);
    text-align: center;
}
.btn-vms:hover { background: transparent; color: var(--primary) !important; box-shadow: 0 10px 20px rgba(227,30,36,0.2); }

/* 5. HERO & SECCIONES GENÉRICAS */
.hero-section {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

.video-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: -1;
    filter: brightness(0.4) saturate(0.5);
}

section { padding: 120px 30px; max-width: 1400px; margin: 0 auto; }

/* 6. GRID DE TARJETAS (USABLE EN TODA LA WEB) */
.grid-system {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.vms-card {
    background: var(--bg-card);
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}
.vms-card:hover { border-color: var(--primary); transform: translateY(-10px); }

/* 7. FOOTER (Con autoinversión de logo) */
.main-footer { background: #000; padding: 80px 30px 40px; border-top: 1px solid #222; margin-top: 50px; }
.footer-logo { height: 40px; filter: brightness(0) invert(1); margin-bottom: 20px; }

/* 8. RESPONSIVE ENGINE (EL QUE LO HACE TODO BIEN) */
@media (max-width: 992px) {
    .logo img { height: 35px; }
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--header-bg);
        flex-direction: column;
        padding: 50px 0;
        transition: 0.5s;
    }
    .nav-menu.active { right: 0; }
    .nav-menu a { font-size: 1.5rem; color: #000; }
    
    .mobile-toggle { display: block; cursor: pointer; }
    .mobile-toggle span { display: block; width: 25px; height: 3px; background: #000; margin: 5px; }
    
    h1 { font-size: 3rem !important; }
    section { padding: 80px 20px; }
}

@media (min-width: 993px) {
    .mobile-toggle { display: none; }
}