:root {
    /* Primary Palette - Electric Cyan & Deep Blue */
    --sfits-primary: #00f2ea;
    --sfits-primary-rgb: 0, 242, 234;
    --sfits-accent: #4361ee;
    /* More professional blue */
    --sfits-accent-rgb: 67, 97, 238;
    --sfits-purple: #7209b7;
    /* Deep purple for depth */

    /* Semantic Colors */
    --sfits-red: #ef233c;
    --sfits-green: #06d6a0;

    /* Neutral Palette - Richer Blacks */
    --sfits-black: #02040a;
    /* Deep rich black */
    --sfits-gray-dark: #0f172a;
    /* Slate dark */
    --sfits-gray-medium: #1e293b;
    --sfits-gray-light: #94a3b8;
    --sfits-white: #f8fafc;

    /* Glassmorphism Premium */
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --glass-blur: 20px;
}

@layer utilities {
    /* ... existing utilities ... */

    /* Premium Gradients */
    .bg-gradient-premium {
        background: linear-gradient(135deg, var(--sfits-primary) 0%, var(--sfits-accent) 100%);
    }

    .text-gradient-premium {
        background: linear-gradient(135deg, var(--sfits-primary) 0%, var(--sfits-accent) 50%, var(--sfits-white) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        background-size: 200% auto;
        animation: gradientText 5s ease infinite;
    }

    @keyframes gradientText {
        0% {
            background-position: 0% 50%;
        }

        50% {
            background-position: 100% 50%;
        }

        100% {
            background-position: 0% 50%;
        }
    }

    /* Glassmorphism Utility - Enhanced */
    .glass-card {
        background: var(--glass-bg);
        backdrop-filter: blur(var(--glass-blur));
        -webkit-backdrop-filter: blur(var(--glass-blur));
        border: 1px solid var(--glass-border);
        border-top: 1px solid var(--glass-highlight);
        box-shadow:
            0 4px 24px -1px rgba(0, 0, 0, 0.2),
            0 0 0 1px rgba(0, 0, 0, 0.2);
    }

    .glass-card-hover {
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .glass-card-hover:hover {
        background: rgba(30, 41, 59, 0.7);
        border-color: rgba(var(--sfits-primary-rgb), 0.4);
        transform: translateY(-8px);
        box-shadow:
            0 20px 40px -5px rgba(0, 0, 0, 0.4),
            0 0 20px rgba(var(--sfits-primary-rgb), 0.15);
    }
}

/* Typography - Professional Typesetting */
.font-montserrat {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.03em;
    /* Tighter tracking for headlines */
}

.font-inter {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    /* Improved readability */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
    /* Better line breaking */
}

/* Body - Rich Background */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--sfits-black);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(67, 97, 238, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 242, 234, 0.05), transparent 25%);
    color: var(--sfits-white);
    letter-spacing: -0.01em;
}

/* Navigation - Sleek */
.nav-link {
    @apply text-sfits-gray-light hover:text-white transition-all duration-300 font-medium tracking-wide relative py-2;
}

.nav-link::after {
    content: '';
    @apply absolute bottom-0 left-0 w-0 h-0.5 bg-gradient-to-r from-sfits-primary to-sfits-accent transition-all duration-300;
}

/* Buttons - High Impact */
.btn-primary {
    @apply px-10 py-5 bg-sfits-primary text-sfits-black font-black rounded-full hover:scale-105 transition-all duration-500 relative overflow-hidden isolate inline-flex items-center justify-center uppercase tracking-widest text-sm border-none;
    box-shadow: 0 0 25px rgba(0, 242, 234, 0.5);
}

.btn-primary::before {
    content: '';
    @apply absolute inset-0 -z-10 bg-gradient-to-r from-sfits-primary to-sfits-accent opacity-0 transition-opacity duration-300;
}

.btn-primary:hover {
    @apply text-white;
    box-shadow: 0 0 50px rgba(0, 242, 234, 0.8);
}

.btn-primary:hover::before {
    @apply opacity-100;
}

/* Cards - Refined */
.card {
    @apply glass-card rounded-[2rem] p-10;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Section Backgrounds */
.section-bg-gym {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section-bg-gym::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.8), rgba(5, 5, 5, 0.95));
    z-index: 0;
}

.section-bg-gym>* {
    position: relative;
    z-index: 1;
}

.bg-gym-1 {
    background-image: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&w=2000&q=80');
}

.bg-gym-2 {
    background-image: url('https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?auto=format&fit=crop&w=2000&q=80');
}

.bg-gym-3 {
    background-image: url('https://images.unsplash.com/photo-1540497077202-7c8a3999166f?auto=format&fit=crop&w=2000&q=80');
}

.bg-gym-4 {
    background-image: url('https://images.unsplash.com/photo-1593079831268-3381b0db4a77?auto=format&fit=crop&w=2000&q=80');
}

.bg-gym-5 {
    background-image: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&w=2000&q=80');
}

.bg-gym-6 {
    background-image: url('https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?auto=format&fit=crop&w=2000&q=80');
}

.bg-gym-7 {
    background-image: url('https://images.unsplash.com/photo-1540497077202-7c8a3999166f?auto=format&fit=crop&w=2000&q=80');
}

/* Video Card Border */
.video-card-border {
    position: relative;
    border: 2px solid var(--sfits-primary);
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.3);
    padding: 0;
    border-radius: 1rem;
    /* Reduced radius for 'derechos' look */
    background: transparent;
}

.video-card-border>div {
    border-radius: 0.9rem;
    /* Slightly less than parent to fit */
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 20px;
    left: 20px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (min-width: 640px) {
    .whatsapp-float {
        width: 60px;
        height: 60px;
        bottom: 30px;
        left: 30px;
        font-size: 30px;
    }
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: var(--sfits-black);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(var(--sfits-primary-rgb), 0.3);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--sfits-primary);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section,
    .section-bg-gym {
        background-attachment: scroll;
    }

    /* Ajustes para móvil */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Mejorar legibilidad en móvil */
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Botones más táctiles en móvil */
    .btn-primary {
        min-height: 44px;
        min-width: 44px;
    }

    /* Ajustar espaciados en móvil */
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Tablet */
@media (min-width: 640px) and (max-width: 1023px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Alpine.js Cloak */
[x-cloak] {
    display: none !important;
}