/* Estilos específicos para widgets de Elementor */

.elementor-widget-aipcm-course-stats {
    padding: 20px;
}

.elementor-widget-aipcm-course-progress {
    margin: 20px 0;
}

/* Integración con Theme Builder */
.elementor-location-single .aipcm-course-header {
    margin-top: 0;
}

/* Catalog Mobile Slider */
@media (max-width: 767px) {
    .aipcm-mobile-slider {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 15px !important;
        padding: 5px 20px 20px 20px !important; /* Añadido padding lateral para el centrado */
        grid-template-columns: none !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin; /* Mostrar scrollbar sutil en algunos navegadores */
    }
    
    .aipcm-mobile-slider::-webkit-scrollbar {
        height: 6px;
    }
    
    .aipcm-mobile-slider::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 10px;
    }

    .aipcm-mobile-slider .aipcm-catalog-card {
        flex: 0 0 280px;
        scroll-snap-align: center;
        min-width: 280px;
        margin-bottom: 0 !important;
    }

    .aipcm-mobile-slider .aipcm-catalog-card-title {
        font-size: 15px !important;
    }

    .aipcm-mobile-slider .aipcm-catalog-card-body {
        padding: 15px !important;
    }
    
    .aipcm-mobile-slider-indicator {
        display: block !important;
        opacity: 0.8;
        margin-top: -10px;
    }
    
    .aipcm-catalog-btn {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
}

/* -------------------------------------------
   Auth Tabs Widget Styles
------------------------------------------- */
.aipcm-auth-tabs-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    max-width: 450px;
    margin: 0 auto;
    font-family: inherit;
}

.aipcm-auth-tabs-nav {
    display: flex;
    border-bottom: 1px solid #edf2f7;
    background: #f8fafc;
}

.aipcm-auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 18px 0;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.aipcm-auth-tab:hover {
    color: #334155;
}

.aipcm-auth-tab.active {
    color: #1eada6;
    border-bottom-color: #1eada6;
    background: #fff;
}

.aipcm-auth-tab-content {
    display: none;
    padding: 30px;
}

.aipcm-auth-tab-content.active {
    display: block;
    animation: authFadeIn 0.3s ease;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.aipcm-auth-form .aipcm-form-row {
    display: flex;
    gap: 15px;
}

.aipcm-auth-form .aipcm-form-group.half {
    width: 50%;
}

.aipcm-auth-form .aipcm-form-group {
    margin-bottom: 18px;
}

.aipcm-auth-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 6px;
}

.aipcm-auth-form input[type="text"],
.aipcm-auth-form input[type="email"],
.aipcm-auth-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    background: #fff;
    color: #333;
    box-sizing: border-box;
}

.aipcm-auth-form input:focus {
    outline: none;
    border-color: #1eada6;
    box-shadow: 0 0 0 3px rgba(30, 173, 166, 0.1);
}

.aipcm-auth-btn {
    width: 100%;
    padding: 14px;
    background: #1eada6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.aipcm-auth-btn:hover {
    background: #178a84;
}

.aipcm-auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.aipcm-auth-links {
    text-align: center;
    margin-top: 15px;
}

.aipcm-auth-links a {
    color: #64748b;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.aipcm-auth-links a:hover {
    color: #1eada6;
    text-decoration: underline;
}

.aipcm-auth-divider {
    text-align: center;
    position: relative;
    margin: 25px 0;
}

.aipcm-auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
}

.aipcm-auth-divider span {
    position: relative;
    background: #fff;
    padding: 0 15px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
}

.aipcm-google-btn-wrapper {
    display: flex;
    justify-content: center;
    min-height: 40px;
}

.aipcm-auth-msg {
    margin-top: 20px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.aipcm-auth-msg.success {
    background: #e6f6f5;
    color: #0d827c;
    border: 1px solid #bceae8;
}

.aipcm-auth-msg.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.aipcm-auth-logged-in-msg {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    max-width: 450px;
    margin: 0 auto;
}

.aipcm-auth-logged-in-msg h3 {
    margin-top: 0;
    color: #334155;
}

.aipcm-auth-logged-in-msg .aipcm-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 24px;
    background: #1eada6;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}
