/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    /* Colors based on logo */
    --color-bg: #0d0d0d;
    --color-bg-darker: #050505;
    --color-bg-card: #161616;
    
    --color-primary: #0091d3; /* BikeEscuela Blue */
    --color-primary-hover: #007bb5;
    
    --color-secondary: #006ddb; /* Gear Blue */
    --color-secondary-hover: #1a85ff;

    --color-orange: #ff6b00; /* Vibrant Sport Orange */
    --color-orange-hover: #e05e00;
    
    --color-text: #e0e0e0;
    --color-text-muted: #a0a0a0;
    --color-text-heading: #ffffff;
    
    --color-border: #333333;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout & Utilities */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 12px;
    --border-radius-lg: 24px;
    --nav-height: 80px;
}

html.light-mode, body.light-mode {
    --color-bg: #ffffff;
    --color-bg-darker: #f8fafc;
    --color-bg-card: #ffffff;
    
    --color-primary: #0070f3; /* Electric Blue */
    --color-primary-hover: #005bb5;
    
    --color-secondary: #0056b3;
    --color-secondary-hover: #004494;

    --color-orange: #ff6b00; /* Vibrant Orange */
    --color-orange-hover: #e05e00;
    
    --color-text: #334155;
    --color-text-muted: #64748b;
    --color-text-heading: #0f172a;
    
    --color-border: #e2e8f0;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    overflow-wrap: break-word;
}

/* ==========================================================================
   Typography & General Styles
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-heading);
    line-height: 1.2;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

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

.text-primary { color: var(--color-primary); }
.text-blue { color: var(--color-secondary); }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--color-bg-darker);
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #d44900);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 145, 211, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-hover), var(--color-primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 145, 211, 0.4);
    color: white;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background: #20b858;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    color: white;
}

.btn-blue {
    background: linear-gradient(135deg, var(--color-secondary), #1a85ff);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 109, 219, 0.3);
}

.btn-blue:hover {
    background: linear-gradient(135deg, #1a85ff, var(--color-secondary));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 109, 219, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(13, 13, 13, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    height: var(--nav-height);
    text-decoration: none;
}

.nav-logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--color-text);
    font-weight: 500;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    position: relative;
}

.nav-link:not(.btn-outline)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

.nav-link:not(.btn-outline):hover::after {
    width: 100%;
}

.nav-link.btn-outline {
    padding: 8px 20px;
    border-radius: 20px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: var(--nav-height);
    background-image: url('https://images.unsplash.com/photo-1541625602330-2277a4c46182?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5,5,5,0.4) 0%, rgba(13,13,13,0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.2s;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #e0e0e0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.4s;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.6s;
}

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

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-text .lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: white;
    margin-bottom: 20px;
    border-left: 4px solid var(--color-primary);
    padding-left: 15px;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 2;
    pointer-events: none;
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s ease;
}

.about-image-wrapper:hover .about-img {
    transform: scale(1.05);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--color-primary);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 6px solid var(--color-bg);
    z-index: 3;
    transform: translate(-40px, -40px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.badge-number {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: white;
    line-height: 1;
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--color-bg-card);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    background: #1a1a1a;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* ==========================================================================
   Features / Metodología Section
   ========================================================================== */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon-wrapper {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 109, 219, 0.1); /* Secondary blue transparent */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-secondary);
    transition: var(--transition);
}

.feature-item:hover .feature-icon-wrapper {
    background: var(--color-secondary);
    color: white;
    transform: rotate(10deg);
}

.feature-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
}

/* ==========================================================================
   Entrenadores Section
   ========================================================================== */
.trainer-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    max-width: 900px;
    margin: 0 auto 40px;
}

@media (min-width: 768px) {
    .trainer-card {
        flex-direction: row;
        align-items: stretch;
    }
}

.trainer-image {
    flex: 1.5;
    min-height: 300px;
}

.trainer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.trainer-info {
    flex: 2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.trainer-info h3 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--color-primary);
}

.trainer-role {
    display: block;
    color: var(--color-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.trainer-bio {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #e0e0e0;
}

.trainer-titles h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: white;
}

.trainer-titles ul {
    list-style: none;
}

.trainer-titles li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--color-text-muted);
}

.trainer-titles li i {
    color: var(--color-secondary);
}

.join-team-banner {
    background: linear-gradient(135deg, rgba(0, 145, 211, 0.1), rgba(0, 109, 219, 0.1));
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.05);
    max-width: 700px;
    margin: 0 auto;
}

.join-team-banner h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.join-team-banner p {
    margin-bottom: 20px;
    color: #ccc;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-section {
    position: relative;
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 145, 211, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: linear-gradient(to bottom, #1a1a1a, #111);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 145, 211, 0.2);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 145, 211, 0.15);
}

.pricing-card-featured {
    border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(0, 145, 211, 0.15);
    transform: scale(1.02);
    z-index: 3;
}

.pricing-card-featured:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 145, 211, 0.2);
}

