/* ===== MODAL DE BIENVENIDA PROFESIONAL ===== */

/* Modal Container */
.modal-bienvenida {
    background: white;
    border-radius: 28px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: modalSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header Moderno con Gradiente */
.modal-header {
    padding: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 28px 28px 0 0;
}

/* Botón de Cerrar */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

.modal-close svg {
    width: 18px;
    height: 18px;
    stroke: white;
    stroke-width: 2.5;
}

.modal-header-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.modal-header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.modal-logo {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    background: white;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.modal-header-text {
    flex: 1;
    text-align: left;
}

.modal-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    letter-spacing: 0;
    opacity: 0.95;
}

.modal-subtitle {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
    text-transform: capitalize;
}

/* Body del Modal */
.modal-body {
    background: white;
    padding: 1.5rem 1.5rem 2rem;
    border-radius: 0 0 28px 28px;
    flex: 1;
    overflow-y: auto;
}

/* Mensaje de Bienvenida */
.welcome-message {
    text-align: center;
    margin-bottom: 1.25rem;
    padding: 0.875rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 14px;
    border: 2px solid #bae6fd;
}

.welcome-text {
    color: #0369a1;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
}

/* Form Groups */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.85rem;
}

/* Inputs con Iconos */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 1;
}

.input-with-icon input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: #f8fafc;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.input-with-icon input::placeholder {
    color: #94a3b8;
}

/* Botón Continuar */
.btn-primary {
    width: 100%;
    padding: 0.95rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.45);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-arrow {
    font-size: 1.3rem;
    transition: transform 0.3s;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

/* Badge de Privacidad */
.privacy-badge {
    text-align: center;
    margin-top: 1.5rem;
    padding: 0.75rem;
    background: #f0fdf4;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid #86efac;
}

.privacy-icon {
    width: 18px;
    height: 18px;
    color: #10b981;
    flex-shrink: 0;
}

.privacy-badge span {
    font-size: 0.85rem;
    color: #047857;
    font-weight: 600;
}

/* Responsive para móviles */
@media (max-width: 480px) {
    .modal-bienvenida {
        max-width: 95%;
        border-radius: 24px;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 1.25rem 1rem;
        border-radius: 24px 24px 0 0;
    }
    
    .modal-header-content {
        gap: 0.875rem;
    }
    
    .modal-logo {
        width: 55px;
        height: 55px;
        padding: 6px;
    }
    
    .modal-title {
        font-size: 0.85rem;
    }
    
    .modal-subtitle {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 1.25rem 1rem 1.5rem;
    }
    
    .welcome-message {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .welcome-text {
        font-size: 0.8rem;
    }
    
    .form-group {
        margin-bottom: 0.875rem;
    }
    
    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .input-with-icon input {
        padding: 0.75rem 0.875rem 0.75rem 2.75rem;
        font-size: 0.85rem;
    }
    
    .input-icon {
        font-size: 1rem;
        left: 0.875rem;
    }
    
    .btn-primary {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        margin-top: 1.25rem;
    }
    
    .privacy-badge {
        padding: 0.65rem;
        margin-top: 1.25rem;
    }
    
    .privacy-badge span {
        font-size: 0.8rem;
    }
}