:root {
    --bg-main: #F9F6F0;
    --bg-surface: rgba(255, 255, 255, 0.85);
    --border-muta: #E5E5E5;
    --text: #2C3539;
    --text-muted: #787878;
    --accent: #B71C1C;
    --accent-glow: rgba(183, 28, 28, 0.08);
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* For custom cursor */
}

/* Base Styles */
body {
    background-color: var(--bg-main);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Custom Cursor */
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--text);
    transform: translate(-50%, -50%);
}

.cursor-ring {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

body.loading {
    overflow: hidden;
}

/* Typography elements */
h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    font-weight: 700;
}

/* Hero Section */
.hero {
    min-height: 40vh;
    padding: 3rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border-muta);
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.brand-logo {
    width: 500px;
    height: auto;
    max-width: 90vw;
}

.hero-logo {
    height: 300px;
    width: auto;
    max-width: 90vw;
    object-fit: contain;
    margin-bottom: 0;
}

.brand-title {
    font-size: 4rem;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #1A1A1A 0%, #666666 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.brand-subtitle {
    font-family: var(--font-head);
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Navigation Backdrop Filter */
.category-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    padding: 1.5rem 0;
    overflow: visible;
}

.nav-logo {
    position: relative;
    z-index: 101;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1rem;
    padding: 0;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.nav-link {
    display: inline-block;
    color: var(--text);
    background-color: #FFFFFF;
    border: 1px solid var(--border-muta);
    border-radius: 50px;
    padding: 0.45rem 1rem;
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}




.nav-link:hover {
    color: var(--accent);
    background-color: var(--accent-glow);
    border-color: rgba(183, 28, 28, 0.2);
}

.nav-link.active {
    color: #FFFFFF !important;
    background-color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 4px 10px rgba(183, 28, 28, 0.3);
}

/* Menu Layout */
.menu-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem 6rem;
}

.menu-section {
    margin-bottom: 7rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    border-bottom: 1px solid var(--border-muta);
    padding-bottom: 1rem;
}

.section-title span {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 500;
}

.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Menu Item */
.menu-item {
    position: relative;
    border-bottom: 1px dotted #E5E5E5;
    padding-bottom: 1.5rem;
}

.menu-item:last-child {
    border-bottom: none;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.item-name {
    font-size: 1.25rem;
    color: var(--text);
}

.item-dots {
    flex-grow: 1;
    border-bottom: 1px dashed var(--border-muta);
    margin: 0 1rem;
    position: relative;
    top: -6px;
}

.item-price {
    font-family: var(--font-head);
    font-size: 1.1rem;
    color: var(--accent);
}

.item-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 85%;
}

/* Hover effects */
@media (hover: hover) {
    .menu-item:hover .item-name {
        color: var(--accent);
        transition: color 0.3s;
    }

    a:hover~.cursor-ring,
    button:hover~.cursor-ring {
        width: 50px;
        height: 50px;
        border-color: var(--accent);
        background: var(--accent-glow);
    }
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-muta);
    padding-top: 4rem;
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.footer-links {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.social-btn {
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
}

.social-btn.instagram:hover {
    background-color: var(--accent) !important;
}

.social-btn.facebook:hover {
    background-color: var(--text) !important;
    color: white !important;
}

.ribn-link:hover {
    color: var(--accent) !important;
}

.copy {
    opacity: 0.5;
    font-size: 0.8rem !important;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 250px;
        padding: 3rem 1rem;
    }

    .hero-logo {
        height: 160px;
        margin-bottom: 0.5rem;
    }

    .category-nav {
        padding: 0.8rem 0;
    }

    .nav-logo {
        height: 50px !important;
    }

    #hero-line1 {
        font-size: 1.2rem !important;
        min-height: 1.5rem !important;
    }

    #hero-line2 {
        font-size: 2rem !important;
        min-height: 2.5rem !important;
    }

    .nav-link {
        font-size: 0.6rem !important;
        padding: 0.35rem 0.7rem !important;
    }


    .menu-container {
        padding: 2rem 1rem 4rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .item-name {
        font-size: 1.15rem;
        width: 100%;
        margin-bottom: 0.2rem;
    }

    .item-header {
        flex-wrap: wrap;
    }

    .item-dots {
        display: none;
    }

    .item-price {
        width: 100%;
        justify-content: flex-end !important;
        gap: 0.5rem !important;
        margin-top: 0.3rem;
    }

    .item-price span {
        text-align: right !important;
        width: 65px !important;
        margin-right: 0 !important;
    }

    .item-desc {
        max-width: 100%;
        margin-top: 0.25rem;
    }

    .cursor-dot,
    .cursor-ring {
        display: none;
    }

    * {
        cursor: auto;
    }
}

/* ───── Subcategory Headers (dynamic) ───── */
.subcategory-title {
    margin-top: 2rem;
    color: var(--accent);
    border-bottom: 2px solid var(--border-muta);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* ───── Tag Badges ───── */
.tag {
    font-size: 0.85em;
    vertical-align: middle;
}

/* ───── Skeleton Loading Animation ───── */
@keyframes skeleton-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.skeleton-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.skeleton-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skeleton-title {
    height: 2rem;
    width: 60%;
    background: linear-gradient(90deg, var(--border-muta) 0%, #f0ede7 50%, var(--border-muta) 100%);
    background-size: 200% 100%;
    border-radius: 8px;
    animation: skeleton-pulse 1.8s ease-in-out infinite;
    margin-bottom: 1rem;
}

.skeleton-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px dotted var(--border-muta);
}

.skeleton-name {
    height: 1.2rem;
    width: 55%;
    background: linear-gradient(90deg, var(--border-muta) 0%, #f0ede7 50%, var(--border-muta) 100%);
    background-size: 200% 100%;
    border-radius: 6px;
    animation: skeleton-pulse 1.8s ease-in-out infinite;
}

.skeleton-name.short {
    width: 35%;
}

.skeleton-price {
    height: 1.2rem;
    width: 70px;
    background: linear-gradient(90deg, rgba(183,28,28,0.1) 0%, rgba(183,28,28,0.2) 50%, rgba(183,28,28,0.1) 100%);
    background-size: 200% 100%;
    border-radius: 6px;
    animation: skeleton-pulse 1.8s ease-in-out infinite;
}

/* ───── Error State ───── */
.menu-error {
    text-align: center;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.menu-error h3 {
    font-family: var(--font-head);
    color: var(--text);
    font-size: 1.3rem;
}

.menu-error p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.retry-btn {
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.3);
}

/* ───── Nav link for Sin TACC (smaller text) ───── */
.nav-link-sintacc {
    font-size: 0.65rem;
    padding: 0.45rem 0.8rem;
}

@media (max-width: 768px) {
    .nav-link-sintacc {
        font-size: 0.5rem !important;
        padding: 0.35rem 0.5rem !important;
    }
}