/* Estilos para la tarjeta en dos columnas */
.reservation-card-two-columns {
    background: var(--white);
    border: 2px solid var(--primary-black);
    border-radius: 12px;
    padding: 0;
    margin: 0.5rem auto;
    max-width: 1000px;
    box-shadow: 0 8px 25px rgba(106, 13, 173, 0.15);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 350px;
}

.left-column {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.car-image {
    background: white;
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
}

.car-placeholder {
    width: 200px;
    height: 120px;
    background: linear-gradient(45deg, var(--light-silver), var(--silver));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-silver);
    font-size: 3rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.right-column {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.car-name-title {
    color: var(--purple);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(106, 13, 173, 0.3);
}

.data-item {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    padding: 0.5rem;
}

.data-label {
    color: var(--primary-black);
    font-weight: 600;
    display: block;
    margin-bottom: 0.2rem;
}

.data-value {
    color: var(--primary-black);
    font-weight: 500;
}

.section-space {
    margin-bottom: 1rem;
}

.price-section {
    background: linear-gradient(45deg, var(--purple), var(--light-purple));
    color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 15px rgba(106, 13, 173, 0.3);
}

.support-message {
    text-align: center;
    color: var(--dark-silver);
    font-size: 0.85rem;
    font-style: italic;
}

#dia_pico_placa {
    font-size: 1.2rem;
}

/* Estilos para el display de valor */
.valor-display {
    background: var(--white);
    border: 2px solid var(--light-silver);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.valor-calculado {
    font-size: 2rem;
    font-weight: bold;
    color: var(--purple);
    text-shadow: 0 2px 4px rgba(106, 13, 173, 0.2);
}

.valor-placeholder {
    color: var(--dark-silver);
    font-style: italic;
    font-size: 1rem;
}

.valor-loading {
    color: var(--purple);
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

.valor-error {
    color: var(--danger);
    font-weight: bold;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.desglose-valor {
    background: rgba(106, 13, 173, 0.05);
    border: 1px solid var(--light-purple);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.desglose-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(106, 13, 173, 0.1);
}

.desglose-item:last-child {
    border-bottom: none;
}

.desglose-total {
    font-weight: bold;
    font-size: 1.3rem;
    color: var(--purple);
    border-top: 2px solid var(--purple);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.desglose-label {
    color: var(--primary-black);
    font-weight: 500;
}

.desglose-value {
    color: var(--purple);
    font-weight: bold;
}

/* Filters Section */
.filters-section {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(106, 13, 173, 0.1);
    margin-bottom: 2rem;
    border: 1px solid var(--light-silver);
}

/* Estilos adicionales para el calendario */
.calendar-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 0.5rem 0;
    flex-wrap: wrap;
}

.calendar {
    background: var(--white);
    border: 2px solid var(--light-silver);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 4px 15px rgba(106, 13, 173, 0.1);
    min-width: 280px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-silver);
}

.calendar-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--purple);
}

.calendar-nav {
    background: transparent;
    border: none;
    color: var(--purple);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.calendar-nav:hover {
    background: var(--purple);
    color: var(--white);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day-header {
    background: var(--primary-black);
    color: var(--white);
    padding: 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.calendar-day {
    aspect-ratio: 1;
    border: 1px solid var(--light-silver);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
    font-size: 0.8rem;
}

.calendar-day:hover:not(.disabled):not(.reserved) {
    background: var(--light-purple);
    color: var(--white);
    transform: scale(1.1);
}

.calendar-day.disabled {
    background: linear-gradient(135deg, var(--light-silver), #e0e0e0);
    color: var(--dark-silver);
    cursor: not-allowed;
    position: relative;
}

.calendar-day.disabled::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--dark-silver);
    transform: translateY(-50%);
}

.calendar-day.reserved {
    background: linear-gradient(135deg, #fab4b4, #fc9999);
    color: var(--white);
    cursor: not-allowed;
    position: relative;
    font-weight: bold;
}

.calendar-day.reserved::before {
    content: '✕';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.8);
}

.calendar-day.reserved:hover {
    background: linear-gradient(135deg, #fc9999, #fe7591);
    transform: none;
}

.calendar-day.selected {
    background: linear-gradient(135deg, var(--purple), var(--light-purple));
    color: var(--white);
    font-weight: bold;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(106, 13, 173, 0.4);
    position: relative;
}

.calendar-day.selected::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.9);
}

.calendar-day.range {
    background: linear-gradient(135deg, rgba(106, 13, 173, 0.3), rgba(106, 13, 173, 0.2));
    color: var(--purple);
    border: 1px solid rgba(106, 13, 173, 0.4);
}

.calendar-day.range:hover {
    background: linear-gradient(135deg, rgba(106, 13, 173, 0.4), rgba(106, 13, 173, 0.3));
    transform: scale(1.02);
}

.calendar-day.other-month {
    color: var(--dark-silver);
}

.car-title {
      cursor: pointer;
      color: #6a0dad;
      font-weight: bold;
      margin: 1rem 0;
    }

.calendar-wrapper {
      display: none;      
    background: var(--white);
    border: 2px solid var(--light-silver);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 4px 15px rgba(106, 13, 173, 0.1);
    min-width: 300px; 
    max-width: 350px;
    }
    
.calendar-container {
      overflow-x: auto;
    }

.calendar-day {
      position: relative;
    }
/* Franja de reserva personalizada */
.calendar-reservation-bar {
    position: absolute;
    top: 2px;
    left: 0;
    right: 0;
    height: 18px; /* Aumentado de 6px para ser más gruesa */
    background: linear-gradient(90deg, #656161, #8c6591);
    border-radius: 0; /* Eliminado el border-radius para continuidad */
    z-index: 2;
}

.calendar-reservation-bar.start {
    border-radius: 6px 0 0 6px;
}

.calendar-reservation-bar.end {
    border-radius: 0 6px 6px 0;
}

.calendar-reservation-bar.single {
    border-radius: 6px;
}

/* Etiqueta de cliente sobre la reserva */
.calendar-reservation-label {
    position: absolute;
    top: 3px; /* Ajustado para estar dentro de la franja */
    left: 2px;
    right: 2px;
    font-size: 0.7rem;
    color: var(--white);
    text-align: center;
    font-weight: bold;
    overflow: visible;
    white-space: nowrap;
    text-overflow: ellipsis;
    z-index: 3;
    line-height: 1;
}

.calendar-reservation-label.continuation {
    text-indent: -100px; 
}

.calendar-day.has-reservation {
    padding-top: 14px; /* Espacio para la franja */
    font-size: 0.6rem; /* Número más pequeño */
}

.date-display {
    background: var(--light-silver);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 1rem 0;
    color: var(--primary-black);
    font-weight: bold;
}

.auto-info {
    background: rgba(106, 13, 173, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 4px solid var(--purple);
}

.auto-info h4 {
    color: var(--purple);
    margin-bottom: 0.5rem;
}

.auto-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    
    .calendar-container {
        flex-direction: column;
        align-items: center;
    }

    .calendar-wrapper {
        flex-direction: column;
        align-items: center;
        min-width: 100%;
        max-width: 350px;
    }
    
    .calendar {
        min-width: 100%;
        max-width: 350px;
    }

    .reservation-card-two-columns {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin: 1rem auto;
    }

    .left-column {
        min-height: 200px;
    }

    .car-name-title {
        font-size: 1.5rem;
    }

    .form-row {
        flex-direction: column;
    }

    .form-group {
        min-width: auto;
    }

    .page-title {
        font-size: 2rem;
    }
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--dark-silver);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(106, 13, 173, 0.1);
}
