/* Studio Booking Calendar - Frontend Styles */

/* General */
.sbc-booking-wizard {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
}

/* Steps Indicator */
.sbc-steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.sbc-steps-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.sbc-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.sbc-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.sbc-step.active .sbc-step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.1);
}

.sbc-step.completed .sbc-step-number {
    background: #4caf50;
    color: white;
}

.sbc-step-label {
    font-size: 12px;
    color: #999;
    text-align: center;
}

.sbc-step.active .sbc-step-label {
    color: #667eea;
    font-weight: 600;
}

/* Wizard Content */
.sbc-wizard-content {
    min-height: 400px;
}

.sbc-wizard-step h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

/* Studio Cards */
.sbc-studios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.sbc-studio-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.sbc-studio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
}

.sbc-studio-card .sbc-studio-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.sbc-studio-card h3 {
    font-size: 24px;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.sbc-select-studio {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.sbc-select-studio:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

/* Selected Studio Info */
.sbc-selected-studio-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    font-size: 18px;
    font-weight: 500;
}

.sbc-selected-studio-info i {
    font-size: 24px;
}

.sbc-selected-info {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.sbc-info-item {
    background: #f5f5f5;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sbc-info-item i {
    color: #667eea;
    font-size: 20px;
}

/* Duration Selector */
.sbc-duration-selector {
    max-width: 600px;
    margin: 0 auto;
}

.sbc-duration-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.sbc-duration-btn {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

.sbc-duration-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.sbc-duration-btn.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.sbc-custom-duration-input {
    margin-top: 20px;
    text-align: center;
}

.sbc-custom-duration-input input {
    width: 150px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
}

/* Date and Time Selection */
.sbc-datetime-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .sbc-datetime-container {
        grid-template-columns: 1fr;
    }
}

.sbc-calendar-container,
.sbc-time-container {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

.sbc-datetime-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
}

#sbc-calendar {
    background: white;
    padding: 15px;
    border-radius: 8px;
}

#sbc-time-slots {
    max-height: 400px;
    overflow-y: auto;
}

.sbc-time-slot {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sbc-time-slot:hover:not(.disabled) {
    border-color: #667eea;
    background: #f8f9ff;
}

.sbc-time-slot.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.sbc-time-slot.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

/* Booking Summary */
.sbc-booking-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.sbc-booking-summary h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.sbc-summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 16px;
}

.sbc-summary-item i {
    font-size: 20px;
    width: 25px;
}

/* Form */
.sbc-form-group {
    margin-bottom: 20px;
}

.sbc-form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.sbc-form-group label i {
    color: #667eea;
}

.sbc-form-group input,
.sbc-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.sbc-form-group input:focus,
.sbc-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.sbc-field-description {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* Wizard Actions */
.sbc-wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.sbc-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sbc-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sbc-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.sbc-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sbc-btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.sbc-btn-secondary:hover {
    background: #e0e0e0;
}

/* Success Message */
.sbc-success-message {
    text-align: center;
    padding: 40px;
}

.sbc-success-icon {
    font-size: 80px;
    color: #4caf50;
    margin-bottom: 20px;
}

.sbc-success-message h2 {
    color: #4caf50;
    margin-bottom: 15px;
}

.sbc-confirmation-details {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    margin: 30px auto;
    max-width: 500px;
    text-align: left;
}

.sbc-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

/* Loading Overlay */
.sbc-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    z-index: 1000;
}

.sbc-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .sbc-booking-wizard {
        padding: 20px;
    }
    
    .sbc-steps-indicator {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .sbc-step-label {
        font-size: 10px;
    }
    
    .sbc-wizard-actions {
        flex-direction: column;
    }
    
    .sbc-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Estilos para imágenes de estudios */
.sbc-studio-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
}

.sbc-studio-img-small {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 10px;
    vertical-align: middle;
}

.sbc-selected-studio-info img.sbc-studio-img-small {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

/* Ajustes para tarjetas de estudio con imágenes */
.sbc-studio-card .sbc-studio-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

/* Resumen con imágenes */
.sbc-booking-summary img.sbc-studio-img-small,
.sbc-confirmation-details img.sbc-studio-img-small {
    display: inline-block;
}

/* Descripción en tarjetas de estudio */
.sbc-studio-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 12px 0;
    padding: 0 15px;
    text-align: center;
    min-height: 40px;
}

/* Ajustar tarjetas con descripción */
.sbc-studio-card {
    display: flex;
    flex-direction: column;
    min-height: auto;
}

