/**
 * Estilos mejorados del frontend para el sistema de reservas
 * Diseño moderno, accesible y responsive
 */

/* Variables CSS para fácil personalización */
:root {
    --rb-primary-color: #b8860b;
    --rb-primary-hover: #9a7209;
    --rb-secondary-color: #1e4c74;
    --rb-secondary-hover: #2a5d8a;
    --rb-success-color: #28a745;
    --rb-error-color: #dc3545;
    --rb-text-color: #333;
    --rb-text-light: #666;
    --rb-bg-light: #f8f9fa;
    --rb-border-color: #e0e0e0;
    --rb-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --rb-shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --rb-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --rb-radius: 12px;
    --rb-radius-small: 8px;
}

/* Container principal */
.rb-booking-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: relative;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Steps */
.rb-step {
    min-height: 350px;
    animation: fadeIn 0.5s ease-out;
    background: white;
    border-radius: var(--rb-radius);
    box-shadow: var(--rb-shadow);
    padding: 40px 30px;
    margin-bottom: 20px;
    overflow-x: hidden;
}

/* Forzar que el contenedor principal no se desborde */
#rb-step-2 {
    max-width: 100%;
    box-sizing: border-box;
}

.rb-step h3 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--rb-secondary-color);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Selector de personas */
.rb-persons-selector {
    text-align: center;
    margin: 50px 0;
}

.rb-persons-select {
    width: 100%;
    max-width: 350px;
    padding: 18px 20px;
    font-size: 18px;
    border: 2px solid var(--rb-border-color);
    border-radius: var(--rb-radius-small);
    background: white;
    cursor: pointer;
    transition: var(--rb-transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 50px;
}

.rb-persons-select:hover {
    border-color: var(--rb-primary-color);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.rb-persons-select:focus {
    outline: none;
    border-color: var(--rb-primary-color);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.2);
}

/* Calendario inline siempre visible - CORREGIDO */
.rb-calendar-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    padding: 0 20px; /* Añadir padding lateral */
}

#rb-inline-calendar {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 20px; /* Reducir padding interno */
    border: 2px solid #e1e5e9;
    max-width: 320px; /* Reducir ancho máximo */
    width: 100%;
    box-sizing: border-box; /* Importante para el cálculo correcto */
}

/* Estilos jQuery UI datepicker inline */
#rb-inline-calendar .ui-datepicker {
    border: none;
    box-shadow: none;
    background: transparent;
    width: 100%;
    font-family: inherit;
}

#rb-inline-calendar .ui-datepicker-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

#rb-inline-calendar .ui-datepicker-title {
    color: white;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
}

#rb-inline-calendar .ui-datepicker-prev,
#rb-inline-calendar .ui-datepicker-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#rb-inline-calendar .ui-datepicker-prev {
    left: 10px;
}

#rb-inline-calendar .ui-datepicker-next {
    right: 10px;
}

#rb-inline-calendar .ui-datepicker-prev:hover,
#rb-inline-calendar .ui-datepicker-next:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.05);
}

/* Tabla del calendario más compacta */
#rb-inline-calendar .ui-datepicker-calendar {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px; /* Reducir espacio entre celdas */
    table-layout: fixed; /* Forzar distribución equitativa */
}

#rb-inline-calendar .ui-datepicker-calendar thead th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 8px 4px; /* Reducir padding */
    text-align: center;
    border-radius: 6px;
    font-size: 12px;
    text-transform: uppercase;
    width: 14.28%; /* Misma distribución que las celdas */
    box-sizing: border-box;
}

#rb-inline-calendar .ui-datepicker-calendar td {
    border: none;
    padding: 0;
    text-align: center;
    width: 14.28%; /* 100% / 7 días = distribución equitativa */
}

#rb-inline-calendar .ui-datepicker-calendar td a {
    display: block;
    padding: 8px 4px; /* Reducir padding horizontal */
    text-align: center;
    border-radius: 6px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 16px; /* Reducir altura mínima */
    line-height: 1;
    font-size: 14px;
    box-sizing: border-box;
}

#rb-inline-calendar .ui-datepicker-calendar td a:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
    border-color: #5a67d8;
}

#rb-inline-calendar .ui-datepicker-calendar td.ui-datepicker-today a {
    background: #28a745;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

#rb-inline-calendar .ui-datepicker-calendar td.ui-datepicker-current-day a,
#rb-inline-calendar .ui-datepicker-calendar td a.ui-state-active {
    background: #667eea;
    color: white;
    transform: scale(1.1);
    border-color: #5a67d8;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Días no disponibles */
