/* Estilos para Fechas y Horarios */
.fechas-horarios-container {
    padding: 2rem;
}

.fecha-grupo {
    margin-bottom: 2rem;
}

.fecha-titulo {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.horarios-grupo {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}


.horario-wide {
    flex: 1;
    max-width: 300px;
}

/* Card universal para todas las secciones */
.event-card,
.course_dtl_tab {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Card contenedora para toda la sección de tabs */
.course_dtl_tab {
    padding: 0;
    overflow: hidden;
}

.tab_area {
    background: #fff;
}

#tab-button-container {
    border-radius: 10px;
    gap: 10px;
}

    #tab-button-container .refresh-event-tab {
        border-radius: 10px;
    }

/* Estilos para tabs - que ocupen todo el espacio */
.ng-style-tab {
    flex: 1;
    text-align: center;
    border-bottom: 3px solid transparent;
    padding: 1rem 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    margin: 0px !important;
    cursor: pointer;
}

.refresh-event-tab.ng-style-tab.active {
    border-bottom-color: var(--main-color);
    color: var(--main-color);
    font-weight: 600;
    margin: 0px;
    background-color: transparent;
    cursor: default;
}

.tab_area .mb-4 {
    display: flex;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #fff;
    padding: 0;
    margin-bottom: 0;
    padding: 10px;
}


.tab-content {
    background: #fff;
    padding: 0px 6px 0px 6px;
}



/* Ajustes para la sección de reserva - ya no necesita container específico */
#reserva-section {
    border: 2px solid rgb(233, 236, 239);
    box-shadow: 0 4px 15px rgba(68, 20, 78, 0.1);
}

.reserva-titulo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 1.5rem;
    text-align: left;
}

    .reserva-titulo.text-center {
        text-align: center;
    }

.reserva-campo {
    margin-bottom: 1.5rem;
}

.reserva-label {
    display: block;
    font-size: 1.4rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.quantity label.cart-item {
    font-size: 1.6rem;
    display: block;
    font-weight: 500;
    color: #333;
}

.reserva-select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1.4rem;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5rem;
    padding-right: 3rem;
}

    .reserva-select.cart-item {
        width: 120px;
    }

    .reserva-select:focus {
        outline: none;
        border-color: var(--main-color);
    }

/* Botones de horario */
.horario-buttons {
    display: flex;
    gap: 1rem;
}

.horario-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .horario-btn:hover {
        border-color: var(--main-color);
        background: #f8fbff;
    }

    .horario-btn.active {
        border-color: var(--main-color);
        background: var(--main-color);
        color: white;
    }

/* Cantidad de entradas */
.cantidad-container {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    justify-content: center;
}

.cantidad-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    background: white;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .cantidad-btn:first-child {
        border-radius: 6px 0 0 6px;
        border-right: none;
    }

    .cantidad-btn:last-child {
        border-radius: 0 6px 6px 0;
        border-left: none;
    }

    .cantidad-btn:hover {
        background: #f5f5f5;
    }

.cantidad-input {
    width: 100%;
    height: 40px;
    border: 2px solid #ddd;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 500;
    background: white;
}

    .cantidad-input:focus,
    .cantidad-input:active,
    .cantidad-btn:focus,
    .cantidad-btn:active {
        outline: none;
        border: 2px solid #ddd;
    }

.limite-container {
    min-height: 25px;
    font-style: italic;
    letter-spacing: 1px;
    font-weight: 500;
}

    .limite-container small {
        font-weight: 400;
        font-size: 1.4rem;
    }

        .limite-container small.danger {
            font-weight: 600;
            color: #a94442;
        }
/* Botón de ubicación */
.ubicacion-btn {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 1.4rem;
    cursor: pointer;
    margin-bottom: 1.5rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

    .ubicacion-btn:hover {
        border-color: var(--main-color);
        background: #f8fbff;
    }

/* Total */
.total-container {
    margin-bottom: 1.5rem;
}

.total-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    padding: 1rem;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 6px;
}

/* Botones principales */
.comprar-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--main-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

    .comprar-btn.carrito,
    .carrito-btn.carrito {
        font-size: 1.8rem;
    }

    .comprar-btn.disabled {
        background: #ddd;
        cursor: default;
        color: #999;
    }

    .comprar-btn:hover {
        background: var(--second-color);
        transform: translateY(-1px);
        color: white;
    }

a.comprar-btn {
    display: inline-block;
    width: 100%;
    text-align: center;

}

