/* Reset y configuración base */
* {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    --main-bg-color: #71b933;
    --main-color: #71b933;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

/* Enlaces */
a {
    text-decoration: none;
    color: unset;
    transition: var(--transition);
}

a:hover {
    color: var(--main-color);
}

/* Imágenes */
img {
    max-width: 100%;
    height: auto;
}

.img-full-width {
    width: 100%;
}

/* Header y Footer */
.header-main, .footer-main {
    background-color: var(--main-bg-color);
    height: 0.75rem;
    width: 100%;
    display: block;
    position: relative;
}

.header-accent, .footer-accent {
    height: 0.3rem;
    background: linear-gradient(90deg, var(--accent-color), var(--main-color));
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--main-color) 0%, #5a9a2a 100%);
    padding: 6rem 0 4rem;
    color: var(--white);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.logo-container {
    margin-bottom: 2rem;
}

.hero-logo {
    width: 20rem;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 300;
    opacity: 0.9;
}

/* CTA Banner */
.cta-banner {
    background: var(--light-gray);
    padding: 4rem 0;
    border-bottom: 3px solid var(--main-color);
}

.cta-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--dark-gray);
    color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.cta-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.cta-badge i {
    margin-right: 0.8rem;
    font-size: 1.2em;
    margin-bottom: 0.5rem;
}

