/* assets/css/landing.css */
:root {
    --primary-blue: #60a5fa;
    --primary-dark: #3b82f6;
    --secondary-blue: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --border-light: #334155;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
    --shadow-md: 0 8px 16px -1px rgb(0 0 0 / 0.6);
    --shadow-lg: 0 12px 24px -3px rgb(0 0 0 / 0.8);

    /* variables de tema fijas en oscuro */
    --landing-bg: #0f172a;
    --header-bg: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    --card-bg: #1e293b;
    --hero-gradient: radial-gradient(circle at top, #1e293b 0%, #0f172a 100%);
    --nav-mobile-bg: rgba(15, 23, 42, 0.98);

    /* Neutros para compatibilidad */
    --neutral-50: #1e293b;
    --neutral-100: #1e293b;
    --neutral-200: #334155;
    --neutral-300: #475569;
    --neutral-600: #94a3b8;
    --neutral-700: #e2e8f0;
}

.landing-body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--landing-bg);
    line-height: 1.5;
    padding-top: 72px;
    /* Espacio para la cabecera fija */
}

/* Header & Nav */
.landing-header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    /* Mayor que el header del admin para seguridad */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.landing-header .logo span {
    color: white !important;
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.landing-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1200;
}

.landing-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s;
}

/* Animación Hamburguesa -> X */
.landing-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.landing-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.landing-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.landing-nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: color 0.3s;
}

.landing-nav a:hover,
.landing-nav a.active {
    color: white;
}

.landing-nav .btn-primary-landing {
    padding: 0.75rem 1.75rem;
    width: auto;
    color: white !important;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.nav-mobile-header {
    display: none;
    padding: 2rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.nav-mobile-header img {
    height: 50px;
    width: auto;
}

.landing-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hero Section */
.hero-section {
    padding: 5rem 1.5rem;
    text-align: center;
    background: var(--hero-gradient);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--secondary-blue);
    color: var(--primary-blue);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
}

/* Pricing Section */
.pricing-section {
    padding: 5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-header {
    text-align: center;
    margin-bottom: 4rem;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.toggle-label {
    font-weight: 500;
}

.toggle-switch {
    width: 3.5rem;
    height: 1.75rem;
    background: #334155;
    border-radius: 9999px;
    padding: 2px;
    cursor: pointer;
    transition: background 0.3s;
    position: relative;
    border: 1.5px solid #475569;
    /* Borde más oscuro y visible */
}

.toggle-switch.active {
    background: var(--primary-blue);
}

.toggle-dot {
    width: 1.5rem;
    height: 1.5rem;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    /* Sombra para resaltar el punto blanco */
}

.toggle-switch.active .toggle-dot {
    transform: translateX(1.75rem);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    background: #1e293b;
    border: 2px solid var(--primary-blue);
    position: relative;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.1);
}

.pricing-card.featured::before {
    content: "RECOMENDADO";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: white;
    padding: 0.2rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
}

.plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.plan-price {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.plan-price span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex-grow: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.plan-features li i {
    color: #10b981;
    font-size: 0.8rem;
}

.popular-badge-toggle {
    position: absolute;
    top: -24px;
    right: 0;
    background: #f59e0b;
    color: white;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-plan {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-primary-landing {
    background: var(--primary-blue);
    color: white;
}

.btn-primary-landing:hover {
    background: var(--primary-dark);
}

.btn-outline-landing {
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

.btn-outline-landing:hover {
    background: #f9fafb;
}

/* Responsividad */
@media (max-width: 768px) {
    .landing-header .landing-nav-container {
        padding: 0.75rem 1.5rem;
    }

    .landing-menu-toggle {
        display: flex;
    }

    .nav-mobile-header {
        display: block;
    }

    .landing-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--nav-mobile-bg);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0 1.5rem;
        transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        z-index: 1150;
    }

    .landing-nav.open {
        right: 0;
    }

    .landing-nav a {
        padding: 0.85rem 1.25rem;
        width: 100%;
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-main);
        display: flex;
        align-items: center;
        transition: all 0.2s;
        border-radius: 0.75rem;
        border: 1px solid transparent;
        background: rgba(255, 255, 255, 0.03);
        margin-bottom: 0.25rem;
    }

    .landing-nav a:hover {
        background: rgba(37, 99, 235, 0.08);
        color: var(--primary-blue);
    }

    .landing-nav a.active {
        background: var(--primary-blue);
        color: white !important;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    }

    .landing-nav .btn-primary-landing {
        margin-top: 1.5rem;
        width: 100%;
        justify-content: center;
        border: none;
        padding: 1rem !important;
        background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    }

    .landing-body {
        padding-top: 72px;
    }

    .hero-section {
        padding: 4rem 1.5rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .pricing-card.featured {
        scale: 1;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.85rem;
    }

    .landing-nav {
        width: 90%;
    }

    .landing-nav a {
        padding: 1rem 1.5rem;
    }
}