/* =========================================
   1. VARIABLES & RESET (ANGEL'S SQUAD)
   ========================================= */
:root {
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #141414;
    --blue-electric: #00E5FF;
    --blue-dark: #005BFF;
    --yellow-alert: #FFD700;
    --text-main: #f0f0f0;
    --text-muted: #aaaaaa;
    --gradient-blue: linear-gradient(135deg, var(--blue-dark), var(--blue-electric));
    --gradient-dark-overlay: linear-gradient(to bottom, rgba(5, 5, 5, 0.5), rgba(5, 5, 5, 0.95));
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-primary); color: var(--text-main); font-family: var(--font-body); line-height: 1.6; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.text-blue { color: var(--blue-electric); }
.text-yellow { color: var(--yellow-alert); }
.text-center { text-align: center; }
.mb-3 { margin-bottom: 1rem; }
.mt-2 { margin-top: 0.5rem; }

.separator-blue { width: 60px; height: 4px; background: var(--blue-electric); margin: 15px auto 30px; }

/* =========================================
   2. BOTONES
   ========================================= */
.btn {
    display: inline-block; padding: 12px 30px; border-radius: 4px;
    font-weight: 700; text-transform: uppercase; font-family: var(--font-display);
    cursor: pointer; border: 2px solid transparent; transition: var(--transition); text-align: center;
}
.btn-primary { background: var(--gradient-blue); color: #000; box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.2); }
.btn-outline { border-color: var(--blue-electric); color: var(--blue-electric); background: transparent; }
.btn-outline:hover { background: var(--blue-electric); color: #000; }
.btn-outline-yellow { border-color: var(--yellow-alert); color: var(--yellow-alert); background: transparent; }
.btn-outline-yellow:hover { background: var(--yellow-alert); color: #000; }

/* =========================================
   3. HEADER
   ========================================= */
.main-header {
    position: fixed; top: 0; width: 100%; height: var(--header-height);
    background: rgba(5, 5, 5, 0.95); border-bottom: 1px solid #222; z-index: 1000; display: flex; align-items: center;
}
.header-content { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.nav-list { display: flex; gap: 40px; list-style: none; }
.nav-link { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.nav-link:hover { color: var(--blue-electric); }
.header-actions { display: flex; gap: 15px; align-items: center; }

/* =========================================
   4. HERO Y VÍDEO FONDO
   ========================================= */
.hero-section {
    height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
    padding-top: var(--header-height); overflow: hidden; background: #111;
}
.video-bg { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translateX(-50%) translateY(-50%); z-index: 0; object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--gradient-dark-overlay); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 20px; }
.hero-subtitle { font-size: 1.2rem; letter-spacing: 5px; color: var(--yellow-alert); }
.hero-title { font-size: 4.5rem; margin-bottom: 20px; text-shadow: 0 4px 20px rgba(0,0,0,0.8); }
.hero-description { font-size: 1.2rem; color: var(--text-main); margin-bottom: 40px; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }

/* =========================================
   5. SECCIONES Y TARJETAS (SQUAD)
   ========================================= */
.section { padding: 100px 0; }
.dark-section { background-color: var(--bg-secondary); border-top: 1px solid #1a1a1a; border-bottom: 1px solid #1a1a1a; }
.section-title { font-size: 2.5rem; }
.squad-grid, .events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.squad-card { background: var(--bg-tertiary); border: 1px solid #222; border-radius: 8px; padding: 30px 20px; transition: var(--transition); text-align: center; }
.squad-card:hover { border-color: var(--blue-electric); transform: translateY(-5px); box-shadow: 0 5px 20px rgba(0, 229, 255, 0.1); }
.squad-img-wrapper { width: 150px; height: 150px; margin: 0 auto 20px; border-radius: 50%; overflow: hidden; border: 3px solid var(--blue-electric); }
.squad-img { width: 100%; height: 100%; object-fit: cover; }
.squad-desc { font-style: italic; color: var(--text-muted); font-size: 0.95rem; margin-top: 15px; }

/* =========================================
   6. ESTILO FLYER CURSOS
   ========================================= */
.flyer-card { background-color: var(--bg-tertiary); border: 2px solid #2a2a2a; border-top: 5px solid var(--yellow-alert); padding: 20px; display: flex; flex-direction: column; transition: var(--transition); }
.flyer-card:hover { border-color: var(--yellow-alert); transform: translateY(-5px); box-shadow: 0 5px 15px rgba(255, 215, 0, 0.15); }
.flyer-icon { text-align: center; margin: 15px 0; }
.flyer-datetime { display: flex; align-items: center; gap: 15px; margin: 20px 0; }
.flyer-yellow-bar { width: 3px; height: 45px; background-color: var(--yellow-alert); }
.datetime-text { font-family: var(--font-body); font-size: 0.95rem; color: #ddd; line-height: 1.6; text-align: left; }

/* =========================================
   7. FORMULARIO Y MODAL SOCIOS
   ========================================= */
.centuryon-form-wrapper { background-color: var(--bg-tertiary); border: 1px solid #333; border-radius: 8px; padding: 40px; max-width: 800px; margin: 0 auto; }
.centuryon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.centuryon-input-group { display: flex; flex-direction: column; margin-bottom: 15px; }
.centuryon-input-group.full-width { grid-column: 1 / -1; }
.centuryon-input-group label { font-family: var(--font-display); font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; font-weight: 700; }
.centuryon-input-group input, .centuryon-input-group textarea, .custom-select { background-color: var(--bg-primary); border: 1px solid #333; border-radius: 4px; padding: 14px; color: white; font-family: var(--font-body); font-size: 1rem; transition: var(--transition); width: 100%; }
.centuryon-btn { grid-column: 1 / -1; margin-top: 20px; background: var(--gradient-blue); border: none; border-radius: 4px; padding: 16px; color: #000; font-weight: 700; text-transform: uppercase; font-family: var(--font-display); cursor: pointer; transition: var(--transition); font-size: 1.1rem; }

/* ESTILOS VENTANA FLOTANTE (MODAL) SOCIOS */
.modal-overlay { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px); }
.modal-content { background-color: #141414; margin: 10% auto; padding: 30px; border: 1px solid var(--blue-electric); border-radius: 12px; width: 90%; max-width: 400px; position: relative; box-shadow: 0 0 30px rgba(0, 229, 255, 0.2); animation: fadeInModal 0.3s ease-out; }
@keyframes fadeInModal { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.close-modal { color: #888; position: absolute; top: 15px; right: 20px; font-size: 28px; font-weight: bold; cursor: pointer; }
.close-modal:hover { color: var(--blue-electric); }

/* =========================================
   8. BOTÓN WHATSAPP FLOTANTE
   ========================================= */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px;
    background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center;
    font-size: 35px; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 1000;
    display: flex; align-items: center; justify-content: center; transition: all 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6); }

/* =========================================
   9. RESPONSIVE (MÓVILES) - BLINDADO
   ========================================= */
.site-footer { border-top: 2px solid var(--blue-electric); padding: 40px 0; background: #000; }

@media (max-width: 768px) {
    .main-nav { display: none !important; }
    .hero-title { font-size: 3rem !important; }
    .centuryon-grid { grid-template-columns: 1fr !important; }
    
    /* Mostrar tienda solo en móvil como botón */
    .mobile-shop-btn { display: inline-block !important; }

    /* ARREGLO DE LA CABECERA EN MÓVIL */
    .main-header { height: auto !important; padding: 15px 0 !important; position: relative !important; }
    .header-content { flex-direction: column !important; gap: 15px !important; }
    
    .header-actions { 
        display: flex !important; flex-direction: row !important; gap: 10px !important;
        width: 100% !important; justify-content: center !important; flex-wrap: wrap !important; 
    }
    
    .header-actions .btn { padding: 8px 12px !important; font-size: 0.75rem !important; }
    
    .hero-section { padding-top: 140px !important; }
    
    .modal-content { width: 95% !important; margin: 25% auto !important; padding: 20px !important; }

    /* Ajuste tamaño WhatsApp en móvil */
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; font-size: 30px; }
}