/* Variables CSS del tema El Azteca */
:root {
    --primary-color: #e74c3c;
    --secondary-color: #c0392b;
    --background-color: #000000;
    --surface-color: rgba(0, 0, 0, 0.9);
    --text-color: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #666666;
    --border-color: rgba(255, 255, 255, 0.1);
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --warning-color: #f39c12;
    
    --border-radius: 12px;
    --spacing: 20px;
    --animation-duration: 0.3s;
    --animation-easing: ease;
    --max-width: 1200px;
    
    --gradient-bg: linear-gradient(135deg, #1a1a1a 0%, #2d1810 50%, #1a1a1a 100%);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1810 50%, #1a1a1a 100%);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Elementos de fondo animados */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(231, 76, 60, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(231, 76, 60, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 20s infinite linear;
    color: var(--primary-color);
}

.floating-element:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.floating-element:nth-child(2) {
    left: 20%;
    animation-delay: 5s;
    animation-duration: 30s;
}

.floating-element:nth-child(3) {
    left: 70%;
    animation-delay: 10s;
    animation-duration: 22s;
}

.floating-element:nth-child(4) {
    left: 80%;
    animation-delay: 15s;
    animation-duration: 28s;
}

.floating-element:nth-child(5) {
    left: 50%;
    animation-delay: 20s;
    animation-duration: 35s;
}

/* Elementos flotantes específicos para menu-preview-section */
.menu-preview-section .floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.menu-preview-section .floating-element {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 20s infinite linear;
    color: var(--primary-color);
}

.menu-preview-section .floating-element:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.menu-preview-section .floating-element:nth-child(2) {
    left: 20%;
    animation-delay: 5s;
    animation-duration: 30s;
}

.menu-preview-section .floating-element:nth-child(3) {
    left: 70%;
    animation-delay: 10s;
    animation-duration: 22s;
}

.menu-preview-section .floating-element:nth-child(4) {
    left: 80%;
    animation-delay: 15s;
    animation-duration: 28s;
}

.menu-preview-section .floating-element:nth-child(5) {
    left: 50%;
    animation-delay: 20s;
    animation-duration: 35s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

/* Pantalla de verificación de autenticación */
.auth-check {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.auth-loading {
    text-align: center;
    color: #fff;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.auth-loading p {
    font-size: 1.1rem;
    color: #ccc;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

header {
    margin-bottom: calc(var(--spacing) * 2);
    padding: var(--spacing) 0;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing);
    padding: 0 var(--spacing);
}

.logo-section {
    text-align: center;
    flex: 1;
}

.logo-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-weight: bold;
    letter-spacing: 2px;
}

.logo-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    letter-spacing: 1px;
}

.admin-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-badge {
    background: rgba(231, 76, 60, 0.2);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(231, 76, 60, 0.3);
    backdrop-filter: blur(10px);
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--animation-duration) var(--animation-easing);
    backdrop-filter: blur(10px);
}

.logout-btn:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-section {
        order: 1;
    }
    
    .admin-controls {
        order: 2;
        justify-content: center;
    }
}

main {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Sección de subida */
.upload-section {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing) * 1.5);
    margin-bottom: calc(var(--spacing) * 1.5);
    border: 2px dashed var(--primary-color);
    transition: all var(--animation-duration) var(--animation-easing);
    text-align: center;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.upload-section:hover {
    border-color: var(--secondary-color);
    background: rgba(231, 76, 60, 0.05);
    transform: translateY(-2px);
}

.upload-section.dragover {
    border-color: var(--primary-color);
    background: rgba(231, 76, 60, 0.1);
    transform: scale(1.02);
}

.upload-area {
    border: 3px dashed var(--primary-color);
    border-radius: var(--border-radius);
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    transition: all var(--animation-duration) var(--animation-easing);
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.upload-area:hover {
    border-color: var(--secondary-color);
    background: rgba(231, 76, 60, 0.1);
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(231, 76, 60, 0.15);
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.3);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.upload-area h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.upload-area p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.upload-text {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 500;
}

.upload-hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.upload-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--animation-duration) var(--animation-easing);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* Sección de QR */
.qr-section {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.qr-section h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #667eea;
}

.qr-container {
    display: inline-block;
    padding: 20px;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

#qrcode {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 10px;
    border: 2px solid #e0e0e0;
}

.qr-info {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.qr-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Botones */
.btn {
    background: var(--gradient-primary);
    color: var(--text-color);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--animation-duration) var(--animation-easing);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.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 ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    padding: 12px 25px;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #2ecc71);
}

.url-display {
    max-width: 500px;
    margin: 0 auto;
}

.url-display input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    background: var(--surface-color);
    text-align: center;
    color: var(--text-color);
    backdrop-filter: blur(10px);
}

/* Sección de presentación del menú - Diseño nativo móvil */
.menu-preview-section {
    animation: fadeIn 0.5s ease;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1810 50%, #1a1a1a 100%);
    overflow: hidden;
}

.menu-preview-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.menu-image-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    min-height: 75vh;
    max-height: 80vh;
    padding: 10px;
    box-sizing: border-box;
}

#menuPreviewCanvas,
#publicMenuPreviewCanvas {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    transform: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    display: block;
}

.menu-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.menu-loading p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
}

.menu-action-container {
    padding: 20px;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-ver-menu {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 18px 60px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    max-width: 300px;
    position: relative;
    overflow: hidden;
}

.btn-ver-menu:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.4);
}

