/* ===================================
   ICEID - Instituto de Ciberseguridad
   Modern CSS Framework
   =================================== */

/* ===== ROOT VARIABLES - CYBERSECURITY THEME ===== */
:root {
    /* REAL CYBERSECURITY COLORS */
    --cyber-blue: #00ffff;
    --cyber-blue-glow: rgba(0, 255, 255, 0.6);
    --cyber-blue-dark: #0080ff;
    --matrix-green: #00ff41;
    --terminal-green: #00c851;
    --neon-green: #39ff14;
    --cyber-white: #ffffff;
    --security-orange: #ff6600;
    
    /* Colores Base Tech */
    --primary-blue: #0a0f3d;
    --primary-blue-light: #1a2b5c;
    --primary-blue-dark: #030712;
    --secondary-gold: #00d4ff;
    --secondary-gold-light: #39e5ff;
    --secondary-gold-dark: #0099cc;
    
    /* Backgrounds Tecnológicos */
    --bg-dark: #0a0f1a;
    --bg-darker: #030712;
    --bg-grid: radial-gradient(circle at 25% 25%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    --bg-matrix: linear-gradient(0deg, transparent 24%, rgba(57, 255, 20, 0.03) 25%, rgba(57, 255, 20, 0.03) 26%, transparent 27%, transparent 74%, rgba(57, 255, 20, 0.03) 75%, rgba(57, 255, 20, 0.03) 76%, transparent 77%, transparent);
    
    /* Colores de Apoyo Tech */
    --white: #ffffff;
    --black: #000000;
    --gray-50: #0f1419;
    --gray-100: #1a2332;
    --gray-200: #233245;
    --gray-300: #364258;
    --gray-400: #4a5568;
    --gray-500: #718096;
    --gray-600: #a0aec0;
    --gray-700: #cbd5e0;
    --gray-800: #e2e8f0;
    --gray-900: #f7fafc;
    
    /* Colores de Estado Cyber */
    --success: var(--neon-green);
    --warning: var(--holo-gold);
    --error: var(--cyber-blue);
    --info: var(--cyber-blue);
    
    /* CYBERSECURITY GRADIENTS */
    --gradient-cyber: linear-gradient(135deg, var(--cyber-blue) 0%, var(--matrix-green) 50%, var(--cyber-white) 100%);
    --gradient-matrix: linear-gradient(45deg, var(--matrix-green) 0%, var(--terminal-green) 100%);
    --gradient-security: linear-gradient(135deg, var(--cyber-blue) 0%, var(--security-orange) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(0, 255, 65, 0.05) 100%);
    
    /* Efectos Glow */
    --glow-blue: 0 0 20px var(--cyber-blue-glow), 0 0 40px var(--cyber-blue-glow), 0 0 60px var(--cyber-blue-glow);
    --glow-green: 0 0 20px rgba(57, 255, 20, 0.5), 0 0 40px rgba(57, 255, 20, 0.3);
    --glow-purple: 0 0 20px rgba(139, 0, 255, 0.5), 0 0 40px rgba(139, 0, 255, 0.3);
    
    /* Tipografía Tech */
    --font-primary: 'Orbitron', 'Poppins', 'Segoe UI', monospace;
    --font-secondary: 'Rajdhani', 'Montserrat', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Tamaños de Fuente */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Espaciado */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Sombras Tech */
    --shadow-sm: 0 1px 2px 0 rgba(0, 212, 255, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 212, 255, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 212, 255, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 255, 0.4);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 60px rgba(0, 212, 255, 0.5);
    --shadow-cyber: 0 0 30px var(--cyber-blue-glow), inset 0 0 30px rgba(0, 212, 255, 0.1);
    --shadow-neon: 0 0 20px currentColor, 0 0 40px currentColor, 0 0 80px currentColor;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
    
    /* Transiciones */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
    
    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
}

/* ===== KEYFRAMES CYBERSECURITY ===== */
@keyframes matrix-rain {
    0% { transform: translateY(-100vh) translateX(-50%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100vh) translateX(-50%); opacity: 0; }
}

@keyframes cyber-pulse {
    0%, 100% { transform: scale(1); box-shadow: var(--glow-blue); }
    50% { transform: scale(1.05); box-shadow: var(--glow-blue), 0 0 80px var(--cyber-blue-glow); }
}

@keyframes hologram-flicker {
    0%, 100% { opacity: 1; }
    98% { opacity: 1; }
    99% { opacity: 0.8; transform: translate(0.2px, 0); }
    99.5% { opacity: 0.9; transform: translate(-0.2px, 0); }
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes data-stream {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100vw); }
}