.badge-text {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.badge-highlight {
    background: var(--main-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 1.5rem;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.cta-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.8rem;
    color: var(--dark-gray);
    margin-bottom: 2.5rem;
}

.location-link {
    color: var(--main-color);
    font-weight: 600;
    text-decoration: underline;
}

.cta-button {
    background: var(--main-color);
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.8rem;
    font-weight: 600;
    border-radius: 5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.cta-button:hover {
    background: #5a9a2a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--white);
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background: var(--white);
}

.service-card {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--main-color);
}

.service-icon {
    width: 8rem;
    height: 8rem;
    background: linear-gradient(135deg, var(--main-color), #5a9a2a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--white);
    font-size: 3rem;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
}

.service-icon i {
    color: var(--white);
    font-size: 3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
    line-height: 1;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
}

/* Fallback para iconos si FontAwesome no carga */
.service-icon::before {
    content: "🏃";
    font-size: 3rem;
    display: none;
}

.service-card:nth-child(1) .service-icon::before {
    content: "🏃";
}

.service-card:nth-child(2) .service-icon::before {
    content: "💪";
}

.service-card:nth-child(3) .service-icon::before {
    content: "⛰️";
}

/* Mostrar fallback solo si FontAwesome no está disponible */
.service-icon:not(:has(i))::before {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.service-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.service-description {
    font-size: 1.6rem;
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.feature-tag {
    background: var(--light-gray);
    color: var(--main-color);
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: 2px solid var(--main-color);
}

/* Videos Section */
.videos-section {
    padding: 6rem 0;
    background: var(--light-gray);
}

.section-title {
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.8rem;
    color: var(--dark-gray);
    margin-bottom: 4rem;
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.video-container:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.video-container iframe {
    width: 100%;
    height: 315px;
    border: none;
}

/* Instagram Section */
.instagram-section {
    padding: 6rem 0;
    background: var(--white);
}

.instagram-feed-container {
    margin-bottom: 3rem;
}

/* Carousel Section */
.carousel-section {
    background: var(--light-gray);
    padding: 4rem 0;
}

#carousel .item {
    padding-bottom: 0;
}

#carousel .item img {
    width: 100%;
    border-radius: 1rem;
}

/* Sedes Section */
.sedes-section {
    padding: 6rem 0;
    background: var(--white);
}

/* Imagen de sedes al 100% de ancho */
.sedes-full-width {
    width: 100% !important;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

/* Revertir estilos de sedes individuales */
.sede-card {
    text-align: center;
    margin-bottom: 2rem;
}

.sede-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.sede-link {
    position: relative;
    display: block;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.sede-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.sede-image {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.sede-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(113, 185, 51, 0.9);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.sede-link:hover .sede-overlay {
    opacity: 1;
}

.sede-overlay i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.sede-overlay span {
    font-size: 1.6rem;
    font-weight: 600;
}

/* Horarios Section */
.horarios-section {
    padding: 6rem 0;
    background: var(--light-gray);
}

.horarios-container {
    max-width: 800px;
    margin: 0 auto;
}

.horarios-image {
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.horarios-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Social Section */
.social-section {
    padding: 6rem 0;
    background: var(--white);
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    border-radius: 1rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.social-icon {
    width: 15rem;
    margin-bottom: 1rem;
}

.social-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
}

.online-classes-link {
    display: block;
    transition: var(--transition);
}

.online-classes-link:hover {
    transform: translateY(-5px);
}

.online-classes-image {
    width: 18rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

/* Pricing Section */
.pricing-section {
    padding: 6rem 0;
    background: var(--light-gray);
}

.pricing-card {
    background: var(--white);
    border-radius: 2rem;
    padding: 4rem;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.pricing-logo {
    width: 15rem;
    margin-bottom: 2rem;
}

.pricing-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.pricing-description {
    font-size: 1.8rem;
    color: var(--dark-gray);
    margin-bottom: 3rem;
}

.pricing-price {
    margin-bottom: 3rem;
}

.pricing-price h4 {
    font-size: 2rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 4.8rem;
    font-weight: 700;
    color: var(--main-color);
}

.payment-methods {
    border-top: 2px solid var(--light-gray);
    padding-top: 3rem;
}

.payment-method {
    text-align: center;
    padding: 2rem;
}

.payment-method h5 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.payment-method h5 i {
    color: var(--main-color);
    margin-right: 0.8rem;
}

.payment-method p {
    font-size: 1.6rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: var(--white);
    text-align: center;
}

.contact-logo {
    width: 12rem;
    margin-bottom: 2rem;
}

.contact-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.contact-text {
    font-size: 1.8rem;
    color: var(--dark-gray);
    margin-bottom: 0;
}

.contact-link {
    color: var(--main-color);
    font-weight: 600;
    text-decoration: underline;
}

.contact-link:hover {
    color: #5a9a2a;
}

/* WhatsApp Button */
.whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: var(--shadow);
    z-index: 100;
    transition: var(--transition);
}

.whatsapp:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
    color: var(--white);
}

.whatsapp-icon {
    margin-top: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
    }
    
    .cta-title {
        font-size: 2.4rem;
    }
    
    .cta-text {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .pricing-card {
        padding: 2rem;
    }
    
    .price-amount {
        font-size: 3.6rem;
    }
    
    .whatsapp {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
    
    .whatsapp-icon {
        margin-top: 12px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.4rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .service-title {
        font-size: 2rem;
    }
    
    .pricing-title {
        font-size: 2.4rem;
    }
    
    .price-amount {
        font-size: 3rem;
    }
}

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

.service-card,
.sede-card,
.pricing-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Mejoras para el carousel */
.owl-carousel .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    pointer-events: none;
}

.owl-carousel .owl-nav button {
    background: rgba(113, 185, 51, 0.8) !important;
    color: white !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    pointer-events: auto;
    transition: var(--transition);
}

.owl-carousel .owl-nav button:hover {
    background: var(--main-color) !important;
    transform: scale(1.1);
}

.owl-carousel .owl-prev {
    left: 20px;
}

.owl-carousel .owl-next {
    right: 20px;
}

/* Mejoras para iconos */
.fas, .fab, .fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome";
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fab {
    font-weight: 400;
}

/* Asegurar que los iconos sean visibles */
.service-icon i,
.cta-badge i,
.sede-overlay i,
.payment-method i {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}

/* Mejorar contraste de iconos */
.service-icon i {
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
}

.cta-badge i {
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
}

.sede-overlay i {
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
}

/* Video CTA Section */
.video-cta {
    background: linear-gradient(135deg, var(--light-gray), #e9ecef);
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: var(--shadow);
    margin-top: 3rem;
    border: 3px solid var(--main-color);
}

.video-cta-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.video-cta-text {
    font-size: 1.8rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    font-weight: 500;
}

.video-cta-button {
    background: var(--main-color);
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.8rem;
    font-weight: 600;
    border-radius: 5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-cta-button:hover {
    background: #5a9a2a;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: var(--white);
}