/* ==========================================
   WEB FACTORY - MASTER TEMPLATE STYLES
   Custom CSS complementario a Tailwind
   ========================================== */

/* ==========================================
   DESIGN TOKENS - Variables CSS
   ========================================== */
:root {
    /* Sistema de Espaciado (8px base) */
    --space-1: 0.5rem;
    /* 8px */
    --space-2: 1rem;
    /* 16px */
    --space-3: 1.5rem;
    /* 24px */
    --space-4: 2rem;
    /* 32px */
    --space-5: 3rem;
    /* 48px */
    --space-6: 4rem;
    /* 64px */
    --space-7: 6rem;
    /* 96px */
    --space-8: 8rem;
    /* 128px */

    /* Jerarquía Tipográfica */
    --font-size-xs: 0.75rem;
    /* 12px */
    --font-size-sm: 0.875rem;
    /* 14px */
    --font-size-base: 1rem;
    /* 16px */
    --font-size-lg: 1.125rem;
    /* 18px */
    --font-size-xl: 1.25rem;
    /* 20px */
    --font-size-2xl: 1.5rem;
    /* 24px */
    --font-size-3xl: 1.875rem;
    /* 30px */
    --font-size-4xl: 2.25rem;
    /* 36px */
    --font-size-5xl: 3rem;
    /* 48px */
    --font-size-6xl: 3.75rem;
    /* 60px */
    --font-size-7xl: 4.5rem;
    /* 72px */
    --font-size-8xl: 6rem;
    /* 96px */
    --font-size-9xl: 7.5rem;
    /* 120px */

    /* Pesos de Fuente */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;

    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;

    /* Sistema de Colores (serán reemplazados por placeholders) */
    --color-primary: #1e222c;
    --color-primary-dark: color-mix(in srgb, var(--color-primary) 80%, black);
    --color-primary-light: color-mix(in srgb, var(--color-primary) 80%, white);
    --color-bg-dark: #0c0c0d;
    --color-bg-card: rgba(255, 255, 255, 0.05);
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-muted: rgba(255, 255, 255, 0.5);
    --color-border: rgba(255, 255, 255, 0.1);

    /* Shadows & Elevations */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.3);
    --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.4);

    /* Border Radius */
    --radius-sm: 0.5rem;
    /* 8px */
    --radius-md: 0.75rem;
    /* 12px */
    --radius-lg: 1rem;
    /* 16px */
    --radius-xl: 1.5rem;
    /* 24px */
    --radius-2xl: 2rem;
    /* 32px */
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slower: 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   GLASSMORPHISM CARDS
   ========================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

/* Enhanced Hover Effects */
.glass-card {
    transition: all var(--transition-base);
    will-change: transform, box-shadow;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Image zoom effect on hover */
.glass-card .group-hover\\:scale-110 {
    transition: transform var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card content fade in */
.glass-card .opacity-0 {
    transition: opacity var(--transition-base);
}

.glass-card:hover .opacity-0 {
    opacity: 1;
}

/* ==========================================
   CUSTOM CURSOR
   ========================================== */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-primary);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0;
}

.custom-cursor.hover {
    transform: scale(1.5);
    opacity: 0.8;
}

@media (pointer: fine) {
    .custom-cursor {
        opacity: 0.6;
    }
}

/* ==========================================
   GRADIENT BACKGROUNDS
   ========================================== */
.bg-gradient-radial {
    background: radial-gradient(circle at center, var(--tw-gradient-stops));
}

/* ==========================================
   TEXT ANIMATIONS
   ========================================== */
.text-reveal {
    display: inline-block;
}

/* Animated color effect for titles - NO background-clip to avoid clipping */
.hero-title {
    color: #ffffff;
    display: inline-block;
    animation: color-pulse 3s ease-in-out infinite;
}

@keyframes color-pulse {

    0%,
    100% {
        color: #ffffff !important;
    }

    50% {
        color: var(--color-primary) !important;
    }
}

/* Ambient Blob Animation */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

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

.animation-delay-4000 {
    animation-delay: 4s;
}

/* CTA Button fade-in animation */
.cta-btn {
    animation: cta-fade-in 0.8s ease-out 0.6s both;
}

