/**
 * Estilos para el Popup de Pedir Info
 * Loopian Curso Info Integration
 */

/* ========================================
   BOTÓN "PEDIR INFO" EN LAS CARDS
======================================== */

.lcii-pedir-info-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: transparent !important;
    color: #522DD7 !important;
    border: 1px solid #522DD7 !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    margin-top: 10px !important;
    white-space: nowrap !important;
}

.lcii-pedir-info-btn:hover {
    background: #522DD7 !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(82, 45, 215, 0.2) !important;
}

.lcii-pedir-info-btn:active {
    transform: translateY(0) !important;
}

.lcii-pedir-info-btn i {
    font-size: 11px !important;
}

/* Versión desktop del botón */
.lsi-home-card-content .lcii-pedir-info-btn {
    margin-left: 8px !important;
}

/* Versión mobile del botón */
.lsi-home-mobile-footer .lcii-pedir-info-btn.mobile-btn {
    margin-left: auto !important;
    margin-top: 0 !important;
    padding: 5px 10px !important;
}

/* ========================================
   POPUP - BACKDROP
======================================== */

.lcii-popup-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lcii-popup-backdrop.active {
    display: flex;
    opacity: 1;
}

/* ========================================
   POPUP - CONTAINER
======================================== */

.lcii-popup-container {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s ease;
}

.lcii-popup-backdrop.active .lcii-popup-container {
    transform: scale(1) translateY(0);
}

/* ========================================
   POPUP - BOTÓN CERRAR
======================================== */

.lcii-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    color: #666;
}

.lcii-popup-close:hover {
    background: #e0e0e0;
    color: #333;
    transform: rotate(90deg);
}

.lcii-popup-close i {
    font-size: 14px;
}

/* ========================================
   POPUP - CONTENIDO
======================================== */

.lcii-popup-content {
    padding: 40px;
}

/* Header del popup */
.lcii-popup-header {
    text-align: center;
    margin-bottom: 30px;
}

.lcii-popup-header i {
    font-size: 48px;
    color: #522DD7;
    margin-bottom: 12px;
}

.lcii-popup-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.lcii-popup-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ========================================
   POPUP - FORMULARIO
======================================== */

.lcii-popup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lcii-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lcii-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Curso seleccionado */
.lcii-selected-curso {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f5ff;
    border: 2px solid #522DD7;
    border-radius: 8px;
    padding: 12px 16px;
}

.lcii-selected-curso i {
    color: #522DD7;
    font-size: 20px;
}

.lcii-selected-curso span {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

/* Input de email */
.lcii-form-group input[type="email"] {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    outline: none;
}

.lcii-form-group input[type="email"]:focus {
    border-color: #522DD7;
    box-shadow: 0 0 0 3px rgba(82, 45, 215, 0.1);
}

.lcii-form-group input[type="email"]::placeholder {
    color: #999;
}

/* Botón enviar */
.lcii-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #522DD7 0%, #6B3EE3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lcii-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 45, 215, 0.3);
}

.lcii-submit-btn:active {
    transform: translateY(0);
}

.lcii-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.lcii-submit-btn i {
    font-size: 14px;
}

/* Estados de loading */
.lcii-submit-btn.loading .lcii-btn-text {
    display: none;
}

.lcii-submit-btn.loading .lcii-btn-loading {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

/* ========================================
   MENSAJES DE ÉXITO Y ERROR
======================================== */

.lcii-success-message,
.lcii-error-message {
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.lcii-success-message {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    color: #2e7d32;
}

.lcii-success-message i {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.lcii-success-message p {
    margin: 4px 0;
}

.lcii-error-message {
    background: #ffebee;
    border: 2px solid #f44336;
    color: #c62828;
}

.lcii-error-message i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

/* ========================================
   NOTA DE PRIVACIDAD
======================================== */

.lcii-privacy-note {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.lcii-privacy-note small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #666;
    font-size: 12px;
}

.lcii-privacy-note i {
    color: #522DD7;
    font-size: 11px;
}

/* ========================================
   RESPONSIVE - MOBILE
======================================== */

@media (max-width: 768px) {
    .lcii-popup-content {
        padding: 24px;
    }

    .lcii-popup-header h3 {
        font-size: 20px;
    }

    .lcii-popup-header i {
        font-size: 36px;
    }

    .lcii-popup-subtitle {
        font-size: 13px;
    }

    .lcii-selected-curso {
        padding: 10px 12px;
    }

    .lcii-selected-curso span {
        font-size: 14px;
    }

    .lcii-submit-btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .lcii-popup-close {
        top: 12px;
        right: 12px;
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .lcii-popup-backdrop {
        padding: 10px;
    }

    .lcii-popup-content {
        padding: 20px;
    }

    .lcii-popup-header {
        margin-bottom: 20px;
    }

    .lcii-popup-form {
        gap: 16px;
    }
}

/* ========================================
   ANIMACIONES
======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* ========================================
   ACCESIBILIDAD
======================================== */

.lcii-popup-backdrop:focus-within .lcii-popup-container {
    box-shadow: 0 10px 40px rgba(82, 45, 215, 0.4);
}

.lcii-form-group input[type="email"]:invalid:not(:placeholder-shown) {
    border-color: #f44336;
}

.lcii-form-group input[type="email"]:valid:not(:placeholder-shown) {
    border-color: #4caf50;
}
