@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;700&display=swap');

/* ==========================================
   VARIABLES GLOBALES
========================================== */

:root {
    --neon-blue: #00f2ff;
    --deep-space: #020617;
    --glass: rgba(255, 255, 255, 0.05);
    --accent: #0ea5e9;
    --gold: #ffcc00;
    --gold-glow: rgba(255, 204, 0, 0.4);
}

/* ==========================================
   CONFIGURACIÓN GENERAL
========================================== */

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--deep-space);
    color: white;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    margin: 0;
}

.font-orbitron { font-family: 'Orbitron', sans-serif; }

.bg-grid {
    background-image: linear-gradient(to right, rgba(0, 242, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(0, 242, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

@keyframes neon-glow {
    0%, 100% { text-shadow: 0 0 10px rgba(0, 242, 255, 0.5); color: #fff; }
    50% { text-shadow: 0 0 20px rgba(0, 242, 255, 1); color: var(--neon-blue); }
}

.neon-title { animation: neon-glow 3s infinite ease-in-out; }

/* Pantalla de Carga/Acceso */
#hero-gate {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--deep-space);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.gate-active { transform: translateY(-100%); opacity: 0; pointer-events: none; }

.arm-container { 
    font-size: 5rem; 
    color: var(--neon-blue); 
    filter: drop-shadow(0 0 20px rgba(0, 242, 255, 0.5)); 
    animation: move-arm 5s ease-in-out infinite; 
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chess-piece { font-size: 1.5rem; margin-top: -10px; opacity: 0.8; }
@keyframes move-arm { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

/* Estilos de Navegación */
.nav-link {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    color: #94a3b8;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    cursor: pointer;
}

.nav-link:hover, .nav-link.active { 
    color: var(--neon-blue); 
    text-shadow: 0 0 10px var(--neon-blue); 
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
}

.exit-link {
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 4px 12px;
    border-radius: 6px;
}
.exit-link:hover { color: white; background: #ef4444; border-color: #ef4444; }

/* Secciones */
.section-header {
    position: relative;
    padding-bottom: 25px;
    margin-bottom: 50px;
}
.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue);
}

/* CARD STYLES - RESALTADOS */
.course-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2.5px solid rgba(0, 242, 255, 0.2);
    display: flex;
    flex-direction: column;
    padding: 2.5rem !important;
    min-height: 300px;
    justify-content: flex-start;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}
.course-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--neon-blue); 
    background: rgba(0, 242, 255, 0.08);
    box-shadow: 0 0 35px rgba(0, 242, 255, 0.25);
}

/* CARD DORADA - AUTOMATIZACION */
.card-gold {
    border: 2.5px solid rgba(255, 204, 0, 0.4) !important;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.05) 0%, transparent 100%);
}
.card-gold:hover {
    border-color: var(--gold) !important;
    background: rgba(255, 204, 0, 0.1) !important;
    box-shadow: 0 0 35px var(--gold-glow) !important;
}

.btn-gold {
    background: rgba(255, 204, 0, 0.1);
    border: 2px solid var(--gold);
    color: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
    text-shadow: 0 0 5px var(--gold);
}
.btn-gold:hover {
    background: var(--gold) !important;
    color: black !important;
    box-shadow: 0 0 25px var(--gold);
}

.section-marker { 
    scroll-margin-top: 120px; 
    padding-top: 20px;
}

/* Formulario de contacto */
.contact-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px;
    border-radius: 10px;
    width: 100%;
    outline: none;
    transition: border-color 0.3s;
}
.contact-input:focus {
    border-color: var(--neon-blue);
}

/* IA UI STYLES */
#ai-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 4000;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--neon-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
}

#ai-panel {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 350px;
    max-width: calc(100vw - 60px);
    height: 500px;
    z-index: 4000;
    display: none;
    flex-direction: column;
    border: 1px solid rgba(0, 242, 255, 0.3);
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.ai-chat-box { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 10px; }
.ai-msg { padding: 10px 14px; border-radius: 12px; font-size: 12px; line-height: 1.4; max-width: 85%; }
.ai-msg.user { background: rgba(255, 255, 255, 0.1); align-self: flex-end; }
.ai-msg.bot { background: rgba(0, 242, 255, 0.1); color: var(--neon-blue); align-self: flex-start; border: 1px solid rgba(0, 242, 255, 0.1); }

.ai-input-area { padding: 15px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.ai-input { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; padding: 10px; color: white; font-size: 12px; width: 100%; outline: none; }

.social-link { transition: all 0.3s ease; }
.social-link:hover { transform: scale(1.1); filter: drop-shadow(0 0 8px var(--neon-blue)); }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Estilo para el email obligatorio */
.email-display {
    background: rgba(239, 68, 68, 0.1);
    border: 1px dashed rgba(239, 68, 68, 0.5);
    padding: 10px;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    color: #f87171;
    margin-bottom: 15px;
    text-align: center;
}

.whatsapp-link-mini {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #22c55e;
    font-size: 11px;
    margin-top: auto;
    padding-top: 15px;
    font-weight: bold;
    transition: opacity 0.3s;
    text-transform: uppercase;
}
.whatsapp-link-mini:hover { opacity: 0.8; }