.pricing-header {
    text-align: center;
    padding: 40px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pricing-header h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.price {
    font-size: 4.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: white;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.currency {
    font-size: 2rem;
    margin-top: 10px;
    color: var(--color-primary);
}

.period {
    font-size: 1.2rem;
    align-self: flex-end;
    margin-bottom: 15px;
    color: var(--color-text-muted);
}

.pricing-desc {
    margin-top: 15px;
    color: var(--color-secondary);
    font-weight: 500;
}

.pricing-body {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pricing-features {
    list-style: none;
    margin-bottom: 40px;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.pricing-features li i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.badge-new {
    background: linear-gradient(135deg, var(--color-secondary), #1a85ff);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: auto;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 109, 219, 0.3);
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% { box-shadow: 0 0 0 0 rgba(0, 109, 219, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(0, 109, 219, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 109, 219, 0); }
}

/* ==========================================================================
   CTA / Contact Section
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, rgba(0, 145, 211, 0.1), rgba(0, 109, 219, 0.1));
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    text-align: left;
}

.cta-text {
    flex: 1;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 600px;
}

.contact-box {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--color-bg-card);
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.contact-box:hover {
    background: #222;
    transform: scale(1.05);
    border-color: var(--color-primary);
    box-shadow: 0 10px 25px rgba(0, 145, 211, 0.2);
}

.contact-icon {
    font-size: 2.2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #000;
    padding: 60px 0 20px;
    border-top: 2px solid var(--color-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
}

.footer-brand p {
    color: var(--color-text-muted);
    max-width: 300px;
}

.footer h4 {
    font-family: var(--font-heading);
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1a1a1a;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--color-primary);
    color: #ffffff !important;
    transform: translateY(-3px);
}

.social-icon:hover i {
    color: #ffffff !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 0 auto;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        transition: var(--transition);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .about-text h2, .section-title, .cta-section h2, .pricing-header h3, .trainer-info h3 {
        font-size: 1.8rem;
        word-break: break-word;
        hyphens: auto;
    }
    
    .about-image-wrapper, .trainer-image, iframe.about-img {
        width: 100% !important;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .hero-actions {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .cta-container {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-section p {
        margin-bottom: 30px;
        margin-inline: auto;
    }
    
    .pricing-body {
        padding: 30px 20px;
    }
    
    .contact-box {
        font-size: 1.4rem;
        padding: 15px 25px;
    }
}

/* ==========================================================================
   Cookie Banner
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    z-index: 9999;
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.cookie-banner.hidden {
    transform: translateY(110%);
}
.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.cookie-content p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}
.cookie-content a {
    color: var(--color-primary);
    text-decoration: underline;
}
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-content .btn {
        width: 100%;
    }
}



/* ==========================================================================
   Dropdown Menu & Fixes
   ========================================================================== */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-bg-card);
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px 0;
    display: none;
    flex-direction: column;
    z-index: 100;
}
@media (min-width: 769px) {
    .nav-item-dropdown:hover .dropdown-menu {
        display: flex;
    }
}
.dropdown-item {
    padding: 10px 20px;
    color: var(--color-text);
    font-family: var(--font-heading);
    transition: 0.3s;
    font-size: 1rem;
    white-space: nowrap;
}
.dropdown-item:hover {
    background: rgba(255,255,255,0.1);
    color: var(--color-primary);
}
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding-left: 20px;
        display: none;
    }
    .dropdown-menu.show {
        display: flex !important;
    }

}
/* Fix for select text visibility */
select.form-control option {
    background: #111;
    color: #fff;
}

/* Admin Backdoor */
.admin-backdoor { position: fixed; bottom: 5px; right: 10px; opacity: 0.15; color: var(--color-light); font-size: 0.75rem; text-decoration: none; z-index: 9999; transition: opacity 0.3s; }
.admin-backdoor:hover { opacity: 0.8; }

/* ==========================================================================
   Nuevas Clases de Color y Fondos (White, Blue, Orange, Green)
   ========================================================================== */
.bg-white {
    background-color: #ffffff !important;
    color: #111111 !important;
}
.bg-white h1, .bg-white h2, .bg-white h3, .bg-white h4 {
    color: #000000 !important;
}
.bg-white p, .bg-white span {
    color: #333333 !important;
}
.bg-white .text-primary {
    color: var(--color-primary) !important;
}
.bg-white .glass-card {
    background: rgba(240, 240, 240, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #111 !important;
}
.bg-white .glass-card h3 {
    color: #000 !important;
}
.bg-white .glass-card p {
    color: #444 !important;
}
.bg-white .glass-section {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
}

.text-blue { color: #006ddb !important; }
.text-orange { color: #FF8C00 !important; }
.text-green { color: #00C853 !important; }
.text-dark { color: #111 !important; }

.icon-blue { background: #006ddb !important; box-shadow: 0 5px 15px rgba(0,109,219,0.5) !important; }
.icon-orange { background: #FF8C00 !important; box-shadow: 0 5px 15px rgba(255,140,0,0.5) !important; }
.icon-green { background: #00C853 !important; box-shadow: 0 5px 15px rgba(0,200,83,0.5) !important; }

.bg-white .pricing-card p, .bg-white .pricing-card h3, .bg-white .pricing-card span, .bg-white .pricing-card li, .bg-white .pricing-card .pricing-price {
    color: #ffffff !important;
}
.bg-white .pricing-card .pricing-desc {
    color: #aaaaaa !important;
}

/* ==========================================================================
   Theme Toggle Switch Component (Sun ☀️ / Moon 🌙) - Compact & Black Icons
   ========================================================================== */
.nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle-wrapper {
    display: inline-flex;
    align-items: center;
}

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 2px 6px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
    user-select: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    height: 24px;
    box-sizing: border-box;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: #ffffff;
}

.toggle-icon {
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, opacity 0.25s ease;
    color: #000000 !important;
}

.sun-icon {
    color: #000000 !important;
    opacity: 0.55;
    transform: scale(0.9);
}

.moon-icon {
    color: #000000 !important;
    opacity: 1;
    transform: scale(1);
}

/* Switch Pill Track & Thumb */
.toggle-switch-track {
    position: relative;
    width: 24px;
    height: 14px;
    background: #1e293b;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-block;
}

.toggle-switch-thumb {
    position: absolute;
    top: 1.5px;
    left: 1.5px;
    width: 9px;
    height: 9px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Mode Toggle State */
html.light-mode .theme-toggle-btn,
body.light-mode .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

html.light-mode .theme-toggle-btn:hover,
body.light-mode .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.3);
}

html.light-mode .sun-icon,
body.light-mode .sun-icon {
    color: #000000 !important;
    opacity: 1;
    transform: scale(1.05);
}

html.light-mode .moon-icon,
body.light-mode .moon-icon {
    color: #000000 !important;
    opacity: 0.45;
    transform: scale(0.9);
}

html.light-mode .toggle-switch-track,
body.light-mode .toggle-switch-track {
    background: #0070f3;
    border-color: #0070f3;
}

html.light-mode .toggle-switch-thumb,
body.light-mode .toggle-switch-thumb {
    transform: translateX(10px);
    background: #ffffff;
}

/* ==========================================================================
   Comprehensive Light Mode Theme Overrides
   ========================================================================== */
body.light-mode {
    background-color: #f8fafc !important;
    color: #334155 !important;
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
    color: #0f172a !important;
}

body.light-mode a {
    color: #0070f3;
}

body.light-mode a:hover {
    color: #005bb5;
}

body.light-mode .text-primary {
    color: #0070f3 !important;
}

body.light-mode .text-blue {
    color: #0056b3 !important;
}

body.light-mode .text-orange {
    color: #ff6b00 !important;
}

body.light-mode .bg-darker {
    background-color: #f1f5f9 !important;
}

/* Navbar in Light Mode */
body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid rgba(0, 102, 204, 0.12) !important;
    box-shadow: 0 4px 20px rgba(0, 50, 100, 0.05);
}

body.light-mode .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 25px rgba(0, 50, 100, 0.1);
}

body.light-mode .nav-link {
    color: #1e293b !important;
}

body.light-mode .nav-link:hover {
    color: #0070f3 !important;
}

body.light-mode .nav-link.btn-outline {
    border-color: #ff6b00 !important;
    color: #ff6b00 !important;
}

body.light-mode .nav-link.btn-outline:hover {
    background: #ff6b00 !important;
    color: #ffffff !important;
}

body.light-mode .mobile-menu-btn {
    color: #0f172a !important;
}

@media (max-width: 768px) {
    body.light-mode .nav-links {
        background: rgba(255, 255, 255, 0.98) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 15px 30px rgba(0, 50, 100, 0.1);
    }
}

body.light-mode .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid rgba(0, 102, 204, 0.15) !important;
    box-shadow: 0 15px 35px rgba(0, 50, 100, 0.12) !important;
}

body.light-mode .dropdown-item {
    color: #334155 !important;
}

body.light-mode .dropdown-item:hover {
    background: rgba(0, 112, 243, 0.08) !important;
    color: #0070f3 !important;
}

/* Hero Section in Light Mode */
body.light-mode .hero-overlay {
    background: radial-gradient(circle at center, rgba(255,255,255,0.65) 0%, rgba(248,250,252,0.92) 100%) !important;
}

body.light-mode .hero-title {
    color: #0f172a !important;
    text-shadow: 0 0 30px rgba(0, 112, 243, 0.2), 0 4px 15px rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .hero-subtitle {
    color: #334155 !important;
    text-shadow: none !important;
}

body.light-mode .hero-actions .btn-primary {
    background: linear-gradient(135deg, #ff6b00, #ea580c) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.35) !important;
}

body.light-mode .hero-actions .btn-primary:hover {
    background: linear-gradient(135deg, #e55c00, #ff6b00) !important;
    box-shadow: 0 12px 30px rgba(255, 107, 0, 0.5) !important;
}

body.light-mode .hero-actions .btn-outline {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid #0070f3 !important;
    color: #0070f3 !important;
    box-shadow: 0 4px 15px rgba(0, 112, 243, 0.15) !important;
}

body.light-mode .hero-actions .btn-outline:hover {
    background: #0070f3 !important;
    color: #ffffff !important;
}

/* Buttons in Light Mode */
body.light-mode .btn-primary {
    background: linear-gradient(135deg, #ff6b00, #ea580c);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

body.light-mode .btn-primary:hover {
    background: linear-gradient(135deg, #e55c00, #ff6b00);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.45);
}

body.light-mode .btn-blue {
    background: linear-gradient(135deg, #0070f3, #0051ba);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 112, 243, 0.3);
}

body.light-mode .btn-blue:hover {
    background: linear-gradient(135deg, #0051ba, #0070f3);
    box-shadow: 0 8px 25px rgba(0, 112, 243, 0.45);
}

body.light-mode .btn-outline {
    border-color: #0070f3;
    color: #0070f3;
}

body.light-mode .btn-outline:hover {
    background: #0070f3;
    color: #ffffff;
}

/* Glass Sections and Glass Cards */
body.light-mode .glass-section {
    background: rgba(255, 255, 255, 0.88) !important;
    border-top: 1px solid rgba(0, 102, 204, 0.1) !important;
    border-bottom: 1px solid rgba(0, 102, 204, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 50, 100, 0.04);
}

body.light-mode .glass-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 102, 204, 0.12) !important;
    box-shadow: 0 10px 30px rgba(0, 50, 120, 0.07) !important;
    color: #334155 !important;
}

body.light-mode .glass-card:hover {
    border-color: #ff6b00 !important;
    box-shadow: 0 20px 45px rgba(255, 107, 0, 0.2) !important;
}

body.light-mode .card-content h3 {
    color: #0f172a !important;
}

body.light-mode .card-content p {
    color: #475569 !important;
}

body.light-mode .card-action {
    color: #ff6b00 !important;
    font-weight: 700 !important;
}

body.light-mode .card-icon {
    background: linear-gradient(135deg, #0070f3, #0051ba) !important;
    box-shadow: 0 5px 15px rgba(0, 112, 243, 0.4) !important;
}

body.light-mode .gallery-img {
    box-shadow: 0 10px 30px rgba(0, 50, 100, 0.12) !important;
}

body.light-mode .gallery-img::after {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.65), transparent 60%) !important;
}

/* Philosophy Section & Performance Widget */
body.light-mode .lead {
    color: #475569 !important;
}

body.light-mode .section-subtitle {
    color: #64748b !important;
}

body.light-mode .performance-widget {
    background: #ffffff !important;
    border: 1px solid rgba(0, 112, 243, 0.2) !important;
    box-shadow: 0 20px 50px rgba(0, 50, 120, 0.1) !important;
}

body.light-mode .widget-header {
    border-bottom: 1px solid #e2e8f0 !important;
}

body.light-mode .performance-widget h3,
body.light-mode .performance-widget h4 {
    color: #0f172a !important;
}

body.light-mode .performance-widget p,
body.light-mode .performance-widget span {
    color: #475569 !important;
}

body.light-mode .performance-widget .text-primary {
    color: #0070f3 !important;
}

body.light-mode .performance-widget .text-orange {
    color: #ff6b00 !important;
}

/* Service Cards */
body.light-mode .service-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 112, 243, 0.12) !important;
    box-shadow: 0 10px 30px rgba(0, 50, 120, 0.06) !important;
}

body.light-mode .service-card:hover {
    background: #ffffff !important;
    box-shadow: 0 20px 40px rgba(0, 112, 243, 0.15) !important;
}

body.light-mode .service-icon {
    color: #0070f3 !important;
}

body.light-mode .service-card h3 {
    color: #0f172a !important;
}

body.light-mode .service-card p {
    color: #475569 !important;
}

/* Features */
body.light-mode .feature-icon-wrapper {
    background: rgba(0, 112, 243, 0.1) !important;
    color: #0070f3 !important;
}

body.light-mode .feature-item:hover .feature-icon-wrapper {
    background: #ff6b00 !important;
    color: #ffffff !important;
}

body.light-mode .feature-content h4 {
    color: #0f172a !important;
}

body.light-mode .feature-content p {
    color: #475569 !important;
}

/* Trainer & Team Cards */
body.light-mode .trainer-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 112, 243, 0.15) !important;
    box-shadow: 0 15px 40px rgba(0, 50, 120, 0.08) !important;
}

body.light-mode .trainer-info h3 {
    color: #0f172a !important;
}

body.light-mode .trainer-role {
    color: #0070f3 !important;
}

body.light-mode .trainer-bio {
    color: #334155 !important;
}

body.light-mode .trainer-titles h4 {
    color: #0f172a !important;
}

body.light-mode .trainer-titles li {
    color: #475569 !important;
}

body.light-mode .trainer-titles li i {
    color: #0070f3 !important;
}

body.light-mode .join-team-banner {
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.06), rgba(255, 107, 0, 0.06)) !important;
    border: 1px solid rgba(0, 112, 243, 0.15) !important;
}

body.light-mode .join-team-banner h3 {
    color: #0f172a !important;
}

body.light-mode .join-team-banner p {
    color: #475569 !important;
}

/* Pricing Section in Light Mode */
body.light-mode .pricing-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 112, 243, 0.18) !important;
    box-shadow: 0 20px 45px rgba(0, 50, 120, 0.08) !important;
}

body.light-mode .pricing-card:hover {
    box-shadow: 0 25px 55px rgba(0, 112, 243, 0.18) !important;
    border-color: #0070f3 !important;
}

body.light-mode .pricing-card-featured {
    border: 2px solid #ff6b00 !important;
    box-shadow: 0 20px 50px rgba(255, 107, 0, 0.18) !important;
}

body.light-mode .pricing-card-featured:hover {
    box-shadow: 0 30px 60px rgba(255, 107, 0, 0.25) !important;
}

body.light-mode .pricing-header {
    border-bottom: 1px solid #f1f5f9 !important;
}

body.light-mode .pricing-header h3 {
    color: #0f172a !important;
}

body.light-mode .price {
    color: #0f172a !important;
}

body.light-mode .currency {
    color: #ff6b00 !important;
}

body.light-mode .period {
    color: #64748b !important;
}

body.light-mode .pricing-desc {
    color: #0070f3 !important;
}

body.light-mode .pricing-features li {
    color: #334155 !important;
}

body.light-mode .pricing-features li i {
    color: #ff6b00 !important;
}

body.light-mode .badge-new {
    background: linear-gradient(135deg, #ff6b00, #ff8c00) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35) !important;
}

/* CTA & Contact Section in Light Mode */
body.light-mode .cta-section {
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.08), rgba(255, 107, 0, 0.08)) !important;
    border-top: 1px solid rgba(0, 112, 243, 0.15) !important;
    border-bottom: 1px solid rgba(0, 112, 243, 0.15) !important;
}

body.light-mode .cta-section h2 {
    color: #0f172a !important;
}

body.light-mode .cta-section p {
    color: #475569 !important;
}

body.light-mode .contact-box {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 2px solid #25D366 !important;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.2) !important;
}

body.light-mode .contact-box span,
body.light-mode .contact-phone-number,
body.light-mode .contact-box * {
    color: #0f172a !important;
    font-weight: 700 !important;
}

body.light-mode .contact-box i.fa-whatsapp {
    color: #25D366 !important;
}

body.light-mode .contact-box:hover {
    background: #f0fdf4 !important;
    border-color: #25D366 !important;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.35) !important;
    transform: scale(1.04);
}

/* Course Cards & Filters in Light Mode */
body.light-mode .course-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 10px 30px rgba(0, 50, 120, 0.08) !important;
}

