/* colores tableta*/
:root {
    --primary-blue: #2C3E50;    
    --accent-gold: #D4AF37;       
    --secondary-teal: #1ABC9C;    
    --light-bg: #F8F9FA;          
    --text-dark: #2C3E50;        
    --text-light: #7F8C8D;        
    --success-green: #27AE60;     
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* estilos generales*/
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    padding: 20px 0;
}

#main-card {
    border-radius: 24px;
    overflow: hidden;
    border: none;
    background: white;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

#main-card:hover {
    transform: translateY(-5px);
}
.header-gradient {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #34495E 100%) !important;
    position: relative;
    overflow: hidden;
}

.header-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

/* Logo no sabia que poner*/
.restaurant-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #F1C40F 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin-right: 20px;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}
.horarios-container {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-top: 10px;
}

.horarios-icon {
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.horarios-icon i {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.horarios-title {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    font-size: 1.1rem;
}

.horarios-badge {
    background: rgba(212, 175, 55, 0.3);
    color: white;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.horarios-text {
    color: white;
    font-weight: 500;
}

.horarios-separator {
    color: rgba(255,255,255,0.8);
    margin: 0 12px;
}

.horarios-reserva {
    color: rgba(255,255,255,0.95);
    font-weight: 500;
}

/* titulos */
.section-title {
    color: var(--primary-blue);
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold) 0%, var(--secondary-teal) 100%);
    border-radius: 2px;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--secondary-teal) 0%, #16A085 100%);
    color: white;
    border-radius: 12px;
    margin-right: 15px;
    font-size: 1.4rem;
    box-shadow: 0 5px 15px rgba(26, 188, 156, 0.2);
}
.table-card {
    height: 100%;
    border: 2px solid #E8EDF2;
    border-radius: 18px;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.table-card:hover {
    border-color: var(--secondary-teal);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(26, 188, 156, 0.15);
}

.table-card.selected {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, #FFFDF6 0%, #FFF 100%);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.15);
}

.table-card-header {
    padding: 20px;
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
    border-bottom: 1px solid #E8EDF2;
}

.table-card-header i {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.table-card-body {
    padding: 20px;
}

.table-capacity {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.table-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.table-features {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.table-features li {
    padding: 5px 0;
    color: var(--text-light);
    font-size: 0.9rem;
    position: relative;
    padding-left: 20px;
}

.table-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: bold;
}

/* estrellas*/
.rating-stars {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-top: 5px;
}
.card-check {
    padding: 10px 15px;
    border: 1px solid #E8EDF2;
    border-radius: 10px;
    transition: var(--transition);
}

.card-check:hover {
    border-color: var(--secondary-teal);
    background-color: #F8F9FA;
}

.form-check-input:checked {
    background-color: var(--secondary-teal);
    border-color: var(--secondary-teal);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(26, 188, 156, 0.25);
}
.alert-special {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF 100%);
    border: 1px solid #FFEAA7;
    border-left: 4px solid var(--accent-gold);
    border-radius: 12px;
    color: #856404;
}
.summary-card {
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
    border-radius: 18px;
    border: 1px solid #E8EDF2;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-gold) 0%, var(--secondary-teal) 100%);
}
.btn-reserve {
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--secondary-teal) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    padding: 16px 32px;
    position: relative;
    overflow: hidden;
}

.btn-reserve::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-reserve:hover {
    background: linear-gradient(90deg, var(--secondary-teal) 0%, var(--primary-blue) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(44, 62, 80, 0.2);
}

.btn-reserve:hover::before {
    left: 100%;
}

/* campos del formulario */
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #DCE1E6;
    padding: 12px 15px;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-teal);
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.15);
}

.input-group-text {
    background-color: #F8F9FA;
    border: 1px solid #DCE1E6;
    border-right: none;
    color: var(--primary-blue);
}

/* alerta para avisar error */
#errorAlert {
    border-left: 4px solid #dc3545;
}

/* estado cerrado/abierto */
#estadoRestaurante {
    margin: 10px 0;
}

#estadoRestaurante .alert {
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: fadeIn 0.5s ease;
    border-radius: 20px;
    display: inline-block;
    padding: 8px 20px;
    margin-bottom: 5px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* bton para redes  */
.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* horarios */
optgroup {
    font-weight: 600;
}

optgroup[label="Cena"], optgroup[label="Horario Nocturno"] {
    border-top: 1px solid #dee2e6;
    padding-top: 5px;
}

optgroup[label="Horario Nocturno"] option {
    color: #6c757d;
    font-style: italic;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .restaurant-logo {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-right: 15px;
    }
    
    .table-card {
        margin-bottom: 20px;
    }
    
    .btn-reserve {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .horarios-container {
        padding: 15px;
    }
    
    .horarios-icon {
        width: 35px;
        height: 35px;
        margin-right: 12px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .section-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-right: 12px;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-outline-light {
        align-self: flex-start;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    #main-card {
        border-radius: 16px;
    }
    
    .card-header, .card-body {
        padding: 20px !important;
    }
    
    .horarios-container .d-flex {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .horarios-icon {
        margin-bottom: 10px;
    }
    
    .horarios-separator {
        display: none;
    }
    
    .horarios-text {
        display: block;
        margin-bottom: 5px;
    }
}