.carrito-btn {
    width: 100%;
    padding: 1.2rem;
    background: white;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

    .carrito-btn:hover {
        border-color: var(--main-color);
        background: #f8fbff;
    }

/* Link del carrito */
.ir-carrito {
    text-align: center;
}

.carrito-link {
    font-size: 1.3rem;
    color: #666;
    text-decoration: underline;
    transition: color 0.3s ease;
}

    .carrito-link:hover {
        color: var(--main-color);
        text-decoration: none;
    }

.card-cart-item {
    background-color: #ffffff;
    border: 1px solid #e9eaeb;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 5px 10px 5px 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(68, 20, 78, 0.1);
}

    .card-cart-item.disabled button,
    .card-cart-item.disabled select {
        pointer-events: none;
    }

.card-cart-item-info {
    width: 70%;
    padding: 5px;
    height: 100%;
}

.card-cart-item-price {
    width: 23%;
    text-align: right;
    padding: 5px;
    display: flex;
    flex-flow: column;
    align-items: flex-end;
}

.card-cart-item-delete {
    width: 7%;
    padding: 22px 5px 5px 5px;
    display: flex;
    justify-content: end;
}

button.btn-cart-item-delete {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 10px 5px 5px 5px;
    border: none;
    background-color: #00000000;
    -webkit-transition: .5s;
    -o-transition: .5s;
    transition: .5;
}

    button.btn-cart-item-delete:hover {
        background-color: buttonface;
    }

    button.btn-cart-item-delete i {
        font-size: 25px;
    }

    button.btn-cart-item-delete span {
        display: none;
    }

.summary {
    color: #333;
    text-align: center;
    padding: 1rem;
    background: #e9ecef69;
    border-radius: 6px;
}


.summary-row {
    font-size: 1.5rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
}

    .summary-row.centered {
        justify-content: center;
    }

.btn-summary-coupon {
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--main-color);
    background-color: transparent;
    border: none;
    border-radius: 25px;
    justify-self: center;
    padding: 3px 12px 2px 10px;
    transition: all 0.3s ease;
}

.btn-cart-item {
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--main-color);
    background-color: transparent;
    border: none;
    border-radius: 25px;
    justify-self: center;
    padding: 3px 12px 2px 10px;
    transition: all 0.3s ease;
}

    .btn-cart-item:hover {
        background-color: #e9ecef;
    }


    .btn-cart-item.secondary {
        border: 2px solid #ddd;
    }

        .btn-cart-item.secondary:hover {
            background-color: #e9ecef;
            border: 2px solid #e9ecef;
            color: #333;
        }



.price-info {
    line-height: 1.2;
    font-size: 1.25rem;
}

.price-info,
.quantity {
    max-height: min-content;
}

.fixed-scroll {
    position: sticky;
    padding-top: 20px;
}

.cart-area {
    display: flex;
    gap: 20px;
}

    .cart-area .cart-items {
        width: 70%;
    }

    .cart-area .cart-summary {
        width: 30%;
    }

.reserva-select.cart-item option {
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    /* 
  .dreamit-main-menu {
    display: none !important;
  } */

    .cart-area {
        display: block;
    }


        .cart-area .cart-items {
            width: 100%;
        }

        .cart-area .cart-summary {
            width: 100%;
        }

    .card-cart-item-info h6 {
        text-align: center;
        font-size: 2rem;
    }

    .reserva-select.cart-item {
        font-size: 1.7rem;
        width: 150px;
    }

    .card-cart-item .reserva-label,
    .price-info h6 {
        font-size: 1.8rem;
    }

    .card-cart-item-info,
    .card-cart-item-delete {
        width: 100%;
    }


    .card-cart-item-delete {
        justify-content: center;
        padding: 5px;
    }

        .card-cart-item-delete i {
            margin-top: 2px;
        }

    button.btn-cart-item-delete {
        display: inline-block;
        width: 100%;
        background-color: buttonface;
        border-radius: 5px;
        padding-top: 5px;
    }

        button.btn-cart-item-delete span {
            display: inline-block;
            font-weight: 500;
            font-size: 1.8rem;
            color: #333;
        }

    .card-cart-item-price {
        width: 100%;
        text-align: left;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: unset;
        font-size: 1.4rem;
    }

    .price-info {
        display: flex;
        align-items: center;
        padding: auto;
    }

    .horarios-grupo {
        flex-direction: column;
    }

    .ng-main-area {
        padding-inline: 16px;
    }

    .horario-card {
        text-align: center;
    }

    .horario-buttons {
        flex-direction: column;
    }

    .event-card,
    .course_dtl_tab {
        padding: 1.5rem;
    }

    .fecha-titulo {
        font-size: 1.4rem;
    }

    .ng-style-tab {
        margin: 0px;
        padding: 0.8rem 0.3rem;
        font-size: 1.3rem;
    }
}