body.light-mode .course-title {
    color: #000000 !important;
    font-weight: 800 !important;
}

body.light-mode .course-desc {
    color: #000000 !important;
}

body.light-mode .course-info-list,
body.light-mode .course-info-item,
body.light-mode .course-info-item span,
body.light-mode .course-body div[style*="font-size: 0.9rem"],
body.light-mode .course-body div[style*="font-size:0.9rem"] {
    color: #000000 !important;
    font-weight: 600 !important;
}

body.light-mode .course-info-item i,
body.light-mode .course-body div[style*="font-size: 0.9rem"] i,
body.light-mode .course-body div[style*="font-size:0.9rem"] i {
    color: #0070f3 !important;
}

body.light-mode .course-meta {
    border-top: 1px solid #cbd5e1 !important;
}

body.light-mode .course-spots {
    background: #f1f5f9 !important;
    color: #000000 !important;
    border: 1px solid #cbd5e1 !important;
    font-weight: 600 !important;
}

body.light-mode select.form-control,
body.light-mode select#level-filter,
body.light-mode input.form-control,
body.light-mode textarea.form-control {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03) !important;
}

body.light-mode select option {
    background: #ffffff !important;
    color: #000000 !important;
}

/* Course Detail Page (curso.html) Base / Dark Mode */
.course-sidebar-card {
    background: #16181d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.course-details-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.course-detail-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Course Detail Page (curso.html) Light Mode */
body.light-mode .course-sidebar-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 15px 40px rgba(0, 50, 120, 0.08) !important;
}

