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

:root {
    --primary-color: #84CC16;
    /* Verde vibrante */
    --secondary-color: #000000;
    /* Deep dark blue/black */
    --accent-color: #A3E635;
    /* Verde lima claro */
    --warning-color: #F59E0B;
    /* Naranja */
    --error-color: #EF4444;
    /* Rojo */
    --success-color: #10B981;
    /* Verde éxito */
    --dark-color: #000000;
    /* Darkest background */
    --light-color: #1e293b;
    /* Lighter dark for cards */
    --white: #FFFFFF;
    --gray-100: #f8fafc;
    /* Very light gray */
    --gray-200: #e2e8f0;
    /* Light gray */
    --gray-300: #cbd5e1;
    /* Medium gray */
    --gray-600: #94a3b8;
    /* Muted text */
    --gray-800: #1e293b;
    /* Dark component bg */
    --gradient-primary: linear-gradient(135deg, #84CC16, #22C55E);
    /* Gradiente de verde */
    --gradient-welcome: linear-gradient(135deg, #84CC16, #2DD4BF);
    /* Green to Turquoise Gradient */
    --gradient-overlay: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.85));
    /* Darker overlay for Hero */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(132, 204, 22, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #000000;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    background-color: #ffffff;
}

/* Global Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #000 !important;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.nav-logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.nav-logo h2 {
    font-size: 2.8rem;
    /* Larger font size */
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    color: white;
    user-select: none;
    letter-spacing: 2px;
    /* Prevent text selection */
}

.nav-instagram {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
}

.nav-instagram:hover {
    color: var(--primary-color);
    background: rgba(132, 204, 22, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.nav-instagram svg {
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    justify-content: center;
    padding: 0.5rem 0 1rem;
    margin: 0;
    width: 100%;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    /* Add padding for better click area */
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    /* Slightly thicker underline */
    background: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 12px;
}

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

.nav-link.elite-btn {
    background: var(--gradient-primary);
    color: black !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 8px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(132, 204, 22, 0.3);
    margin-left: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nav-link.elite-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 5px 20px rgba(132, 204, 22, 0.5);
    color: black !important;
}

.nav-link.elite-btn::after {
    display: none !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.bar {
    width: 28px;
    /* Slightly wider bars */
    height: 3px;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* --- Main Content & Sections --- */
.main-content {
    margin-top: 140px;
    /* Space for fixed navbar */
}

.section {
    display: none;
    /* Hidden by default for JS to control */
    min-height: calc(100vh - 100px);
    /* At least viewport height minus nav */
    padding: 6rem 0;
    /* Consistent vertical padding for sections */
    position: relative;
    /* For animations */
    opacity: 0;
    /* For fade-in animation */
    transform: translateY(20px);
    /* For slide-up animation */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#inicio.section {
    padding-top: 0;
    margin-top: -140px;
    /* Pull back up to be under navbar */
    background-color: #000000;
    /* Dark background to eliminate white gaps */
}

#inicio .section-title {
    color: #ffffff;
}

.scroll-section {
    padding: 6rem 0;
    min-height: auto;
}

.section.active {
    display: block;
    /* Show active section */
    opacity: 1;
    transform: translateY(0);
}

/* Global Titles and Subtitles */
.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #000000;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 1.25rem;
    color: #444444;
    text-align: center;
    margin-bottom: 3.5rem;
    /* More space below subtitle */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-name {
    text-transform: uppercase;
    font-style: italic;
}

/* CTA Button - General Styling */
.cta-button {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 1.1rem 2.5rem;
    /* Slightly larger padding */
    font-size: 1.15rem;
    /* Slightly larger font */
    font-weight: 700;
    /* Bolder */
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    /* More prominent spacing */
    display: inline-block;
    /* Ensure padding works */
}

.cta-button:hover {
    transform: translateY(-3px);
    /* More pronounced lift */
    box-shadow: 0 20px 40px rgba(132, 204, 22, 0.4);
    /* Stronger shadow on hover */
}

/* --- Hero Section (Inicio) --- */
.hero {
    position: relative;
    min-height: 100vh;
    height: auto;
    padding-top: 160px; /* Space for navbar + extra push down */
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 1;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 4.5rem;
    /* Even larger title */
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-style: italic;
}

.hero-subtitle {
    font-size: 2.2rem;
    /* Larger, more impactful subtitle */
    margin-bottom: 3rem;
    font-weight: 700;
    /* Bold for emphasis */
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
    text-transform: lowercase;
    font-style: italic;
}

/* Download Section in Hero */
.download-section {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #000000;
    min-width: 300px;
}

.premium-btn {
    border-color: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.premium-btn:hover {
    transform: translateY(-5px) scale(1.02);
    background: #f8f8f8;
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(132, 204, 22, 0.4);
}

.qr-trigger-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
}

.download-icon,
.download-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    box-shadow: none;
    flex-shrink: 0;
}

.download-icon-container {
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.download-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.download-platform {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
}

.download-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.7);
}

.download-cards-container {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.qr-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.qr-card:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(132, 204, 22, 0.4);
}

.qr-card img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    background: #fff;
    padding: 0.5rem;
    border-radius: 12px;
}

