/* --- Ajuste visual para calendario mensual en móvil --- */
.calendario-dia {
        max-width: 100%;
        min-height: 48px;
        height: 48px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        box-sizing: border-box;
}
.dia-comensales {
    font-size: 13px;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 8px;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .calendario-body {
        grid-template-columns: repeat(7, minmax(32px, 1fr));
        gap: 1px;
    }
    .calendario-dia {
        min-height: 32px;
        height: 32px;
        font-size: 9px;
        padding: 2px 1px;
    }
    .dia-numero {
        font-size: 11px;
    }
    .dia-comensales {
        font-size: 16px;
        font-weight: bold;
        padding: 1px 2px;
        max-width: 80%;
    }
    .calendario-dia span, .calendario-dia div {
        max-width: 80%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
/* --- Responsive y compactación para calendario mensual --- */
.calendario-dia {
        max-width: 100%;
        padding: 6px 2px;
        word-break: break-word;
        box-sizing: border-box;
}
.dia-comensales {
        font-size: 11px;
        padding: 2px 4px;
        border-radius: 8px;
        max-width: 90%;
}
.calendario-mensual {
        overflow-x: auto;
        box-sizing: border-box;
        padding: 10px;
}
@media (max-width: 900px) {
    .calendario-body {
        grid-template-columns: repeat(7, minmax(40px, 1fr));
        gap: 1px;
    }
    .calendario-dia {
        min-height: 50px;
        font-size: 10px;
        padding: 4px 1px;
    }
    .dia-numero {
        font-size: 12px;
    }
    .dia-comensales {
        font-size: 9px;
        padding: 1px 2px;
    }
}
/*
Estilo unificado y mejorado para interfaces administrativas: delivery, reservas y panel admin
Colores corporativos, diseño formal, visualización intuitiva y profesional
*/

/* Variables para los colores y fuentes principales, así cambias todo fácil desde aquí */
/* Paleta formal: blancos y grises, todo uniforme y profesional */
:root {
    --color-principal: #23272a; /* gris oscuro, base principal */
    --color-secundario: #f4f6f8; /* gris claro, fondo general */
    --color-fondo: #f8f9fa; /* fondo aún más claro para secciones */
    --color-panel: #fff; /* paneles blancos, limpio y formal */
    --color-acento: #b0b3b8; /* gris medio, para detalles y botones */
    --color-texto: #23272a; /* texto principal, bien legible */
    --color-header: #e9ecef; /* header gris claro, igual en toda la app */
    --color-borde: #d1d5db; /* bordes suaves, gris claro */
    --sombra-panel: 0 8px 32px rgba(44,62,80,0.08); /* sombra más suave */
    --radio-panel: 18px; /* bordes redondeados, más moderno */
    --fuente: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* fuente cómoda y profesional */
}

/* Fondo general y fuente para todo lo administrativo */
body, .admin-panel-container, .delivery-admin-container, .gestion-section {
    font-family: var(--fuente);
    background: var(--color-secundario); /* fondo gris claro, formal */
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Paneles principales, donde va el contenido, centrados y con sombra */
.admin-panel-content,
.delivery-admin-container,
.gestion-section .admin-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--color-panel);
    border-radius: var(--radio-panel);
    box-shadow: var(--sombra-panel);
    padding: 32px;
    overflow: hidden;
}

/* Header para todos los paneles, con fondo oscuro y texto blanco, bien visible */
/* Header formal, gris claro y texto oscuro, igual en toda la app */
.admin-header,
.delivery-header,
.gestion-header {
    background: var(--color-header);
    color: var(--color-principal);
    padding: 32px;
    border-radius: var(--radio-panel) var(--radio-panel) 0 0;
    text-align: center;
    position: relative;
    margin-bottom: 24px;
    border-bottom: 1.5px solid var(--color-borde);
}

/* Títulos grandes para que sepas dónde estás */
/* Títulos grandes, color gris oscuro para destacar */
.admin-title,
.delivery-title,
.gestion-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
    color: var(--color-principal);
}

/* Subtítulos, para aclarar la sección */
.admin-subtitle,
.delivery-subtitle,
.gestion-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Botones que llaman la atención, todos iguales para no liarse */
/* Botones formales, gris medio y texto oscuro, sin colores chillones */
.btn-admin,
.btn-delivery,
.btn-gestion,
.btn,
.btn-primary,
.btn-success,
.btn-danger,
.btn-secondary {
    background: var(--color-acento);
    color: var(--color-principal);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(44,62,80,0.08);
    transition: background 0.2s, transform 0.2s;
    margin: 4px 0;
    display: inline-block;
}
.btn-admin:hover,
.btn-delivery:hover,
.btn-gestion:hover,
.btn:hover,
.btn-primary:hover,
.btn-success:hover,
.btn-danger:hover,
.btn-secondary:hover {
    background: var(--color-borde);
    color: var(--color-principal);
    transform: translateY(-2px);
}

/* Tablas para mostrar datos, bien ordenadas y legibles */
table, .products-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
    background: var(--color-panel);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(44,62,80,0.06);
}
th, td {
    padding: 14px 12px;
    border-bottom: 1.5px solid var(--color-borde);
    text-align: left;
    font-size: 1rem;
}
th {
    background: var(--color-header);
    color: var(--color-principal);
    font-weight: 700;
}
tr:last-child td {
    border-bottom: none;
}