body.light-mode .course-sidebar-card h1 {
    color: #000000 !important;
    font-weight: 800 !important;
}

body.light-mode .course-details-box {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

body.light-mode .course-detail-row {
    border-bottom: 1px solid #e2e8f0 !important;
    color: #000000 !important;
    font-weight: 600 !important;
}

body.light-mode .course-detail-row span {
    color: #000000 !important;
    font-weight: 600 !important;
}

body.light-mode .course-detail-row i {
    color: #0070f3 !important;
}

body.light-mode .course-tabs-header {
    border-bottom: 2px solid #cbd5e1 !important;
}

body.light-mode .tab-btn {
    color: #000000 !important;
    font-weight: 700 !important;
}

body.light-mode .tab-btn:hover {
    color: #0070f3 !important;
}

body.light-mode .tab-btn.active-tab {
    background: #0070f3 !important;
    color: #ffffff !important;
}

body.light-mode .course-tab-pane,
body.light-mode #tab-desc,
body.light-mode #tab-syl,
body.light-mode #tab-req,
body.light-mode #tab-inc {
    color: #000000 !important;
    line-height: 1.7 !important;
}

body.light-mode #tab-inc li {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body.light-mode #tab-inc li strong {
    color: #000000 !important;
}

body.light-mode #tab-inc li span {
    color: #1e293b !important;
}

