/* Solución para el Footer Pegado Abajo (Sticky Footer) */
html,
body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* El contenedor principal crece para llenar todo el espacio disponible */
main.container {
    flex: 1;
}

/* Layout y Contenedor */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Banner Hero Promocional */
.combos-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.combos-badge {
    background: #e44d26;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

.combos-hero h1 {
    font-size: 2rem;
    margin: 0 0 10px 0;
}

.combos-hero p {
    color: #94a3b8;
    margin: 0 0 20px 0;
}

.combos-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    font-size: 0.88rem;
    color: #cbd5e1;
}

.combos-hero-features i {
    color: #22c55e;
    margin-right: 6px;
}

/* Grilla de Cards */
.combos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.card-combo {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-combo:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Contenedor principal de la imagen en la card */
.combo-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

/* Badge de Descuento */
.badge-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
}

/* Grilla contenedora según cantidad de ítems */
.combo-grid-images {
    display: grid;
    width: 100%;
    height: 100%;
    gap: 6px;
    align-items: center;
    justify-items: center;
}

.combo-grid-images.items-1 {
    grid-template-columns: 1fr;
}

.combo-grid-images.items-2 {
    grid-template-columns: 1fr 1fr;
}

.combo-grid-images.items-3 {
    grid-template-columns: 1fr 1fr;
}

.combo-grid-images.items-3 .combo-img-item:first-child {
    grid-column: span 2;
    max-height: 90px;
}

.combo-grid-images.items-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

/* Contenedor individual de cada imagen */
.combo-img-item {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    /* Fondo blanco para rellenar bordes si la foto es angosta */
    overflow: hidden;
    padding: 4px;
    /* Opcional: pequeño margen para que la imagen no toque los bordes */
}

/* La imagen dentro del contenedor */
.combo-img-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Muestra el producto COMPLETO sin recortarlo */
    display: block;
}

.card-combo:hover .combo-img-item img {
    transform: scale(1.05);
}

/* Información del Combo */
.combo-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.combo-title {
    font-size: 1.15rem;
    color: #0f172a;
    margin: 0 0 6px 0;
    font-weight: 700;
}

.combo-descripcion {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 12px 0;
}

.combo-items-count {
    font-size: 0.85rem;
    color: #334155;
    margin: 0 0 8px 0;
}

.combo-product-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    font-size: 0.85rem;
    color: #475569;
    flex-grow: 1;
}

.combo-product-list li {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.combo-product-list li i {
    color: #16a34a;
    font-size: 0.8rem;
}

/* Estilos unificados de precios para Combos */
.combo-precio-box {
    margin-bottom: 15px;
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.precio-final {
    display: flex;
    flex-direction: column;
}

.precio-final .monto {
    font-size: 1.35rem;
    font-weight: 800;
    color: #e44d26;
}

.precio-final .etiqueta {
    font-size: 0.75rem;
    color: #16a34a;
    font-weight: 600;
}

.btn-agregar-combo {
    width: 100%;
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.btn-agregar-combo:hover {
    background: #1e293b;
}

.no-combos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: #94a3b8;
}

.no-combos i {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Estilos unificados de precios para Combos */
.combo-precio-box {
    margin-bottom: 15px;
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.precio-efectivo-container {
    display: flex;
    flex-direction: column;
}

.precio-efectivo-container .monto {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    /* Color oscuro idéntico al de productos individuales */
    line-height: 1.2;
}

.precio-efectivo-container .etiqueta {
    font-size: 0.8rem;
    color: #16a34a;
    /* Verde institucional */
    font-weight: 600;
    margin-top: 2px;
}

.precio-divider {
    border: none;
    border-top: 1px dashed #cbd5e1;
    margin: 10px 0;
}

.precio-cuotas-container {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.precio-lista-tachado {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 2px;
}

.cuotas-texto {
    font-size: 0.88rem;
    color: #0f172a;
}


/* Ajuste para que los modales sean más grandes y cómodos */
#modal-quickview .modal-content,
.modal-container {
    max-width: 680px !important;
    /* Antes solía ser más chico, ej: 450px o 500px */
    width: 90% !important;
}