/**
 * PDX Calendar Booking Styles - CON HORARIOS
 */

:root {
    --pdx-red: #c41e1e;
    --pdx-red-dark: #8b0000;
    --pdx-gray: #333;
    --pdx-gray-light: #f5f5f5;
    --pdx-border: #ddd;
    --pdx-text: #1a1a1a;
}

html {
    background: #000 !important;
}

.pdx-calendar-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* SECCIÓN IZQUIERDA */

.pdx-calendar-section {
    order: 1;
}

.pdx-calendar-section h2 {
    font-size: 2em;
    font-weight: 900;
    color: #fff;
    margin: 0 0 30px 0;
    text-align: center;
}

.pdx-calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.pdx-calendar-controls h3 {
    flex: 1;
    text-align: center;
    margin: 0;
    font-size: 1.3em;
    font-weight: 700;
    color: #fff;
}

.pdx-btn-prev-month,
.pdx-btn-next-month {
    background: var(--pdx-red);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdx-btn-prev-month:hover,
.pdx-btn-next-month:hover {
    background: var(--pdx-red-dark);
    transform: translateY(-2px);
}

.pdx-calendar {
    background: white;
    border: 2px solid var(--pdx-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.pdx-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.pdx-weekday {
    text-align: center;
    font-weight: 700;
    color: var(--pdx-red);
    padding: 10px 0;
    font-size: 0.9em;
}

.pdx-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.pdx-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--pdx-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    background: white;
    position: relative;
}

.pdx-calendar-day:hover {
    border-color: var(--pdx-red);
    background: var(--pdx-gray-light);
}

.pdx-calendar-day.has-events {
    background: var(--pdx-red);
    color: white;
    border-color: var(--pdx-red);
    font-weight: 700;
}


.pdx-calendar-day.selected {
    background: var(--pdx-red);
    color: white;
    border-color: var(--pdx-red);
}

.pdx-calendar-day.other-month {
    color: #ccc;
    cursor: default;
}

.pdx-calendar-day.other-month:hover {
    border-color: var(--pdx-border);
    background: white;
}

/* PRÓXIMOS EVENTOS */

.pdx-upcoming-events {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid var(--pdx-border);
    order: 3;
    margin-top: 30px;
}

.pdx-upcoming-events h3 {
    margin: 0 0 20px 0;
    font-size: 1.2em;
    color: var(--pdx-text);
}

.pdx-events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pdx-event-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid var(--pdx-red);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdx-event-item:hover {
    box-shadow: 0 4px 12px rgba(196, 30, 30, 0.2);
    transform: translateX(5px);
}

.pdx-event-item-date {
    font-weight: 700;
    color: var(--pdx-red);
    font-size: 0.9em;
}

.pdx-event-item-name {
    font-size: 1em;
    font-weight: 600;
    color: var(--pdx-text);
    margin: 5px 0;
}

/* SECCIÓN DERECHA - FORMULARIO */

.pdx-booking-right {
    background: white;
    border: 2px solid var(--pdx-border);
    border-radius: 8px;
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 20px;
    order: 2;
}

.pdx-booking-right h2 {
    font-size: 1.8em;
    font-weight: 900;
    color: var(--pdx-text);
    margin: 0 0 25px 0;
}

.pdx-event-info {
    background: var(--pdx-gray-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid var(--pdx-red);
}

.pdx-event-header h4 {
    margin: 0;
    color: var(--pdx-text);
    font-size: 1.1em;
}

.pdx-event-date {
    margin: 8px 0 0 0;
    color: var(--pdx-red);
    font-weight: 700;
    font-size: 0.95em;
}

/* FORMULARIO */

.pdx-booking-form-calendar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.pdx-form-section {
    border-bottom: 2px solid var(--pdx-border);
    padding-bottom: 20px;
}

.pdx-form-section:last-of-type {
    border-bottom: none;
}

.pdx-form-section h4 {
    margin: 0 0 15px 0;
    color: var(--pdx-text);
    font-weight: 700;
    font-size: 1em;
}

.pdx-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.pdx-form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--pdx-text);
    font-size: 0.95em;
}

.pdx-form-group input,
.pdx-form-group select {
    padding: 12px;
    border: 2px solid var(--pdx-border);
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
}

.pdx-form-group input:focus,
.pdx-form-group select:focus {
    outline: none;
    border-color: var(--pdx-red);
    box-shadow: 0 0 0 3px rgba(196, 30, 30, 0.1);
}

/* HORARIOS */

#pdx-horarios-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.pdx-horario-btn {
    padding: 10px;
    border: 2px solid var(--pdx-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
    background: white;
    font-size: 0.85em;
}

.pdx-horario-btn:hover {
    border-color: var(--pdx-red);
    background: rgba(196, 30, 30, 0.05);
}

.pdx-horario-btn.active {
    background: var(--pdx-red);
    color: white;
    border-color: var(--pdx-red);
}

/* PAQUETES */

.pdx-packages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.pdx-package-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.pdx-package-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.package-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 2px solid var(--pdx-border);
    border-radius: 6px;
    transition: all 0.3s ease;
    background: white;
}