@keyframes glitch {
    0% { clip: rect(42px, 9999px, 44px, 0); transform: skew(0.5deg); }
    5% { clip: rect(12px, 9999px, 59px, 0); transform: skew(0.1deg); }
    10% { clip: rect(25px, 9999px, 33px, 0); transform: skew(0.3deg); }
    15% { clip: rect(90px, 9999px, 92px, 0); transform: skew(0.2deg); }
    20% { clip: rect(5px, 9999px, 86px, 0); transform: skew(0.4deg); }
    25% { clip: rect(75px, 9999px, 99px, 0); transform: skew(0.1deg); }
    30% { clip: rect(46px, 9999px, 78px, 0); transform: skew(0.6deg); }
    35% { clip: rect(3px, 9999px, 15px, 0); transform: skew(0.2deg); }
    40% { clip: rect(65px, 9999px, 95px, 0); transform: skew(0.3deg); }
    45% { clip: rect(29px, 9999px, 61px, 0); transform: skew(0.1deg); }
    50% { clip: rect(2px, 9999px, 71px, 0); transform: skew(0.5deg); }
    55% { clip: rect(38px, 9999px, 19px, 0); transform: skew(0.4deg); }
    60% { clip: rect(85px, 9999px, 11px, 0); transform: skew(0.2deg); }
    65% { clip: rect(17px, 9999px, 36px, 0); transform: skew(0.3deg); }
    70% { clip: rect(74px, 9999px, 68px, 0); transform: skew(0.1deg); }
    75% { clip: rect(51px, 9999px, 84px, 0); transform: skew(0.6deg); }
    80% { clip: rect(23px, 9999px, 47px, 0); transform: skew(0.2deg); }
    85% { clip: rect(6px, 9999px, 93px, 0); transform: skew(0.4deg); }
    90% { clip: rect(35px, 9999px, 22px, 0); transform: skew(0.1deg); }
    95% { clip: rect(81px, 9999px, 54px, 0); transform: skew(0.3deg); }
    100% { clip: rect(37px, 9999px, 75px, 0); transform: skew(0.2deg); }
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    background: var(--bg-darker);
    color: var(--gray-900);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* ===== CYBER BACKGROUND EFFECTS ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        var(--bg-matrix),
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 0, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 0, 128, 0.02) 0%, transparent 50%);
    animation: grid-move 20s linear infinite;
    z-index: -2;
    opacity: 0.7;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, transparent 98%, rgba(0, 212, 255, 0.05) 100%),
        linear-gradient(180deg, transparent 98%, rgba(0, 212, 255, 0.05) 100%);
    background-size: 50px 50px;
    animation: grid-move 10s linear infinite reverse;
    z-index: -1;
    opacity: 0.3;
}

/* Matrix Rain Effect */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
}

.matrix-rain::before,
.matrix-rain::after {
    content: '01001100 01101001 01110110 01100101 01000000 01001000 01100001 01100011 01101011';
    position: absolute;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--neon-green);
    white-space: nowrap;
    animation: matrix-rain 8s linear infinite;
}

.matrix-rain::before {
    left: 10%;
    animation-delay: -2s;
}

.matrix-rain::after {
    left: 70%;
    animation-delay: -5s;
}

/* ===== TIPOGRAFÍA CYBER ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: var(--space-4);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    position: relative;
}

h1::after, h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gradient-cyber);
    box-shadow: var(--glow-blue);
}

h1 {
    font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
}

h2 {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
}

h3 {
    font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

h6 {
    font-size: var(--text-base);
}

p {
    margin-bottom: var(--space-4);
    line-height: 1.7;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-blue-dark);
}

/* ===== UTILIDADES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

@media (min-width: 640px) {
    .container {
        padding: 0 var(--space-6);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-8);
    }
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    text-align: center;
    color: var(--white);
}

.loader-icon {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-4);
    animation: pulse 2s infinite;
}

.loader-text {
    font-family: var(--font-secondary);
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: 2px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===== HEADER & NAVIGATION CYBER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, 
        rgba(10, 15, 26, 0.95) 0%, 
        rgba(26, 43, 92, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 212, 255, 0.1);
    z-index: var(--z-fixed);
    transition: var(--transition-normal);
    animation: hologram-flicker 3s infinite;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 212, 255, 0.1) 20%, 
        transparent 40%, 
        rgba(139, 0, 255, 0.05) 60%, 
        transparent 80%, 
        rgba(0, 212, 255, 0.1) 100%);
    animation: data-stream 8s linear infinite;
    pointer-events: none;
}

.header.scrolled {
    background: linear-gradient(135deg, 
        rgba(3, 7, 18, 0.98) 0%, 
        rgba(10, 15, 26, 0.98) 100%);
    box-shadow: var(--shadow-cyber);
}

.navbar {
    padding: var(--space-4) 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: var(--text-xl);
    color: var(--white);
    text-shadow: var(--glow-blue);
    position: relative;
}

.nav-brand::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    width: 4px;
    height: 30px;
    background: var(--gradient-cyber);
    border-radius: 2px;
    transform: translateY(-50%);
    box-shadow: var(--glow-blue);
    animation: cyber-pulse 2s infinite;
}

.brand-logo {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--cyber-blue);
    box-shadow: var(--glow-blue);
    animation: cyber-pulse 3s infinite;
    filter: hue-rotate(11deg) saturate(1.5);
}

.nav-menu {
    display: none;
    list-style: none;
    gap: var(--space-8);
}

@media (min-width: 1024px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--gray-600);
    padding: var(--space-3) var(--space-4);
    position: relative;
    transition: var(--transition-fast);
    border-radius: var(--radius-md);
    backdrop-filter: blur(5px);
    border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    text-shadow: var(--glow-blue);
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.1);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-cyber);
    opacity: 0;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    z-index: -1;
}

.nav-link:hover::before {
    opacity: 0.1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-cyber);
    transition: var(--transition-normal);
    box-shadow: var(--glow-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gray-700);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== BOTONES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: var(--text-sm);
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: var(--transition-normal);
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

.btn-primary {
    /* background: var(--gradient-cyber); */
    color: var(--white);
    border: 2px solid rgba(0, 212, 255, 0.5);
    box-shadow: var(--glow-blue);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.btn-primary:hover {
    background: var(--gradient-holo);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        var(--glow-blue), 
        0 10px 30px rgba(0, 0, 0, 0.3);
    color: var(--white);
    border-color: var(--holo-gold);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background: rgba(7, 5, 131, 0.2);
    color: var(--neon-blue);
    border: 2px solid rgba(36, 43, 232, 0.5);
    box-shadow: var(--glow-blue);
    text-shadow: 0 0 10px rgba(36, 43, 232, 0.5);
}

