/* =========================================
   1. VARIABLES Y RESET
   ========================================= */
:root {
    --color-primary: #2563eb;       /* Azul vibrante */
    --color-primary-dark: #1d4ed8;
    --color-secondary: #1e293b;     /* Azul oscuro */
    --color-secondary-dark: #0f172a;
    --color-accent: #10b981;        /* Verde */
    --color-text-light: #94a3b8;    /* Gris */
    --color-bg-light: #f8fafc;      /* Blanco roto */
    --color-white: #ffffff;
    --spacing-section: 80px;
}


* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; 
    line-height: 1.6; 
    color: var(--color-secondary);
    background-color: var(--color-white);
    overflow-x: hidden;
}

h1, h2, h3 { font-weight: 800; line-height: 1.2; }
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =========================================
   2. COMPONENTES GLOBALES (BEM)
   ========================================= */

/* --- BOTONES --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn--lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn--full {
    width: 100%;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 4px 15px rgba(37,99,235,0.3);
}

.btn--outline {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--dark {
    background: var(--color-secondary);
    color: var(--color-white);
}

.btn--dark:hover {
    background: var(--color-secondary-dark);
}

.btn--white {
    background: var(--color-white);
    color: var(--color-primary);
}

.btn--white:hover {
    background: #f1f5f9;
}

/* =========================================
   3. HERO SECTION (BEM)
   ========================================= */
.hero {
    background: linear-gradient(135deg, var(--color-secondary-dark) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    padding: 80px 20px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    min-height: 85vh;
    position: relative;
    overflow: hidden;
}

.hero__content {
    flex: 1;
    max-width: 550px;
    z-index: 2;
    position: relative;
}

.hero__badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 25px;
    border: 1px solid rgba(37, 99, 235, 0.4);
}

.hero__title {
    font-size: 3.2rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero__highlight {
    color: var(--color-primary);
    background-image: linear-gradient(45deg, #3b82f6, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero__actions {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

/* Stats Block */
.stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.stats__item {
    display: flex;
    flex-direction: column;
}

.stats__number {
    font-size: 1.8rem;
    font-weight: 800;
}

.stats__label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Image Area */
.hero__visual {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.dashboard {
    position: relative;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.dashboard__img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

/* Floating Card Component */
.floating-card {
    position: absolute;
    bottom: 30px;
    right: 20px;
    background: var(--color-white);
    color: var(--color-secondary);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
    min-width: 260px;
    border-left: 5px solid var(--color-accent);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.floating-card--active {
    opacity: 1;
    transform: translateX(0);
}

.floating-card__title {
    display: block;
    font-size: 0.95rem;
    color: var(--color-secondary);
}

.floating-card__text {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.floating-card__icon {
    font-size: 1.6rem;
}

/* Utilities for Colors (needed for JS dynamic changes) */
.text-yellow { color: #f59e0b; }
.text-green { color: #10b981; }
.text-blue { color: #3b82f6; }
.text-red { color: #ef4444; }


/* =========================================
   4. TRUST SECTION (BEM)
   ========================================= */
.trust {
    text-align: center;
    background: var(--color-white);
    border-bottom: 1px solid #e2e8f0;
    padding: var(--spacing-section) 20px;
}

.trust__label {
    margin-bottom: 40px;
    color: var(--color-text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-item__icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.feature-item__title {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.feature-item__desc {
    color: #64748b;
    font-size: 0.95rem;
}


/* =========================================
   5. PRICING SECTION (BEM)
   ========================================= */
.pricing {
    background: var(--color-bg-light);
    padding: var(--spacing-section) 20px;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header__title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header__subtitle {
    font-size: 1.1rem;
    color: #64748b;
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

/* Card Component */
.card {
    background: var(--color-white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: relative;
    border: 2px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card--popular {
    border-color: var(--color-primary);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 10px 40px rgba(37,99,235,0.15);
}

.card__badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.card__header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.card__price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-secondary);
}

.card__period {
    font-size: 1rem;
    font-weight: 400;
    color: #94a3b8;
}

.card__list {
    margin-bottom: 30px;
}

.card__list-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-secondary);
    font-size: 0.95rem;
}

.card__list-item i {
    color: var(--color-accent);
    min-width: 20px;
}

.card__list-item--disabled {
    color: #cbd5e1;
    text-decoration: line-through;
}

.card__list-item--disabled i {
    color: #cbd5e1;
}

.card__micro-copy {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 15px;
}


/* =========================================
   6. CTA SECTION (BEM)
   ========================================= */
.cta {
    background: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: 100px 20px;
}

.cta__title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta__text {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}


/* =========================================
   7. FOOTER (BEM)
   ========================================= */
.footer {
    background: var(--color-secondary-dark);
    color: var(--color-text-light);
    padding: 40px 0;
    font-size: 0.9rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer__links {
    margin-top: 10px;
}

.footer__link {
    color: var(--color-text-light);
    margin: 0 10px;
    border-bottom: 1px dotted transparent;
}

.footer__link:hover {
    color: var(--color-white);
    border-bottom-color: var(--color-white);
}

/* =========================================
   9. CUSTOM LANDING HEADER (Marketing Style)
   ========================================= */

/* Ocultamos la barra de navegación que viene por defecto en base_public
   NOTA: Si tu barra original tiene otra clase (ej: .navbar), cámbialo aquí. */
.main-nav, nav.navbar {
    display: none !important; 
}

/* Nueva barra específica para la Landing */
.landing-header {
    position: absolute; /* Flota sobre el Hero */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100; /* Por encima de todo */
    padding: 20px 0;
    background: transparent; /* Transparente para ver el fondo azul */
}

.landing-header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-header__logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-white); /* Blanco para resaltar sobre oscuro */
    letter-spacing: -0.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.landing-header__logo span {
    color: var(--color-primary); /* El punto o detalle en azul */
}

.landing-header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.landing-header__link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.landing-header__link:hover {
    color: var(--color-white);
}

/* =========================================
   8. RESPONSIVE
   ========================================= */





@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
        gap: 40px;
    }
    .hero__content { margin: 0 auto; }
    .hero__actions { justify-content: center; }
    .stats { justify-content: center; }
    .hero__visual { margin-top: 30px; width: 100%; max-width: 500px; }
    .card--popular { transform: scale(1); }
}

@media (max-width: 768px) {
    .landing-header__link { display: none; } /* Ocultar links extra en móvil */
    .hero__title { font-size: 2.5rem; }
    .floating-card {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
        width: 90%;
        min-width: auto;
        justify-content: center;
    }
}