/* Modal de Bienvenida */
.welcome-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.welcome-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.welcome-modal-container {
    display: flex;
    flex-direction: row;
    background: white;
    border-radius: 25px;
    max-width: 950px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0,0,0,0.4);
    position: relative;
    animation: modalSlideUp 0.4s ease-out;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.welcome-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.1);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    z-index: 10;
}

.welcome-modal-close:hover {
    background: rgba(0,0,0,0.2);
    transform: rotate(90deg);
}

/* Panel izquierdo con fondo e ilustración */
.welcome-modal-left {
    flex: 1;
    background: url('../img/bg-green-intro.webp') center center;
    background-size: cover;
    padding: 0;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    position: relative;
}

.welcome-header {
    padding: 40px 35px 20px;
    z-index: 2;
    position: relative;
    text-align: center;
}

.welcome-header h2 {
    font-size: 24px;
    margin-bottom: 5px;
    line-height: 0.95;
    font-weight: 400;
    color: white;
}

.character-illustration {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 70%;
    width: auto;
    object-fit: contain;
    object-position: bottom center;
    z-index: 1;
}

/* Panel derecho con contenido */
.welcome-modal-right {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.welcome-modal-right h3 {
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 25px;
}

/* Tabs */
.welcome-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.welcome-tab {
    flex: 1;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    padding: 14px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.welcome-tab i {
    font-size: 16px;
}

.welcome-tab.active {
    background: linear-gradient(90deg, #81d742 0%, #3ac403 100%);
    border-color: #81d742;
    color: white;
    box-shadow: 0 8px 32px rgba(129,215,66,0.18);
}

.welcome-tab.active i {
    color: white;
}

.welcome-tab:hover:not(.active) {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

/* Contenido */
.welcome-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.welcome-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.welcome-content h4 {
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Lista de características */
.welcome-list {
    list-style: none;
    margin-bottom: 30px;
    padding: 0;
}

.welcome-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 0;
    color: #4a5568;
    font-size: 15px;
}

.welcome-list li .emoji-icon {
    font-size: 22px;
    min-width: 24px;
    line-height: 1;
}

/* Botones */
.welcome-btn-primary {
    background: linear-gradient(90deg, #81d742 0%, #3ac403 100%);
    color: white;
    border: none;
    padding: 16px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 32px rgba(129,215,66,0.18);
    width: 100%;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.welcome-btn-primary i {
    font-size: 16px;
    color: white;
}

.welcome-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(129,215,66,0.3);
}

.welcome-btn-primary.creator {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 5px 20px rgba(251,191,36,0.4);
}

.welcome-btn-primary.creator:hover {
    box-shadow: 0 10px 40px rgba(251,191,36,0.5);
}

.welcome-btn-skip {
    background: none;
    border: none;
    color: #a0aec0;
    padding: 12px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    margin-top: auto;
}

.welcome-btn-skip:hover {
    color: #718096;
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-modal-container {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .welcome-modal-left {
        padding: 0;
        min-height: 320px;
        overflow: hidden;
        flex: none;
    }

    .welcome-header {
        padding: 30px 25px 15px;
    }

    .welcome-header h2 {
        font-size: 16px;
    }

    .brand-logo {
        height: 50px;
    }

    .character-illustration {
        height: 95%;
        bottom: -90px;
    }

    .welcome-modal-right {
        padding: 30px 25px;
        overflow-y: visible;
        flex: none;
    }

    .welcome-modal-right h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .welcome-tabs {
        gap: 8px;
        margin-bottom: 25px;
    }

    .welcome-tab {
        font-size: 14px;
        padding: 12px 15px;
    }

    .welcome-list li {
        font-size: 14px;
        padding: 10px 0;
    }

    .welcome-btn-primary {
        padding: 14px 30px;
        font-size: 15px;
    }
}
