/* ofertas_personalizadas.css */
:root {
    --primary: #fb9423;
    --primary-dark: #e07e0a;
    --primary-light: #fff5e8;
    --gray-bg: #f8f9fa;
}
.ofertas-personalizadas {
    background: var(--gray-bg);
    min-height: 100vh;
    padding-bottom: 3rem;
}
.text-gradient {
    background: linear-gradient(135deg, #fb9423, #ff6b00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.wizard-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.1);
    overflow: hidden;
}
.steps-indicator {
    display: flex;
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 2rem;
}
.step {
    flex: 1;
    text-align: center;
    font-weight: 600;
    padding: 0.5rem;
    color: #adb5bd;
    position: relative;
    font-size: 1rem;
}
.step.active {
    color: var(--primary);
}
.step.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
}
.wizard-content {
    padding: 2rem;
}
.step-content {
    display: none;
}
.step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px);}
    to { opacity: 1; transform: translateY(0);}
}
/* Tarjetas de categorías/acreditaciones */
.option-card {
    cursor: pointer;
    border: 2px solid #e9ecef;
    border-radius: 1rem;
    padding: 1rem;
    transition: all 0.2s;
    background: white;
}
.option-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}
.option-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 5px 12px rgba(251,148,35,0.2);
}
.option-card .form-check-input {
    margin-right: 0.5rem;
    transform: scale(1.2);
}
/* Tarjetas de cursos */
/* Mejoras para las tarjetas de cursos */
.curso-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.curso-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.curso-video-thumb {
    position: relative;
    overflow: hidden;
    background: #1a1a2e;
}

.curso-video-thumb img {
    transition: transform 0.3s ease;
}

.curso-video-thumb:hover img {
    transform: scale(1.05);
}

.play-icon {
    transition: opacity 0.2s ease;
}

.curso-video-thumb:hover .play-icon i {
    transform: scale(1.1);
    opacity: 1 !important;
}

.badge-pre {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffc107;
    color: #856404;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    background: #f5f5f5;
    font-size: 0.75rem;
    color: #555;
}

.curso-precio-original {
    font-size: 0.85rem;
}

.btn-comprar {
    background: #d0710a;
    border-color: #d0710a;
    transition: all 0.2s ease;
}

.btn-comprar:hover {
    background: #b86008;
    border-color: #b86008;
    transform: scale(1.02);
}

