/* Estilos adicionales para la vista de pack */
.curso-seleccionable-pack {
    cursor: pointer;
    transition: all 0.2s ease;
}
.curso-seleccionable-pack.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-seleccionar-curso-pack {
    transition: all 0.2s ease;
}
.contador-seleccion {
    font-size: 0.95rem;
    font-weight: 500;
    color: #d0710a;
}
#btnComprarPackPersonalizado:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.pack-hr {
    width: 56px;
    height: 3px;
    margin: 6px auto 2px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #f39600ff, #f3c85bff);
    opacity: 1;
}
.price-line {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: center;
}
.price-current { font-size: 1.85rem; font-weight: 700; color: #0f172a; }
.price-before {
    font-size: 1.1rem;
    color: #94a3b8;
    text-decoration-line: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #ef4444;
}
@media (max-width: 768px) {
    .price-current { font-size: 1.6rem; }
    .price-before { font-size: 1rem; }
}

/* Sticky lateral en desktop */
@media (min-width: 992px) {
    .sticky-sidebar {
        position: sticky;
        top: 180px;
        height: fit-content;
    }
}

/* Barra inferior en móvil */
.resumen-movil {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid #fb9423;
    padding: 0.6rem 0.5rem;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 1050;
}
@media (max-width: 991.98px) {
    .resumen-movil {
        display: block;
    }
    body {
        padding-bottom: 80px;
    }
    .sticky-sidebar {
        position: static !important;
    }
}
.resumen-movil .text-fa {
    color: #fb9423;
}
.resumen-movil .btn-success {
    background: #d0710a;
    border-color: #d0710a;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}
.resumen-movil .btn-success:hover {
    background: #b86008;
    border-color: #b86008;
}
.resumen-movil .btn-success:disabled,
.resumen-movil .btn-success.disabled {
    opacity: 0.6;
    pointer-events: none;
}
.resumen-movil .badge {
    font-weight: 500;
    font-size: 0.7rem;
}
.resumen-movil .fs-7 {
    font-size: 0.75rem;
}

/* Ajustes para el modal de información */
.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;
}
.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;
}

.pack-mosaic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 4px;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    height: 110px;
}
.pack-mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Si hay menos de 4 imágenes, ajusta el grid */
.pack-mosaic img:only-child {
    grid-column: 1 / -1;
}
.pack-cache-img {
    width: 100%;
    height: 120px; /* Ajusta según el diseño */
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    background: #f8f9fa;
}
.pack-placeholder {
    height: 120px;
    border-radius: 8px 8px 0 0;
}