.btn-secondary:hover {
    background: rgba(7, 5, 131, 0.2);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        var(--glow-green), 
        0 10px 30px rgba(0, 0, 0, 0.3);
    color: var(--matrix-green);
    border-color: var(--neon-green);
}

.btn-outline {
    background: rgba(0, 212, 255, 0.05);
    color: var(--cyber-blue);
    border: 2px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(15px);
}

.btn-outline:hover {
    background: rgba(0, 212, 255, 0.15);
    color: var(--white);
    border-color: var(--cyber-blue);
    box-shadow: var(--glow-blue);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== HERO SECTION CYBER ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 65, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #000408 0%, #001122 25%, #000815 50%, #001a33 75%, #000408 100%);
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(0, 255, 255, 0.04) 49%, rgba(0, 255, 255, 0.04) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(0, 255, 65, 0.03) 49%, rgba(0, 255, 65, 0.03) 51%, transparent 52%),
        linear-gradient(0deg, transparent 24%, rgba(0, 255, 65, 0.02) 25%, rgba(0, 255, 65, 0.02) 26%, transparent 27%);
    background-size: 40px 40px, 60px 60px, 20px 20px;
    animation: cyber-grid 8s linear infinite;
    pointer-events: none;
}

@keyframes cyber-grid {
    0% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(-10px); }
    50% { transform: translateY(-40px) translateX(-20px); }
    75% { transform: translateY(-20px) translateX(-30px); }
    100% { transform: translateY(0) translateX(-40px); }
}

@keyframes cyber-scan {
    0% { 
        top: 0%;
        opacity: 0;
    }
    10% { 
        opacity: 1;
    }
    90% { 
        opacity: 1;
    }
    100% { 
        top: 100%;
        opacity: 0;
    }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 255, 0.8) 50%, transparent 100%);
    animation: cyber-scan 3s infinite linear;
    pointer-events: none;
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 75%, var(--cyber-blue) 1px, transparent 1px),
        radial-gradient(circle at 75% 25%, var(--matrix-green) 0.5px, transparent 0.5px),
        radial-gradient(circle at 50% 50%, var(--terminal-green) 0.8px, transparent 0.8px),
        radial-gradient(circle at 10% 90%, var(--cyber-blue) 0.3px, transparent 0.3px);
    background-size: 150px 150px, 200px 200px, 100px 100px, 250px 250px;
    animation: cyber-float 15s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes cyber-float {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg); 
        opacity: 0.6;
    }
    25% { 
        transform: translateY(-15px) translateX(10px) rotate(1deg); 
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-30px) translateX(-5px) rotate(0deg); 
        opacity: 0.4;
    }
    75% { 
        transform: translateY(-10px) translateX(-15px) rotate(-1deg); 
        opacity: 0.7;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
}

/* Cyber Effects en Hero */
.hero-cyber-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-cyber-lines::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -50px;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyber-blue), transparent);
    animation: scan-horizontal 4s infinite;
}

.hero-cyber-lines::after {
    content: '';
    position: absolute;
    top: -50px;
    right: 15%;
    width: 2px;
    height: 200px;
    background: linear-gradient(180deg, transparent, var(--neon-green), transparent);
    animation: scan-vertical 3s infinite 1s;
}