/* Formularios sencillos y cómodos para rellenar */
form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-principal);
    margin-bottom: 4px;
    font-size: 1rem;
    padding: 10px 12px;
    border-radius: 8px;
    /* border: 1.5px solid var(--color-borde); */
    background: var(--color-fondo);
    transition: border-color 0.2s;
}
form input:focus,
form select:focus,
form textarea:focus {
    border-color: var(--color-acento);
    outline: none;
}

/* Mensajes de alerta, para avisos y errores */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 1.1rem;
    background: var(--color-fondo);
    color: var(--color-principal);
    border-left: 6px solid var(--color-acento);
}

/* Tarjetas para mostrar estadísticas, muy visuales */
.stats-section, .quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 30px 0;
}
.stat-card, .quick-stat {
    background: var(--color-panel);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(44,62,80,0.06);
    border: 1px solid var(--color-borde);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.stat-card:hover, .quick-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(44,62,80,0.12);
}
.stat-number, .quick-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-principal);
    margin-bottom: 5px;
}
.stat-label, .quick-stat-label {
    color: var(--color-texto);
    font-size: 0.95rem;
}

/* Modal para editar o ver detalles, con fondo difuminado y centrado */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}
.modal-content {
    background: #fff;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: slideIn 0.3s;
    position: relative;
}
.modal-header {
    background: linear-gradient(135deg, var(--color-header), var(--color-principal));
    color: #fff;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    position: relative;
}
.modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}
.close {
    position: absolute;
    top: 25px;
    right: 30px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
    z-index: 1;
}
.close:hover { opacity: 1; }
.modal-body { padding: 30px; }
.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Etiquetas tipo badge para estados, colores según el tipo */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-success { background: linear-gradient(135deg, #28a745, #20c997); color: #fff; }
.badge-warning { background: linear-gradient(135deg, #ffc107, #fd7e14); color: #fff; }
.badge-danger { background: linear-gradient(135deg, #dc3545, #e83e8c); color: #fff; }

/* Responsive: para que se vea bien en móvil y tablet */
@media (max-width: 900px) {
    .admin-panel-content, .delivery-admin-container, .gestion-section .admin-container {
        padding: 12px;
    }
    th, td {
        padding: 8px 6px;
    }
    .stats-section {
        grid-template-columns: 1fr 1fr;
        padding: 16px 0;
    }
}
@media (max-width: 600px) {
    .admin-header, .delivery-header, .gestion-header {
        padding: 16px;
    }
    .admin-title, .delivery-title, .gestion-title {
        font-size: 1.1rem;
    }
    .stats-section {
        grid-template-columns: 1fr;
        padding: 8px 0;
    }
}

/* Animaciones */
/* Animaciones para modales y efectos visuales */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { opacity: 0; transform: translateY(-50px); } to { opacity: 1; transform: translateY(0); } }

.admin-panel-container,
.delivery-admin-container,
.gestion-section {
    font-family: var(--fuente);
    background: linear-gradient(135deg, var(--color-secundario) 0%, var(--color-principal) 100%);
    min-height: 100vh;
    padding: 40px 20px;
}

.admin-panel-content,
.delivery-admin-container,
.gestion-section .admin-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--color-panel);
    border-radius: var(--radio-panel);
    box-shadow: var(--sombra-panel);
    padding: 32px;
    overflow: hidden;
}

.admin-header,
.delivery-header,
.gestion-header {
    background: linear-gradient(135deg, var(--color-header), var(--color-principal));
    color: white;
    padding: 32px;
    border-radius: var(--radio-panel) var(--radio-panel) 0 0;
    text-align: center;
    position: relative;
}

.admin-title,
.delivery-title,
.gestion-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.admin-subtitle,
.delivery-subtitle,
.gestion-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Botones principales */
.btn-admin,
.btn-delivery,
.btn-gestion {
    background: linear-gradient(135deg, var(--color-secundario), var(--color-acento));
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(44,62,80,0.08);
    transition: background 0.2s;
}
.btn-admin:hover,
.btn-delivery:hover,
.btn-gestion:hover {
    background: linear-gradient(135deg, var(--color-acento), var(--color-secundario));
}

/* Tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
    background: var(--color-panel);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(44,62,80,0.06);
}
th, td {
    padding: 14px 12px;
    border-bottom: 1.5px solid var(--color-borde);
    text-align: left;
    font-size: 1rem;
}
th {
    background: var(--color-fondo);
    color: var(--color-principal);
    font-weight: 700;
}
tr:last-child td {
    border-bottom: none;
}

/* Formularios */
form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
form label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-principal);
    margin-bottom: 4px;
}
form input,
form select,
form textarea {
    font-size: 1rem;
    padding: 10px 12px;
    border-radius: 8px;
    /* border: 1.5px solid var(--color-borde); */
    background: #f8f8f8;
    transition: border-color 0.2s;
}
form input:focus,
form select:focus,
form textarea:focus {
    border-color: var(--color-acento);
    outline: none;
}

/* Mensajes y alertas */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 1.1rem;
    background: #f8f9fa;
    color: var(--color-principal);
    border-left: 6px solid var(--color-acento);
}

/* Responsive */
@media (max-width: 900px) {
    .admin-panel-content,
    .delivery-admin-container,
    .gestion-section .admin-container {
        padding: 12px;
    }
    th, td {
        padding: 8px 6px;
    }
}
@media (max-width: 600px) {
    .admin-header,
    .delivery-header,
    .gestion-header {
        padding: 16px;
    }
    .admin-title,
    .delivery-title,
    .gestion-title {
        font-size: 1.5rem;
    }
}