@keyframes cta-fade-in {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   BUTTON STYLES
   ========================================== */
.magnetic-btn,
.magnetic-btn-large {
    position: relative;
    cursor: pointer;
    will-change: transform;
}

.magnetic-btn::before,
.magnetic-btn-large::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.magnetic-btn:hover::before,
.magnetic-btn-large:hover::before {
    opacity: 1;
    animation: shine 1.5s ease-in-out infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ==========================================
   PRICING CARDS
   ========================================== */
.pricing-card {
    position: relative;
    overflow: hidden;
}

.pricing-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            transparent 0%,
            rgba(255, 255, 255, 0.05) 50%,
            transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.pricing-card:hover::after {
    transform: translateX(100%);
}

/* Animated border gradient for featured plan */
.pricing-card.border-2 {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(var(--color-bg-dark), var(--color-bg-dark)) padding-box,
        linear-gradient(45deg, var(--color-primary), var(--color-primary-light), var(--color-primary)) border-box;
    animation: border-glow 3s ease-in-out infinite;
}

@keyframes border-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(var(--color-primary-rgb, 227, 30, 36), 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(var(--color-primary-rgb, 227, 30, 36), 0.6);
    }
}

/* Featured badge animation */
@keyframes pulse-subtle {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.pricing-card .inline-block {
    animation: pulse-subtle 2s ease-in-out infinite;
}

/* ==========================================
   SCROLL ANIMATIONS (CSS Native - Better Performance)
   ========================================== */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    will-change: opacity, transform;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations for cards */
.glass-card.scroll-animate {
    transition-delay: calc(var(--index, 0) * 0.05s);
}

/* Legacy class for compatibility */
.fade-in {
    transform: translateY(20px);
}

/* ==========================================
   SECTION DIVIDERS
   ========================================== */
section {
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
}

section:first-of-type::before {
    display: none;
}

/* ==========================================
   MOBILE OPTIMIZATIONS
   ========================================== */
@media (max-width: 768px) {

    /* Reduce animation complexity on mobile */
    .glass-card::before {
        display: none;
    }

    /* Disable custom cursor on touch devices */
    .custom-cursor {
        display: none;
    }

    /* Optimize text sizes */
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 6rem);
    }
}

/* ==========================================
   PERFORMANCE OPTIMIZATIONS
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Force GPU acceleration for smooth animations */
.magnetic-btn,
.magnetic-btn-large,
.glass-card,
.parallax-slow,
.parallax-slower {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-gradient {
    background: linear-gradient(135deg,
            #ffffff 0%,
            var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-primary {
    box-shadow: 0 20px 60px rgba(var(--color-primary-rgb, 227, 30, 36), 0.3);
}

/* ==========================================
   FORM ENHANCEMENTS
   ========================================== */
.form-input {
    transition: all var(--transition-base);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb, 227, 30, 36), 0.1);
    background: rgba(0, 0, 0, 0.6);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
}

.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb, 227, 30, 36), 0.1);
}

/* ==========================================
   LIGHT THEME OVERRIDES
   ========================================== */
[data-theme="light"] .form-input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #1f2937;
}

[data-theme="light"] .form-input:focus {
    background: rgba(255, 255, 255, 1);
    border-color: var(--color-primary);
}

[data-theme="light"] .form-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .glass-card:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

/* Headers in light mode - ensure proper contrast */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    color: #1f2937 !important;
}

/* Override Tailwind text-white on headers in light mode */
[data-theme="light"] h1.text-white,
[data-theme="light"] h2.text-white,
[data-theme="light"] h3.text-white,
[data-theme="light"] h4.text-white,
[data-theme="light"] h5.text-white,
[data-theme="light"] h6.text-white {
    color: #1f2937 !important;
}

/* Navbar styles for light mode */
/* Navbar styles for light mode */
/* Default state (transparent) keeps white text from dark mode styles */

/* Only change to dark text when scrolled or mobile menu is open */
[data-theme="light"] nav#navbar.scrolled,
[data-theme="light"] nav#navbar.mobile-open {
    color: #1f2937;
}

[data-theme="light"] nav#navbar.scrolled .nav-link,
[data-theme="light"] nav#navbar.mobile-open .nav-link {
    color: #374151;
}

[data-theme="light"] nav#navbar.scrolled .nav-link:hover,
[data-theme="light"] nav#navbar.mobile-open .nav-link:hover {
    color: var(--color-primary);
}

[data-theme="light"] nav#navbar.scrolled #mobile-menu-btn,
[data-theme="light"] nav#navbar.mobile-open #mobile-menu-btn {
    color: #374151;
}

[data-theme="light"] nav#navbar.scrolled #mobile-menu-btn svg,
[data-theme="light"] nav#navbar.mobile-open #mobile-menu-btn svg {
    stroke: #374151;
}

[data-theme="light"] #mobile-menu {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] #mobile-menu a {
    color: #374151;
}

[data-theme="light"] #mobile-menu a:hover {
    color: var(--color-primary);
}

/* ==========================================
   LIGHT THEME - HERO SECTION OVERRIDES
   ========================================== */