@keyframes scan-horizontal {
    0% { left: -200px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@keyframes scan-vertical {
    0% { top: -200px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.25) 0%, 
        rgba(57, 255, 20, 0.15) 50%,
        rgba(139, 0, 255, 0.2) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: var(--radius-full);
    font-family: var(--font-secondary);
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: var(--space-12);
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.4),
        0 0 60px rgba(57, 255, 20, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: cyber-pulse-intense 2s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.hero-badge::before {
    content: '●';
    font-size: 12px;
    color: var(--neon-green);
    text-shadow: 0 0 15px var(--neon-green);
    animation: cyber-blink 1s infinite;
}

.hero-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: scan-line 3s infinite;
}

@keyframes cyber-pulse-intense {
    0%, 100% { 
        box-shadow: 
            0 0 30px rgba(0, 212, 255, 0.4),
            0 0 60px rgba(57, 255, 20, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% { 
        box-shadow: 
            0 0 40px rgba(0, 212, 255, 0.6),
            0 0 80px rgba(57, 255, 20, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

@keyframes cyber-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

@keyframes scan-line {
    0% { left: -100%; }
    100% { left: 100%; }
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-8);
    background: linear-gradient(135deg, 
        var(--cyber-blue) 0%, 
        var(--matrix-green) 50%, 
        var(--cyber-white) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: security-glow 3s ease-in-out infinite;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
}

.hero-title .subtitle-line {
    font-size: clamp(1.2rem, 4vw, 2.5rem);
    display: block;
    color: var(--matrix-green);
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.8);
    margin-top: var(--space-2);
}

.hero-title::before {
    content: attr(data-text);
    position: absolute;
    top: 2px;
    left: 2px;
    width: 100%;
    height: 100%;
    color: rgba(0, 212, 255, 0.1);
    z-index: -1;
    animation: glitch-shadow 0.3s infinite;
}

.hero-title::after {
    content: attr(data-text);
    position: absolute;
    top: -1px;
    left: -1px;
    width: 100%;
    height: 100%;
    color: rgba(255, 0, 128, 0.1);
    z-index: -1;
    animation: glitch-shadow 0.3s infinite reverse;
}

@keyframes security-glow {
    0%, 100% { 
        background-position: 0% 50%;
        filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.6)) 
                drop-shadow(0 0 40px rgba(0, 255, 65, 0.4));
    }
    50% { 
        background-position: 100% 50%;
        filter: drop-shadow(0 0 40px rgba(0, 255, 255, 0.9)) 
                drop-shadow(0 0 60px rgba(0, 255, 65, 0.7));
    }
}

@keyframes glitch-shadow {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-12);
    font-family: var(--font-secondary);
    font-weight: 400;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: subtitle-fade 3s ease-in-out infinite;
}

@keyframes subtitle-fade {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
    margin-bottom: var(--space-12);
}

/* Hero Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding: var(--space-16) 0;
        text-align: center;
    }
    
    .hero-content {
        padding: 0 var(--space-4);
    }
    
    .hero-badge {
        font-size: var(--text-sm);
        padding: var(--space-3) var(--space-6);
        margin-bottom: var(--space-8);
        letter-spacing: 1px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
        line-height: 1.2;
        margin-bottom: var(--space-6);
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
        margin-bottom: var(--space-10);
        padding: 0 var(--space-4);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: var(--space-4);
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        padding: var(--space-4) var(--space-6);
        font-size: var(--text-base);
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-12);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--secondary-gold);
    display: block;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

/* ===== SECCIONES GENERALES ===== */
.section {
    padding: var(--space-20) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-gold));
    color: var(--white);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    margin-bottom: var(--space-4);
    color: var(--gray-900);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, 
        rgba(13, 18, 32, 0.95) 0%, 
        rgba(22, 30, 53, 0.98) 50%,
        rgba(13, 18, 32, 0.95) 100%);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 0, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(57, 255, 20, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.about-section .container {
    position: relative;
    z-index: 2;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-16);
}

.about-card {
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.1) 0%, 
        rgba(139, 0, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(0, 212, 255, 0.05) 50%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.4);
}

.about-card:hover::before {
    opacity: 1;
}

.about-card .card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-gold));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    color: var(--white);
    margin: 0 auto var(--space-6);
}

.about-card h3 {
    color: var(--cyber-blue);
    margin-bottom: var(--space-4);
    font-family: var(--font-secondary);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.about-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

/* Director Section */
.director-section {
    background: linear-gradient(135deg, 
        rgba(139, 0, 255, 0.1) 0%, 
        rgba(0, 212, 255, 0.08) 50%,
        rgba(57, 255, 20, 0.05) 100%);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(139, 0, 255, 0.2);
    padding: var(--space-12);
    border-radius: var(--radius-2xl);
    box-shadow: 0 20px 40px rgba(139, 0, 255, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.director-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(139, 0, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.director-section .director-content {
    position: relative;
    z-index: 2;
}

.director-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
}

@media (min-width: 768px) {
    .director-content {
        grid-template-columns: 300px 1fr;
    }
}

.director-image {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.director-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.director-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(30, 64, 175, 0.8), rgba(245, 158, 11, 0.8));
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.director-image:hover .director-overlay {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: var(--space-4);
}

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--text-lg);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.director-info {
    text-align: center;
}

@media (min-width: 768px) {
    .director-info {
        text-align: left;
    }
}

.director-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--secondary-gold);
    color: var(--white);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-3);
}

.director-info h3 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-2);
    color: var(--cyber-blue);
    font-family: var(--font-secondary);
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.director-title {
    font-size: var(--text-xl);
    color: var(--matrix-green);
    font-weight: 600;
    margin-bottom: var(--space-4);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}

.director-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.director-achievements {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

@media (min-width: 640px) {
    .director-achievements {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.achievement {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
}

.achievement i {
    color: var(--neon-green);
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, 
        rgba(22, 30, 53, 0.95) 0%, 
        rgba(13, 18, 32, 0.98) 50%,
        rgba(22, 30, 53, 0.95) 100%);
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(57, 255, 20, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 20% 70%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.services-section .container {
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.service-card {
    background: linear-gradient(135deg, 
        rgba(57, 255, 20, 0.1) 0%, 
        rgba(0, 212, 255, 0.08) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    position: relative;
    transition: var(--transition-normal);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(57, 255, 20, 0.15);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-gold));
}

.service-card.featured {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(57, 255, 20, 0.25);
    border-color: rgba(57, 255, 20, 0.4);
}

.service-card.featured:hover {
    transform: scale(1.02) translateY(-5px);
}

.service-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: var(--secondary-gold);
    color: var(--white);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-gold));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    color: var(--white);
    margin-bottom: var(--space-6);
}

.service-content h3 {
    font-size: var(--text-2xl);
    color: var(--neon-green);
    margin-bottom: var(--space-4);
    font-family: var(--font-secondary);
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.service-content p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.service-features {
    list-style: none;
    margin-bottom: var(--space-6);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
}

.service-features i {
    color: var(--success);
    font-size: var(--text-xs);
}

.service-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
    text-decoration: none;
}

.service-btn:hover {
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
    transform: translateX(5px);
    color: var(--white);
}

/* ===== NEWS SECTION ===== */
.news-section {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, 
        rgba(13, 18, 32, 0.98) 0%, 
        rgba(22, 30, 53, 0.95) 50%,
        rgba(13, 18, 32, 0.98) 100%);
    position: relative;
}

