/* ==========================================================================
   Pagina de evento: banner, ficha del evento y hoteles con sus habitaciones.
   Comparte con reserva.css las cards del evento y del hotel.
   ========================================================================== */

.grupo {
    --grupo-linea: #dee2e6;
    --grupo-rojo: #C0262D;
    padding: 0 0 50px;
}

.grupo__banner {
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 26px;
}

.grupo__banner img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    display: block;
}

.grupo__cuerpo {
    display: grid;
    grid-template-columns: 30% minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

/* ---------- Cada hotel ---------- */
.grupo-hotel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    border: 1px solid var(--grupo-linea);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 26px;
    background: #fff;
}

/* La ficha reutiliza la card del formulario: aqui va sin borde propio. */
.grupo-hotel__ficha .reserva-card {
    border: 0;
    border-radius: 0;
    height: 100%;
}

.grupo-hotel__habitaciones {
    display: flex;
    flex-direction: column;
}

/* Las filas se reparten el alto de la card para que no quede hueco. */
.grupo-hotel__habitaciones > * {
    flex: 1;
    display: flex;
}

.grupo-hotel__habitaciones .habitacion {
    flex: 1;
}

.grupo-hotel__horarios {
    background: var(--grupo-rojo);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 18px;
    text-align: center;
}

/* ---------- Fila de habitacion ---------- */
.habitacion {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid #f1f3f5;
}

.habitacion:last-child {
    border-bottom: 0;
}

.habitacion__foto img {
    width: 100%;
    height: 105px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.habitacion__nombre {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 2px;
}

.habitacion__tarifa {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    margin-bottom: 1px;
}

.habitacion__tarifa small {
    font-size: 11px;
    font-weight: 700;
}

.habitacion__plan {
    font-size: 13px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.habitacion__notas {
    font-size: 12.5px;
    color: #212529;
    line-height: 1.45;
    margin: 0;
}

.habitacion__accion {
    text-align: right;
    min-width: 175px;
}

.habitacion__controles {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.habitacion__desayuno {
    width: auto;
    max-width: 125px;
    font-size: 12px;
    border-radius: 6px;
    height: 30px;
    padding: 2px 8px;
}

.habitacion__boton {
    background: var(--grupo-rojo);
    color: #fff;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 20px;
    white-space: nowrap;
}

.habitacion__boton:hover {
    background: #a01f25;
    color: #fff;
}

.habitacion__disponibles {
    font-size: 12px;
    color: #6c757d;
    margin: 7px 0 0;
}

/* ---------- Patrocinadores ---------- */
.grupo__patrocinadores {
    margin-top: 40px;
    text-align: center;
}

.grupo__patrocinadores img {
    max-width: 100%;
    height: auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .grupo__cuerpo,
    .grupo-hotel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .habitacion {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .habitacion__accion {
        text-align: center;
    }

    .habitacion__controles {
        justify-content: center;
    }
}

/* Como el formulario: rompe el .container para ganar ancho. */
.grupo {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 8rem;
    padding-right: 8rem;
}

@media (max-width: 1399px) {
    .grupo {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media (max-width: 767px) {
    .grupo {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }
}
