:root {
    --brand-dark: #050814;
    --brand-panel: rgba(15, 23, 42, 0.6);
    --brand-cyan: #06b6d4;
    --brand-cyan-light: #22d3ee;
    --brand-indigo: #6366f1;
    --brand-emerald: #10b981;
    --brand-red: #ef4444;
    --brand-purple: #d946ef;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.5);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--brand-dark);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background Effects - Aurora Mesh */
.aurora-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -3;
    background-color: var(--brand-dark);
    overflow: hidden;
}

.aurora-bg::before, .aurora-bg::after {
    content: '';
    position: absolute;
    width: 60vw; height: 60vw;
    border-radius: 50%;
    filter: blur(120px) saturate(150%);
    opacity: 0.15;
    animation: auroraFloat 20s infinite alternate ease-in-out;
}

.aurora-bg::before {
    top: -10vw; left: -10vw;
    background: radial-gradient(circle, var(--brand-indigo), transparent 60%);
}

.aurora-bg::after {
    bottom: -10vw; right: -10vw;
    background: radial-gradient(circle, var(--brand-cyan), transparent 60%);
    animation-delay: -10s;
}

@keyframes auroraFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5vw, 5vw) scale(1.1); }
    100% { transform: translate(-5vw, 10vw) scale(0.9); }
}

.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    transform: perspective(600px) rotateX(60deg) scale(2);
    transform-origin: center top;
    mask-image: radial-gradient(circle at center, black 0%, transparent 60%);
    -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 60%);
    animation: gridScroll 20s linear infinite;
}

@keyframes gridScroll {
    0% { transform: perspective(600px) rotateX(60deg) scale(2) translateY(0); }
    100% { transform: perspective(600px) rotateX(60deg) scale(2) translateY(50px); }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.cyber-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(5, 8, 20, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.nav-brand i {
    color: var(--brand-cyan);
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-links a:hover {
    color: white;
}

/* Typography Enterprise */
.gradient-title {
    font-family: 'Inter', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 30%, var(--brand-cyan) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.enterprise-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.mono-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--brand-indigo);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 35px;
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

/* Interactive Elements */
.btn-cyber {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-cyber:hover {
    background: rgba(255,255,255,0.05);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.btn-cyber.accent {
    background: linear-gradient(135deg, var(--brand-indigo), var(--brand-cyan));
    border: none;
    color: white;
}

.btn-cyber.accent:hover {
    background: linear-gradient(135deg, #4f46e5, #0891b2);
    box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.4);
    border-color: transparent;
}

.btn-cyber.warning {
    background: transparent;
    border: 1px solid var(--brand-red);
    color: var(--brand-red);
}

.btn-cyber.warning:hover {
    background: rgba(239, 68, 68, 0.1);
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.3);
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 85vh;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 20px;
    margin-bottom: 30px;
    max-width: 600px;
}

.login-panel {
    width: 400px;
    flex-shrink: 0;
}

.login-panel h3 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    color: white;
}

.login-panel h3 i {
    color: var(--brand-cyan);
    margin-right: 10px;
}

/* Cyber Form Inputs */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group input {
    width: 100%;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 12px 15px 12px 40px;
    color: white;
    font-family: 'JetBrains Mono', monospace;
    border-radius: 4px;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: var(--brand-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.form-group input:focus + i {
    color: var(--brand-cyan);
}

/* Features Grid */
.features-section {
    padding: 80px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: white;
}

.section-title span {
    color: var(--brand-cyan);
}

.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card .icon-box {
    width: 60px;
    height: 60px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--brand-cyan);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--brand-cyan);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-box {
    background: var(--brand-cyan);
    color: var(--brand-dark);
    box-shadow: 0 0 20px var(--brand-cyan);
}

.feature-card h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Holographic Frames */
.homero-frame {
    border: 2px solid rgba(0, 243, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
    background: rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.homero-frame::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: rotate(30deg);
    animation: hologlow 3s infinite linear;
    pointer-events: none;
}

@keyframes hologlow {
    0% { transform: translateY(-50%) rotate(30deg); }
    100% { transform: translateY(50%) rotate(30deg); }
}

/* Split Section (Mejores practicas) */
.split-section {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 80px 0;
}

.split-content {
    flex: 1;
}

.split-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.split-image img {
    max-width: 100%;
    height: auto;
}

/* Footer */
.cyber-footer {
    border-top: 1px solid var(--glass-border);
    padding: 40px 0 20px;
    margin-top: 50px;
    background: rgba(0,0,0,0.8);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h6 {
    font-family: 'Orbitron', sans-serif;
    color: var(--brand-cyan);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-col p, .footer-col a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-decoration: none;
}

.footer-col a:hover {
    color: white;
}

.footer-copy {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-copy a {
    color: var(--brand-cyan);
    text-decoration: none;
}

/* Light Theme Block Variant */
.light-section {
    color: #1e293b;
    position: relative;
    z-index: 10;
    padding: 140px 0; /* Extra margin to prevent content from hitting the skewed limits */
    margin: 80px 0;
    background-color: transparent !important;
}

.light-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #f8fafc;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
    transform: skewY(-3deg);
    transform-origin: center;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.8), 0 20px 60px rgba(0, 0, 0, 0.8);
    border-top: 2px solid rgba(0, 243, 255, 0.15);
    border-bottom: 2px solid rgba(0, 243, 255, 0.15);
}

.light-section .container {
    position: relative;
    z-index: 2;
}

.light-section h2, .light-section h3, .light-section h4 {
    color: #0f172a !important;
}

.light-section p {
    color: #475569 !important;
}

.light-section .text-cyan {
    color: #0891b2 !important;
}

.light-section .text-green {
    color: #059669 !important;
}

.light-section .btn-cyber.warning {
    border-color: #e11d48;
    color: #e11d48;
}

.light-section .btn-cyber.warning:hover {
    background: #e11d48;
    color: white;
    box-shadow: 0 0 15px rgba(225, 29, 72, 0.4);
}

.light-section .homero-frame {
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.light-section .homero-frame::after {
    display: none;
}

/* Utilities */
.text-cyan { color: var(--brand-cyan); }
.text-green { color: var(--brand-emerald); }

/* Responsive adjustments */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 40px;
    }
    
    .login-panel {
        width: 100%;
        max-width: 400px;
    }
    
    .split-section {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .nav-links {
        display: none; /* simple mobile hide for now */
    }
}