/* Estilos específicos para el panel de administración */
.admin-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px;
}

.admin-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #2c3e50;
}

.admin-module {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.admin-module:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.admin-module:hover::before {
    transform: scaleX(1);
}

.module-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.module-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.module-description {
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.6;
}

.module-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 2px;
}

.module-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-admin {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    /* background: linear-gradient(135deg, #667eea, #764ba2); */
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8, #6941a0);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-2px);
}

.footer-admin {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 0.9rem;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 40px;
}

.quick-stat {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.quick-stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.quick-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.quick-stat-label {
    color: #6c757d;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .admin-modules {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .admin-title {
        font-size: 2rem;
    }
    
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
        margin: 20px;
    }
    
    .module-actions {
        flex-direction: column;
    }
    
    .btn-admin {
        min-width: auto;
    }
}

/* CONTENEDOR PRINCIPAL */
.delivery-admin-container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-top:17vh; /* Ajuste para dejar espacio al header fijo */ 
}

.delivery-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 1;
}

.header-actions {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    gap: 12px;
    z-index: 1;
}

/* ESTADÍSTICAS CARDS */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 30px;
    background: #f8f9fa;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.stat-label {
    font-size: 1rem;
    color: #6c757d;
    margin: 5px 0 0 0;
    font-weight: 500;
}

/* BOTONES MODERNOS */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::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: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    box-shadow: 0 4px 15px rgba(40,167,69,0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40,167,69,0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #bd2130);
    color: white;
    box-shadow: 0 4px 15px rgba(220,53,69,0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220,53,69,0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #545b62);
    color: white;
    box-shadow: 0 4px 15px rgba(108,117,125,0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108,117,125,0.4);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* TABLA MODERNA */
.products-section {
    padding: 30px;
    background: white;
}

.products-table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.products-table thead {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.products-table th {
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    position: relative;
}

.products-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.products-table th:hover::after {
    transform: scaleX(1);
}

.products-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
}

.products-table tbody tr {
    transition: all 0.3s ease;
}

.products-table tbody tr:hover {
    background: rgba(0,123,255,0.05);
    transform: scale(1.01);
}

/* MODAL COMPACTO Y RESPONSIVE */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
    position: relative;
}

.modal-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.1;
}

.modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.close {
    position: absolute;
    top: 25px;
    right: 30px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
    z-index: 1;
}

.close:hover {
    opacity: 1;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* FORMULARIO MODERNO */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.form-control, .form-select, .form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus, .form-select:focus, .form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.form-help {
    font-size: 0.8rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #007bff;
    margin-top: 5px;
}

.form-control.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220,53,69,0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* BADGES Y ETIQUETAS */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
    color: white;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .delivery-header {
        padding: 20px;
    }
    
    .delivery-title {
        font-size: 1.8rem;
    }
    
    .header-actions {
        position: static;
        margin-top: 20px;
        justify-content: flex-start;
    }
    
    .stats-section {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        padding: 20px;
        gap: 15px;
    }
    
    .products-table-container {
        overflow-x: auto;
    }
    
    .products-table {
        min-width: 700px;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .delivery-title {
        font-size: 1.5rem;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .header-actions {
        flex-direction: column;
    }
}

/* ANIMACIONES */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* LOADING STATES */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === DISEÑO MODERNO PARA GESTIÓN DE RESERVAS === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    min-height: 100vh;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: auto;
}

.gestion-section {
    min-height: 100vh;
    padding: 200px 0 100px 0; /* Espacio para el header fijo y más espacio abajo */
    width: 100%;
    scroll-margin-top: 140px;
    scroll-padding-top: 140px;
    margin-top: 111px; /* Altura del header fijo */
}

/* === CONTENEDOR PRINCIPAL === */
.admin-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* === HEADER MODERNO === */
.modern-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
}

.header-brand {
    justify-self: start;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.brand-text h1 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: 700;
}

.brand-text p {
    fontSize: 1rem;
    color: #6c757d;
    font-weight: 500;
}

