/* ===== CALENDAR UNIQUE TAGS - NO CONFLICTS ===== */

/* Hidden utility */
.cal-hidden { 
    display: none !important; 
}


/* ===== FLIP CONTAINER SYSTEM ===== */
.cal-flip-container {
    perspective: 1000px;
    width: 100%;
    height: 500px;
    
    margin: 20px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(6, 0, 58, 0.15);
}

.cal-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: fit-content;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.cal-flipper.cal-flipped {
    transform: rotateY(180deg);
}

.cal-front, .cal-back {
    position: absolute;
    width: 100%;
    height: 100%;
    min-height: fit-content ;
    max-height: 600px;
    backface-visibility: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.cal-back {
    transform: rotateY(180deg);
}

/* ===== CALENDAR COMPONENT ===== */
.cal-component {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cal-header {
    display: flex;
    color: snow;
    justify-content: space-between;
    align-items: center;
    padding: 8px 8px;
    background: linear-gradient(135deg, var(--azul) 0%, var(--eblue) 100%);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(6, 0, 58, 0.2);
}

.cal-nav-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.cal-nav-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.cal-nav-button:active {
    transform: scale(0.95);
}

.cal-month-year {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

/* ===== CALENDAR GRID SYSTEM ===== */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

/* Days names header */
.cal-days-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 12px 0;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cal-day-name {
    text-align: center;
    font-weight: 700;
    color: var(--azul);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 4px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.cal-day-name:hover {
    background: rgba(6, 0, 58, 0.1);
    transform: translateY(-1px);
}

/* Calendar days grid */
.cal-days-container {
    gap: 6px;
}

.cal-day-cell {
    aspect-ratio: 2:1;
    max-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    background: white;
    border: 2px solid #e9ecef;
    min-height: 40px;
    overflow: hidden;
}

.cal-day-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--eblue) 0%, var(--azul) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.cal-day-cell:hover::before {
    opacity: 0.1;
}

.cal-day-cell:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(6, 0, 58, 0.15);
    border-color: var(--eblue);
}

/* Calendar day states */
.cal-day-available {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: var(--azul);
    border-color: var(--eblue);
}

.cal-day-available:hover {
    background: linear-gradient(135deg, var(--eblue) 0%, var(--azul) 100%);
    color: white;
    border-color: var(--azul);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 12px 32px rgba(6, 0, 58, 0.25);
}

.cal-day-selected {
    background: linear-gradient(135deg, var(--azul) 0%, var(--eblue) 100%);
    color: white;
    border-color: var(--azul);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(6, 0, 58, 0.3);
    font-weight: 700;
}

.cal-day-unavailable {
    background: #f8f9fa;
    color: #adb5bd;
    border-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
}

.cal-day-unavailable:hover {
    transform: none;
    box-shadow: none;
}

.cal-day-other-month {
    background: #f8f9fa;
    color: #ced4da;
    border-color: #f1f3f4;
    opacity: 0.4;
    cursor: not-allowed;
}

.cal-day-other-month:hover {
    transform: none;
    box-shadow: none;
}

/* ===== TIME SLOTS COMPONENT ===== */
.cal-timeslots-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cal-timeslots-wrapper button {
    max-height: 50PX;
}


.cal-timeslots-title {
    color: var(--azul);
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid var(--eblue);
}

.cal-selected-date {
    color: var(--eblue);
    font-weight: 700;
}

.cal-timeslots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    max-height: 350px;
}

.cal-timeslot {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid var(--eblue);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    max-height: 45PX;
    max-width:120px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    color: var(--azul);
    position: relative;
    overflow: hidden;
    min-height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-timeslot::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 117, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.cal-timeslot:hover::before {
    left: 100%;
}

.cal-timeslot:hover {
    background: linear-gradient(135deg, var(--eblue) 0%, var(--azul) 100%);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 117, 255, 0.3);
    border-color: var(--azul);
}

.cal-timeslot-selected {
    background: linear-gradient(135deg, var(--azul) 0%, var(--eblue) 100%);
    color: white;
    border-color: var(--azul);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(6, 0, 58, 0.25);
}

.cal-timeslot-unavailable {
    background: #f8f9fa;
    color: #adb5bd;
    border-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.5;
}

.cal-timeslot-unavailable:hover {
    transform: none;
    box-shadow: none;
}

.cal-timeslot-unavailable::before {
    display: none;
}

/* ===== CALENDAR BUTTONS ===== */
.cal-secondary-btn {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.2);
}

.cal-secondary-btn:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(108, 117, 125, 0.3);
}

