:root {
    --primary-color: #ff6b35;
    --secondary-color: #2d3047;
    --accent-color: #00b4d8;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --transition: all 0.3s ease;
}

[data-bs-theme="dark"] {
    --primary-color: #ff6b35;
    --secondary-color: #8ecae6;
    --light-color: #212529;
    --dark-color: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    transition: var(--transition);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
}

.navbar-logo {
    height: 50px;
    width: auto;
    border-radius: 50%;
    object-fit: cover;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 0 100px;
    margin-top: 76px;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
        margin-top: 60px;
    }
}


.section-title {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #e55a2b;
    border-color: #e55a2b;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-whatsapp {
    background-color: #25D366;
    border-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    color: white;
}

.card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-card {
    border-left: 5px solid var(--primary-color);
}

.plan-card {
    border-top: 5px solid var(--primary-color);
}

.plan-card.featured {
    transform: scale(1.05);
    border-top: 5px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    height: 350px;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h5 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Carrusel About */
.carousel-about {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.carousel-image {
    height: 400px;
    object-fit: cover;
    object-position: center;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    bottom: 0;
    top: auto;
    padding: 2rem;
}

.carousel-caption h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.carousel-caption p {
    font-size: 1rem;
    margin: 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

/* Mission Box */
.mission-box {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(0, 180, 216, 0.08));
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 3rem 2rem;
}

.mission-box h3 {
    color: var(--primary-color);
}

.mission-box .lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-color);
}

.mission-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-box {
    text-align: center;
    padding: 1rem;
    flex: 0 1 150px;
}

.stat-box h4 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-box p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--secondary-color);
}

@media (max-width: 992px) {
    .carousel-image {
        height: 350px;
    }
    
    .mission-box {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .carousel-image {
        height: 300px;
    }
    
    .carousel-caption {
        padding: 1.5rem;
    }
    
    .carousel-caption h5 {
        font-size: 1.2rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .mission-box {
        padding: 1.5rem 1rem;
    }
    
    .mission-box h3 {
        font-size: 1.8rem;
    }
    
    .mission-box .lead {
        font-size: 1rem;
    }
    
    .mission-stats {
        gap: 1rem;
    }
    
    .stat-box {
        flex: 0 1 100px;
        padding: 0.75rem;
    }
    
    .stat-box h4 {
        font-size: 1.7rem;
    }
    
    .stat-box p {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .carousel-image {
        height: 250px;
    }
    
    .mission-box {
        padding: 1.25rem;
    }
    
    .mission-box h3 {
        font-size: 1.5rem;
    }
    
    .mission-stats {
        gap: 0.75rem;
    }
    
    .stat-box {
        flex: 0 1 80px;
        padding: 0.5rem;
    }
    
    .stat-box h4 {
        font-size: 1.5rem;
    }
}

.about-trainer-box {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(0, 180, 216, 0.1));
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 2rem;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trainer-info-content {
    text-align: center;
}

.trainer-info-content h5 {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.trainer-info-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dark-color);
}

.trainer-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.stat {
    flex: 1;
    max-width: 80px;
}

.stat h4 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat p {
    font-size: 0.8rem;
    margin: 0;
}

@media (max-width: 992px) {
    .col-lg-5 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .gallery-item {
        height: 280px;
    }
    
    .about-trainer-box {
        height: auto;
        min-height: 280px;
        padding: 1.5rem;
    }
    
    .col-lg-5 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 1rem;
    }
    .gallery-overlay p {
        font-size: 0.85rem;
    }
    
    .trainer-stats {
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .gallery-item {
        height: 250px;
    }
    
    .gallery-overlay {
        padding: 1rem;
    }
    
    .gallery-overlay h5 {
        font-size: 1rem;
    }
    
    .gallery-overlay p {
        font-size: 0.8rem;
    }
    
    .about-trainer-box {
        min-height: 250px;
        padding: 1.25rem;
    }
    
    .trainer-info-content p {
        font-size: 0.9rem;
    }
    
    .stat h4 {
        font-size: 1.7rem;
    }
    
    .stat p {
        font-size: 0.75rem;
    }
}

#map {
    height: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
    margin: 0 5px;
}

.social-icon:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-5px);
}

.theme-toggle {
    width: 50px;
    height: 26px;
    background-color: var(--dark-color);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle::after {
    content: '\f185';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 3px;
    left: 5px;
    color: #ffd43b;
    font-size: 14px;
    transition: var(--transition);
}

[data-bs-theme="dark"] .theme-toggle::after {
    content: '\f186';
    left: 28px;
    color: #f8f9fa;
}

.toggle-ball {
    width: 20px;
    height: 20px;
    background-color: var(--light-color);
    border-radius: 50%;
    position: absolute;
    top: 3px;
    right: 3px;
    transition: var(--transition);
}

[data-bs-theme="dark"] .toggle-ball {
    right: 27px;
}

.form-control {
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.25);
}

.offcanvas {
    background-color: var(--light-color);
    color: var(--dark-color);
}

footer {
    background-color: var(--secondary-color);
    color: white;
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(0, 180, 216, 0.15));
    border-radius: 50%;
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-icon:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.25), rgba(0, 180, 216, 0.25));
}


.trainer-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
}

.video-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1a1a1a;
    border: 3px solid var(--primary-color);
    border-radius: 10px;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: visible;
    padding: 0;
    position: relative;
}

.video-hero video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    max-height: 500px;
}

.video-hero video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
}

.video-container {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

@media (max-width: 992px) {
    .col-lg-6:last-child {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
        margin-top: 60px;
    }
    
    .video-hero {
        aspect-ratio: 16 / 9;
        margin-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 80px 0 50px;
        margin-top: 50px;
    }
    
    .video-hero {
        aspect-ratio: 16 / 9;
        border: 2px solid var(--primary-color);
        margin-top: 2rem;
    }
}



.progress {
    height: 10px;
    margin-bottom: 1rem;
}

.progress-bar {
    background-color: var(--primary-color);
}

/* Animaciones personalizadas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Estilos para modo oscuro específicos */
[data-bs-theme="dark"] .card {
    background-color: #2d2d2d;
    color: #f0f0f0;
}

[data-bs-theme="dark"] .form-control {
    background-color: #2d2d2d;
    color: #f0f0f0;
    border-color: #444;
}

[data-bs-theme="dark"] .lead {
    color: #f0f0f0;
}

[data-bs-theme="dark"] p {
    color: #f0f0f0;
}

[data-bs-theme="dark"] h5 {
    color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0 60px;
        text-align: center;
    }

    .plan-card.featured {
        transform: scale(1);
    }

    .trainer-img {
        width: 150px;
        height: 150px;
    }
}