body.light-mode .course-price-label {
    color: #000000 !important;
    font-weight: 700 !important;
}

body.light-mode .course-price-val {
    color: #0070f3 !important;
    font-weight: 800 !important;
}

body.light-mode .course-doubt-link {
    color: #000000 !important;
    border-bottom: 1px solid #94a3b8 !important;
    font-weight: 600 !important;
}

body.light-mode .course-doubt-link:hover {
    color: #25D366 !important;
    border-bottom-color: #25D366 !important;
}

/* Lead Section & Waiting List Box in Light Mode */
body.light-mode #lead-section {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 15px 45px rgba(0, 50, 120, 0.08) !important;
}

body.light-mode #lead-section h3,
body.light-mode #lead-title {
    color: #000000 !important;
    font-weight: 800 !important;
}

body.light-mode #lead-section p,
body.light-mode #lead-desc {
    color: #1e293b !important;
    font-size: 1rem !important;
}

body.light-mode #lead-section input.input-field,
body.light-mode #lead-section input,
body.light-mode #lead-modal-container input.input-field,
body.light-mode #lead-modal-container input {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #000000 !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02) !important;
}

body.light-mode #lead-section input::placeholder,
body.light-mode #lead-modal-container input::placeholder {
    color: #64748b !important;
}

body.light-mode #lead-section label,
body.light-mode #lead-section label span,
body.light-mode #lead-modal-container label,
body.light-mode #lead-modal-container label span {
    color: #1e293b !important;
    font-weight: 500 !important;
}

