/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
   :root {
    --bg-main: #0B1221;
    --bg-darker: #060A14;
    --bg-surface: #17233B;
    
    --primary: #00A3FF;
    --primary-glow: rgba(0, 163, 255, 0.6);
    --secondary: #00F0FF;
    
    --text-main: #E2E8F0;
    --text-muted: #94A3B8;
    
    --glass-bg: rgba(23, 35, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.padding-section {
    padding: 100px 0;
}

.dark-section {
    background-color: var(--bg-darker);
}

.darker-section {
    background-color: #04070D;
    position: relative;
}

.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.text-center { text-align: center; }

/* ==========================================================================
   Typography & Accents
   ========================================================================== */
.highlight {
    color: var(--primary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.lead-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
}

.intro-center .lead-text {
    margin: 0 auto;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary, .btn-secondary, .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #0077FF);
    color: #FFF;
    border: none;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #0077FF, var(--primary));
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 163, 255, 0.8);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    border: 1px solid #25D366;
    gap: 8px;
}

.btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transform: translateY(-2px);
}

.glow-btn {
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px var(--primary-glow); }
    100% { box-shadow: 0 0 25px var(--primary-glow); }
}

/* ==========================================================================
   Glassmorphism Utilities
   ========================================================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 18, 33, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
    padding: 15px 0;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    border-radius: 8px; /* Depending on the logo style */
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-item:hover::after, .nav-item.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}

.mobile-cta {
    display: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

.hero-bg .bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.1);
}

.hero-bg .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(11, 18, 33, 0.95) 0%, rgba(11, 18, 33, 0.7) 100%);
}

.hero-bg .grid-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.hero-container {
    display: flex;
    justify-content: flex-start;
}

.hero-content {
    max-width: 650px;
    padding: 3rem;
    border-radius: 24px;
}

.neon-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 163, 255, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.main-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Nosotros (About) Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.features-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(0, 163, 255, 0.1);
    color: var(--primary);
    border-radius: 50%;
    border: 1px solid rgba(0, 163, 255, 0.3);
    font-size: 0.8rem;
    box-shadow: 0 0 10px rgba(0, 163, 255, 0.2);
}

.about-stats {
    display: flex;
    flex-direction: column;
    padding: 3rem;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.about-stats::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 150px; height: 150px;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.3;
    z-index: 0;
}

.stat-item {
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 3.5rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px var(--primary-glow);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

/* ==========================================================================
   Soluciones Section
   ========================================================================== */
.blur-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}

.blob-1 {
    top: 10%; left: 5%;
    width: 300px; height: 300px;
    background: rgba(0, 163, 255, 0.15);
}

.blob-2 {
    bottom: 10%; right: 5%;
    width: 250px; height: 250px;
    background: rgba(0, 240, 255, 0.1);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.solution-card {
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hover-tilt:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(0, 163, 255, 0.3);
}

.hover-tilt:hover .card-glow {
    opacity: 1;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.hover-tilt:hover .icon-wrapper {
    background: rgba(0, 163, 255, 0.2);
    border-color: rgba(0, 163, 255, 0.4);
    transform: scale(1.1) rotate(5deg);
}

.solution-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #FFF;
}

.solution-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}

.card-glow {
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 100px; height: 50px;
    background: var(--primary);
    filter: blur(50px);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 50%;
    pointer-events: none;
}

/* ==========================================================================
   Entrenamiento Section
   ========================================================================== */
.training-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.banner-content {
    max-width: 600px;
}

.locations-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.location-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.banner-visual {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animated-circle {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    border: 2px solid rgba(0, 163, 255, 0.3);
    border-radius: 50%;
    animation: ripple 3s infinite linear;
}

.delay-circle {
    animation-delay: 1.5s;
}

.center-icon {
    font-size: 4rem;
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

@keyframes ripple {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.border-top-glow {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.border-top-glow::before {
    content: '';
    position: absolute;
    top: -1px; left: 50%;
    transform: translateX(-50%);
    width: 30%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer {
    padding-top: 5rem;
    background: #02050A;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo-wrapper {
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 50px;
    border-radius: 8px;
    filter: grayscale(0.2);
}

.footer-info p {
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #FFF;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--text-muted);
}

.contact-icon {
    margin-right: 10px;
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations & Initial States
   ========================================================================== */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scroll-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-anim.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* ==========================================================================
   Responsive Queries
   ========================================================================== */
@media screen and (max-width: 992px) {
    .main-title { font-size: 2.8rem; }
    .hero-content { padding: 2rem; }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .training-banner { flex-direction: column; text-align: center; gap: 3rem; padding: 2.5rem; }
    .locations-tags { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media screen and (max-width: 768px) {
    .desktop-cta { display: none; }
    .mobile-menu-btn { display: flex; }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(11, 18, 33, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem 0;
        clip-path: circle(0% at 100% 0);
        transition: clip-path 0.5s ease;
        gap: 1.5rem;
    }
    
    .nav-links.active {
        clip-path: circle(150% at 100% 0);
    }
    
    .mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    
    .mobile-cta { display: inline-flex; }
    
    .main-title { font-size: 2.2rem; }
    .hero { padding-top: 100px; }
    
    .about-stats { padding: 2rem; box-shadow: none; border: none; background: rgba(255,255,255,0.02); }
    .stat-number { font-size: 2.8rem; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .social-links { justify-content: center; }
    .footer-links ul { align-items: center; }
}
