/* ============================================
   LANDING.CSS — Variables base (tema oscuro por defecto)
   Las variables del tema claro se sobreescriben mediante
   selectores [data-theme="light"] con propiedades directas.
   ============================================ */
:root {
    /* Fondos oscuros (default) */
    --bg-deep: #02040a;
    --bg-primary: #0a0f1c;
    --bg-secondary: #111827;
    --bg-tertiary: #1f2937;

    /* Vidrio líquido */
    --glass-surface: rgba(255, 255, 255, 0.03);
    --glass-edge: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.12);
    --glass-shadow: rgba(0, 0, 0, 0.4);

    /* Iluminación interna */
    --liquid-inner: rgba(99, 102, 241, 0.15);
    --liquid-glow: rgba(99, 102, 241, 0.3);
    --liquid-active: rgba(99, 102, 241, 0.5);

    /* Texto oscuro (default) */
    --text-primary: rgba(248, 250, 252, 0.95);
    --text-secondary: rgba(248, 250, 252, 0.7);
    --text-tertiary: rgba(248, 250, 252, 0.5);
    --text-muted: rgba(248, 250, 252, 0.35);

    /* Acentos */
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #06b6d4;

    /* Estados */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Geometría */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Espaciado sistema 8px */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;

    /* Tipografía */
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-sans: 'Inter', -apple-system, sans-serif;

    /* Transiciones */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   TEMA CLARO — Variables redefinidas a nivel html
   (mayor especificidad que :root de landing.css)
   ============================================ */
html[data-theme="light"] {
    --bg-deep: #eef2ff;
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e2e8f0;

    --glass-surface: rgba(255, 255, 255, 0.65);
    --glass-edge: rgba(99, 102, 241, 0.18);
    --glass-highlight: rgba(255, 255, 255, 0.95);
    --glass-shadow: rgba(99, 102, 241, 0.12);

    --liquid-inner: rgba(79, 70, 229, 0.10);
    --liquid-glow: rgba(79, 70, 229, 0.25);
    --liquid-active: rgba(79, 70, 229, 0.40);

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-tertiary: #475569;
    --text-muted: #64748b;

    --accent-primary: #4f46e5;
    --accent-secondary: #7c3aed;
    --accent-tertiary: #0284c7;

    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
}


body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
}

/* Efecto Liquid Glass - Profesional */
.liquid-glass {
    background: linear-gradient(135deg,
            var(--glass-surface) 0%,
            var(--glass-edge) 50%,
            var(--glass-surface) 100%);
    backdrop-filter: blur(20px) saturate(180%) brightness(1.1);
    border: 1px solid var(--glass-edge);
    border-top-color: var(--glass-highlight);
    border-left-color: var(--glass-highlight);
    box-shadow:
        inset 0 1px 1px var(--glass-highlight),
        inset 0 -1px 1px var(--glass-shadow),
        0 4px 24px var(--glass-shadow);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.liquid-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--glass-highlight) 50%,
            transparent 100%);
    opacity: 0.6;
}

.liquid-glass:hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            var(--liquid-inner),
            transparent 40%);
    opacity: 1;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

/* Botones */
.btn {
    position: relative;
    padding: 12px 24px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.btn-primary {
    background: var(--liquid-inner);
    color: var(--text-primary);
    border: 1px solid var(--liquid-glow);
    box-shadow:
        0 0 0 1px var(--accent-primary),
        inset 0 1px 0 var(--glass-highlight),
        0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    background: var(--liquid-glow);
    border-color: var(--accent-primary);
    box-shadow:
        0 0 0 1px var(--accent-primary),
        inset 0 1px 0 var(--glass-highlight),
        0 8px 24px rgba(99, 102, 241, 0.3);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow:
        0 0 0 1px var(--accent-primary),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--glass-surface);
    color: var(--text-secondary);
    border: 1px solid var(--glass-edge);
    box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.btn-secondary:hover {
    background: var(--glass-edge);
    color: var(--text-primary);
    border-color: var(--glass-highlight);
}

.btn-accent {
    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.2) 0%,
            rgba(139, 92, 246, 0.2) 100%);
    color: var(--text-primary);
    border: 1px solid var(--accent-primary);
    font-weight: 600;
    box-shadow:
        0 0 20px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 var(--glass-highlight);
    animation: pulse-glow 2s ease-in-out infinite;
}

.btn-accent:hover {
    animation: none;
    box-shadow:
        0 0 30px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 var(--glass-highlight);
}

/* Landing Page Elements */
.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-6);
    background: rgba(2, 4, 10, 0.55);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--glass-edge);
}

.landing-header .logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.landing-header .logo-img {
    height: 48px;
    width: auto;
}

.landing-hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-8) var(--space-4);
    position: relative;
    background: transparent;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 12px;
    background: var(--liquid-inner);
    border: 1px solid var(--liquid-glow);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-5);
}

.hero-title {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin: 0 0 var(--space-4);
    letter-spacing: -0.02em;
}

.hero-title span {
    color: var(--accent-primary);
    text-shadow: 0 0 40px var(--liquid-glow);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 0 var(--space-6);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
}