.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(139, 0, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.news-section .container {
    position: relative;
    z-index: 2;
}

.news-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-12);
}

.filter-btn {
    padding: var(--space-3) var(--space-6);
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.1) 0%, 
        rgba(139, 0, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-full);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, var(--cyber-blue) 0%, var(--matrix-green) 100%);
    color: var(--white);
    border-color: var(--cyber-blue);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .news-filters {
        flex-direction: row;
        gap: var(--space-2);
        margin-bottom: var(--space-8);
    }
    
    .filter-btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-sm);
        min-width: auto;
    }
}

.news-card {
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.08) 0%, 
        rgba(0, 255, 65, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.2);
    transition: var(--transition-normal);
}

.news-card.featured {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .news-card.featured {
        grid-column: span 2;
    }
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.3);
    border-color: rgba(0, 255, 255, 0.5);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-card.featured .news-image {
    height: 250px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-overlay {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
}

.news-category {
    padding: var(--space-2) var(--space-4);
    background: rgba(30, 64, 175, 0.9);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
}

.news-content {
    padding: var(--space-6);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
}

.news-title a {
    color: var(--cyber-blue);
    font-size: var(--text-xl);
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    transition: var(--transition-fast);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.news-card.featured .news-title a {
    font-size: var(--text-2xl);
}

.news-title a:hover {
    color: var(--matrix-green);
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.6);
}

.news-excerpt {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: var(--space-4) 0 var(--space-6);
}

.news-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--cyber-blue);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.read-more:hover {
    color: var(--matrix-green);
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.news-share {
    display: flex;
    gap: var(--space-2);
}

.share-btn {
    width: 35px;
    height: 35px;
    background: var(--gray-100);
    color: var(--gray-600);
    border: none;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.share-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.news-more {
    text-align: center;
    margin-top: var(--space-12);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, 
        rgba(22, 30, 53, 0.95) 0%, 
        rgba(13, 18, 32, 0.98) 50%,
        rgba(22, 30, 53, 0.95) 100%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(139, 0, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-16);
}

@media (min-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr 1.5fr;
    }
}

.contact-card {
    background: linear-gradient(135deg, 
        rgba(139, 0, 255, 0.1) 0%, 
        rgba(0, 212, 255, 0.08) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 0, 255, 0.2);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: var(--space-6);
    transition: var(--transition-normal);
    box-shadow: 0 8px 32px rgba(139, 0, 255, 0.15);
}

.contact-card:hover {
    background: linear-gradient(135deg, 
        rgba(139, 0, 255, 0.15) 0%, 
        rgba(0, 212, 255, 0.12) 100%);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 0, 255, 0.25);
    border-color: rgba(139, 0, 255, 0.4);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-gold));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    color: var(--white);
    margin: 0 auto var(--space-4);
}

.contact-card h3 {
    font-size: var(--text-lg);
    color: var(--cyber-blue);
    margin-bottom: var(--space-2);
    font-family: var(--font-secondary);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.contact-card p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.contact-card a {
    color: var(--neon-green);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
    transition: var(--transition-fast);
}

.contact-card a:hover {
    color: var(--cyber-blue);
    text-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}

.social-buttons {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    margin-top: var(--space-4);
}

.social-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-gold));
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    transition: var(--transition-fast);
    text-decoration: none;
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

/* ===== FORMULARIO DE CONTACTO ===== */
.contact-form-container {
    background: linear-gradient(135deg, 
        rgba(139, 0, 255, 0.1) 0%, 
        rgba(0, 212, 255, 0.08) 100%);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(139, 0, 255, 0.2);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    position: relative;
    box-shadow: 0 20px 40px rgba(139, 0, 255, 0.15);
}

.contact-form {
    display: grid;
    gap: var(--space-6);
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--cyber-blue);
    margin-bottom: var(--space-2);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-4);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-lg);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    transition: var(--transition-fast);
    background: rgba(13, 18, 32, 0.8);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyber-blue);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2),
                0 0 20px rgba(0, 212, 255, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-checkbox label {
    margin: 0;
    font-size: var(--text-sm);
    line-height: 1.5;
}

.form-error {
    display: block;
    color: var(--error);
    font-size: var(--text-sm);
    margin-top: var(--space-2);
    min-height: 20px;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--error);
}

#submitBtn {
    position: relative;
    overflow: hidden;
}

.btn-loader {
    display: none;
}

#submitBtn.loading .btn-text {
    opacity: 0;
}

#submitBtn.loading .btn-loader {
    display: inline;
}

