/* ===============================================
   MEJORAS PROFESIONALES Y ANIMACIONES PREMIUM
   =============================================== */

/* Glassmorphism Components */
.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Enhanced Hero Section */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(201, 169, 97, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(107, 76, 59, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: floatBackground 20s ease-in-out infinite;
}

@keyframes floatBackground {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-20px, -20px) rotate(1deg); }
    66% { transform: translate(20px, -10px) rotate(-1deg); }
}

/* Enhanced Category Cards */
.category-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    background: white;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--dorado-sutil),
        var(--marron-elegante),
        var(--dorado-sutil));
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.category-card:hover::before {
    transform: scaleX(1);
    animation: shimmerGold 2s linear infinite;
}

@keyframes shimmerGold {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Micro-interactions for buttons */
.reservation-btn,
.hero-cta,
.btn-submit,
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.reservation-btn:hover::after,
.hero-cta:hover::after {
    width: 300px;
    height: 300px;
}

/* Premium Scroll Reveal Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

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

.fade-in-scale {
    opacity: 0;
    transform: scale(0.9);
    animation: fadeInScale 0.8s ease-out forwards;
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced Menu Items */
.menu-item {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        transparent 0%,
        rgba(201, 169, 97, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.menu-item:hover::before {
    opacity: 1;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(107, 76, 59, 0.15);
}

/* Parallax Headers */
.section-header {
    position: relative;
}

.section-overtitle {
    animation: fadeInDown 0.6s ease-out;
}

.section-title {
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--dorado-sutil);
    transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.section-header:hover .section-title::after {
    width: 100%;
}

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

/* Magnetic Cursor Effect for Interactive Elements */
.magnetic-hover {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Premium Loading States */
.skeleton-loader {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg,
        #f0f0f0 25%,
        #f5f5f5 50%,
        #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Floating Elements */
.float-element {
    animation: floatSmooth 6s ease-in-out infinite;
}

.float-element-delay {
    animation: floatSmooth 6s ease-in-out infinite;
    animation-delay: 3s;
}

/* Enhanced Navigation */
#header {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(107, 76, 59, 0.1);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--dorado-sutil);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Smooth Page Transitions */
.page-transition {
    animation: pageTransition 0.6s ease-out;
}

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

/* Premium Hover Effects */
.hover-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.hover-3d:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) scale(1.02);
}

/* Elegant Text Animations */
.text-reveal {
    overflow: hidden;
    position: relative;
}

.text-reveal span {
    display: inline-block;
    animation: textReveal 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    transform: translateY(100%);
}

@keyframes textReveal {
    to {
        transform: translateY(0);
    }
}

/* Premium Ornament Animations */
.ornament {
    position: relative;
    animation: fadeIn 1s ease-out;
}

.ornament-line {
    position: relative;
    overflow: hidden;
}

.ornament-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--dorado-sutil),
        transparent);
    animation: lineGrow 1.5s ease-out;
}

@keyframes lineGrow {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Enhanced Image Hover Effects */
.image-hover-zoom {
    overflow: hidden;
    position: relative;
}

.image-hover-zoom img {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.image-hover-zoom:hover img {
    transform: scale(1.1);
}

/* Subtle Background Patterns */
.pattern-dots {
    background-image: radial-gradient(circle, var(--dorado-sutil) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.03;
}

.pattern-lines {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(201, 169, 97, 0.03) 10px,
        rgba(201, 169, 97, 0.03) 20px
    );
}

/* Premium Scroll Indicators */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Enhanced Form Elements */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

input:focus,
select:focus,
textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(201, 169, 97, 0.2);
    border-color: var(--dorado-sutil);
}

/* Elegant Badge Animations */
.badge-premium {
    position: relative;
    overflow: hidden;
}

.badge-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%);
    animation: badgeShine 3s linear infinite;
}

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

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .glass {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    @keyframes floatBackground {
        0%, 100% { transform: translate(0, 0); }
        50% { transform: translate(-10px, -10px); }
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}