.cal-accept-btn {
    background: linear-gradient(135deg, var(--eblue) 0%, var(--azul) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin-top: 20px;
    max-height: 40px;
    box-shadow: 0 6px 20px rgba(0, 117, 255, 0.25);
}

.cal-accept-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--azul) 0%, var(--eblue) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 117, 255, 0.35);
}

.cal-accept-btn:disabled {
    background: linear-gradient(135deg, #adb5bd 0%, #6c757d 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0.6;
}

.cal-accept-btn:active:not(:disabled) {
    transform: translateY(-1px) scale(0.98);
}

/* ===== CALENDAR SUMMARY ===== */
.cal-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid var(--eblue);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 117, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.cal-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--eblue) 0%, var(--azul) 100%);
}

.cal-summary p {
    margin: 12px 0;
    font-size: 1.1rem;
    color: var(--azul);
    font-weight: 600;
}

.cal-summary strong {
    color: var(--azul);
    font-weight: 700;
}

/* ===== FORM STYLES ===== */
.cal-form {
    max-width: 100%;
    margin: 0;
}

.cal-form-group {
    margin-bottom: 20px;
}

.cal-form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-sizing: border-box;
    color: var(--azul);
}

.cal-form-input:focus {
    outline: none;
    border-color: var(--eblue);
    background: #f8f9fa;
    box-shadow: 0 0 0 4px rgba(0, 117, 255, 0.1);
    transform: translateY(-1px);
}

.cal-form-input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

/* ===== BOOKING NAVIGATION ===== */
.cal-navigation {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-top: 24px;
    flex-wrap: wrap;
}

.cal-nav-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.2);
}

.cal-nav-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(108, 117, 125, 0.3);
}

.cal-nav-cta {
    background: linear-gradient(135deg, var(--eblue) 0%, var(--azul) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 2;
    min-width: 160px;
    box-shadow: 0 4px 16px rgba(0, 117, 255, 0.2);
}

.cal-nav-cta:hover {
    background: linear-gradient(135deg, var(--azul) 0%, var(--eblue) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 117, 255, 0.3);
}

.cal-nav-cta:active {
    transform: translateY(-1px) scale(0.98);
}

/* ===== DEPOSIT STYLES ===== */
.cal-deposit-wrapper {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.15);
}

.cal-deposit-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.cal-deposit-info i {
    color: #856404;
    font-size: 1.5rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.cal-deposit-info p {
    margin: 0;
    color: #856404;
    font-weight: 500;
    line-height: 1.6;
}

.cal-deposit-summary {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    border-left: 4px solid #ffc107;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.1);
}

.cal-deposit-summary p {
    margin: 8px 0;
    font-size: 1.1rem;
    color: var(--azul);
    font-weight: 600;
}

.cal-deposit-note {
    font-style: italic;
    color: #856404;
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .cal-flip-container {
        min-height: 500px;
        margin: 16px 0;
    }
    
    .cal-flipper {
        height: fit-content;
        max-height: 500px;
    }
    
    .cal-front, .cal-back {
        min-height:fit-content;
        padding: 16px;
    }
    
    .cal-header {
        padding: 12px 6px;
        color: snow;
    }

    
    
    .cal-nav-button {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .cal-month-year {
        font-size: 1.2rem;
    }
    
    .cal-grid {
        gap: 4px;
    }
    
    .cal-day-cell {
        min-height: 32px;
        font-size: 0.8rem;
    }
    
    .cal-day-name {
        font-size: 0.75rem;
        padding: 6px 2px;
    }
    
    .cal-timeslots-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
        min-height: 180px;
        max-height: 280px;
        overflow-y: auto;
    }
    
    .cal-timeslot {
        padding: 12px 8px;
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    .cal-navigation {
        flex-direction: column;
        gap: 12px;
    }
    
    .cal-nav-secondary,
    .cal-nav-cta {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cal-component {
        gap: 12px;
    }
    
    .cal-header {
        padding: 10px 4px;
    }
    
    .cal-nav-button {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .cal-month-year {
        font-size: 1rem;
    }
    
    .cal-grid {
        gap: 2px;
    }
    
    .cal-day-cell {
        min-height: 28px;
        font-size: 0.75rem;
        border-radius: 8px;
    }
    
    .cal-days-header {
        padding: 8px 0;
        margin-bottom: 6px;
    }
    
    .cal-day-name {
        font-size: 0.7rem;
        padding: 4px 1px;
    }
    
    .cal-timeslots-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 6px;
        max-height: 200px;
        overflow:scroll;
    }
    
    .cal-timeslot {
        padding: 10px 6px;
        font-size: 0.8rem;
        min-height: 36px;
        border-radius: 8px;
    }
}