#rb-inline-calendar .ui-datepicker-calendar td.rb-disabled-date a {
    background: #f8d7da !important;
    color: #721c24 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    pointer-events: none;
}

#rb-inline-calendar .ui-datepicker-calendar td.rb-disabled-date a:hover {
    transform: none !important;
    background: #f8d7da !important;
}

/* Días disponibles */
#rb-inline-calendar .ui-datepicker-calendar td.rb-available-date a {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

#rb-inline-calendar .ui-datepicker-calendar td.rb-available-date a:hover {
    background: #667eea;
    color: white;
    border-color: #5a67d8;
}

/* Días de otros meses */
#rb-inline-calendar .ui-datepicker-other-month a {
    color: #6c757d !important;
    background: transparent !important;
    pointer-events: none;
    opacity: 0.3;
}

/* Calendario mejorado - fallback para datepicker normal */
.rb-datepicker {
    width: 100%;
    max-width: 350px;
    padding: 18px 20px;
    font-size: 18px;
    border: 2px solid var(--rb-border-color);
    border-radius: var(--rb-radius-small);
    text-align: center;
    cursor: pointer;
    transition: var(--rb-transition);
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E") no-repeat;
    background-position: right 20px center;
    padding-right: 50px;
}

.rb-datepicker:hover {
    border-color: var(--rb-primary-color);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.rb-datepicker:focus {
    outline: none;
    border-color: var(--rb-primary-color);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.2);
}

/* Contenedor principal para time slots */
#rb-time-slots {
    display: block !important;
    max-width: 600px !important;
    margin: 20px auto !important;
    padding: 0 20px !important;
}

#rb-time-slots h4 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--rb-secondary-color);
    font-size: 20px;
    font-weight: 600;
}

/* Panel de información ARRIBA */
.rb-date-info {
    background: rgba(30, 76, 116, 0.05) !important;
    border-left: 4px solid var(--rb-secondary-color) !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-bottom: 30px !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.rb-date-info h5 {
    color: var(--rb-secondary-color) !important;
    margin: 0 0 8px 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

.rb-date-info p {
    color: var(--rb-text-light) !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-style: italic !important;
}

/* Secciones de comida */
.rb-meal-section {
    margin-bottom: 40px !important;
}

.rb-meal-section:last-child {
    margin-bottom: 0 !important;
}

.rb-meal-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    margin: 0 0 20px 0 !important;
    padding: 15px 20px !important;
    border-radius: 8px !important;
    text-align: center !important;
    color: white !important;
}

/* Título de comida - color dorado con gradiente */
.rb-lunch-title {
    background: linear-gradient(135deg, #CC9913 0%, #B8860B 100%) !important;
    color: white !important;
    box-shadow: 0 2px 10px rgba(204, 153, 19, 0.4) !important;
}

/* Título de cena - mismo color dorado con ligera variación */
.rb-dinner-title {
    background: linear-gradient(135deg, #CC9913 0%, #D4A017 100%) !important;
    color: white !important;
    box-shadow: 0 2px 10px rgba(204, 153, 19, 0.4) !important;
}

/* Efectos hover para los títulos */
.rb-meal-title:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(204, 153, 19, 0.5) !important;
    transition: all 0.3s ease !important;
}

/* Grid de botones dentro de cada sección */
.rb-meal-section .rb-time-slots {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important; /* 3 columnas */
    gap: 12px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Asegurar que rb-time-slots (tu clase existente) funcione dentro del contenedor */
#rb-time-slots .rb-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    max-width: 550px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Time slots mejorados */
.rb-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    max-width: 550px;
    margin: 0 auto;
    padding: 20px 0;
}

.rb-time-slot {
    background: linear-gradient(135deg, var(--rb-secondary-color) 0%, #2a5d8a 100%);
    color: white;
    border: none;
    padding: 18px 15px;
    border-radius: var(--rb-radius-small);
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--rb-transition);
    position: relative;
    overflow: hidden;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

.rb-time-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.rb-time-slot:hover::before {
    left: 0;
}

.rb-time-slot:hover {
    transform: translateY(-3px);
    box-shadow: var(--rb-shadow-hover);
}

.rb-time-slot:active {
    transform: translateY(-1px);
}

.rb-time-slot:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

.rb-time-slot:disabled::before {
    display: none;
}

.rb-time-slot.selected {
    background: linear-gradient(135deg, var(--rb-primary-color) 0%, #d4a017 100%);
    animation: pulse 0.5s ease;
}

.rb-time-slot.selected::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 14px;
    font-weight: bold;
}

/* Información de disponibilidad para los slots */
.rb-time-slot .rb-slot-availability {
    display: block;
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.8;
}

.rb-time-slot:disabled .rb-slot-availability {
    display: none;
}

/* Estilos específicos para botones de comida */
.rb-lunch-slot {
    /* Puedes añadir estilos específicos si quieres diferente color */
}

.rb-dinner-slot {
    /* Puedes añadir estilos específicos si quieres diferente color */
}

/* Formulario mejorado */
.rb-booking-form {
    max-width: 500px;
    margin: 0 auto;
    animation: slideIn 0.4s ease-out;
}

.rb-form-group {
    margin-bottom: 25px;
    position: relative;
}

.rb-form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--rb-secondary-color);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.rb-form-group input[type="text"],
.rb-form-group input[type="email"],
.rb-form-group input[type="tel"],
.rb-form-group textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid var(--rb-border-color);
    border-radius: var(--rb-radius-small);
    font-size: 16px;
    transition: var(--rb-transition);
    background: white;
}

.rb-form-group input:focus,
.rb-form-group textarea:focus {
    outline: none;
    border-color: var(--rb-primary-color);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.rb-form-group input.error,
.rb-form-group textarea.error {
    border-color: var(--rb-error-color);
}

.rb-form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    background: #fff;
}

/* Placeholder animado */
.rb-form-group input::placeholder,
.rb-form-group textarea::placeholder {
    color: #999;
    transition: opacity 0.3s ease;
}

.rb-form-group input:focus::placeholder,
.rb-form-group textarea:focus::placeholder {
    opacity: 0.5;
}

/* Terms checkbox mejorado */
.rb-terms {
    margin: 30px 0;
}

.rb-terms label {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    color: var(--rb-text-light);
    cursor: pointer;
    line-height: 1.5;
}

.rb-terms input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    margin-top: 0;
    cursor: pointer;
    position: relative;
    -webkit-appearance: none;
    appearance: none;
    border: 2px solid var(--rb-border-color);
    border-radius: 4px;
    transition: var(--rb-transition);
    flex-shrink: 0;
}