/* Hero keeps video dark overlay - text stays white over video for contrast */
[data-theme="light"] #hero {
    color: #ffffff;
}

[data-theme="light"] .hero-title {
    color: #ffffff !important;
}

[data-theme="light"] #hero .text-gray-300 {
    color: #d1d5db;
    /* Ensure slogan stays light gray */
}

/* For hero sections without video, adjust gradient */
[data-theme="light"] #hero .bg-gradient-to-br {
    opacity: 0.3;
}

/* ==========================================
   LIGHT THEME - AMBIENT ORBS
   ========================================== */
[data-theme="light"] .animate-blob {
    mix-blend-mode: multiply;
    opacity: 0.05;
}

/* ==========================================
   LIGHT THEME - GLASS CARDS
   ========================================== */
[data-theme="light"] .glass-card::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.03), transparent);
}

[data-theme="light"] .glass-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   LIGHT THEME - SCHEDULE CARDS
   ========================================== */
[data-theme="light"] .schedule-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .schedule-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--color-primary);
}

/* ==========================================
   LIGHT THEME - PRICING CARDS
   ========================================== */
[data-theme="light"] .pricing-card.border-2 {
    background: linear-gradient(var(--color-bg), var(--color-bg)) padding-box,
        linear-gradient(45deg, var(--color-primary), var(--color-primary-light, var(--color-primary)), var(--color-primary)) border-box;
}

/* ==========================================
   LIGHT THEME - FOOTER
   ========================================== */
[data-theme="light"] footer {
    background: var(--color-footer-bg) !important;
    color: #ffffff;
}

[data-theme="light"] footer h3,
[data-theme="light"] footer p,
[data-theme="light"] footer a {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] footer .text-gray-400,
[data-theme="light"] footer .text-gray-500 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ==========================================
   LIGHT THEME - SCROLLBAR
   ========================================== */
[data-theme="light"] ::-webkit-scrollbar-track {
    background: #f1f5f9;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: var(--color-primary);
}

[data-theme="light"] * {
    scrollbar-color: var(--color-primary) #f1f5f9;
}

/* Dark mode navbar (default) */
/* Navbar Styles */
nav#navbar,
#mobile-menu {
    transition: all 0.5s ease;
}

nav#navbar.scrolled {
    background: var(--color-navbar-bg-scrolled);
    box-shadow: var(--shadow-lg);
}

nav#navbar.mobile-open {
    background: var(--color-navbar-bg-scrolled);
}

/* Nav Links */
nav#navbar .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

nav#navbar .nav-link:hover {
    color: var(--color-primary);
}

/* Mobile Menu Button */
#mobile-menu-btn {
    color: #ffffff;
}

/* Mobile Menu Container */
#mobile-menu {
    background: var(--color-navbar-bg-scrolled);
}

/* Light Theme Overrides for Navbar */


/* Scrolled state text colors don't need to change as background matches theme */

/* Button loading state */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    top: 50%;
    left: 50%;
    margin-left: -0.75rem;
    margin-top: -0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   LOADING STATES (para futura implementación)
   ========================================== */
.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ==========================================
   FOOTER ENHANCEMENTS
   ========================================== */
footer a:hover {
    transform: translateY(-2px);
    transition: transform var(--transition-base);
}

.social-icon {
    transition: all var(--transition-base);
}

.social-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(var(--color-primary-rgb, 227, 30, 36), 0.3);
}

/* ==========================================
   SCROLLBAR STYLING (Chrome/Safari)
   ========================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) #0a0a0a;
}

/* ==========================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================== */

/* Focus visible states for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Remove default outline only when focus-visible is supported */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* Improved contrast for muted text - WCAG AA compliance */
.text-gray-400 {
    color: #a1a1aa;
    /* zinc-400 - slightly lighter for better contrast */
}

.text-gray-500 {
    color: #71717a;
    /* zinc-500 - better contrast than default gray-500 */
}

/* Skip to content link for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--color-primary);
    color: white;
    z-index: 9999;
}

/* ==========================================
   COACH BADGES - Theme Specific Styles
   ========================================== */
.coach-badge {
    color: #ffffff;
}

[data-theme="light"] .coach-badge {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #374151 !important;
}

/* ==========================================
   LIGHT THEME - TEXT COLOR FIXES
   ========================================== */
/* General text colors for better contrast in light mode */
[data-theme="light"] p,
[data-theme="light"] span:not(.pricing-card a span),
[data-theme="light"] li,
[data-theme="light"] .text-gray-300,
[data-theme="light"] .text-gray-400 {
    color: #4b5563 !important;
    /* gray-600 for good contrast */
}

