@import url('https://cdn.jsdelivr.net/npm/tailwindcss@3.4.1/dist/tailwind.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700&display=swap');

:root {
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, rgba(2, 132, 199, 0.12), transparent 45%),
                radial-gradient(circle at bottom right, rgba(6, 182, 212, 0.1), transparent 40%),
                #f8fafc;
    color: #0f172a;
}

.hero-overlay {
    background: linear-gradient(120deg, rgba(2, 132, 199, 0.75), rgba(15, 23, 42, 0.55));
}

.blur-card {
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.86);
}

.section-title::after {
    content: '';
    display: block;
    width: 4rem;
    height: 3px;
    margin: 0.75rem auto 0;
    background: linear-gradient(to right, #06b6d4, #0284c7);
    border-radius: 999px;
}

/* Navbar styles */
#navbar {
    backdrop-filter: blur(20px) saturate(180%);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08),
                0 1px 0 rgba(255, 255, 255, 0.5) inset;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(2, 132, 199, 0.08), transparent);
    animation: navbarShine 3s ease-in-out 0.5s;
    pointer-events: none;
}

@keyframes navbarShine {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

#navbar:hover {
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12),
                0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.nav-scrolled {
    backdrop-filter: blur(24px) saturate(180%);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
}

/* Logo Animation */
#navbar img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

#navbar a:hover img {
    transform: rotate(360deg) scale(1.1);
    filter: brightness(1.1);
}

/* Nav Links with animated underline */
.nav-link {
    position: relative;
    padding: 0.5rem 0.25rem;
    color: #475569;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0284c7, #06b6d4);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link:hover {
    color: #0284c7;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #0284c7;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

.menu-highlight,
.menu-highlight-mobile {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1.35rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    color: #f8fafc !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 18px 40px rgba(2, 132, 199, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.menu-highlight i,
.menu-highlight-mobile i {
    font-size: 1rem;
}

.menu-highlight::after {
    display: none;
}

.menu-highlight:hover,
.menu-highlight-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(2, 132, 199, 0.32);
    filter: brightness(1.03);
}

.menu-highlight__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: inherit;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.menu-highlight-mobile {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    width: auto;
    min-width: 0;
    margin: 0.25rem auto 0.5rem;
    box-shadow: 0 20px 40px rgba(2, 132, 199, 0.24);
}

.menu-highlight-mobile .menu-highlight__badge {
    background: rgba(255, 255, 255, 0.28);
}

a {
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

a:hover {
    color: #0284c7;
}

.card-hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.12);
}

.gallery-grid img {
    transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    filter: brightness(1.08);
}

.nav-link-active {
    color: #0284c7 !important;
}

.shadow-soft {
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.btn-primary {
    background: linear-gradient(135deg, #0284c7, #06b6d4);
    color: #fff;
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.65);
}

.badge-soft {
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
    border-radius: 999px;
    padding: 0.125rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Video Hero Styles */
section video {
    transform: scale(1.05);
    animation: videoScale 20s ease-in-out infinite alternate;
    filter: brightness(0.9) contrast(1.1);
}

@keyframes videoScale {
    0% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1.15);
    }
}

.hero-overlay {
    backdrop-filter: blur(2px);
    animation: overlayPulse 8s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
    }
}

/* Text animations */
section h1, section p {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* Enhanced Button with glow effect */
.btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.35),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

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

.btn-primary:hover {
    box-shadow: 0 12px 40px rgba(2, 132, 199, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    transform: translateY(-3px) scale(1.02);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

/* Smooth scroll indicator */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* Lightbox adjustments */
.lg-backdrop {
    background: rgba(15, 23, 42, 0.9);
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.active {
    max-height: 500px;
    opacity: 1;
}

#mobile-menu a {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.4s ease forwards;
}

#mobile-menu a:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu a:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu a:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu a:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu a:nth-child(5) { animation-delay: 0.25s; }
#mobile-menu a:nth-child(6) { animation-delay: 0.3s; }
#mobile-menu a:nth-child(7) { animation-delay: 0.35s; }
#mobile-menu a:nth-child(8) { animation-delay: 0.4s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Toggle Button */
#mobile-toggle {
    transition: all 0.3s ease;
}

#mobile-toggle:hover {
    background: rgba(2, 132, 199, 0.1);
    border-color: #0284c7;
    transform: scale(1.05);
}

#mobile-toggle i {
    transition: transform 0.3s ease;
}

#mobile-toggle.active i {
    transform: rotate(90deg);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    section video {
        object-position: center center;
        animation: none;
        transform: scale(1);
    }
    
    #navbar {
        backdrop-filter: blur(16px);
    }
    
    /* Evitar overflow en formularios y secciones */
    section {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Ajustar inputs en móvil */
    input[type="text"],
    input[type="tel"],
    input[type="email"],
    textarea,
    select {
        max-width: 100%;
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    /* Ajustar formulario de contacto */
    #contact-form {
        padding: 1rem !important;
        margin: 0 !important;
    }
    
    /* Ajustar grid de restaurante y servicios */
    #restaurante-comidas,
    #restaurante-bebidas,
    #restaurante-snacks,
    #servicios-grid {
        padding: 0;
        margin: 0;
    }
    
    /* Ajustar cards para que no se salgan */
    .card-hover {
        margin: 0;
        max-width: 100%;
    }
    
    /* Ajustar botones largos */
    .btn-primary {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        font-size: 0.875rem;
        word-break: break-word;
    }
    
    /* Ajustar texto largo */
    h1, h2, h3, h4, p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}