.form-success {
    display: none;
    text-align: center;
    color: var(--success);
}

.form-success.show {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.form-success i {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.form-success h3 {
    color: var(--success);
    margin-bottom: var(--space-2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Placeholder styles for inputs */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.form-group input::-webkit-input-placeholder,
.form-group textarea::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input::-moz-placeholder,
.form-group textarea::-moz-placeholder {
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.form-group input:-ms-input-placeholder,
.form-group textarea:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* ===== MAPA ===== */
.map-container {
    height: 300px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-placeholder {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-gold));
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.map-placeholder i {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.map-placeholder h3 {
    color: var(--white);
    margin-bottom: var(--space-2);
}

.map-placeholder p {
    opacity: 0.9;
    margin: 0;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, 
        rgba(13, 18, 32, 0.98) 0%, 
        rgba(22, 30, 53, 0.95) 50%,
        rgba(13, 18, 32, 0.98) 100%);
    color: var(--white);
    padding: var(--space-16) 0 var(--space-8);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(139, 0, 255, 0.06) 0%, transparent 50%);
    z-index: 1;
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 2fr;
    }
}

.footer-brand {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-brand {
        text-align: left;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-logo {
        justify-content: flex-start;
    }
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: var(--space-6);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .footer-description {
        margin-left: 0;
        margin-right: 0;
    }
}

.footer-social {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-social {
        justify-content: flex-start;
    }
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.2) 0%, 
        rgba(139, 0, 255, 0.1) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--cyber-blue);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-gold));
    color: var(--white);
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-8);
}

.footer-column h4 {
    color: var(--white);
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
    position: relative;
    padding-bottom: var(--space-2);
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-gold));
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--space-2);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-column a:hover {
    color: var(--neon-green);
    padding-left: var(--space-2);
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}

.footer-column i {
    width: 16px;
    text-align: center;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
    padding-top: var(--space-8);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
}

.footer-credits {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
}

.footer-credits i {
    color: var(--error);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-gold));
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-normal);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-lg);
}

.scroll-top.show {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1023px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: linear-gradient(135deg, 
            rgba(0, 0, 0, 0.95) 0%, 
            rgba(0, 20, 40, 0.98) 100%);
        backdrop-filter: blur(20px);
        border-top: 2px solid rgba(0, 255, 255, 0.5);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: var(--space-8) var(--space-4);
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.show {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item {
        width: 100%;
        max-width: 300px;
        text-align: center;
        margin-bottom: var(--space-4);
    }
    
    .nav-link {
        display: block;
        padding: var(--space-4) var(--space-6);
        font-size: var(--text-lg);
        font-weight: 600;
        color: var(--cyber-blue);
        text-decoration: none;
        border: 2px solid transparent;
        border-radius: var(--radius-lg);
        background: rgba(0, 255, 255, 0.1);
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: rgba(0, 255, 255, 0.2);
        border-color: var(--cyber-blue);
        color: var(--matrix-green);
        text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
        transform: translateY(-2px);
    }
    
    .nav-actions .btn {
        margin-top: var(--space-6);
        width: 100%;
        max-width: 250px;
    }
}

/* Mobile First - Smartphone */
@media (max-width: 768px) {
    :root {
        --space-20: var(--space-12);
        --space-16: var(--space-10);
        --space-12: var(--space-8);
    }
    
    .container {
        padding: 0 var(--space-4);
    }
    
    /* Header Mobile */
    .header {
        padding: var(--space-3) 0;
    }
    
    .navbar .container {
        padding: 0 var(--space-4);
    }
    
    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: var(--space-2);
    }
    
    .nav-toggle span {
        width: 25px;
        height: 3px;
        background: var(--cyber-blue);
        border-radius: 2px;
        transition: all 0.3s ease;
        box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Hero Mobile */
    .hero {
        min-height: 100vh;
        padding: var(--space-16) 0 var(--space-12);
    }
    
    .hero-content {
        padding: 0 var(--space-4);
        text-align: center;
    }
    
    .hero-badge {
        font-size: var(--text-sm);
        padding: var(--space-3) var(--space-6);
        margin-bottom: var(--space-8);
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
        line-height: 1.1;
        margin-bottom: var(--space-6);
    }
    
    .hero-title .subtitle-line {
        font-size: clamp(1rem, 4vw, 1.8rem);
        margin-top: var(--space-2);
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        margin-bottom: var(--space-8);
        padding: 0 var(--space-2);
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--space-4);
        margin-bottom: var(--space-8);
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        text-align: center;
    }
    
    /* Sections Mobile */
    .about-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .news-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    .hero-badge {
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-4);
    }
    
    .section-header {
        margin-bottom: var(--space-8);
    }
    
    .about-card,
    .service-card {
        padding: var(--space-6);
    }
    
    .news-content {
        padding: var(--space-4);
    }
    
    .contact-card {
        padding: var(--space-6);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ===== ANIMACIONES ADICIONALES ===== */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .about-card,
    .news-card,
    .contact-card {
        animation: fadeInUp 0.6s ease-out;
    }
    
    .service-card:nth-child(2) { animation-delay: 0.1s; }
    .service-card:nth-child(3) { animation-delay: 0.2s; }
    .service-card:nth-child(4) { animation-delay: 0.3s; }
    .service-card:nth-child(5) { animation-delay: 0.4s; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== UTILIDADES DE ACCESIBILIDAD ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible para mejor accesibilidad */
*:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Mejores contrastes para modo de alto contraste */
@media (prefers-contrast: high) {
    :root {
        --gray-600: var(--gray-800);
        --gray-500: var(--gray-700);
        --gray-400: var(--gray-600);
    }
}

/* Respeto por preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-particles {
        animation: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* ===== RESPONSIVE BREAKPOINTS CYBER ===== */

/* Ultra Small Devices (320px - 480px) */
@media (max-width: 480px) {
    :root {
        --text-xs: 0.7rem;
        --text-sm: 0.8rem;
        --text-base: 0.9rem;
        --text-lg: 1rem;
        --text-xl: 1.1rem;
        --text-2xl: 1.3rem;
        --text-3xl: 1.6rem;
        --text-4xl: 2rem;
    }
    
    .container {
        padding: 0 var(--space-3);
    }
    
    .hero {
        min-height: 100vh;
        padding: var(--space-16) 0 var(--space-8);
    }
    
    .hero-title {
        font-size: var(--text-3xl) !important;
        line-height: 1.2;
        margin-bottom: var(--space-6);
    }
    
    .hero-subtitle {
        font-size: var(--text-sm);
        line-height: 1.6;
        margin-bottom: var(--space-6);
    }
    
    .btn {
        padding: var(--space-3) var(--space-5);
        font-size: var(--text-xs);
        gap: var(--space-2);
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--space-3);
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: var(--space-4) var(--space-6);
    }
    
    .hero-badge {
        padding: var(--space-2) var(--space-4);
        font-size: 0.7rem;
        margin-bottom: var(--space-4);
    }
    
    .nav-brand {
        font-size: var(--text-lg);
        gap: var(--space-2);
    }
    
    .brand-logo {
        width: 35px;
        height: 35px;
    }
    
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3);
        margin-top: var(--space-8);
    }
    
    .stat-item:last-child {
        grid-column: 1 / -1;
        justify-self: center;
    }
    
    .stat-number {
        font-size: var(--text-2xl);
    }
    
    .stat-label {
        font-size: var(--text-xs);
    }
}