[data-theme="light"] .text-gray-500 {
    color: #6b7280 !important;
    /* gray-500 */
}

/* Pricing card text improvements */
[data-theme="light"] .pricing-card p,
[data-theme="light"] .pricing-card li span {
    color: #374151 !important;
    /* gray-700 */
}

[data-theme="light"] .pricing-card .text-5xl,
[data-theme="light"] .pricing-card .text-6xl,
[data-theme="light"] .pricing-card .text-7xl,
[data-theme="light"] .pricing-card .text-8xl {
    color: #111827 !important;
    /* gray-900 for prices */
}

/* ==========================================
   DARK MODE - PRICING & SCHEDULE VISIBILITY
   ========================================== */
/* Make prices white in dark mode */
.pricing-card .text-5xl,
.pricing-card .text-6xl,
.pricing-card .text-7xl,
.pricing-card .text-8xl {
    color: #ffffff !important;
}

/* Make schedule times white in dark mode */
.schedule-card .text-2xl {
    color: #ffffff !important;
}

/* ==========================================
   NAVBAR - WHATSAPP BUTTON FIX (Both Themes)
   ========================================== */
/* WhatsApp button in navbar - ALWAYS white text */
nav a[href*="wa.me"] {
    color: #ffffff !important;
}

nav a[href*="wa.me"] svg {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* Light mode navbar WhatsApp button */
[data-theme="light"] nav a[href*="wa.me"] {
    background: var(--color-primary) !important;
    color: #ffffff !important;
}

/* ==========================================
   HERO CTA BUTTON FIX (Both Themes)
   ========================================== */
/* Hero CTA button - always white text */
#hero a.cta-btn,
#hero a[href*="wa.me"] {
    color: #ffffff !important;
}

#hero a.cta-btn svg,
#hero a[href*="wa.me"] svg {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* ==========================================
   PRICING CARDS - BUTTON FIXES (Light Mode)
   ========================================== */
/* Side plans (2x Semana, 3x Semana) - outline style in light mode */
[data-theme="light"] .pricing-card:not(.border-2) a[href*="wa.me"] {
    background: transparent !important;
    border: 2px solid var(--color-primary) !important;
    color: var(--color-primary) !important;
}

/* Side plans hover - filled with white text */
[data-theme="light"] .pricing-card:not(.border-2) a[href*="wa.me"]:hover {
    background: var(--color-primary) !important;
    color: #ffffff !important;
}

/* Featured plan (Ilimitado) - always filled with white text */
[data-theme="light"] .pricing-card.border-2 a[href*="wa.me"] {
    background: var(--color-primary) !important;
    color: #ffffff !important;
}

/* Dark mode - side plans need visible text too */
.pricing-card:not(.border-2) a[href*="wa.me"] {
    color: #ffffff !important;
}

/* Featured plan always white text in both modes */
.pricing-card.border-2 a[href*="wa.me"] {
    color: #ffffff !important;
}

/* ==========================================
   LIGHT THEME - GENERAL BUTTON FIXES  
   ========================================== */
/* Theme toggle buttons - don't affect these */
[data-theme="light"] #theme-toggle,
[data-theme="light"] #theme-toggle-mobile {
    background: transparent !important;
    color: inherit !important;
}

/* Mobile menu button */
[data-theme="light"] #mobile-menu-btn {
    background: transparent !important;
}

/* CTA submit button */
[data-theme="light"] #cta-submit {
    background: var(--color-primary) !important;
    color: #ffffff !important;
}

/* ==========================================
   LIGHT THEME - CHECKMARK ICONS
   ========================================== */
[data-theme="light"] .text-green-400,
[data-theme="light"] svg.text-green-400,
[data-theme="light"] .text-green-500,
[data-theme="light"] svg.text-green-500 {
    color: #10b981 !important;
    /* green-500 for visibility */
}

/* ==========================================
   LIGHT THEME - BADGE/TAG COLORS
   ========================================== */
/* Plan Destacado badge - always white text */
.pricing-card .inline-block.px-4.py-1 {
    color: #ffffff !important;
}

[data-theme="light"] .pricing-card .inline-block.px-4.py-1,
[data-theme="light"] .bg-primary {
    color: #ffffff !important;
}

/* ==========================================
   MOBILE MENU - WHATSAPP BUTTON FIX
   ========================================== */
#mobile-menu a[href*="wa.me"] {
    color: #ffffff !important;
}

#mobile-menu a[href*="wa.me"] svg {
    color: #ffffff !important;
    fill: #ffffff !important;
}

[data-theme="light"] #mobile-menu a[href*="wa.me"] {
    background: var(--color-primary) !important;
    color: #ffffff !important;
}