.pdx-package-card input[type="radio"]:checked + .package-content {
    background: var(--pdx-red);
    color: white;
    border-color: var(--pdx-red);
}

.package-laps {
    font-weight: 900;
    font-size: 1.2em;
    min-width: 90px;
}

.package-level {
    font-size: 0.75em;
    font-weight: 700;
    opacity: 0.8;
}

.package-price {
    margin-left: auto;
    font-weight: 700;
    font-size: 1.1em;
}

/* CHECKBOX */

.pdx-checkbox-group {
    border-top: 2px solid var(--pdx-border);
    padding-top: 15px;
}

.pdx-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    margin: 0;
    color: var(--pdx-text);
}

.pdx-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--pdx-red);
}

/* BOTONES */

.pdx-form-buttons {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.pdx-btn-submit,
.pdx-btn-clear {
    padding: 14px;
    font-size: 1em;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.pdx-btn-submit {
    background: var(--pdx-red);
    color: white;
    order: 1;
}

.pdx-btn-submit:hover {
    background: var(--pdx-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 30, 0.3);
}

.pdx-btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.pdx-btn-clear {
    background: var(--pdx-gray-light);
    color: var(--pdx-text);
    order: 2;
}

.pdx-btn-clear:hover {
    background: #ddd;
}


/* MENSAJES */

.pdx-select-event-message {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 1.1em;
}

.pdx-success-message {
    text-align: center;
    padding: 30px;
    background: var(--pdx-gray-light);
    border-radius: 8px;
    border-left: 4px solid var(--pdx-red);
}

.pdx-success-message h3 {
    color: var(--pdx-red);
    font-size: 1.5em;
    margin: 0 0 15px 0;
}

.pdx-success-message p {
    margin: 10px 0;
    color: #666;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
    .pdx-calendar-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .pdx-booking-right {
        position: static;
    }
}

@media (max-width: 768px) {
    .pdx-calendar-container {
        padding: 20px 15px;
    }
    
    .pdx-calendar-section h2,
    .pdx-booking-right h2 {
        font-size: 1.5em;
    }
    
    .pdx-packages-grid {
        grid-template-columns: 1fr;
    }
    
    .package-content {
        flex-direction: column;
        text-align: center;
    }
    
    .package-price {
        margin-left: 0;
    }
    
    .pdx-form-buttons {
        flex-direction: row;
        gap: 10px;
    }
    
    .pdx-btn-submit,
    .pdx-btn-clear {
        flex: 1 1 50%;
    }
    
    #pdx-horarios-container {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
}

@media (max-width: 480px) {
    .pdx-calendar-controls {
        flex-direction: column;
    }
    
    .pdx-btn-prev-month,
    .pdx-btn-next-month {
        width: 100%;
    }
    
    .pdx-form-buttons {
        gap: 8px;
    }
}