.rb-terms input[type="checkbox"]:checked {
    background: var(--rb-primary-color);
    border-color: var(--rb-primary-color);
}

.rb-terms input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 0;
    left: 4px;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Botones mejorados */
.rb-btn {
    padding: 16px 35px;
    border: none;
    border-radius: var(--rb-radius-small);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--rb-transition);
    margin: 5px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rb-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.rb-btn:active::before {
    width: 300px;
    height: 300px;
}

.rb-btn-primary {
    background: linear-gradient(135deg, var(--rb-primary-color) 0%, #d4a017 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

.rb-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.4);
}

.rb-btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    color: white;
}

.rb-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.rb-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.rb-btn-submit {
    width: 100%;
    margin-top: 30px;
    padding: 18px;
    font-size: 18px;
}

.rb-btn-back {
    background: transparent;
    color: var(--rb-primary-color);
    border: 2px solid var(--rb-primary-color);
    padding: 10px 25px;
    margin-bottom: 25px;
    text-transform: none;
}

.rb-btn-back:hover {
    background: var(--rb-primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

/* Confirmación mejorada */
.rb-confirmation {
    text-align: center;
    padding: 50px;
    animation: fadeIn 0.6s ease-out;
}

.rb-success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--rb-success-color) 0%, #22a03d 100%);
    color: white;
    font-size: 50px;
    line-height: 100px;
    border-radius: 50%;
    margin: 0 auto 30px;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
    animation: pulse 1s ease infinite;
}

.rb-confirmation h3 {
    color: var(--rb-success-color);
    margin-bottom: 20px;
    font-size: 28px;
}

.rb-confirmation-message {
    font-size: 18px;
    color: var(--rb-text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Loader mejorado */
.rb-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.rb-spinner {
    width: 60px;
    height: 60px;
    position: relative;
}

.rb-spinner::before,
.rb-spinner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--rb-primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.rb-spinner::after {
    border-top-color: var(--rb-secondary-color);
    animation-delay: 0.5s;
}

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

/* Mensajes de error/éxito */
.rb-message {
    padding: 15px 20px;
    border-radius: var(--rb-radius-small);
    margin: 20px 0;
    animation: slideIn 0.4s ease-out;
}

.rb-message-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--rb-success-color);
    border-left: 4px solid var(--rb-success-color);
}