/* Small Devices (481px - 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    .navbar {
        padding: var(--space-3) 0;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, 
            rgba(10, 15, 26, 0.98) 0%, 
            rgba(26, 43, 92, 0.98) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: var(--space-16);
        gap: var(--space-6);
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
        animation: slideInDown 0.3s ease-out;
    }
    
    .nav-link {
        font-size: var(--text-lg);
        padding: var(--space-4) var(--space-6);
        width: 80%;
        text-align: center;
        border: 1px solid rgba(0, 212, 255, 0.2);
        border-radius: var(--radius-xl);
        background: rgba(0, 212, 255, 0.05);
        backdrop-filter: blur(10px);
    }
    
    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: none;
        border: none;
        cursor: pointer;
        padding: var(--space-2);
        border-radius: var(--radius-md);
        background: rgba(0, 212, 255, 0.1);
        border: 1px solid rgba(0, 212, 255, 0.3);
    }
    
    .nav-toggle span {
        width: 25px;
        height: 3px;
        background: var(--cyber-blue);
        border-radius: 2px;
        transition: var(--transition-fast);
        box-shadow: 0 0 5px var(--cyber-blue-glow);
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-content {
        text-align: center;
        max-width: 90%;
    }
    
    .hero-title {
        font-size: clamp(var(--text-2xl), 8vw, var(--text-4xl));
        margin-bottom: var(--space-6);
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--space-4);
        align-items: stretch;
    }
    
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-4);
    }
    
    .stat-item:last-child {
        grid-column: 1 / -1;
    }
}

/* Medium Devices (769px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-6);
    }
    
    .hero-content {
        max-width: 700px;
    }
    
    .hero-title {
        font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-6);
    }
}

/* Large Devices (1025px+) */
@media (min-width: 1025px) {
    .container {
        padding: 0 var(--space-8);
    }
    
    .hero::before {
        background-size: 80px 80px;
    }
    
    .hero-particles {
        background-size: 200px 200px, 250px 250px, 150px 150px, 300px 300px;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .hero-actions {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-6);
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-12);
        max-width: 600px;
        margin: 0 auto;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* RESPONSIVE CRÍTICO - ARREGLOS URGENTES */
@media (max-width: 768px) {
    /* Asegurar que todo sea responsive */
    * {
        box-sizing: border-box;
    }
    
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 var(--space-4) !important;
        margin: 0 auto;
    }
    
    /* Hero completamente responsive */
    .hero {
        padding: calc(80px + var(--space-16)) 0 var(--space-16) !important;
        min-height: 100vh;
        display: flex !important;
        align-items: center !important;
    }
    
    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }
    
    .hero h1 {
        font-size: clamp(2rem, 8vw, 3.5rem) !important;
        line-height: 1.1 !important;
        margin-bottom: var(--space-6) !important;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .hero p {
        font-size: clamp(1rem, 4vw, 1.25rem) !important;
        line-height: 1.5 !important;
        margin-bottom: var(--space-8) !important;
        max-width: 100% !important;
    }
    
    .cta-buttons {
        flex-direction: column !important;
        align-items: center !important;
        gap: var(--space-4) !important;
        width: 100% !important;
    }
    
    .btn {
        width: 100% !important;
        max-width: 300px !important;
        display: block !important;
        text-align: center !important;
        padding: var(--space-4) var(--space-6) !important;
    }
    
    /* Secciones completamente responsive */
    .section {
        padding: var(--space-16) 0 !important;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem) !important;
        line-height: 1.2 !important;
        margin-bottom: var(--space-4) !important;
        text-align: center !important;
    }
    
    .section-subtitle {
        font-size: clamp(0.95rem, 3.5vw, 1.1rem) !important;
        line-height: 1.6 !important;
        text-align: center !important;
    }
    
    /* Grids completamente responsive */
    .services-grid,
    .about-grid,
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-6) !important;
    }
    
    .news-card.featured {
        grid-column: span 1 !important;
    }
    
    /* Cards responsive */
    .service-card,
    .about-card,
    .news-card {
        width: 100% !important;
        margin-bottom: var(--space-4);
        padding: var(--space-5) !important;
    }
    
    .news-title {
        font-size: var(--text-xl) !important;
        line-height: 1.3 !important;
    }
    
    .news-excerpt {
        font-size: var(--text-sm) !important;
        line-height: 1.5 !important;
    }
    
    /* Menu mobile funcional */
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 100% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: linear-gradient(135deg, 
            rgba(0, 9, 43, 0.98) 0%, 
            rgba(0, 28, 64, 0.96) 100%) !important;
        backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: var(--space-20) var(--space-6) var(--space-6) !important;
        transition: right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        z-index: 1001 !important;
        box-shadow: -5px 0 30px rgba(0, 255, 255, 0.4) !important;
        border-left: 1px solid rgba(0, 255, 255, 0.3) !important;
    }
    
    .nav-menu.active {
        right: 0 !important;
    }
    
    .nav-item {
        width: 100% !important;
        text-align: center !important;
        margin: var(--space-3) 0 !important;
    }
    
    .nav-link {
        display: block !important;
        padding: var(--space-3) var(--space-4) !important;
        border-radius: var(--radius-md) !important;
        transition: all 0.3s ease !important;
        font-weight: 500 !important;
        color: var(--cyber-white) !important;
    }
    
    .nav-link:hover {
        background: rgba(0, 255, 255, 0.1) !important;
        color: var(--cyber-blue) !important;
    }
    
    /* Stats responsive */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--space-4) !important;
    }
    
    .stat-number {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
    }
    
    .stat-label {
        font-size: var(--text-sm) !important;
    }
    
    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: var(--space-6) !important;
        text-align: center !important;
    }
}