.sbc-studio-card h3 {
    margin-bottom: 8px;
}

/* Precio en resumen */
.sbc-summary-price {
    border-top: 2px solid #e0e0e0;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 16px;
}

.sbc-summary-price .sbc-price-amount {
    color: #667eea;
    font-size: 18px;
}

.sbc-summary-price .sbc-price-amount strong {
    font-weight: 700;
}

/* Estilos para indicadores en calendario */
.sbc-calendar-date {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 50px;
}

.sbc-date-number {
    font-size: 15px;
    font-weight: 500;
}

.sbc-date-indicator {
    font-size: 11px;
    color: #dc3545;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.sbc-calendar-date.closed {
    background-color: #ffe6e6 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    position: relative;
}

.sbc-calendar-date.closed:hover {
    background-color: #ffcccc !important;
    transform: none !important;
}

.sbc-calendar-date.disabled .sbc-date-indicator {
    display: none;
}

.sbc-calendar-date.closed .sbc-date-indicator {
    color: #dc3545;
}

.sbc-calendar-date.closed.disabled {
    background-color: #f5f5f5 !important;
}

/* ========================================
   ESTILOS PARA ESPACIOS AGRUPADOS (v3.10.0)
   ======================================== */

.sbc-grouped-card {
    border: 2px solid #FFC107;
    background: linear-gradient(to bottom, #fffbef 0%, white 50%);
    position: relative;
}

.sbc-grouped-card:hover {
    border-color: #FF9800;
    box-shadow: 0 6px 20px rgba(255,152,0,0.3) !important;
}

.sbc-grouped-badge {

/* ========================================
   ESTILOS PARA PASO DE PAGO (v3.11.2)
   ======================================== */

.sbc-payment-section {
    margin: 30px 0;
}

.sbc-payment-amount {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
}

.sbc-payment-amount h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 500;
    opacity: 0.9;
}

.sbc-amount-display {
    font-size: 48px;
    font-weight: bold;
    margin: 10px 0;
}

.sbc-currency {
    font-size: 32px;
}

.sbc-payment-type-description {
    margin: 10px 0 0 0;
    font-size: 14px;
    opacity: 0.9;
}

.sbc-stripe-element-container {
    margin: 20px 0;
}

.sbc-stripe-element-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

#sbc-stripe-card-element {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    transition: border-color 0.3s;
}

#sbc-stripe-card-element:focus-within {
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.sbc-error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
    min-height: 20px;
}

.sbc-payment-info {
    background: #f0f7ff;
    border-left: 4px solid #2196F3;
    padding: 15px;
    margin: 20px 0;
    border-radius: 6px;
}

.sbc-payment-info p {
    margin: 5px 0;
    font-size: 14px;
}

.sbc-small-text {
    font-size: 12px !important;
    color: #666;
}

#sbc-payment-processing {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    color: white;
}

.sbc-loader {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: sbc-spin 1s linear infinite;
}

@keyframes sbc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#sbc-confirm-payment:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   PÁGINA DE CONFIRMACIÓN CON PAGO (v3.12.0)
   ======================================== */

.sbc-email-notice {
    color: #666;
    font-size: 14px;
    margin: 10px 0 20px 0;
}

.sbc-confirmation-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.sbc-confirmation-details h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
}

.sbc-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.sbc-detail-item i {
    color: #2196F3;
    width: 20px;
}

.sbc-detail-item strong {
    min-width: 100px;
    color: #666;
}

.sbc-payment-option {
    margin: 30px 0;
}

.sbc-payment-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    color: white;
}

.sbc-payment-box h3 {
    margin: 0 0 20px 0;
    color: white;
    font-size: 20px;
}

.sbc-payment-amount-box {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.sbc-amount-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.sbc-amount-value {
    font-size: 42px;
    font-weight: bold;
    margin: 10px 0;
}

.sbc-amount-description {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 10px;
}

.sbc-payment-description {
    text-align: center;
    margin: 20px 0;
    font-size: 14px;
    opacity: 0.95;
}

.sbc-payment-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.sbc-btn-large {
    padding: 15px 30px;
    font-size: 16px;
}

#sbc-pay-now {
    background: white;
    color: #667eea;
    font-weight: bold;
}

#sbc-pay-now:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

#sbc-pay-later {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

#sbc-pay-later:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

#sbc-new-booking-btn {
    margin-top: 30px;
}

@media (max-width: 768px) {
    .sbc-payment-box {
        padding: 20px;
    }
    
    .sbc-amount-value {
        font-size: 32px;
    }
}
