/* Landing welcome page */

#welcome-overlay {
    --landing-bg: #030712;
    --landing-card: rgba(15, 23, 42, 0.6);
    --landing-primary: #3b82f6;
    --landing-secondary: #10b981;
    --landing-primary-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --landing-secondary-gradient: linear-gradient(135deg, #10b981 0%, #047857 100%);
    --landing-text: #f8fafc;
    --landing-muted: #94a3b8;
    --landing-line: rgba(255, 255, 255, 0.08);
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #030712 0%, #0b1528 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 18px 12px;
    font-family: 'Outfit', 'Inter', sans-serif;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    overflow-y: auto;
}

#welcome-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.welcome-bg-shape {
    position: fixed;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(40px);
    opacity: 0.6;
}

.welcome-bg-shape-a {
    width: 500px;
    height: 500px;
    top: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, transparent 70%);
}

.welcome-bg-shape-b {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -200px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, transparent 70%);
}

.welcome-container-dark {
    width: 100%;
    max-width: 800px;
    margin: auto;
    padding: 2.5rem 2rem;
    border: 1px solid var(--landing-line);
    border-radius: 24px;
    background: var(--landing-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: welcomeEntrance 0.45s cubic-bezier(0.2, 0.9, 0.2, 1);
}

@keyframes welcomeEntrance {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.welcome-hero {
    margin-bottom: 14px;
}

.welcome-kicker {
    width: fit-content;
    margin: 0 auto 10px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.7rem;
    font-weight: 600;
}

.welcome-header-dark h1 {
    margin: 0 0 8px;
    font-size: clamp(2.2rem, 3vw, 3rem);
    letter-spacing: -0.025em;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.subtitle-dark {
    margin: 0 auto;
    max-width: 640px;
    color: var(--landing-muted);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    font-size: 1rem;
}

.landing-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--landing-line);
}

.section-title-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.section-title-row h2 {
    margin: 0;
    color: var(--landing-text);
    font-size: 1.2rem;
    font-weight: 700;
}

.modes-grid-dark {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.mode-card-dark {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--landing-line);
    background: rgba(15, 23, 42, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.mode-card-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--landing-primary-gradient);
    transition: all 0.3s ease;
}

.mode-card-dark:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.2);
    background: rgba(15, 23, 42, 0.7);
}

.icon-dark {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.title-container-dark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0.75rem;
}

.blue-bar-dark,
.amber-bar-dark {
    display: none; /* Simplificado estilo tarjetas */
}

.mode-title-dark {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
}

.mode-desc-dark {
    margin: 0 0 1.5rem;
    color: var(--landing-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}

.select-btn-dark,
.select-btn-external,
.action-btn-dark,
.info-action-btn {
    border: 0;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-btn-dark {
    background: var(--landing-primary-gradient);
    color: #fff;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    width: 100%;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.select-btn-dark:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.action-buttons-dark {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.action-btn-dark {
    border: 1px solid var(--landing-line);
    background: rgba(15, 23, 42, 0.5);
    color: var(--landing-muted);
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.action-btn-dark:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    background: rgba(15, 23, 42, 0.8);
}

.modulos-externos-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 2rem;
    margin-bottom: 1.25rem;
}

.modulos-externos-divider::before,
.modulos-externos-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--landing-line);
}

.modulos-externos-label {
    color: var(--landing-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.09em;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.modulo-card-dark {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--landing-line);
    background: rgba(15, 23, 42, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modulo-card-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: var(--landing-secondary-gradient);
    transition: all 0.3s ease;
}

.modulo-card-dark:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.15);
}

.modulo-icon {
    font-size: 2.25rem;
    color: #10b981;
    flex-shrink: 0;
}

.modulo-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.select-btn-external {
    background: var(--landing-secondary-gradient);
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.select-btn-external:hover {
    filter: brightness(1.1);
}

.info-actions-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 2rem;
}

.info-action-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.info-action-primary {
    background: var(--landing-primary-gradient);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.info-action-muted {
    background: rgba(15, 23, 42, 0.5);
    color: var(--landing-muted);
    border: 1px solid var(--landing-line);
}

.info-action-muted:hover {
    background: rgba(15, 23, 42, 0.8);
    color: #ffffff;
}

.footer-dark {
    margin-top: 2rem;
    text-align: center;
    color: var(--landing-muted);
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}

@media (max-width: 768px) {
    .welcome-container-dark {
        padding: 2rem 1.5rem;
    }

    .modes-grid-dark {
        grid-template-columns: 1fr;
    }
}