.qr-card span {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* --- Features Section & Carousel --- */
.features-section {
    background: #000;
    padding: 5rem 0;
    overflow: hidden;
}

.features-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
}

.features-slider {
    display: flex;
    gap: 2.5rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 0;
}

.carousel-item {
    flex: 0 0 calc(33.333% - 1.67rem);
    /* 3 items visible by default */
    background: var(--gray-800);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 10px 10px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    border: 3px solid var(--primary-color);
}

.carousel-item:nth-child(1) { background: linear-gradient(135deg, #166534, #14532d); color: #fff; border: none; box-shadow: 0 10px 30px rgba(22, 101, 52, 0.4); }
.carousel-item:nth-child(2) { background: linear-gradient(135deg, #14532d, #064e3b); color: #fff; border: none; box-shadow: 0 10px 30px rgba(20, 83, 45, 0.4); }
.carousel-item:nth-child(3) { background: linear-gradient(135deg, #064e3b, #022c22); color: #fff; border: none; box-shadow: 0 10px 30px rgba(6, 78, 59, 0.4); }
.carousel-item:nth-child(4) { background: linear-gradient(135deg, #166534, #064e3b); color: #fff; border: none; box-shadow: 0 10px 30px rgba(22, 101, 52, 0.4); }
.carousel-item:nth-child(5) { background: linear-gradient(135deg, #14532d, #064e3b); color: #fff; border: none; box-shadow: 0 10px 30px rgba(6, 78, 59, 0.5); }

.carousel-item h3 { color: inherit !important; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.carousel-item p { color: inherit !important; opacity: 1; }

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-image {
    height: 300px;
    /* Taller images for carousel */
    width: 100%;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-image img {
    transform: scale(1.1);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}



/* Diagonal Effects - Adjusted for better visual */
/* The image inside needs to counter-skew to appear straight */
.diagonal-1 {
    transform: skewY(-3deg);
    margin-bottom: 15px;
}

/* Adding margin-bottom to push content down */
.diagonal-1 img {
    transform: skewY(3deg) scale(1.02);
}

/* Slight scale to cover corners */

.diagonal-2 {
    transform: skewY(3deg);
    margin-bottom: 15px;
}

.diagonal-2 img {
    transform: skewY(-3deg) scale(1.02);
}

.diagonal-3 {
    transform: skewY(-2deg);
    margin-bottom: 15px;
}

.diagonal-3 img {
    transform: skewY(2deg) scale(1.02);
}

.feature-card:hover .feature-image img {
    transform: scale(1.15);
    /* More zoom on image hover */
}

.feature-content {
    padding: 2rem;
    flex-grow: 1;
    /* Allows content to take up remaining space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    /* Feature titles in primary color */
}

.feature-content p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* --- Activities Section --- */
#actividades {
    position: relative;
    transition: all 0.5s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

#actividades::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    /* Initial dark overlay */
    transition: all 0.5s ease;
    z-index: -1;
}

#actividades.has-bg::before {
    background: rgba(0, 0, 0, 0.85);
    /* Darker overlay when image is present */
}

#actividades .page-title,
#actividades .page-subtitle,
#actividades .filter-btn:not(.active) {
    color: white;
}

.activity-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.8rem;
    border: 2px solid var(--gray-200);
    background: transparent;
    border-radius: 12px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-md);
}

.activity-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(132, 204, 22, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 1rem;
}

.activity-card {
    background: var(--gray-800);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 12px 12px 0 rgba(132, 204, 22, 0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s ease,
        visibility 0.4s ease;
    position: relative;
    border: 3px solid var(--primary-color);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    will-change: transform, opacity;
}

.activity-card:nth-child(1) { background: linear-gradient(180deg, #166534, #14532d); color: #fff; border: none; }
.activity-card:nth-child(2) { background: linear-gradient(180deg, #14532d, #064e3b); color: #fff; border: none; }
.activity-card:nth-child(3) { background: linear-gradient(180deg, #064e3b, #022c22); color: #fff; border: none; }
.activity-card:nth-child(4) { background: linear-gradient(180deg, #065f46, #064e3b); color: #fff; border: none; }
.activity-card:nth-child(5) { background: linear-gradient(180deg, #166534, #064e3b); color: #fff; border: none; }
.activity-card:nth-child(6) { background: linear-gradient(180deg, #052e16, #064e3b); color: #fff; border: none; }

.activity-info h3 { color: inherit !important; font-weight: 800; }
.activity-info p { color: inherit !important; opacity: 1; }
.activity-tag { background: rgba(0,0,0,0.2) !important; color: #fff !important; border: 1px solid rgba(255,255,255,0.2); }

.activity-image-wrapper {
    height: 180px;
    width: 100%;
    overflow: hidden;
}

.activity-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.activity-card:hover .activity-image-wrapper img {
    transform: scale(1.1);
}

.activity-card.card-hidden {
    opacity: 0;
    transform: scale(0.8);
    visibility: hidden;
    position: absolute;
    /* Evita que ocupen espacio físico mientras se ocultan */
    pointer-events: none;
}

#actividades.has-bg .activity-card {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

#actividades.has-bg .activity-card h3,
#actividades.has-bg .activity-card p {
    color: white;
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
    background: var(--light-color);
}

#actividades.has-bg .activity-card:hover {
    background: rgba(255, 255, 255, 0.25);
}

.activity-info {
    padding: 2rem;
}

.activity-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: white;
    transition: color 0.3s ease;
}

.activity-card:hover .activity-info h3 {
    color: var(--primary-color);
}

.activity-info p {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 1rem;
}



/* --- Stats Section --- */
.stats-section {
    padding: 5rem 0;
    background: var(--gradient-primary);
    /* Use primary gradient */
    color: var(--white);
    text-align: center;
    margin-bottom: 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    /* Translucent white background */
    backdrop-filter: blur(5px);
    /* Frosted effect */
    -webkit-backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 8px 8px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1.25rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Planes Section (New & Professional) --- */
.plans-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    /* Allow wrapping on smaller screens */
    margin-top: 3rem;
}

.plan-card {
    background: var(--gray-800);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 4px solid var(--primary-color);
    flex: 1;
    /* Grow to fill space equitably */
    max-width: 400px;
    min-width: 300px;
    position: relative;
    box-shadow: 15px 15px 0 rgba(132, 204, 22, 0.2);
}

.plan-card:nth-child(1) { 
    background: #0a0a0a; 
    border-top: 5px solid #84CC16; 
    color: #fff; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.8); 
}
.plan-card:nth-child(2) { 
    background: #0a0a0a; 
    border-top: 5px solid #00d4ff; 
    color: #fff; 
    box-shadow: 0 10px 50px rgba(0, 212, 255, 0.1); 
    transform: scale(1.05); 
}
.plan-card:nth-child(3) { 
    background: #0a0a0a; 
    border-top: 5px solid #ff00ff; 
    color: #fff; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.8); 
}

.plan-card .plan-title { 
    color: #fff !important; 
    font-weight: 800; 
    font-size: 1.8rem; 
    margin-top: 1rem;
}

.plan-card .plan-price { 
    color: var(--primary-color) !important; 
    font-weight: 900; 
    font-size: 3.5rem; 
    margin: 1.5rem 0;
    display: block;
}

.plan-card:nth-child(2) .plan-price { color: #00d4ff !important; }
.plan-card:nth-child(3) .plan-price { color: #ff00ff !important; }

.plan-card .plan-features li { 
    color: rgba(255,255,255,0.7) !important; 
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 1rem 0;
}

.plan-card .plan-button { 
    background: var(--gradient-primary) !important; 
    color: #fff !important; 
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2rem;
}

.plan-card:nth-child(2) .plan-button { background: linear-gradient(135deg, #00d4ff, #0072ff) !important; }
.plan-card:nth-child(3) .plan-button { background: linear-gradient(135deg, #ff00ff, #7a00ff) !important; }

.plan-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 20px 20px 0 rgba(0, 0, 0, 0.4);
    z-index: 5;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: var(--shadow-md);
    letter-spacing: 1px;
    z-index: 10;
}

.plan-header {
    margin-bottom: 2rem;
}

.plan-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: white;
}

.plan-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.plan-price .period {
    font-size: 0.4em;
    font-weight: 500;
    color: var(--gray-600);
    vertical-align: super;
    margin-left: 5px;
}

.plan-discount {
    font-size: 1rem;
    color: var(--success-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
    min-height: 1.5rem;
    /* Reserve space for alignment */
}

/* Featured Plan overrides for Annual Plan */
.featured-plan {
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(132, 204, 22, 0.3);
    transform: scale(1.05);
    /* Make it slightly larger initially */
    z-index: 4;
}

.featured-plan:hover {
    transform: translateY(-15px) scale(1.07);
    box-shadow: 0 30px 60px rgba(132, 204, 22, 0.4);
}

.featured-plan .plan-title {
    color: var(--primary-color);
}


.plan-features {
    text-align: left;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    padding: 0.8rem 0;
    /* Vertical padding for each feature */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle separator */
    color: var(--gray-300);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li::before {
    content: '✅';
    /* Green checkmark */
    margin-right: 1rem;
    font-size: 1.15rem;
    min-width: 25px;
    /* Ensure space for checkmark */
}

.plan-button {
    width: 100%;
    margin-top: auto;
    /* Pushes button to the bottom */
}


/* --- About Section --- */
.about-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Content slightly wider than image */
    gap: 4rem;
    align-items: center;
    padding: 6rem 0;
}

.about-content {
    text-align: left;
}

.about-hero .page-title,
.about-hero .page-subtitle {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.about-image {
    height: 450px;
    /* Slightly taller image */
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    transition: transform 0.4s ease;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.diagonal-large {
    transform: skewY(-5deg);
}

.diagonal-large img {
    transform: skewY(5deg) scale(1.02);
}

.about-image:hover {
    transform: scale(1.02);
}

.about-image:hover img {
    transform: scale(1.08) rotate(-1deg);
}

.about-story {
    padding: 5rem;
    /* More padding */
    background: var(--gray-800);
    border-radius: 12px;
    margin-bottom: 5rem;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
    /* Softer inner shadow */
}

.about-story .section-title {
    margin-bottom: 2.5rem;
    color: var(--primary-color);
}

.story-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    /* Improved readability */
    margin-bottom: 1.5rem;
    color: var(--gray-300);
    /* Darker text for readability */
    text-align: justify;
}



/* --- Privacy Policy Section --- */
#privacidad,
#terminos {
    background-color: #000000;
}

#privacidad .page-title {
    color: #ffffff;
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    line-height: 1.8;
}

.privacy-section {
    margin-bottom: 4rem;
}

.privacy-section:last-of-type {
    margin-bottom: 2rem;
}

.privacy-section h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    letter-spacing: -0.5px;
}

.privacy-section h2 .icon {
    font-size: 1.5rem;
    background: rgba(132, 204, 22, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(132, 204, 22, 0.2);
}

.privacy-section p {
    margin-bottom: 1.5rem;
    color: var(--gray-300);
    font-size: 1.1rem;
}

.privacy-section ul {
    list-style: none;
    padding-left: 0;
}

.privacy-section li {
    margin-bottom: 1rem;
    color: var(--gray-300);
    font-size: 1.05rem;
    position: relative;
    padding-left: 1.5rem;
}

.privacy-section li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.privacy-footer {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 1rem;
    color: var(--gray-600);
}

.privacy-footer strong {
    color: var(--white);
}

/* --- Password Change Section --- */
.password-section-hidden {
    display: none !important;
    /* Force hide */
}

#contrasena {
    background-color: #000000;
}

.password-section {
    max-width: 650px;
    margin: 0 auto;
    padding: 6rem 0;
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.password-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 4rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.password-content .page-title {
    color: #ffffff;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.password-content .page-subtitle {
    color: var(--gray-300);
    margin-bottom: 2rem;
}

.password-form {
    margin-top: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #ffffff;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.25);
    background-color: rgba(255, 255, 255, 0.08);
}

.error-message {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 0.6rem;
    display: block;
    font-weight: 500;
}

.password-requirements {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.password-requirements p {
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.1rem;
}

.password-requirements ul {
    list-style: none;
}

.password-requirements li {
    padding: 0.5rem 0;
    color: var(--gray-300);
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.password-requirements li::before {
    content: '✗ ';
    margin-right: 0.8rem;
    font-weight: bold;
    color: var(--error-color);
    font-size: 1.1em;
}

.password-requirements li.valid {
    color: var(--success-color);
}

.password-requirements li.valid::before {
    content: '✓ ';
    color: var(--success-color);
}

.submit-button {
    width: 100%;
    margin-top: 3rem;
    padding: 1.2rem;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(132, 204, 22, 0.2);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.submit-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(132, 204, 22, 0.4);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.success-message {
    display: none;
    background: var(--success-color);
    color: var(--white);
    padding: 1.2rem;
    border-radius: 12px;
    margin-top: 2.5rem;
    text-align: center;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    animation: slideIn 0.4s ease forwards;
}

.success-message.show {
    display: block;
}

.password-image {
    height: 500px;
    /* Consistent height */
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    box-shadow: 15px 15px 0 rgba(132, 204, 22, 0.1);
    transition: transform 0.4s ease;
}

.security-visual {
    height: 100%;
}

.security-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.diagonal-security {
    transform: skewX(-10deg);
}

.diagonal-security img {
    transform: skewX(10deg) scale(1.02);
}

/* Counter-skew and slight scale */

.security-visual:hover {
    transform: scale(1.02);
}

.security-visual:hover img {
    transform: scale(1.08) rotate(1deg);
    /* Slight rotate for visual interest */
}

/* --- Footer --- */
.footer {
    background: var(--secondary-color);
    /* Darker footer */
    color: var(--white);
    padding: 3.5rem 0 1.5rem;
    /* More vertical padding */
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--gray-800);
    /* Darker border */
    padding-bottom: 2.5rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.2rem;
    /* More space */
    color: var(--primary-color);
    /* Primary color for titles */
    font-weight: 700;
    font-size: 1.4rem;
    /* Adjusted size */
    text-align: left;
}

.footer-section h3 {
    font-size: 1.8rem;
}


.footer-section p,
.footer-section ul {
    color: var(--gray-300);
    /* Lighter gray for content */
    text-align: left;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

/* Social Links Styles */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(132, 204, 22, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(132, 204, 22, 0.3);
}

.social-link svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    /* Darker border */
    padding-top: 1.5rem;
    text-align: center;
    color: var(--gray-400);
    /* Slightly darker gray for copyright */
    font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Mobile Nav Active Animation */
@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

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

@keyframes slideOutToLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* --- Scroll Reveal Animations --- */
.reveal-fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-fade-up.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-fade-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-fade-left.reveal-active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-fade-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-fade-right.reveal-active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-scale.reveal-active {
    opacity: 1;
    transform: scale(1);
}



/* --- Imágenes de Fondo para Actividades (.webp optimizadas) --- */
.bg-ciclismo {
    background-image: url('assets/bici.webp');
    background-size: cover;
    background-position: center;
}

.bg-running {
    background-image: url('assets/CORRER.webp');
    background-size: cover;
    background-position: center;
}

.bg-senderismo {
    background-image: url('assets/senderismo.webp');
    background-size: cover;
    background-position: center;
}

.bg-workouts {
    background-image: url('assets/workoutsfondo.webp');
    background-size: cover;
    background-position: center;
}

/* Estilo para el QR de Google Play */
.qr-google-play {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-google-play:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* QR Modal Animations */
.qr-modal-content {
    animation-name: zoom;
    animation-duration: 0.4s;
    transition: 0.3s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.modal-content-wrapper {
    animation-name: zoomIn;
    animation-duration: 0.3s;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Mobile responsive styles for the Elite button */
@media screen and (max-width: 768px) {
    .nav-link.elite-btn {
        margin-left: 0;
        margin-top: 1rem;
        width: 80%;
        max-width: 250px;
    }
}

/* Fitset Marquee Bands */
.fitset-band {
    background: var(--primary-color);
    color: #000;
    padding: 0.6rem 0;
    overflow: hidden;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
}

.fitset-band.angled {
    transform: translateX(-50%) rotate(-3deg);
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.fitset-marquee {
    display: flex;
    width: max-content;
    animation: scroll-marquee 25s linear infinite;
}

.fitset-marquee.reverse {
    animation: scroll-marquee-reverse 25s linear infinite;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    align-items: center;
}

.marquee-content span {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.3rem;
    padding: 0 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-marquee-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Premium About Cards */
.about-card {
    background: #0a0a0a;
    border-radius: 20px;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.about-card::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.about-card:hover::before {
    opacity: 0.8;
}

.about-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    transform: rotate(-5deg);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card:hover .about-icon-wrapper {
    transform: rotate(5deg) scale(1.1);
}

.about-card h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.about-card p {
    color: var(--gray-300);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Specific colors for each card */
.about-card.mission { border-top: 3px solid #84CC16; }
.about-card.mission::before { background: rgba(132, 204, 22, 0.2); }
.about-card.mission .about-icon-wrapper { background: rgba(132, 204, 22, 0.1); border: 1px solid rgba(132, 204, 22, 0.3); box-shadow: 0 10px 20px rgba(132, 204, 22, 0.15); }

.about-card.science { border-top: 3px solid #00d4ff; }
.about-card.science::before { background: rgba(0, 212, 255, 0.2); }
.about-card.science .about-icon-wrapper { background: rgba(0, 212, 255, 0.1); border: 1px solid rgba(0, 212, 255, 0.3); box-shadow: 0 10px 20px rgba(0, 212, 255, 0.15); }

.about-card.community { border-top: 3px solid #ff00ff; }
.about-card.community::before { background: rgba(255, 0, 255, 0.2); }
.about-card.community .about-icon-wrapper { background: rgba(255, 0, 255, 0.1); border: 1px solid rgba(255, 0, 255, 0.3); box-shadow: 0 10px 20px rgba(255, 0, 255, 0.15); }

/* Hover effects for the new Stat Cards */
.stat-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15) !important;
    border-color: rgba(255,255,255,0.15) !important;
}

.stat-card:hover div[style*="filter: blur"] {
    opacity: 0.8;
    transform: scale(1.2);
    transition: all 0.4s ease;
}

/* Black Background for Payment/Plans Section */
#planes {
    background-color: #000000;
}

#planes .page-title {
    color: #ffffff;
}

#planes .page-subtitle {
    color: var(--gray-300);
}

/* Black Background for About Us Section */
#acerca {
    background-color: #000000 !important;
}

#acerca .page-title,
#acerca .section-title {
    color: #ffffff !important;
}

#acerca .page-subtitle {
    color: var(--gray-300) !important;
}

#acerca .about-story {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

#acerca .story-content {
    color: var(--gray-300) !important;
}

#acerca .story-content p {
    color: var(--gray-300) !important;
}

#acerca .story-content strong {
    color: var(--white) !important;
}

#acerca .about-story p[style*="text-align: center"] {
    color: var(--white) !important;
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}