/* Mejorando el fondo general y el contraste de las cards */

/* Hero Section */
.hero-section {
    /*background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);*/
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        /*background: radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.12) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(234, 179, 8, 0.12) 0%, transparent 50%);*/
        pointer-events: none;
    }

.logo-container {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.gym-logo {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(220, 38, 38, 0.4), 0 0 60px rgba(234, 179, 8, 0.2);
    background: rgba(26, 26, 26, 0.5);
    padding: 10px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(220, 38, 38, 0.3);
}

.gradient-text {
    background: linear-gradient(135deg, #dc2626 0%, #eab308 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(220, 38, 38, 0.3));
}

.btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5);
        background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    }

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    color: white;
}

    .btn-outline-light:hover {
        background: rgba(234, 179, 8, 0.15);
        border-color: #eab308;
        transform: translateY(-2px);
        color: white;
        box-shadow: 0 4px 15px rgba(234, 179, 8, 0.3);
    }

.btn-warning {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.3);
}

    .btn-warning:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(234, 179, 8, 0.5);
    }

/* Mejorando el contraste de las Features Section y las cards */

/* Features Section */
.features-section {
    background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
    position: relative;
}

    .features-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 50% 50%, rgba(220, 38, 38, 0.05) 0%, transparent 70%);
        pointer-events: none;
    }

.feature-card {
    background: linear-gradient(135deg, rgba(31, 31, 31, 0.9) 0%, rgba(26, 26, 26, 0.9) 100%);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(220, 38, 38, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

    .feature-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #dc2626 0%, #eab308 100%);
        transform: scaleX(0);
        transition: transform 0.4s ease;
    }

    .feature-card:hover::before {
        transform: scaleX(1);
    }

    .feature-card:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0 20px 60px rgba(220, 38, 38, 0.3), 0 0 40px rgba(234, 179, 8, 0.1);
        border-color: rgba(220, 38, 38, 0.5);
        background: linear-gradient(135deg, rgba(40, 40, 40, 0.95) 0%, rgba(31, 31, 31, 0.95) 100%);
    }

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #dc2626 0%, #eab308 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    transition: all 0.4s ease;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4), inset 0 -4px 12px rgba(0, 0, 0, 0.3);
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.6), 0 0 40px rgba(234, 179, 8, 0.3), inset 0 -4px 12px rgba(0, 0, 0, 0.3);
}

/* Mejorando la Gallery Section con mejor contraste */

/* Gallery Section */
.gallery-section {
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    position: relative;
}

.gallery-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    height: 320px;
    border: 2px solid rgba(220, 38, 38, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

    .gallery-card:hover {
        border-color: rgba(220, 38, 38, 0.5);
        box-shadow: 0 20px 60px rgba(220, 38, 38, 0.3), 0 0 40px rgba(234, 179, 8, 0.1);
        transform: translateY(-8px);
    }

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 50%, transparent 100%);
    padding: 35px 25px 25px;
    color: white;
    transform: translateY(70%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-img {
    transform: scale(1.15);
}

.gallery-card:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 8px;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* Mejorando la CTA Section */

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0 !important;
}

    .cta-section::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(220, 38, 38, 0.15) 0%, transparent 70%);
        animation: rotate 20s linear infinite;
    }

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.cta-card {
    position: relative;
    z-index: 1;
    padding: 60px 20px;
}

    .cta-card .btn-light {
        background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
        border: none;
        font-weight: 700;
        transition: all 0.3s ease;
        box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
    }

        .cta-card .btn-light:hover {
            transform: translateY(-4px) scale(1.05);
            box-shadow: 0 15px 50px rgba(255, 255, 255, 0.3);
            background: linear-gradient(135deg, #ffffff 0%, #eab308 100%);
        }

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .gym-logo {
        width: 90px;
        height: 90px;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .gallery-card {
        height: 280px;
    }

    .feature-card {
        padding: 25px 20px;
    }
}