.price-tag {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    margin: var(--space-6) 0;
    justify-content: center;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.price-currency {
    font-size: 24px;
    color: var(--text-secondary);
}

.price-period {
    font-size: 16px;
    color: var(--text-tertiary);
}

.features-section {
    padding: var(--space-8) 0;
    background: rgba(2, 4, 10, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
    padding: 0 var(--space-4);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: var(--space-5);
    text-align: left;
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--liquid-inner);
    border-radius: var(--radius-md);
    font-size: 20px;
    margin-bottom: var(--space-4);
    border: 1px solid var(--liquid-glow);
    color: var(--text-primary);
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-2);
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.pricing-section {
    padding: var(--space-8) var(--space-4);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.pricing-card {
    padding: var(--space-6);
    margin-top: var(--space-6);
}

.pricing-benefits {
    list-style: none;
    padding: 0;
    margin: var(--space-6) 0;
    text-align: left;
}

.pricing-benefits li {
    padding: var(--space-2) 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.pricing-benefits li i {
    color: var(--success);
}

.footer {
    padding: var(--space-6) var(--space-4);
    text-align: center;
    border-top: 1px solid var(--glass-edge);
    color: var(--text-muted);
    font-size: 14px;
}

/* Animations */
.interactive-element {
    transition:
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-base);
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 var(--liquid-glow);
    }

    50% {
        box-shadow: 0 0 20px 2px var(--liquid-glow);
    }
}

.page-transition {
    opacity: 0;
    animation: fade-in 300ms ease forwards;
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 18px;
}

code,
.mono,
.license-code {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.numeric {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

/* Responsive */
@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .landing-hero {
        padding: var(--space-8);
    }
}

/* CL66 Responsive Dynamic Logo */
.cl66-hero-logo {
    display: block;
    margin: 0 auto;
    max-width: 90%;
    width: 600px;
    height: auto;
    object-fit: contain;
    animation: floatingLogo 4s ease-in-out infinite, fadeInScale 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
    transform: scale(0.8);
    margin-bottom: 2rem;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.4));
    content: url('../assets/CL66/1.svg'); /* Color default on promotional landing */
}

html[data-theme="dark"] .cl66-hero-logo,
html[data-theme="light"] .cl66-hero-logo {
    content: url('../assets/CL66/2.svg'); /* Non-colored for standard themes */
}

html[data-theme="rainbow"] .cl66-hero-logo {
    content: url('../assets/CL66/1.svg'); /* Colorful only for rainbow theme */
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: translateY(20px) scale(0.8); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes floatingLogo {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Quick Access Buttons */
.header-quick-access {
    display: flex;
    gap: 8px;
    align-items: center;
}

.quick-access-btn {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    padding: 8px 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.quick-access-btn:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.quick-access-btn:active {
    transform: translateY(0);
}

.quick-access-btn i {
    pointer-events: none;
}

/* ============================================
   LIGHT THEME OVERRIDES — Landing Page
   ============================================ */
[data-theme="light"] .landing-header {
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(24px) saturate(2);
    -webkit-backdrop-filter: blur(24px) saturate(2);
    border-bottom: 1px solid rgba(99, 102, 241, 0.18);
    color: #0f172a;
}

[data-theme="light"] .landing-header h3,
[data-theme="light"] .landing-header span {
    color: #0f172a;
}

[data-theme="light"] .landing-hero {
    background: transparent;
}

[data-theme="light"] .hero-title {
    color: #0f172a;
}

[data-theme="light"] .hero-title span {
    color: #4f46e5;
    text-shadow: 0 0 30px rgba(79, 70, 229, 0.30);
}

[data-theme="light"] .hero-subtitle {
    color: #334155;
}

[data-theme="light"] .features-section {
    background: rgba(255, 255, 255, 0.40);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .feature-title {
    color: #0f172a;
}

[data-theme="light"] .feature-desc {
    color: #475569;
}

[data-theme="light"] .pricing-section .hero-subtitle {
    color: #334155;
}

[data-theme="light"] .price-amount {
    color: #0f172a;
}

[data-theme="light"] .price-currency,
[data-theme="light"] .price-period {
    color: #475569;
}

[data-theme="light"] .pricing-benefits li {
    color: #334155;
}

[data-theme="light"] .footer {
    background: rgba(255, 255, 255, 0.60);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(99, 102, 241, 0.14);
    color: #64748b;
}

[data-theme="light"] .btn-secondary {
    background: rgba(255, 255, 255, 0.70);
    color: #334155;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border-color: rgba(99, 102, 241, 0.50);
}

[data-theme="light"] .liquid-glass {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.70) 0%,
        rgba(238, 242, 255, 0.50) 100%);
    border: 1px solid rgba(99, 102, 241, 0.18);
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.95),
        inset 0 -1px 1px rgba(99,102,241,0.08),
        0 4px 24px rgba(99,102,241,0.12);
}

[data-theme="light"] .feature-icon {
    background: rgba(79, 70, 229, 0.12);
    border: 1px solid rgba(79, 70, 229, 0.20);
    color: #4f46e5;
}

/* Light theme cl66-hero-logo uses the colored version */
[data-theme="light"] .cl66-hero-logo {
    content: url('../assets/CL66/1.svg');
    filter: drop-shadow(0 12px 20px rgba(79, 70, 229, 0.25));
}