body.light-mode #lead-section p[style*="font-size: 11px"],
body.light-mode #lead-section p[style*="font-size: 10px"],
body.light-mode #lead-modal-container p[style*="font-size: 10px"],
body.light-mode #lead-modal-container p[style*="font-size: 11px"] {
    color: #64748b !important;
}

body.light-mode #lead-modal-container > div,
body.light-mode .lead-modal-overlay > div {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 25px 60px rgba(0, 50, 120, 0.15) !important;
}

body.light-mode #lead-modal-container h3,
body.light-mode .lead-modal-overlay h3 {
    color: #000000 !important;
    font-weight: 800 !important;
}

body.light-mode #lead-modal-container p,
body.light-mode .lead-modal-overlay p {
    color: #1e293b !important;
}

/* Alta / Wizard in Light Mode */
body.light-mode .wizard-container {
    background: #ffffff !important;
    border: 1px solid rgba(0, 112, 243, 0.15) !important;
    box-shadow: 0 20px 50px rgba(0, 50, 120, 0.1) !important;
}

body.light-mode .wizard-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.light-mode .wizard-title-badge {
    color: #0070f3 !important;
}

/* Nutrition Page in Light Mode */
body.light-mode .nutrition-bg-layer {
    background-color: #f8fafc !important;
    background-image: 
        radial-gradient(circle at 80% 25%, rgba(0, 112, 243, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 70%, rgba(255, 107, 0, 0.06) 0%, transparent 50%),
        url('nutrition-pattern.svg') !important;
    opacity: 0.85;
}

body.light-mode .indya-intro-section p {
    color: #334155 !important;
}

body.light-mode .indya-intro-section blockquote {
    color: #0f172a !important;
    background: rgba(0, 112, 243, 0.08) !important;
    border-left: 4px solid #0070f3 !important;
}

body.light-mode .indya-intro-section .featured-box,
body.light-mode .indya-intro-section div[style*="border-left"] {
    background: rgba(0, 112, 243, 0.08) !important;
}

body.light-mode .indya-intro-section div[style*="border-left"] p {
    color: #0f172a !important;
}

body.light-mode .indya-tip-box,
body.light-mode div[style*="border-radius: 12px; border-left: 4px solid"] {
    background: #ffffff !important;
    border: 1px solid rgba(0, 112, 243, 0.18) !important;
    border-left: 4px solid #0070f3 !important;
    box-shadow: 0 10px 30px rgba(0, 50, 120, 0.07) !important;
}

body.light-mode .indya-tip-box p,
body.light-mode div[style*="border-radius: 12px; border-left: 4px solid"] p {
    color: #334155 !important;
}

body.light-mode .indya-powered p {
    color: #64748b !important;
}

/* Logo INDYA en el cuerpo de la página (modo diurno fondo claro: negro sin invertir) */
body.light-mode .indya-powered-logo,
body.light-mode .indya-logo-img,
body.light-mode .indya-section-logo {
    filter: none !important;
    opacity: 1 !important;
}

/* Logo INDYA en el Footer: el footer SIEMPRE es de fondo oscuro, por lo que su logo SIEMPRE es blanco */
.footer .footer-links img[alt*="INDYA"],
.footer img.indya-footer-logo,
body.light-mode .footer .footer-links img[alt*="INDYA"],
body.light-mode .footer img.indya-footer-logo,
body.light-mode .footer img[alt="INDYA"] {
    filter: brightness(0) invert(1) !important;
    opacity: 0.9 !important;
}

/* Cookie Banner in Light Mode */
body.light-mode .cookie-banner {
    background-color: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.08) !important;
}