.btn-ver-menu:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* Efecto de ondas al tocar (como apps nativas) */
.btn-ver-menu::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.6s, height 0.6s;
    transform: translate(-50%, -50%);
    z-index: 0;
}

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

.btn-ver-menu span {
    position: relative;
    z-index: 1;
}

/* Sección de PDF */
.pdf-section {
    animation: fadeIn 0.5s ease;
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.pdf-header h3 {
    font-size: 1.8rem;
    color: #667eea;
    margin: 0;
}

.btn-back {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.pdf-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.pdf-viewer {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.pdf-viewer iframe {
    border: none;
    border-radius: 15px;
}

/* Footer */
footer {
    text-align: center;
    color: white;
    opacity: 0.8;
    padding: 20px;
}

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

/* Estilos especiales para presentación de menú */
body.menu-preview-mode {
    background: #000 !important;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body.menu-preview-mode .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.menu-preview-mode main {
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: #000 !important;
    box-shadow: none !important;
}

body.menu-preview-mode header {
    display: none !important;
}

body.menu-preview-mode footer {
    display: none !important;
}

/* Fallback para navegadores que no soportan :has() */
body:has(.menu-preview-section[style*="block"]) {
    background: #000;
    overflow-x: hidden;
}

body:has(.menu-preview-section[style*="block"]) .container {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

body:has(.menu-preview-section[style*="block"]) main {
    padding: 0;
    margin: 0;
    border-radius: 0;
    background: #000;
    box-shadow: none;
}

body:has(.menu-preview-section[style*="block"]) header {
    display: none;
}

body:has(.menu-preview-section[style*="block"]) footer {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    main {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .upload-area {
        padding: 40px 15px;
    }
    
    .qr-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .pdf-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .pdf-viewer iframe {
        height: 400px;
    }
    
    /* Responsive para presentación de menú nativo */
    .menu-preview-section {
        min-height: 100vh;
        min-height: 100dvh; /* Para móviles modernos */
    }
    
    .menu-image-container {
        min-height: 75vh;
        min-height: 75dvh;
    }
    
    .btn-ver-menu {
        padding: 20px 40px;
        font-size: 1.2rem;
        max-width: 90%;
        margin: 0 auto;
    }
    
    .menu-action-container {
        padding: 15px;
    }
    
    .pdf-header {
        flex-direction: column;
        text-align: center;
    }
    
    .pdf-header h3 {
        font-size: 1.5rem;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
    .btn-ver-menu {
        padding: 18px 30px;
        font-size: 1.1rem;
    }
    
    .menu-action-container {
        padding: 10px;
    }
}

/* Para pantallas grandes (desktop) */
@media (min-width: 769px) {
    .menu-preview-section {
        min-height: 100vh;
    }
    
    .menu-image-container {
        min-height: 80vh;
    }
    
    .btn-ver-menu {
        max-width: 400px;
        padding: 20px 80px;
        font-size: 1.4rem;
    }
}

/* Estados de carga */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Tarjetas de archivos */
.file-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: var(--spacing);
    margin-bottom: var(--spacing);
    box-shadow: var(--shadow-card);
    transition: all var(--animation-duration) var(--animation-easing);
    border-left: 4px solid var(--primary-color);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.file-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.2);
    border-left-color: var(--secondary-color);
}

/* Sección de previsualización del menú */
.menu-preview-section {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing) * 2);
    margin-bottom: calc(var(--spacing) * 1.5);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    text-align: center;
}

.menu-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing);
}

.menu-image-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: var(--spacing);
    border: 2px dashed var(--border-color);
}

#menuPreviewCanvas {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.menu-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--spacing) * 3);
    color: var(--text-secondary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

.menu-action-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn-ver-menu {
    background: var(--gradient-primary);
    color: var(--text-color);
    border: none;
    padding: 15px 40px;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--animation-duration) var(--animation-easing);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-ver-menu::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 ease;
}

.btn-ver-menu:hover::before {
    left: 100%;
}

.btn-ver-menu:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.btn-ver-menu:active {
    transform: translateY(-1px);
}

/* Sección de PDF completo */
.pdf-section {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: var(--spacing);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing);
    padding-bottom: var(--spacing);
    border-bottom: 1px solid var(--border-color);
}

.pdf-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.btn-back {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--animation-duration) var(--animation-easing);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pdf-controls {
    display: flex;
    gap: 15px;
    margin-bottom: var(--spacing);
    justify-content: center;
}

.pdf-viewer {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#pdfViewer {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: var(--border-radius);
}

/* Modo pantalla completa para previsualización */
body.menu-preview-mode {
    background: var(--background-color);
}

body.menu-preview-mode .container {
    max-width: 100%;
    padding: var(--spacing);
}

body.menu-preview-mode header,
body.menu-preview-mode footer {
    display: none;
}

/* Responsive para previsualización */
@media (max-width: 768px) {
    .menu-preview-container {
        padding: 10px;
    }
    
    .btn-ver-menu {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .pdf-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .pdf-controls {
        flex-direction: column;
        align-items: center;
    }
    
    #pdfViewer {
        height: 400px;
    }
}

/* Notificaciones */
.notification {
    position: fixed;
    top: var(--spacing);
    right: var(--spacing);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-weight: 500;
    z-index: 1000;
    transform: translateX(400px);
    transition: all var(--animation-duration) var(--animation-easing);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, var(--success-color), #2ecc71);
    border-color: var(--success-color);
}

.notification.error {
    background: linear-gradient(135deg, var(--error-color), var(--secondary-color));
    border-color: var(--error-color);
}

.notification.info {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}