:root {
    --azul-profundo: #000072;
    --azul-vibrante: #1300f6;
    --azul-intermedio: #0904ba;
    --azul-claro: #4945ff;
    --blanco: #FFFFFF;
    --negro: #0f172a;
    --gris-claro: #f8fafc;
    --sombra: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--blanco);
    color: var(--negro);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HERO & NAVIGATION --- */
.hero {
    background: linear-gradient(135deg, var(--azul-intermedio), var(--azul-profundo));
    color: var(--blanco);
    padding-bottom: 6rem;
    text-align: center;
}

.hero nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 4rem;
}

.logo-img {
    height: 40px;
    /* Ajusta el tamaño según sea necesario */
    width: auto;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.store-badge {
    height: 50px;
    transition: transform 0.2s ease;
}

.store-badge:hover {
    transform: scale(1.05);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}


.btn-primary:hover {
    background-color: var(--azul-claro);
    border-color: var(--azul-claro);
}

.btn-primary .store-badge {
    background: none;
    padding: 0;
}

.btn-outline {
    background-color: transparent;
    color: var(--blanco);
    border-color: var(--blanco);
}

.btn-outline:hover {
    background-color: var(--blanco);
    color: var(--azul-profundo);
}

.btn-secondary {
    background-color: var(--azul-claro);
    color: var(--blanco);
}

.btn-secondary:hover {
    background-color: var(--azul-vibrante);
}

/* --- VALUE PROPOSITION --- */
.value-prop {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

.card {
    background: var(--blanco);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px var(--sombra);
}

.card h3 {
    color: var(--azul-profundo);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.card .subtitle {
    color: var(--negro);
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.card ul {
    list-style: none;
    margin-bottom: 2rem;
}

.card ul li {
    margin-bottom: 0.8rem;
    font-weight: 300;
}

/* --- FEATURES --- */
.features {
    padding: 6rem 0;
    background-color: var(--gris-claro);
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background-color: var(--azul-vibrante);
    color: var(--blanco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 30px;
    height: 30px;
}

.feature h4 {
    font-size: 1.3rem;
    color: var(--azul-profundo);
    margin-bottom: 0.5rem;
}

/* --- CREDITS MODEL --- */
.credits-model {
    padding: 6rem 0;
}

.credits-model h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--azul-profundo);
    margin-bottom: 1rem;
}

.credits-model .subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.credits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.credits-text h3 {
    font-size: 1.8rem;
    color: var(--azul-profundo);
    margin-bottom: 1rem;
}

.credits-text ul {
    list-style: none;
    margin: 1.5rem 0;
}

.credits-text ul li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.credits-text .highlight {
    font-weight: 700;
    color: var(--azul-vibrante);
}

.credits-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.visual-card {
    background: var(--gris-claro);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    border-left: 5px solid var(--azul-claro);
}

.visual-card span {
    font-weight: 700;
    color: var(--azul-profundo);
}

/* --- BLURRED SECTION STYLES --- */
.content-blur-wrapper {
    position: relative;
}

.blurred-content {
    filter: blur(8px);
    -webkit-filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
}

.coming-soon-overlay h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--azul-profundo);
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
}

/* --- FINAL CTA --- */
.final-cta {
    background-color: var(--azul-profundo);
    color: var(--blanco);
    padding: 5rem 0;
    text-align: center;
}

.final-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

/* --- FOOTER --- */
footer {
    background-color: var(--negro);
    color: var(--blanco);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

/* --- NAVIGATION TWEAKS --- */
.hero nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-text {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.btn-text:hover {
    color: var(--blanco);
    text-decoration: underline;
}

.hero-content {
    margin-top: 2rem;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
    .value-prop {
        grid-template-columns: 1fr;
    }

    .credits-content {
        grid-template-columns: 1fr;
    }

    .credits-visual {
        margin-top: 2rem;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-bottom: 4rem;
        /* Reducir espacio abajo */
    }

    .hero nav {
        flex-direction: row;
        /* Mantener fila para logo | boton */
        justify-content: space-between;
        align-items: center;
        padding-bottom: 1rem;
    }

    .logo-img {
        height: 32px;
        /* Logo más pequeño */
    }

    .nav-actions {
        gap: 8px;
    }

    /* Ocultar elementos marcados como mobile-hide para limpiar visualmente */
    .mobile-hide {
        display: none;
    }

    .btn-sm {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .hero-content h2 {
        font-size: 2.2rem;
        /* Texto un poco más pequeño */
        margin-top: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .store-badge {
        height: 45px;
    }
}

/* --- MODAL STYLES (CORREGIDO PARA CENTRADO) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.85);
    opacity: 0;
    transition: opacity 0.3s ease;

    /* Centrado Flexbox Perfecto */
    /* display: flex; REMOVE THIS LINE TO FIX OVERLAY ISSUE */
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Importante: Asegurar opacidad cuando se activa */
.modal[style*="display: flex"],
.modal[style*="display: block"] {
    display: flex !important;
    opacity: 1;
}

/* ===================================
   MODAL TESTER LUME - ESTILOS (FINAL)
   =================================== */

/* Reseteo agresivo de estilos heredados de .modal-content */
.tester-modal.modal-content {
    background: #ffffff !important;
    color: var(--negro);
    padding: 0 !important;
    width: 100%;
    max-width: 360px;
    /* Ancho ideal móvil */
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
    margin: 0 !important;
    border: none !important;
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Header */
.tester-header {
    background: linear-gradient(135deg, var(--azul-intermedio), var(--azul-profundo));
    padding: 1.5rem 1rem 0.5rem;
    text-align: center;
    position: relative;
    width: 100%;
    margin: 0;
}

.tester-modal .close-button {
    color: rgba(255, 255, 255, 0.8);
    top: 10px;
    right: 15px;
    font-size: 28px;
    line-height: 1;
    position: absolute;
    opacity: 1;
    text-shadow: none;
    font-weight: 300;
}

.tester-icon {
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
}

.tester-header h3 {
    color: #fff !important;
    font-size: 1.1rem !important;
    font-weight: 700;
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

.tester-subtitle {
    background: var(--azul-profundo);
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.8rem !important;
    padding: 0 1rem 1rem;
    margin: 0 !important;
    border-bottom: 3px solid #FFD700;
    text-align: center;
    width: 100%;
}

/* Body */
.tester-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: #fff;
}

/* Beneficios */
.tester-benefits {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.benefit-row {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.benefit-icon {
    font-size: 1.2rem;
    background: #f1f5f9;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.benefit-info strong {
    font-size: 0.65rem;
    line-height: 1.2;
    color: var(--azul-profundo);
    display: block;
    max-width: 80px;
    margin: 0 auto;
}

.benefit-info span {
    display: none;
}

/* Pasos */
.tester-steps {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.step-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.step-left {
    flex: 1;
    min-width: 0;
    /* Permite que el texto se corte si es necesario */
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.2rem;
}

.step-number {
    background: var(--azul-profundo);
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    flex-shrink: 0;
    position: relative !important;
    /* Fix crítico: Evitar que vuele */
    top: auto !important;
    left: auto !important;
}

.step-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--negro);
    white-space: nowrap;
}

.step-description {
    font-size: 0.7rem;
    color: #64748b;
    margin: 0 !important;
    line-height: 1.2;
    padding-left: 26px;
    /* Alinear visualmente bajo el título */
}

/* Botones con SVG controlado */
.btn-step {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    /* Espacio entre icono y texto */
    transition: transform 0.1s;
    white-space: nowrap;
    height: 36px;
    box-sizing: border-box;
}

.btn-step:active {
    transform: scale(0.98);
}

/* CLAVE: Forzar tamaño de SVG */
.btn-step svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    display: block;
    fill: currentColor;
    /* Usa el color del texto */
}

.btn-google {
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3);
}

.btn-playstore {
    background: #01875f;
    color: #fff;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.tester-notice {
    text-align: center;
    font-size: 0.65rem;
    color: #94a3b8;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Media query para pantallas muy estrechas */
@media (max-width: 340px) {
    .step-item {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .step-header {
        justify-content: center;
    }

    .step-description {
        padding-left: 0;
        margin-bottom: 0.5rem !important;
    }

    .btn-step {
        justify-content: center;
    }
}

/* --- TOAST NOTIFICATION --- */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: rgba(15, 23, 42, 0.95);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.5rem;
}