body.light-mode .cookie-content p {
    color: #475569 !important;
}

/* Footer in Light Mode */
body.light-mode .footer {
    background: #0f172a !important;
    border-top: 3px solid #ff6b00 !important;
}

body.light-mode .footer h4 {
    color: #ffffff !important;
}

body.light-mode .footer-brand p,
body.light-mode .footer-links a,
body.light-mode .footer-bottom p {
    color: #94a3b8 !important;
}

body.light-mode .footer-links a:hover {
    color: #ff6b00 !important;
}

body.light-mode .social-icon {
    background: #1e293b !important;
    color: #ffffff !important;
}

body.light-mode .social-icon:hover {
    background: #ff6b00 !important;
    color: #ffffff !important;
}

body.light-mode .social-icon:hover i {
    color: #ffffff !important;
}

/* High-Contrast Safety Overrides for Light Mode */
body.light-mode p[style*="color: #ddd"],
body.light-mode p[style*="color: #ccc"],
body.light-mode p[style*="color: #aaa"],
body.light-mode p[style*="color: #b0b0b0"],
body.light-mode p[style*="color: #d6d6d6"],
body.light-mode p[style*="color: #a0a0a0"],
body.light-mode span[style*="color: #ccc"],
body.light-mode span[style*="color: #aaa"],
body.light-mode span[style*="color: #bbb"] {
    color: #475569 !important;
}

body.light-mode strong[style*="color: #ffffff"],
body.light-mode strong[style*="color: #fff"],
body.light-mode h1[style*="color: #ffffff"],
body.light-mode h2[style*="color: #ffffff"],
body.light-mode h3[style*="color: #ffffff"],
body.light-mode h4[style*="color: #ffffff"] {
    color: #0f172a !important;
}

body.light-mode .pricing-card li[style*="background: rgba(0, 145, 211, 0.08)"] {
    background: rgba(0, 112, 243, 0.06) !important;
    border-color: rgba(0, 112, 243, 0.25) !important;
}

body.light-mode .pricing-card li[style*="background: rgba(0, 145, 211, 0.08)"] div {
    color: #334155 !important;
}

body.light-mode .pricing-card li[style*="background: rgba(0, 145, 211, 0.08)"] strong {
    color: #0f172a !important;
}

/* Course Share Buttons (Global for curso.html, cursos-conduccion.html, cursos-mecanica.html) */
.course-share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ccc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    padding: 0;
}
.course-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.course-share-btn.share-wa:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: #25D366;
    color: #25D366;
}
.course-share-btn.share-tg:hover {
    background: rgba(34, 158, 217, 0.2);
    border-color: #229ED9;
    color: #229ED9;
}
.course-share-btn.share-native:hover,
.course-share-btn.share-copy:hover {
    background: rgba(0, 145, 211, 0.2);
    border-color: #0091d3;
    color: #00c6ff;
}
.course-share-btn.copied {
    background: rgba(40, 167, 69, 0.2) !important;
    border-color: #28a745 !important;
    color: #28a745 !important;
}