.rb-message-error {
    background: rgba(220, 53, 69, 0.1);
    color: var(--rb-error-color);
    border-left: 4px solid var(--rb-error-color);
}

/* jQuery UI Datepicker personalización moderna */
.ui-datepicker {
    background: white;
    border: none;
    border-radius: var(--rb-radius);
    box-shadow: var(--rb-shadow-hover);
    padding: 20px;
    font-family: inherit;
}

.ui-datepicker-header {
    background: var(--rb-secondary-color);
    color: white;
    border: none;
    border-radius: var(--rb-radius-small);
    padding: 15px;
    margin-bottom: 15px;
}

.ui-datepicker-title {
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    top: 15px;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.ui-datepicker-prev span,
.ui-datepicker-next span {
    color: white;
}

.ui-datepicker-calendar {
    width: 100%;
}

.ui-datepicker td {
    padding: 5px;
}

.ui-state-default {
    background: none;
    border: none;
    color: var(--rb-text-color);
    text-align: center;
    padding: 8px;
    border-radius: var(--rb-radius-small);
    transition: var(--rb-transition);
}

.ui-state-default:hover {
    background: var(--rb-bg-light);
}

.ui-state-active {
    background: var(--rb-primary-color);
    color: white;
    font-weight: 600;
}

.ui-state-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ui-state-disabled:hover {
    background: none;
}

/* Animación de entrada para elementos */
.rb-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.rb-slide-in {
    animation: slideIn 0.4s ease-out;
}

/* Tooltips */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

[data-tooltip]:hover::after {
    opacity: 1;
}

/* Responsive mejorado */
@media (max-width: 768px) {
    .rb-booking-container {
        padding: 20px 15px;
    }
    
    .rb-step {
        padding: 30px 20px;
    }
    
    .rb-step h3 {
        font-size: 22px;
        margin-bottom: 30px;
    }
    
    .rb-time-slots {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .rb-meal-section .rb-time-slots {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .rb-time-slot {
        font-size: 15px;
        padding: 15px 10px;
    }
    
    .rb-btn {
        font-size: 14px;
        padding: 14px 25px;
    }
    
    .rb-btn-submit {
        font-size: 16px;
    }
    
    .rb-calendar-container {
        padding: 0 15px;
    }
    
    #rb-inline-calendar {
        padding: 15px 10px;
        max-width: 280px;
    }
    
    #rb-inline-calendar .ui-datepicker-calendar td a {
        padding: 6px 2px;
        font-size: 13px;
        min-height: 14px;
    }
    
    #rb-inline-calendar .ui-datepicker-calendar thead th {
        padding: 6px 2px;
        font-size: 11px;
    }
    
    .rb-meal-title {
        font-size: 18px !important;
        padding: 12px 15px !important;
    }
    
    .rb-time-slot {
        padding: 14px 6px !important;
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    .rb-time-slots {
        grid-template-columns: 1fr;
    }
    
    .rb-meal-section .rb-time-slots {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    
    .rb-persons-select,
    .rb-datepicker {
        font-size: 16px;
        padding: 15px 18px;
    }
    
    .rb-form-group input,
    .rb-form-group textarea {
        font-size: 16px;
        padding: 12px 15px;
    }
    
    .rb-calendar-container {
        padding: 0 10px;
    }
    
    #rb-inline-calendar {
        padding: 12px 8px;
        max-width: 260px;
    }
    
    #rb-inline-calendar .ui-datepicker-calendar td a {
        padding: 5px 1px;
        font-size: 12px;
        min-height: 12px;
    }
    
    #rb-inline-calendar .ui-datepicker-calendar thead th {
        padding: 5px 1px;
        font-size: 10px;
    }
    
    #rb-inline-calendar .ui-datepicker-header {
        padding: 10px;
    }
    
    .rb-meal-title {
        font-size: 16px !important;
        padding: 10px 12px !important;
    }
    
    .rb-time-slot {
        padding: 12px 6px !important;
        font-size: 14px !important;
    }
}

/* Modo oscuro (opcional) */
@media (prefers-color-scheme: dark) {
    :root {
        --rb-bg-light: #1a1a1a;
        --rb-text-color: #f0f0f0;
        --rb-border-color: #404040;
    }
    
    .rb-step {
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }
    
    .rb-form-group input,
    .rb-persons-select,
    .rb-datepicker {
        background: #fff;
        color: #000;
        border-color: #404040;
    }
    
    .rb-form-group textarea {
        background: #fff;
    }
}