/* booking.css - Estilos para Hello Kitty Booking System */

/* Contenedor principal */
.hk-booking-container {
    /*background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fad0c4 100%); */
    border-radius: 20px;
    padding: 30px;
    color: white;
    margin-bottom: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 10px 30px rgba(255, 154, 158, 0.3);
}

.hk-booking-container h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Pasos del booking */
.booking-step {
    margin-bottom: 15px;
    padding: 25px;
    background: rgba(255,255,255,0.15);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.booking-step:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.booking-step h4 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Campo de fecha */
#booking_date,
#hk-time-select {
    max-width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    background: white;
    color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#booking_date:focus,
#hk-time-select:focus {
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Grid de horarios */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

/* Slots de tiempo */
.time-slot {
    padding: 20px;
    background: rgba(255,255,255,0.9);
    color: #333;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.time-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.6s;
}

.time-slot:hover::before {
    left: 100%;
}

.time-slot:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.time-slot.selected {
    border-color: #ff6b9d;
    background: linear-gradient(135deg, #ff6b9d, #ff8cc8);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

.time-slot.full {
    background: rgba(200,200,200,0.7);
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.time-slot .time {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.time-slot .availability {
    font-size: 13px;
    opacity: 0.8;
}

/* SecciÃ³n de tickets */
.tickets-section {
    margin-top: 25px;
}

.ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255,255,255,0.12);
    border-radius: 12px;
    margin-bottom: 15px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.ticket-item:hover {
    background: rgba(255,255,255,0.18);
    transform: translateX(5px);
}

.ticket-info .ticket-name {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 12.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.ticket-info .ticket-price {
    color: #ffd700;
    font-weight: bold;
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.ticket-description {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin-top: 5px;
    font-style: italic;
}

/* Controles de cantidad */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 18px;
}

.quantity-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: linear-gradient(135deg, #ff6b9d, #ff8cc8);
    color: white;
    border-radius: 50%;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.quantity-btn:hover {
    background: linear-gradient(135deg, #ff8cc8, #ffa8d3);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-btn.minus {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.3));
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.quantity-btn.minus:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.4));
}

.quantity-display {
    font-size: 20px;
    font-weight: bold;
    min-width: 35px;
    text-align: center;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* InformaciÃ³n de disponibilidad */
.availability-info {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
}

.capacity-display {
    font-size: 18px;
    font-weight: bold;
    color: #2ed573;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    transition: color 0.3s ease;
}

/* SecciÃ³n total */
.total-section {
    text-align: center;
    margin-top: 30px;
    padding: 25px;
    background: rgba(0,0,0,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.total-amount {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* BotÃ³n de reserva */
.book-btn {
    background: linear-gradient(180deg, #FF0664 0%, #64067A 100%);
    color: white;
    border: none;
    padding: 18px 45px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.book-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff8cc8, #ffa8d3);
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(255, 107, 157, 0.5);
}

.book-btn:active:not(:disabled) {
    transform: translateY(-2px);
}

.book-btn:disabled {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.3));
    cursor: not-allowed;
    color: rgba(255,255,255,0.6);
    box-shadow: none;
}

/* Notice de error */
.hk-booking-notice {
    background: rgba(255, 193, 7, 0.9);
    color: #856404;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
    font-weight: 600;
    border: 1px solid rgba(255, 193, 7, 0.5);
}

.prom_bcp {
    text-align: left;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: white;
    background: #002a8d;
    padding: 13px;
    transform: skew(-12deg);
    border-radius: 10px;
    margin: 0 25px;"
}

/* Responsive Design */
@media (max-width: 768px) {
    .prom_bcp {
        font-size: 0.9rem;
    }
    
    .hk-booking-container {
        padding: 20px;
        margin: 15px;
        border-radius: 15px;
    }
    
    .hk-booking-container h3 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .booking-step {
        padding: 20px;
    }
    
    .booking-step h4 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .time-slots-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .time-slot {
        padding: 15px;
    }
    
    .time-slot .time {
        font-size: 18px;
    }
    
    .ticket-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 18px;
    }
    
    .quantity-controls {
        margin-top: 10px;
        gap: 15px;
    }
    
    .quantity-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .total-amount {
        font-size: 24px;
    }
    
    .book-btn {
        padding: 15px 35px;
        font-size: 18px;
    }
}

/* Animaciones adicionales */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.book-btn:not(:disabled):hover {
    animation: pulse 1s infinite;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.booking-step {
    animation: slideIn 0.5s ease-out;
}

/* Estados de carga */
.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,0.8);
    font-size: 16px;
}

.loading-state::after {
    content: '...';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { color: rgba(255,255,255,0.2); text-shadow: .25em 0 0 rgba(255,255,255,0.2), .5em 0 0 rgba(255,255,255,0.2); }
    40% { color: white; text-shadow: .25em 0 0 rgba(255,255,255,0.2), .5em 0 0 rgba(255,255,255,0.2); }
    60% { text-shadow: .25em 0 0 white, .5em 0 0 rgba(255,255,255,0.2); }
    80%, 100% { text-shadow: .25em 0 0 white, .5em 0 0 white; }
}



.person-indicator {
    background: #ff6b35;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 10px;
    font-weight: bold;
}
.ticket-item[data-person-count] {
    position: relative;
}

/* Configuraci¨®n de person_count en admin */
.hk-person-count-config {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.hk-person-count-config input[type="number"] {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 8px;
    text-align: center;
    font-weight: 600;
}

.hk-person-count-config input[type="number"]:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Informaci¨®n de desglose de personas en frontend */
.person-breakdown-info {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 14px;
    line-height: 1.4;
}

.breakdown-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.breakdown-item:last-of-type {
    border-bottom: none;
}

.item-name {
    font-weight: 600;
    color: white;
}

.item-calc {
    color: rgba(255,255,255,0.9);
    font-family: monospace;
}

.breakdown-total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid rgba(255,255,255,0.2);
    text-align: center;
    font-size: 16px;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Indicador visual de persona en productos */
.person-indicator {
    background: #ff6b35;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 10px;
    font-weight: bold;
    display: inline-block;
}

.ticket-item[data-person-count] {
    position: relative;
}

/* Mostrar indicador de personas en cada producto */
.ticket-item[data-person-count]:not([data-person-count="1"]):after {
    content: attr(data-person-count) " personas";
    background: #ff6b35;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

/* Estados de alerta para aforo */
.text-warning {
    color: #ffc107 !important;
    font-weight: bold;
}

.text-danger {
    color: #dc3545 !important;
    font-weight: bold;
    animation: pulse 1s infinite;
}

/* Animaci¨®n para aforo agotado */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Estilos responsive para desglose */
@media (max-width: 768px) {
    .person-breakdown-info {
        padding: 12px;
        margin: 12px 0;
        font-size: 13px;
    }
    
    .breakdown-item {
        flex-direction: column;
        gap: 3px;
    }
    
    .item-calc {
        text-align: right;
        font-size: 12px;
    }
    
    .breakdown-total {
        font-size: 15px;
    }
    
    .ticket-item[data-person-count]:not([data-person-count="1"]):after {
        position: static;
        display: inline-block;
        margin-left: 10px;
        margin-top: 5px;
    }
}