body.light-mode .course-share-btn {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}
body.light-mode .course-share-btn:hover {
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}
body.light-mode .course-share-btn.share-wa:hover {
    border-color: #25D366 !important;
    color: #25D366 !important;
    background: rgba(37, 211, 102, 0.1) !important;
}
body.light-mode .course-share-btn.share-tg:hover {
    border-color: #229ED9 !important;
    color: #229ED9 !important;
    background: rgba(34, 158, 217, 0.1) !important;
}
body.light-mode .course-share-btn.share-native:hover,
body.light-mode .course-share-btn.share-copy:hover {
    border-color: #0091d3 !important;
    color: #0091d3 !important;
    background: rgba(0, 145, 211, 0.1) !important;
}

/* Mobile Responsive Optimization for Course Page (curso.html) */
@media (max-width: 900px) {
    #course-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    .course-sidebar-card {
        position: static !important;
        top: auto !important;
        padding: 20px 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .course-sidebar-card h1 {
        font-size: 1.45rem !important;
        margin-bottom: 12px !important;
        line-height: 1.25 !important;
    }
    .course-details-box {
        padding: 12px 14px !important;
        margin-bottom: 18px !important;
    }
    .course-detail-row {
        font-size: 0.95rem !important;
        padding: 8px 0 !important;
    }
    .course-tabs-header {
        gap: 4px !important;
        padding-bottom: 8px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: nowrap !important;
    }
    .tab-btn {
        font-size: 0.92rem !important;
        padding: 6px 12px !important;
        flex-shrink: 0 !important;
    }
    .course-tab-pane {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
}

/* ==========================================================================
   Banner CTA y enlaces de Interesados (Modo Noche y Día)
   ========================================================================== */
.courses-lead-cta {
    max-width: 850px;
    margin: 45px auto 20px auto;
    background: rgba(22, 24, 29, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 24px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.courses-lead-cta:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 198, 255, 0.5);
    box-shadow: 0 14px 35px rgba(0, 145, 211, 0.2);
}

.courses-lead-cta-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.courses-lead-cta-icon {
    width: 52px;
    height: 52px;
    background: rgba(0, 145, 211, 0.15);
    border: 1px solid rgba(0, 145, 211, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary, #00c6ff);
    font-size: 1.45rem;
    flex-shrink: 0;
}

.courses-lead-cta-text {
    flex: 1;
    min-width: 260px;
    text-align: left;
}

.courses-lead-cta-text h4 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.35;
}

.courses-lead-cta-text p {
    color: #b0b8c4;
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.45;
}

.courses-lead-cta-btn {
    white-space: nowrap;
    border-color: var(--color-primary, #00c6ff) !important;
    color: var(--color-primary, #00c6ff) !important;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    cursor: pointer;
    background: rgba(0, 145, 211, 0.08);
    transition: all 0.25s ease;
}

.courses-lead-cta-btn:hover {
    background: var(--color-primary, #00c6ff) !important;
    color: #ffffff !important;
}

.course-lead-link {
    transition: color 0.2s ease, opacity 0.2s ease;
}

.course-lead-link:hover {
    opacity: 0.85;
    text-decoration: underline;
}

/* Light Mode Overrides para CTA de Interesados y Modal */
body.light-mode .courses-lead-cta {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 10px 30px rgba(0, 50, 120, 0.08) !important;
}

body.light-mode .courses-lead-cta:hover {
    border-color: #0070f3 !important;
    box-shadow: 0 14px 35px rgba(0, 112, 243, 0.12) !important;
}

body.light-mode .courses-lead-cta-icon {
    background: rgba(0, 112, 243, 0.1) !important;
    border-color: rgba(0, 112, 243, 0.25) !important;
    color: #0070f3 !important;
}

body.light-mode .courses-lead-cta-text h4 {
    color: #0f172a !important;
}

body.light-mode .courses-lead-cta-text p {
    color: #475569 !important;
}

body.light-mode .courses-lead-cta-btn {
    border-color: #0070f3 !important;
    color: #0070f3 !important;
    background: rgba(0, 112, 243, 0.06) !important;
}

body.light-mode .courses-lead-cta-btn:hover {
    background: #0070f3 !important;
    color: #ffffff !important;
}

body.light-mode .course-lead-link {
    color: #0070f3 !important;
}

body.light-mode #lead-modal-container button[onclick*="remove"] {
    color: #334155 !important;
}

@media (max-width: 600px) {
    .courses-lead-cta {
        padding: 20px 18px;
        margin-top: 35px;
    }
    .courses-lead-cta-inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .courses-lead-cta-text {
        text-align: center;
    }
    .courses-lead-cta-btn {
        width: 100%;
        justify-content: center;
    }
}