/* Estilos específicos para páginas de noticias */
.article-page,
.news-detail {
    background: linear-gradient(135deg, 
        var(--dark-blue) 0%, 
        var(--darker-blue) 100%);
    color: var(--cyber-white);
    min-height: 100vh;
}

.article-content {
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.05) 0%, 
        rgba(0, 255, 65, 0.02) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin: var(--space-8) 0;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.15);
}

.article-title {
    color: var(--cyber-blue);
    font-size: var(--text-4xl);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--space-6);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.article-date,
.article-author {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
}

.article-body {
    line-height: 1.8;
    font-size: var(--text-lg);
}

.article-body h2,
.article-body h3 {
    color: var(--matrix-green);
    margin: var(--space-8) 0 var(--space-4);
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

.article-body p {
    margin-bottom: var(--space-6);
    color: rgba(255, 255, 255, 0.9);
}

.article-body a {
    color: var(--cyber-blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.article-body a:hover {
    color: var(--matrix-green);
    border-bottom-color: rgba(0, 255, 65, 0.5);
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

/* RESPONSIVE ADICIONAL PARA TODAS LAS RESOLUCIONES */

/* Dispositivos muy pequeños (teléfonos pequeños) */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3) !important;
    }
    
    .hero h1 {
        font-size: clamp(1.75rem, 7vw, 2.5rem) !important;
    }
    
    .hero p {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem) !important;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 5.5vw, 2rem) !important;
    }
    
    .btn {
        padding: var(--space-3) var(--space-4) !important;
        font-size: var(--text-sm) !important;
    }
    
    .nav-menu {
        width: 100% !important;
        max-width: 280px !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-3) !important;
    }
}

/* Tablets en orientación vertical */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 var(--space-6);
    }
    
    .hero {
        padding: calc(80px + var(--space-20)) 0 var(--space-20);
    }
    
    .services-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }
    
    .news-card.featured {
        grid-column: span 2;
    }
    
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Pantallas grandes (escritorio) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero h1 {
        font-size: var(--text-6xl);
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .news-card.featured {
        grid-column: span 1;
        grid-row: span 2;
    }
}

/* Asegurar orientación landscape en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto !important;
        padding: calc(60px + var(--space-8)) 0 var(--space-8) !important;
    }
    
    .hero h1 {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
        margin-bottom: var(--space-3) !important;
    }
    
    .hero p {
        font-size: clamp(0.9rem, 3vw, 1rem) !important;
        margin-bottom: var(--space-4) !important;
    }
    
    .cta-buttons {
        flex-direction: row !important;
        justify-content: center !important;
        gap: var(--space-4) !important;
    }
    
    .btn {
        width: auto !important;
        max-width: 200px !important;
    }
}