/* Estilos para la sección de calendario y puestos de estacionamiento */

/* Parking spots styles */
.parking-spot {
    transition: all 0.3s ease;
    background-color: #f9fafb;
    border: 2px solid #e5e7eb;
}

.parking-spot.available {
    background-color: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.parking-spot.available:hover {
    background-color: #a7f3d0;
    border-color: #059669;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.parking-spot.occupied {
    background-color: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
    cursor: not-allowed;
    opacity: 0.7;
}

.parking-spot.selected {
    background-color: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    transform: scale(1.05);
}

.parking-spot .fa-car {
    transition: all 0.3s ease;
}

.parking-spot.available .fa-car {
    color: #059669;
}

.parking-spot.occupied .fa-car {
    color: #dc2626;
}

.parking-spot.selected .fa-car {
    color: #2563eb;
}

/* Calendario */
.calendar-grid {
    min-height: 280px;
}

.calendar-day, .calendar-day-empty, .calendar-day-name {
    width: 100%;
    min-height: 40px;
}

.calendar-day {
    position: relative;
}

.calendar-day:not(.text-gray-400):hover {
    background-color: #f3f4f6;
}

.calendar-day.selected {
    background-color: #3b82f6;
    color: white;
}

.calendar-day.today {
    position: relative;
}

.availability-indicator {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.spot-item {
    transition: all 0.2s ease;
}

.spot-item:hover {
    transform: translateY(-2px);
}

/* Animar cambios de estado en los puestos */
.spot-item {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Estilo para el punto de disponibilidad */
.availability-indicator .rounded-full {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* Animaciones para el resumen de reserva */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#reservation-summary {
    animation: fadeIn 0.5s ease;
    border-left: 4px solid #3b82f6;
}

.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeIn {
    animation-name: fadeIn;
}

.animate__pulse {
    animation-name: pulse;
}

.animate__infinite {
    animation-iteration-count: infinite;
}

/* Mejorar visibilidad del botón de reserva */
#btn-reserve {
    transition: all 0.3s ease;
}

/* Efectos específicos para esta página */
#btn-reserve {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#btn-reserve.highlight {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(22, 163, 74, 0.6);
}

#reservation-summary {
    transition: all 0.3s ease;
    border-left: 4px solid #3b82f6;
}

/* Indicador de paso completado */
.step-complete {
    position: relative;
}

.step-complete::after {
    content: "✓";
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background-color: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes headShake {
    0% {
        transform: translateX(0);
    }
    6.5% {
        transform: translateX(-6px) rotateY(-9deg);
    }
    18.5% {
        transform: translateX(5px) rotateY(7deg);
    }
    31.5% {
        transform: translateX(-3px) rotateY(-5deg);
    }
    43.5% {
        transform: translateX(2px) rotateY(3deg);
    }
    50% {
        transform: translateX(0);
    }
}

.animate__headShake {
    animation-timing-function: ease-in-out;
    animation-name: headShake;
    animation-duration: 0.9s;
}