
/**
 * ============================================
 * CHOCO'S RESTAURANTE - ESTILOS GLOBALES
 * Sistema completo de gestión de restaurante
 * ============================================
 */

/* ============================================
   VARIABLES CSS
   ============================================ */
:root {
    --primary-color: #dc3545;
    --primary-dark: #c82333;
    --secondary-color: #667eea;
    --secondary-dark: #764ba2;
    --dark-bg: #2d3748;
    --light-bg: #f8f9fa;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --border-color: #e2e8f0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
}

/* ============================================
   RESET Y CONFIGURACIÓN GENERAL
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #ffffff;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   NAVBAR PERSONALIZADO
   ============================================ */
.navbar {
    padding: 15px 0;
    backdrop-filter: blur(10px);
    background-color: rgba(33, 37, 41, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    margin: 0 5px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(220, 53, 69, 0.2);
    transform: translateY(-2px);
}

.navbar .btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.navbar .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 10px;
    margin-top: 10px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 15px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    transform: translateX(5px);
}

.dropdown-divider {
    margin: 8px 0;
}

/* ============================================
   HERO SECTION - CARRUSEL
   ============================================ */
.hero-section {
    margin-top: 70px;
    position: relative;
}

.carousel-item {
    height: 600px;
    position: relative;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.7);
}

.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.carousel-caption h2 {
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.carousel-caption p {
    font-size: 1.3rem;
    animation: fadeInUp 1s ease;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(220, 53, 69, 0.8);
    border-radius: 50%;
    padding: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */
section {
    padding: 80px 0;
}

.section-title {
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* ============================================
   MENÚ DE PLATOS
   ============================================ */
#menu {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-body {
    padding: 25px;
}

.card-title {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card-text {
    color: var(--text-secondary);
    margin-bottom: 15px;
    min-height: 60px;
}

.price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}

/* ============================================
   GALERÍA
   ============================================ */
#galeria {
    background-color: var(--light-bg);
}

.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    height: 300px;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.galeria-item:hover img {
    transform: scale(1.2);
}

.galeria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(220, 53, 69, 0.8), rgba(102, 126, 234, 0.8));
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.galeria-item:hover .galeria-overlay {
    opacity: 1;
}

.galeria-overlay i {
    color: white;
    font-size: 3rem;
}

/* ============================================
   RESERVAS
   ============================================ */
#reservas {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

#reservas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect fill="rgba(255,255,255,0.05)" width="50" height="50"/></svg>');
    opacity: 0.3;
}

.reservas-header {
    text-align: center;
    color: white;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.reservas-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.reserva-card {
    background: white;
    border-radius: 25px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.15);
    overflow: hidden;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.reserva-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 90px rgba(0,0,0,0.2);
}

.reserva-imagen {
    height: 100%;
    min-height: 500px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)),
                url('../assets/img/restaurante-interior.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.reserva-form {
    padding: 50px 40px;
}

.form-reserva-titulo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.form-reserva-titulo i {
    color: var(--primary-color);
    font-size: 2.5rem;
}

/* ============================================
   FORMULARIOS
   ============================================ */
.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label i {
    color: var(--primary-color);
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.form-control.is-valid {
    border-color: var(--success-color);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* ============================================
   BOTONES PERSONALIZADOS
   ============================================ */
.btn-primary-custom {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-primary-custom:hover {
    background: linear-gradient(45deg, var(--primary-dark), #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.btn-secondary-custom {
    background: linear-gradient(45deg, var(--secondary-color), var(--secondary-dark));
    border: none;
    color: white;
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 12px;
    transition: var(--transition);
}

.btn-secondary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* ============================================
   CONTACTO
   ============================================ */
#contacto {
    background: var(--light-bg);
}

.contacto-info {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 15px;
    transition: var(--transition);
}

.contacto-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-sm);
}

.contacto-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.mapa-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 450px;
}

.mapa-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 60px 0 20px;
}

.footer-section h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 25px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
    padding-left: 5px;
}

.redes-sociales a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    margin-right: 10px;
    transition: var(--transition);
}

.redes-sociales a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    margin-top: 40px;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* ============================================
   ALERTAS PERSONALIZADAS
   ============================================ */
.alert-custom {
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: var(--shadow-sm);
}

/* ============================================
   PERFIL DE USUARIO
   ============================================ */
.perfil-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: 40px;
    margin-bottom: 30px;
}

.perfil-header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.perfil-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 3rem;
    color: white;
    box-shadow: var(--shadow-md);
}

/* ============================================
   PEDIDOS
   ============================================ */
.pedido-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.pedido-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.estado-pedido {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.estado-pendiente {
    background: #fff3cd;
    color: #856404;
}

.estado-preparando {
    background: #d1ecf1;
    color: #0c5460;
}

.estado-enviado {
    background: #d4edda;
    color: #155724;
}

.estado-entregado {
    background: #28a745;
    color: white;
}

.estado-cancelado {
    background: #f8d7da;
    color: #721c24;
}

/* ============================================
   LOADING Y ANIMACIONES
   ============================================ */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .reserva-imagen {
        min-height: 300px;
    }
    
    .reserva-form {
        padding: 30px 20px;
    }
    
    .form-reserva-titulo {
        font-size: 1.5rem;
    }
    
    .contacto-item {
        flex-direction: column;
        text-align: center;
    }
    
    .perfil-card {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .reservas-header h2 {
        font-size: 2rem;
    }
    
    .form-reserva-titulo {
        flex-direction: column;
        gap: 10px;
    }
}

/* ============================================
   UTILIDADES
   ============================================ */
.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

.border-gradient {
    border: 3px solid;
    border-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) 1;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 1000;
}

#scrollTopBtn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

#scrollTopBtn.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

/* ============================================
   PARA BAJAR UN POCO LA DIMENSION DE LA CARD
   ============================================ */
.card {
    margin-top: 3rem;
}