/* === ESTADÍSTICAS DEL HEADER === */
.header-stats {
    display: flex;
    gap: 20px;
    justify-self: center;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 100px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-card.stat-today {
    border-color: #007bff;
}

.stat-card.stat-pending {
    border-color: #ffc107;
}

.stat-card.stat-confirmed {
    border-color: #28a745;
}

.stat-card.stat-guests {
    border-color: #6f42c1;
}

.stat-icon {
    font-size: 24px;
    opacity: 0.8;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === ACCIONES DEL HEADER === */
.header-actions {
    justify-self: end;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.btn-modern {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.last-update {
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
}

/* === SECCIONES PRINCIPALES === */
.section-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.section-title {
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* === CONTADOR DE PENDIENTES === */
.pending-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.counter-number {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.counter-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* === ESTADO VACÍO === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #28a745;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.empty-state small {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Estilos para formulario de nueva reserva */
.formulario-container {
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    margin-top: 20px;
}

.formulario-moderno {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #fff;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.btn-crear-reserva {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-crear-reserva:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

/* Estadísticas rápidas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stat-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}

        /* Colores específicos para cada estadística */
        .stat-today .stat-icon {
            background: linear-gradient(135deg, #2196F3, #1976D2);
        }

        .stat-week .stat-icon {
            background: linear-gradient(135deg, #FF9800, #F57C00);
        }

        .stat-confirmed .stat-icon {
            background: linear-gradient(135deg, #4CAF50, #388E3C);
        }

        .stat-guests .stat-icon {
            background: linear-gradient(135deg, #9C27B0, #7B1FA2);
        }

        /* === CALENDARIO SEMANAL === */
        .calendario-navigation {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 20px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
        }

        .btn-navigation {
            display: flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 8px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
        }

        .btn-navigation:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
            text-decoration: none;
            color: white;
        }

        .week-info {
            text-align: center;
        }

        .week-range {
            font-size: 18px;
            font-weight: 600;
            color: #fff;
        }

        .calendario-semana {
            padding: 20px 0;
        }

        .dias-operacion {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
        }

        .dia-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.3s ease;
            border: 1px solid rgba(0, 0, 0, 0.1);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .dia-card:hover {
            background: rgba(255, 255, 255, 1);
            transform: translateY(-3px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        }

        .dia-header {
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            padding: 15px;
            text-align: center;
            border-bottom: 1px solid #dee2e6;
        }

        .dia-nombre {
            margin: 0;
            color: #2c3e50;
            font-size: 18px;
            font-weight: 600;
        }

        .dia-fecha {
            display: block;
            color: #6c757d;
            font-size: 14px;
            margin: 5px 0 10px;
        }

        .dia-turnos {
            display: flex;
            gap: 8px;
            justify-content: center;
        }

        .turno-badge {
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
            color: white;
        }

        .turno-migdia {
            background: linear-gradient(135deg, #ffecd2, #fcb69f);
            color: #8b4513;
        }

        .turno-nit {
            background: linear-gradient(135deg, #2c3e50, #3498db);
            color: white;
        }

        .dia-reservas {
            padding: 15px;
            min-height: 200px;
        }

        .reserva-mini-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 10px;
            transition: all 0.3s ease;
            cursor: pointer;
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        .reserva-mini-card:hover {
            background: rgba(255, 255, 255, 1);
            transform: translateX(5px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .reserva-mini-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .reserva-mini-hora {
            font-weight: 600;
            color: #2c3e50;
            font-size: 14px;
        }

        .reserva-mini-status {
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 10px;
            font-weight: 500;
        }

        .status-confirmada {
            background: #4CAF50;
            color: white;
        }

        .status-cancelada {
            background: #f44336;
            color: white;
        }

        .reserva-mini-info {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .reserva-mini-nombre {
            color: #2c3e50;
            font-weight: 500;
            font-size: 13px;
        }

        .reserva-mini-details {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .reserva-mini-personas {
            color: #6c757d;
            font-size: 12px;
        }

        .reserva-mini-menu {
            background: #e9ecef;
            padding: 2px 6px;
            border-radius: 6px;
            font-size: 10px;
            color: #495057;
            border: 1px solid #dee2e6;
        }

        .dia-sin-reservas {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 150px;
            color: rgba(255, 255, 255, 0.5);
            font-style: italic;
        }

        .dia-sin-reservas-icon {
            font-size: 32px;
            margin-bottom: 10px;
            opacity: 0.5;
        }

        /* Estilos para botones de acción en mini-cards */
        .reserva-mini-actions {
            display: flex;
            justify-content: center;
            gap: 5px;
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px solid rgba(0, 0, 0, 0.1);
        }

        .btn-mini {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            border-radius: 4px;
            padding: 4px 6px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            color: white;
            min-width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
        }

        .btn-mini:hover {
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
            text-decoration: none;
            color: white;
        }

        .btn-action {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 10px 16px;
            border: none;
            border-radius: 10px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            text-decoration: none;
            color: white;
        }

        .btn-action:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            text-decoration: none;
            color: white;
        }

        .btn-mini.btn-edit {
            background: linear-gradient(135deg, #ffc107, #fd7e14);
        }

        .btn-mini.btn-edit:hover {
            background: linear-gradient(135deg, #e0a800, #e8640c);
        }

        .btn-mini.btn-cancel {
            background: linear-gradient(135deg, #dc3545, #bd2130);
        }

        .btn-mini.btn-cancel:hover {
            background: linear-gradient(135deg, #c82333, #a71e2a);
        }

        .btn-mini.btn-confirm {
            background: linear-gradient(135deg, #28a745, #20c997);
        }

        .btn-mini.btn-confirm:hover {
            background: linear-gradient(135deg, #218838, #1ca085);
        }

        .btn-mini.btn-info {
            background: linear-gradient(135deg, #17a2b8, #138496);
        }

        .btn-mini.btn-info:hover {
            background: linear-gradient(135deg, #138496, #0e6674);
        }

        .reserva-mini-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 10px;
            transition: all 0.3s ease;
            cursor: default;
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        .reserva-mini-card:hover {
            background: rgba(255, 255, 255, 1);
            transform: translateX(3px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }/* === GRID DE RESERVAS === */
.reservas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* === TARJETAS DE RESERVA MODERNAS === */
.reserva-card-modern {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reserva-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.reserva-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 193, 7, 0.3);
}

/* === HEADER DE LA RESERVA === */
.reserva-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.reserva-datetime {
    display: flex;
    gap: 15px;
    align-items: center;
}

.reserva-fecha {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 8px 12px;
    border-radius: 12px;
    min-width: 50px;
}

.fecha-dia {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.fecha-mes {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.9;
}

.reserva-hora {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hora-time {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.hora-turno {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: capitalize;
}

.reserva-status {
    display: flex;
    align-items: flex-start;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: white;
}

/* === CONTENIDO DE LA RESERVA === */
.reserva-content {
    margin-bottom: 15px;
}

.cliente-info {
    margin-bottom: 15px;
}

.cliente-nombre {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.cliente-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #6c757d;
}

.detail-icon {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* === DETALLES DE LA RESERVA === */
.reserva-details {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.detail-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #e9ecef;
}

.detail-guests {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-color: #2196f3;
    color: #1565c0;
}

.detail-menu {
    background: linear-gradient(135deg, #f3e5f5, #ce93d8);
    border-color: #9c27b0;
    color: #6a1b9a;
}

.badge-icon {
    font-size: 0.9rem;
}

.badge-text {
    font-weight: 600;
}

/* === OBSERVACIONES === */
.reserva-observaciones {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.obs-icon {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 2px;
}

.obs-text {
    font-size: 0.9rem;
    color: #856404;
    line-height: 1.4;
}

/* === ACCIONES DE LA RESERVA === */
.reserva-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: white;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

.btn-confirm {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.btn-confirm:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
}

.btn-cancel {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.btn-cancel:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
}

.btn-icon {
    font-size: 1rem;
}

.btn-text {
    font-size: 0.85rem;
}

/* === NOTIFICACIONES MODERNAS === */
.notification-modern {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: all 0.3s ease;
    animation: slideInNotification 0.3s ease forwards;
}

@keyframes slideInNotification {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    color: white;
    font-weight: 600;
}

.notification-success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.notification-error {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.notification-info {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.notification-close:hover {
    opacity: 1;
}

/* === DIÁLOGO DE CONFIRMACIÓN === */
.confirm-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeInOverlay 0.3s ease;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.confirm-dialog {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    animation: slideInDialog 0.3s ease;
}

@keyframes slideInDialog {
    from {
        transform: scale(0.8) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.confirm-header {
    padding: 20px 20px 10px;
    border-bottom: 1px solid #e9ecef;
}

.confirm-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.confirm-body {
    padding: 20px;
}

.confirm-body p {
    margin: 0;
    color: #6c757d;
    line-height: 1.5;
}

.confirm-actions {
    padding: 10px 20px 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1200px) {
    .admin-container {
        max-width: 100%;
        padding: 15px;
    }
    
    .modern-header {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .header-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .header-actions {
        justify-self: center;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .gestion-section {
        padding: 80px 0 20px 0;
    }
    
    .admin-container {
        padding: 10px;
    }
    
    .modern-header {
        padding: 20px;
        border-radius: 15px;
    }
    
    .header-stats {
        gap: 10px;
    }
    
    .stat-card {
        padding: 12px 15px;
        min-width: 70px;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .brand-text h1 {
        font-size: 1.4rem;
    }
    
    .brand-text p {
        font-size: 0.9rem;
    }
    
    .reservas-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .reserva-card-modern {
        max-width: none;
        padding: 15px;
    }
    
    .reserva-datetime {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .reserva-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .notification-modern {
        left: 10px;
        right: 10px;
        max-width: none;
        top: 90px;
    }
    
    .section-card {
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 15px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .section-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .gestion-section {
        padding: 70px 0 15px 0;
    }
    
    .admin-container {
        padding: 5px;
    }
    
    .modern-header {
        padding: 15px;
        border-radius: 12px;
        margin-bottom: 15px;
    }
    
    .section-card {
        padding: 15px;
        border-radius: 12px;
        margin-bottom: 15px;
    }
    
    .logo-circle {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .brand-text h1 {
        font-size: 1.2rem;
    }
    
    .brand-text p {
        font-size: 0.8rem;
    }
    
    .stat-card {
        padding: 8px 12px;
        min-width: 60px;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .reserva-card-modern {
        padding: 12px;
    }
    
    .cliente-details {
        font-size: 0.8rem;
    }
    
    .detail-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .btn-modern {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .empty-state {
        padding: 40px 15px;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
    
    .empty-state h3 {
        font-size: 1.3rem;
    }
}

/* === ANIMACIONES DE CARGA === */
.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.btn-modern.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === EFECTOS HOVER ADICIONALES === */
.stat-card:hover .stat-icon {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.reserva-card-modern:hover .reserva-fecha {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.btn-action:active {
    transform: translateY(0) scale(0.95);
}

.header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
}

.header-content h2 {
    margin: 0 0 10px 0;
    color: #333;
}

.header-content p {
    margin: 0;
    color: #666;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-delivery {
    background: #fd7e14;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-delivery:hover {
    background: #e8640c;
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.btn-refresh {
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-refresh:hover {
    background: #138496;
    transform: translateY(-1px);
}

.btn-refresh.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Secciones principales */
.seccion-pendientes,
.seccion-calendario,
.seccion-calendario-mensual {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.seccion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.seccion-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.4rem;
}

.stats-pendientes {
    display: flex;
    gap: 15px;
    font-size: 14px;
}

.stats-pendientes span {
    padding: 6px 12px;
    background: #fff3cd;
    color: #856404;
    border-radius: 20px;
    border: 1px solid #ffeaa7;
    font-weight: bold;
}

/* Tabla de pendientes */
.tabla-responsive {
    overflow-x: auto;
}

.reservas-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.reservas-table th,
.reservas-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.reservas-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #495057;
    position: sticky;
    top: 0;
}

.reservas-table tr:hover {
    background: #f8f9fa;
}

.observaciones-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.observaciones-cell:hover {
    white-space: normal;
    overflow: visible;
}

/* Botones de acción */
.acciones-btns {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.btn-accion {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-confirmar {
    background: #28a745;
    color: white;
}

.btn-confirmar:hover {
    background: #218838;
    transform: translateY(-1px);
}

.btn-cancelar {
    background: #dc3545;
    color: white;
}

.btn-cancelar:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Formulario de nueva reserva - Estilo integrado */
.seccion-nueva-reserva {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.formulario-admin-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #dee2e6;
}

.formulario-admin {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
}

.formulario-admin .form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.formulario-admin .form-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.formulario-admin label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
}

.formulario-admin input,
.formulario-admin select,
.formulario-admin textarea {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.formulario-admin input:focus,
.formulario-admin select:focus,
.formulario-admin textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
}

.formulario-admin textarea {
    resize: vertical;
    min-height: 70px;
    font-family: inherit;
}

.btn-admin-crear {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: center;
    margin-top: 10px;
}

.btn-admin-crear:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,123,255,0.2);
}

.btn-admin-crear:active {
    transform: translateY(0);
}

/* Responsive para formulario admin */
@media (max-width: 768px) {
    .formulario-admin .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .formulario-admin .form-group {
        min-width: 100%;
    }
    
    .formulario-admin-container {
        padding: 15px;
    }
    
    .seccion-nueva-reserva {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .formulario-admin input,
    .formulario-admin select,
    .formulario-admin textarea {
        font-size: 16px; /* Evitar zoom en iOS */
    }
}

/* Calendario de confirmadas */
.calendario-filtros,
.mes-navegacion {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-navegacion {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-navegacion:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

#rango-fechas,
#mes-actual {
    font-weight: bold;
    color: #333;
    font-size: 16px;
    min-width: 200px;
    text-align: center;
}

.calendario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Calendario mensual compacto */
.calendario-mensual {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;

        .calendario-semana {
            display: grid;
            grid-template-columns: repeat(4, minmax(180px, 1fr));
            gap: 12px;
        }
.calendario-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 10px;
}

.calendario-dia-nombre {
    background: #6c757d;
    color: white;
    padding: 8px 4px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
}

.calendario-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendario-dia {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 70px;
    padding: 8px 4px;
    overflow: hidden;
    word-wrap: break-word;
}

.calendario-dia:hover {
    transform: scale(1.05);
    z-index: 2;
}

.calendario-dia.dia-otro-mes {
    color: #aaa;
    background: #e9ecef;
}

.calendario-dia.dia-actual {
    background: #007bff;
    color: white;
}

.calendario-dia.dia-cerrado {
    background: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
}

.dia-numero {
    font-size: 15px;
    margin-bottom: 4px;
    font-weight: 600;
    color: #333;
}

.dia-comensales {
    font-size: 12px;
    background: #28a745;
    color: white;
    padding: 3px 6px;
    border-radius: 10px;
    font-weight: bold;
    margin-bottom: 2px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.dia-comensales-canceladas {
    font-size: 11px;
    background: #dc3545;
    color: white;
    padding: 2px 5px;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 2px;
    opacity: 0.9;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.dia-calendario {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #dee2e6;
}

.dia-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.dia-titulo {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

.dia-total {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.reserva-card {
    background: white;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 4px solid #28a745;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.reserva-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.reserva-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.btn-cancelar-reserva {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
    opacity: 0.8;
}

.btn-cancelar-reserva:hover {
    opacity: 1;
    transform: scale(1.1);
    background: #c82333;
}

/* Estilos para reservas canceladas */
.reserva-card.reserva-cancelada {
    background: #ffe6e6;
    border-left: 4px solid #dc3545;
    opacity: 0.85;
}

.reserva-card.reserva-cancelada:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.2);
}

.estado-cancelada {
    display: inline-block;
    background: #dc3545;
    color: white;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
}

.reserva-hora {
    font-weight: bold;
    color: #007bff;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.reserva-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.btn-cancelar-reserva {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 2px;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.3s;
    opacity: 0.8;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Botón editar para cambiar comensales */
.reserva-card .btn-editar {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    padding: 2px;
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.reserva-card .btn-editar:hover {
    background: #0056b3;
    transform: scale(1.1);
}

/* Botón cancelar en calendario usa misma clase que tabla */
.reserva-card .btn-cancelar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    padding: 2px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Botón confirmar para reservas canceladas */
.reserva-card .btn-confirmar {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    padding: 2px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.reserva-card .btn-confirmar:hover {
    background: #218838;
    transform: scale(1.1);
}

.btn-cancelar-reserva:hover {
    opacity: 1;
    transform: scale(1.1);
    background: #c82333;
}

.reserva-cliente {
    font-weight: bold;
    color: #333;
    margin-bottom: 3px;
}

.reserva-detalles {
    font-size: 13px;
    color: #666;
    margin-bottom: 3px;
}

.reserva-menu {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: #495057;
    display: inline-block;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
    font-style: italic;
}

/* Modal styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.close {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s ease;
}

.close:hover {
    color: #000;
}

.modal-body {
    padding: 25px 20px;
    text-align: center;
}

.modal-body p {
    margin: 0;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.modal-footer button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.modal-footer .btn-cancelar {
    background: #6c757d;
    color: white;
}

.modal-footer .btn-cancelar:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.modal-footer .btn-confirmar {
    background: #28a745;
    color: white;
}

.modal-footer .btn-confirmar:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* Estilos adicionales para mejor control del contenido */
.calendario-dia .dia-numero {
    width: 100%;
    text-align: center;
    margin-bottom: 4px;
}

.calendario-dia .dia-comensales,
.calendario-dia .dia-comensales-canceladas {
    max-width: calc(100% - 4px);
    font-size: 10px;
    line-height: 1.2;
    display: block;
}

.calendario-dia.dia-actual {
    background: #fff3cd !important;
    border: 2px solid #ffc107;
}

.calendario-dia.dia-cerrado {
    background: #f8d7da !important;
    opacity: 0.7;
}

.calendario-dia.dia-otro-mes {
    background: #f8f9fa !important;
    color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        margin-top: 9vh;
    }
    
    .header-section {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .header-content h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .header-content p {
        text-align: center;
        font-size: 14px;
    }
    
    .header-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .btn-refresh {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    #ultima-actualizacion {
        font-size: 12px;
        text-align: center;
    }
    
    /* Secciones */
    .seccion-pendientes,
    .seccion-calendario,
    .seccion-calendario-mensual {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .seccion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        text-align: center;
    }
    
    .seccion-header h3 {
        font-size: 1.2rem;
        width: 100%;
    }
    
    .stats-pendientes,
    .calendario-filtros,
    .mes-navegacion {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: center;
    }
    
    /* Tabla de pendientes */
    .tabla-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .reservas-table {
        font-size: 11px;
        min-width: 800px;
    }
    
    .reservas-table th,
    .reservas-table td {
        padding: 6px 4px;
        white-space: nowrap;
    }
    
    .observaciones-cell {
        max-width: 100px;
    }
    
    .acciones-btns {
        flex-direction: column;
        gap: 3px;
    }
    
    .btn-accion {
        font-size: 10px;
        padding: 4px 8px;
        white-space: nowrap;
    }
    
    /* Calendario semanal */
    .calendario-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dia-calendario {
        padding: 12px;
    }
    
    .dia-header {
        flex-direction: column;
        align-items: center;
        gap: 5px;
        text-align: center;
    }
    
    .dia-titulo {
        font-size: 1rem;
    }
    
    .reserva-card {
        padding: 10px;
        margin-bottom: 8px;
    }
    
    .reserva-header {
        margin-bottom: 6px;
    }
    
    .btn-cancelar-reserva {
        padding: 3px 5px;
        font-size: 11px;
        min-width: 22px;
        min-height: 22px;
    }
    
    .reserva-header {
        flex-direction: row;
        gap: 8px;
    }
    
    .btn-cancelar-reserva,
    .reserva-card .btn-cancelar,
    .reserva-card .btn-confirmar,
    .reserva-card .btn-editar {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }
    
    .botones-accion {
        gap: 2px;
    }
    
    .reserva-hora {
        font-size: 1rem;
    }
    
    .reserva-detalles {
        font-size: 12px;
    }
    
    /* Calendario mensual */
    .calendario-mensual {
        max-width: 100%;
        padding: 10px;
    }
    
    .calendario-dia {
        min-height: 65px;
        padding: 8px;
        font-size: 11px;
    }
    
    .dia-numero {
        font-size: 12px;
    }
    
    .dia-comensales {
        font-size: 10px;
        padding: 2px 5px;
    }
    
    .dia-comensales-canceladas {
        font-size: 9px;
        padding: 1px 4px;
    }
    
    .estado-cancelada {
        font-size: 9px;
        padding: 2px 5px;
    }
    
    /* Navegación responsive */
    .btn-navegacion {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    #rango-fechas,
    #mes-actual {
        font-size: 14px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .gestion-section {
        padding: 10px 0;
    }
    
    .container {
        padding: 5px;
        margin-top: 9vh;
    }
    
    .header-content h2 {
        font-size: 1.3rem;
    }
    
    .seccion-pendientes,
    .seccion-calendario,
    .seccion-calendario-mensual {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .seccion-header h3 {
        font-size: 1.1rem;
    }
    
    .btn-cancelar-reserva,
    .reserva-card .btn-cancelar,
    .reserva-card .btn-confirmar,
    .reserva-card .btn-editar {
        width: 16px;
        height: 16px;
        font-size: 8px;
    }
    
    .botones-accion {
        gap: 1px;
    }
    
    /* Tabla ultra compacta */
    .reservas-table {
        font-size: 10px;
        min-width: 700px;
    }
    
    .reservas-table th,
    .reservas-table td {
        padding: 4px 2px;
    }
    
    .btn-accion {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    /* Calendario mensual muy compacto */
    .calendario-mensual {
        padding: 8px;
    }
    
    .calendario-dia {
        min-height: 55px;
        padding: 5px 2px;
    }
    
    .calendario-dia-nombre {
        padding: 6px 2px;
        font-size: 11px;
    }
    
    .dia-numero {
        font-size: 11px;
    }
    
    .dia-comensales {
        font-size: 9px;
        padding: 2px 4px;
    }
    
    .dia-comensales-canceladas {
        font-size: 8px;
        padding: 1px 3px;
    }
    
    .estado-cancelada {
        font-size: 8px;
        padding: 1px 4px;
    }
    
    /* Modal responsive */
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-body p {
        font-size: 14px;
    }
    
    .modal-footer button {
        padding: 8px 15px;
        font-size: 13px;
    }

    /* Responsive mejorado para formularios y estadísticas */
    @media (max-width: 768px) {
        .form-row {
            grid-template-columns: 1fr;
            gap: 15px;
        }
        
        .formulario-container {
            padding: 20px;
        }
        
        .stats-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }
        
        .stat-box {
            padding: 15px;
            flex-direction: column;
            text-align: center;
            gap: 10px;
        }
        
        .stat-value {
            font-size: 24px;
        }
        
        /* Calendario responsive */
        .calendario-navigation {
            flex-direction: column;
            gap: 15px;
        }
        
        .dias-operacion {
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }
        
        .dia-card {
            min-height: 250px;
        }
        
        .btn-navigation {
            padding: 8px 12px;
            font-size: 13px;
        }
    }

    @media (max-width: 480px) {
        .formulario-container {
            padding: 15px;
        }
        
        .form-group input,
        .form-group select,
        .form-group textarea {
            font-size: 16px; /* Evita zoom en iOS */
            padding: 10px 12px;
        }
        
        .btn-crear-reserva {
            width: 100%;
            padding: 12px;
            font-size: 14px;
        }
        
        .stats-grid {
            grid-template-columns: 1fr;
            gap: 8px;
        }
        
        .stat-box {
            padding: 12px;
        }
        
        .stat-icon {
            width: 40px;
            height: 40px;
            font-size: 20px;
        }
        
        .stat-value {
            font-size: 20px;
        }
        
        .stat-description {
            font-size: 12px;
        }
        
        /* Calendario ultra responsive */
        .dias-operacion {
            grid-template-columns: 1fr;
            gap: 10px;
        }
        
        .calendario-navigation {
            padding: 10px;
        }
        
        .btn-navigation {
            padding: 6px 10px;
            font-size: 12px;
        }
        
        .dia-header {
            padding: 12px;
        }
        
        .dia-nombre {
            font-size: 16px;
        }
        
        .dia-reservas {
            padding: 10px;
        }
        
        .reserva-mini-card {
            padding: 8px;
            margin-bottom: 8px;
        }
        
        .reserva-mini-hora {
            font-size: 13px;
        }
        
        .reserva-mini-nombre {
            font-size: 12px;
        }
        
        .reserva-mini-personas,
        .reserva-mini-menu {
            font-size: 11px;
        }
        
        .reserva-mini-actions {
            margin-top: 6px;
            padding-top: 6px;
        }
        
        .btn-mini {
            min-width: 20px;
            height: 20px;
            font-size: 10px;
        }
    }

    /* Animaciones */
    @keyframes slideIn {
        from {
            transform: translateX(100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .mensaje-success,
    .mensaje-error {
        animation: slideIn 0.3s ease-out;
    }

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.day-header {
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.day-header:last-child {
    border-right: none;
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #ffffff;
}

.calendar-day {
    min-height: 100px;
    border: 1px solid #e1e5e9;
    background: white;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.calendar-day:not(.empty):not(.closed):hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.calendar-day.empty {
    background: #f8f9fa;
    border-color: #f0f0f0;
}

.day-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    padding: 10px 12px;
    line-height: 1;
}

.calendar-day.today {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #2196f3;
}

.calendar-day.today .day-number {
    color: #1565c0;
    font-weight: 700;
}

.calendar-day.closed {
    background: #f5f5f5;
    color: #7f8c8d;
}

.calendar-day.closed:hover {
    background: #f5f5f5;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.closed-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.reservation-info {
    padding: 0 12px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.total-info {
    font-size: 0.75rem;
    color: #2c3e50;
    font-weight: 600;
}

.shift-info {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.morning, .evening {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.morning {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    color: #f57c00;
    border: 1px solid #ffb74d;
}

.evening {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    color: #388e3c;
    border: 1px solid #66bb6a;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.nav-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

#month-year {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.btn-nav-mes {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-nav-mes:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.mes-navegacion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

#mes-actual {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calendar-day {
        min-height: 80px;
    }
    
    .day-number {
        font-size: 1rem;
        padding: 8px 10px;
    }
    
    .day-header {
        padding: 12px 8px;
        font-size: 0.8rem;
    }
    
    .total-info {
        font-size: 0.7rem;
    }
    
    .morning, .evening {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    
    .closed-label {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .nav-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .calendar-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    #month-year {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .calendar-day {
        min-height: 70px;
    }
    
    .day-number {
        font-size: 0.9rem;
        padding: 6px 8px;
    }
    
    .day-header {
        padding: 10px 4px;
        font-size: 0.75rem;
    }
    
    .reservation-info {
        padding: 0 8px 8px 8px;
        gap: 4px;
    }
    
    .total-info {
        font-size: 0.65rem;
    }
    
    .shift-info {
        gap: 4px;
    }
    
    .morning, .evening {
        font-size: 0.6rem;
        padding: 2px 4px;
    }
    
    .closed-label {
        font-size: 0.65rem;
        padding: 3px 6px;
    }
    
    .nav-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    #month-year {
        font-size: 1.1rem;
    }
}
}