/* Resultados vacíos */
.resultados-vacio {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: all 0.2s;
    opacity: 0.9;
}
.curso-video-thumb:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    color: var(--primary);
}
.curso-info {
    padding: 1rem;
    flex-grow: 1;
}
.curso-titulo {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.curso-acreditacion {
    font-size: 0.85rem;
    color: #6c757d;
}
.curso-precio {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.2rem;
}
.btn-comprar {
    background: var(--primary);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}
.btn-comprar:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

/* Estilos para tarjetas de categoría clickeables */
.categoria-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.categoria-card:hover {
    transform: translateY(-5px);
    border-color: #fb9423;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.categoria-card.selected {
    background: linear-gradient(135deg, #fff5e8 0%, #fff 100%);
    border-color: #d0710a;
    border-width: 2px;
    box-shadow: 0 4px 12px rgba(208,113,10,0.2);
}

.categoria-card.selected .categoria-icon i {
    color: #d0710a;
    transform: scale(1.1);
}

.categoria-icon i {
    font-size: 2.5rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.categoria-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.5rem 0 0;
    color: #4e443a;
}

.categoria-card p {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
}

/* Estilos para tarjetas de acreditación clickeables */
.acreditacion-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.acreditacion-card:hover {
    transform: translateY(-5px);
    border-color: #fb9423;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.acreditacion-card.selected {
    background: linear-gradient(135deg, #e8f4f8 0%, #fff 100%);
    border-color: #0a6c75;
    border-width: 2px;
    box-shadow: 0 4px 12px rgba(10,108,117,0.2);
}

.acreditacion-card.selected .acreditacion-icon i {
    color: #0a6c75;
    transform: scale(1.1);
}

.acreditacion-icon i {
    font-size: 2.5rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.acreditacion-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.5rem 0 0;
    color: #4e443a;
}

.acreditacion-card p {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
}

/* Contador de selecciones */
.seleccion-count {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    color: #d0710a;
    font-weight: 500;
}
/* Estilos para tarjetas de preferencias */
/* Estilos para selectores grandes y visibles */
.preferencia-card {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 1.75rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.preferencia-card:hover {
    background: #fff;
    border-color: #fb9423;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.form-select-lg {
    font-size: 1.1rem;
    padding: 0.875rem 1.25rem;
    border-radius: 14px;
    background-color: white;
    border: 2px solid #dee2e6;
    transition: all 0.2s ease;
}

.form-select-lg:hover {
    border-color: #fb9423;
}

.form-select-lg:focus {
    border-color: #d0710a;
    box-shadow: 0 0 0 3px rgba(208,113,10,0.15);
}

/* Estilo especial para la opción "Sin preferencia" */
.form-select option[value="0"] {
    font-weight: 600;
    color: #d0710a;
    background-color: #fff5e8;
}

/* Etiquetas de formulario */
.preferencia-card .form-label {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preferencia-card .form-label i {
    font-size: 1.3rem;
}

/* Texto de ayuda */
.form-text {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Alert personalizada */
.alert-warning {
    background: linear-gradient(135deg, #fff8e7 0%, #fff 100%);
    border-left: 4px solid #fb9423;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .preferencia-card {
        padding: 1.25rem;
    }
    
    .form-select-lg {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .wizard-content {
        padding: 0rem !important;
    }

    .step-content .card {
        padding: 0rem !important;
    }
}
/* Añadir a ofertas_personalizadas.css */

/* Botón marcar/desmarcar todas */
.btn-marcar-todas {
    border-radius: 20px;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-marcar-todas:hover {
    transform: translateY(-2px);
}

/* Tarjetas de preferencia mejoradas */
.preferencia-card.selectable {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.preferencia-card.selectable:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.preferencia-card.selectable.active {
    border-color: #d0710a;
    background: linear-gradient(135deg, #fff5e8 0%, #fff 100%);
    box-shadow: 0 4px 12px rgba(208,113,10,0.15);
}

.preferencia-card.selectable.active .form-check-input:checked {
    background-color: #d0710a;
    border-color: #d0710a;
}

/* Selectores personalizados */
.form-select {
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.form-select:hover {
    border-color: #fb9423;
}

.form-select:focus {
    border-color: #d0710a;
    box-shadow: 0 0 0 3px rgba(208,113,10,0.1);
}

/* Opción especial "Indiferente" y "Ajustado a horas" */
.form-select option[value="0"] {
    font-weight: 600;
    color: #d0710a;
    background-color: #fff5e8;
}

/* Mejoras responsivas paso 3 */
@media (max-width: 768px) {
    .preferencia-card.selectable {
        margin-bottom: 1rem;
    }
    
    .preferencia-card.selectable .form-check {
        margin-bottom: 1rem;
    }
    
    .btn-marcar-todas {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }
}

/* ============================================
   BOTONES FIXED - SOLUCIÓN LIMPIA Y PROFESIONAL
   ============================================ */

/* Contenedor principal del wizard */
.wizard-container {
    position: relative;
    margin-bottom: 90px; /* Espacio para los botones fixed */
}

/* Tarjetas sin padding inferior extra */
.step-content .card {
    padding: 1.5rem !important;
}

/* Eliminamos cualquier contenedor con scroll interno */
#categorias-container,
#acreditaciones-container {
    max-height: none;
    overflow-y: visible;
}

/* Los botones fijos en la parte inferior */
.botones-flotantes {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem 1.5rem;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.botones-flotantes .btn {
    min-width: 160px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
}

/* Ocultar botones en el paso 4 (resultados) */
.step-content:not(#step4.active) .botones-flotantes {
    display: flex;
}

#step4.active ~ .botones-flotantes,
.step-content#step4.active .botones-flotantes {
    display: none;
}

/* Estilos para el modal de información del curso */
.modal-dialog .nav-tabs {
    border-bottom: 1px solid #dee2e6;
    padding: 0 1rem;
}

.modal-dialog .nav-tabs .nav-link {
    color: #6c757d;
    border: none;
    padding: 0.75rem 1rem;
    font-weight: 500;
}

.modal-dialog .nav-tabs .nav-link:hover {
    color: #fb9423;
    border: none;
}

.modal-dialog .nav-tabs .nav-link.active {
    color: #fb9423;
    background: transparent;
    border-bottom: 2px solid #fb9423;
}

/* Estilo para el icono de información en la imagen */
.info-icon {
    transition: opacity 0.2s ease;
}

.curso-image-thumb:hover .info-icon i {
    transform: scale(1.1);
    opacity: 1 !important;
}

.curso-image-thumb:hover img {
    transform: scale(1.05);
}

.curso-image-thumb img {
    transition: transform 0.3s ease;
}

/* Estilo para el selector de convocatorias */
.curso-convocatorias select {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    background-color: #f8f9fa;
}

/* Asegurar que las estrellas se muestren correctamente */
.curso-estrellas {
    display: flex;
    gap: 2px;
    line-height: 1;
}

.curso-estrellas i {
    margin-right: 1px;
}

/* Ajuste para móvil */
@media (max-width: 768px) {
    .botones-flotantes {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }
    
    .botones-flotantes .btn {
        min-width: 120px;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .wizard-container {
        margin-bottom: 80px;
    }
}

/* Botón atrás invisible en paso 1 */
.btn-prev-invisible {
    visibility: hidden;
    pointer-events: none;
}

/* Añadir a ofertas_personalizadas.css */

.curso-categorias {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.curso-categorias .badge {
    font-size: 0.7rem;
    font-weight: normal;
    background-color: #f0f0f0 !important;
    color: #333 !important;
    padding: 4px 8px;
    border-radius: 12px;
}

#categorias-counter {
    transition: all 0.3s ease;
}

#categorias-counter.alert-warning {
    background-color: #fff3cd;
    border-color: #ffecb5;
    color: #856404;
}

.personalizar-fechas {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.personalizar-fechas input[type="date"] {
    font-size: 0.8rem;
}

.btn-aplicar-fechas {
    width: 100%;
    font-size: 0.75rem;
}

/* Estilos para selección de cursos en packs */
.curso-checkbox-pak {
    width: 24px;
    height: 24px;
    cursor: pointer;
    border-radius: 6px;
    border: 2px solid #d0710a;
}

.curso-checkbox-pak:checked {
    background-color: #d0710a;
    border-color: #d0710a;
}

.curso-card-selected {
    border: 2px solid #d0710a !important;
    background: linear-gradient(135deg, rgba(208, 113, 10, 0.05), #ffffff);
    box-shadow: 0 8px 20px rgba(208, 113, 10, 0.15);
}

#selected-count-pack {
    font-weight: bold;
    font-size: 1.2rem;
}

/* Añadir a ofertas_personalizadas.css */

/* Estilos para modo pack */
.pack-info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
}

.pack-precio .display-6 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.pack-precio .text-decoration-line-through {
    font-size: 1.2rem;
}

.selection-check {
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.curso-pack-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.curso-pack-card.curso-card-selected {
    border: 2px solid var(--primary);
    box-shadow: 0 8px 25px rgba(208,113,10,0.2);
}

.curso-pack-card .btn-comprar-pack {
    transition: all 0.2s ease;
}

.curso-pack-card:hover .btn-comprar-pack {
    transform: scale(1.05);
}

#btn-continuar-pack {
    padding: 12px 32px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.2s ease;
}

#btn-continuar-pack:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(208,113,10,0.3);
}

#pack-counter-message {
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .pack-info-card .row {
        text-align: center;
    }
    
    .pack-precio {
        margin-top: 15px;
    }
    
    .selection-check {
        width: 28px;
        height: 28px;
    }
    
    .selection-check input {
        transform: scale(1.1);
    }
}

/* Estilos para la barra de compra fija */
.compra-footer {
    background: white;
    border-top: 2px solid #fb9423;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.compra-footer .precios .text-fa {
    color: #fb9423;
}

.compra-footer .btn-success {
    background: #d0710a;
    border-color: #d0710a;
    transition: all 0.2s ease;
}

.compra-footer .btn-success:hover {
    background: #b86008;
    border-color: #b86008;
    transform: scale(1.02);
}

.compra-footer .btn-success.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.mensaje-descuento {
    font-size: 0.85rem;
    animation: pulse 1s ease;
}

@keyframes pulse {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

/* Estilo para curso seleccionado */
.curso-card-selected {
    border: 2px solid #d0710a !important;
    background: linear-gradient(135deg, rgba(208, 113, 10, 0.05), #ffffff);
    box-shadow: 0 8px 20px rgba(208, 113, 10, 0.15);
}

.btn-comprar-curso-individual:hover {
    background: #d0710a;
    color: white;
    border-color: #d0710a;
}

@media (max-width: 768px) {
    .compra-footer {
        padding: 0.5rem 1rem;
    }
    
    .compra-footer .precios .fs-4 {
        font-size: 1.2rem;
    }
    
    .compra-footer .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Forzar que el fondo gris envuelva todo el contenido de preferencia-card */
.preferencia-card {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Asegurar que el último elemento (form-text) quede dentro */
.preferencia-card .form-text {
    margin-top: 1rem !important;
    padding-bottom: 0;
    display: block;
    width: 100%;
}

/* Estructura interna de la tarjeta */
.preferencia-card > * {
    width: 100%;
}

/* Ajuste para que los selects no se desborden */
.preferencia-card .row {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.preferencia-card .row [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.preferencia-card .row [class*="col-"]:first-child {
    padding-left: 0;
}

.preferencia-card .row [class*="col-"]:last-child {
    padding-right: 0;
}