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

:root {
    --sky-blue: #A8D8EA;
    --light-blue: #D4EAF7;
    --coral: #FF8B6A;
    --orange: #FF9F66;
    --yellow: #FFD93D;
    --dark-blue: #5A7D9A;
    --white: #FFFFFF;
    --text-dark: #2C3E50;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, 
        #C8E8F5 0%,
        #B8E0F0 15%,
        #A8D8EA 35%,
        #98D0E4 55%,
        #88C8DC 75%,
        #78B8CC 100%
    );
    min-height: 100vh;
    color: var(--text-dark);
    position: relative;
    overflow-x: hidden;
    background-attachment: fixed;
}

.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}


@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.sticky-top-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(to bottom,
        rgba(168, 216, 234, 0.95) 0%,
        rgba(168, 216, 234, 0.95) 70%,
        rgba(168, 216, 234, 0.7) 85%,
        rgba(168, 216, 234, 0.4) 100%
    );
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.sticky-top-wrapper.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(to bottom,
        rgba(152, 208, 228, 0.98) 0%,
        rgba(152, 208, 228, 0.98) 70%,
        rgba(152, 208, 228, 0.7) 85%,
        rgba(152, 208, 228, 0.4) 100%
    );
}

.header {
    position: relative;
    z-index: 1;
    padding: 0.4rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: transparent;
    transition: all 0.3s ease;
}

.sticky-top-wrapper.scrolled .header {
    padding: 0.25rem 1rem;
}

.header-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin: 0;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.logo-container {
    display: inline-block;
    animation: fadeInDown 1s ease-out;
    flex-shrink: 0;
}

.header-decoration {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.1));
    animation: fadeInDown 1s ease-out, gentleFloat 4s ease-in-out infinite;
    flex-shrink: 0;
    transform: scale(1);
    opacity: 0.7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-top-wrapper.scrolled .header-decoration {
    transform: scale(0.4);
    opacity: 0.3;
}

.header-decoration.left {
    animation-delay: 0.2s, 0s;
}

.header-decoration.right {
    animation-delay: 0.4s, 2s;
}

.header-decoration.extra-left {
    width: 30px;
    height: 30px;
    animation-delay: 0.3s, 1s;
}

.header-decoration.extra-right {
    width: 30px;
    height: 30px;
    animation-delay: 0.5s, 3s;
}

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

.floating-decoration {
    position: absolute;
    width: 35px;
    height: 35px;
    animation: gentleFloat 5s ease-in-out infinite;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.floating-decoration.top-left {
    top: 10px;
    left: 10%;
    animation-delay: 0s;
}

.floating-decoration.top-right {
    top: 15px;
    right: 10%;
    animation-delay: 1.5s;
}

.floating-decoration.bottom-left {
    bottom: 5px;
    left: 15%;
    animation-delay: 2.5s;
    width: 30px;
    height: 30px;
}

.floating-decoration.bottom-right {
    bottom: 5px;
    right: 15%;
    animation-delay: 4s;
    width: 30px;
    height: 30px;
}

.sticky-top-wrapper.scrolled .floating-decoration {
    opacity: 0.3;
}

.logo-image {
    max-width: 70px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    transition: all 0.3s ease;
}

.sticky-top-wrapper.scrolled .logo-image {
    max-width: 50px;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.1));
}

.logo-image:hover {
    transform: scale(1.05);
}

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

.container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 1rem 2rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.menu-section {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--dark-blue);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 1s ease-out 0.3s both;
}

.menu-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-section:nth-child(1) { animation-delay: 0.1s; }
.menu-section:nth-child(2) { animation-delay: 0.2s; }
.menu-section:nth-child(3) { animation-delay: 0.3s; }
.menu-section:nth-child(4) { animation-delay: 0.4s; }
.menu-section:nth-child(5) { animation-delay: 0.5s; }
.menu-section:nth-child(6) { animation-delay: 0.6s; }

.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-group {
    margin-bottom: 1.5rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--coral);
}

.category-name {
    font-size: 1rem;
    font-weight: bold;
    color: var(--coral);
    text-transform: uppercase;
}

.category-price {
    font-size: 1rem;
    font-weight: bold;
    color: var(--coral);
}

.category-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.item-tag {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--sky-blue) 100%);
    color: var(--dark-blue);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.item-tag:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--sky-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--light-blue);
    transition: background 0.2s ease;
}

.menu-item:hover {
    background: rgba(168, 216, 234, 0.1);
    padding-left: 0.5rem;
    border-radius: 8px;
}

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

.item-info {
    flex: 1;
}

.item-name {
    font-size: 1rem;
    font-weight: bold;
    color: var(--coral);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.item-description {
    font-size: 0.85rem;
    color: var(--dark-blue);
    font-style: italic;
}

.item-price {
    font-size: 1rem;
    font-weight: bold;
    color: var(--coral);
    white-space: nowrap;
    margin-left: 1rem;
}

.adicionales-section {
    background: rgba(255, 217, 61, 0.1);
    border-radius: 15px;
    padding: 1rem;
    margin-top: 1rem;
}

.adicionales-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.adicionales-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.adicional-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: var(--white);
    border-radius: 8px;
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.adicional-item:hover {
    transform: scale(1.03);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.adicional-name {
    color: var(--dark-blue);
}

.adicional-price {
    color: var(--coral);
    font-weight: bold;
}

.section-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--dark-blue);
    font-style: italic;
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(255, 217, 61, 0.2);
    border-radius: 8px;
}

.section-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: var(--coral);
    font-style: italic;
    margin-bottom: 1rem;
}

.category-nav {
    position: relative;
    z-index: 1;
    background: transparent;
    backdrop-filter: blur(8px);
    padding: 0.8rem 0 1rem 0;
    margin-top: 0.5rem;
    border-top: none;
    transition: padding 0.3s ease;
}

.category-nav::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    height: 25px;
    background: linear-gradient(to bottom,
        rgba(184, 224, 240, 0.3) 0%,
        rgba(168, 216, 234, 0.2) 40%,
        rgba(152, 208, 228, 0.1) 70%,
        transparent 100%
    );
    pointer-events: none;
    z-index: -1;
}

.sticky-top-wrapper.scrolled .category-nav {
    padding: 0.35rem 0 0.5rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem 0.75rem 1rem;
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    position: relative;
}

.nav-container::after {
    content: '';
    position: sticky;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(to left,
        rgba(184, 224, 240, 0.95) 0%,
        rgba(184, 224, 240, 0.7) 30%,
        rgba(184, 224, 240, 0.3) 60%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 2;
}

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

.nav-item {
background: var(--light-blue);
color: var(--dark-blue);
border: 2px solid var(--dark-blue);
padding: 0.7rem 1.5rem;
border-radius: 25px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
white-space: nowrap;
flex-shrink: 0;
box-shadow: 0 4px 15px rgba(90, 125, 154, 0.2);
position: relative;
overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--coral);
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px 3px 0 0;
}

.nav-item:hover {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--sky-blue) 100%);
    color: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(90, 125, 154, 0.3);
}

.nav-item:hover::before {
    width: 80%;
}

.nav-item.active {
    background: linear-gradient(135deg, var(--orange) 0%, var(--coral) 100%);
    color: var(--white);
    border-color: var(--orange);
    box-shadow: 0 6px 20px rgba(255, 139, 106, 0.5);
    border-radius: 25px !important;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    background: linear-gradient(135deg, var(--orange) 0%, var(--coral) 100%);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 139, 106, 0.5);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(255, 139, 106, 0.6);
}

.back-to-top:active {
    transform: translateY(-2px);
}

.closing-section {
    text-align: center;
    padding: 2.5rem 1rem 3.5rem 1rem;
    margin-top: 2.5rem;
    background: linear-gradient(135deg, rgba(120, 184, 204, 0.15) 0%, rgba(104, 168, 188, 0.15) 100%);
    border-radius: 15px;
}

.closing-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 0.5rem 0;
}

.closing-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.5;
}

.social-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-btn svg {
    width: 24px;
    height: 24px;
}

.social-btn span {
    display: none;
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.facebook {
    background: #1877F2;
}



@media (max-width: 768px) {
    .header-title {
        font-size: 0.9rem;
    }
    
    .sticky-top-wrapper.scrolled .header-title {
        font-size: 0.75rem;
    }
    
    .header {
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }
    
    .sticky-top-wrapper.scrolled .header {
        padding: 0.3rem 1rem;
        gap: 0.4rem;
    }
    
    .logo-image {
        max-width: 60px;
    }
    
    .sticky-top-wrapper.scrolled .logo-image {
        max-width: 45px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-nav {
        padding: 0.5rem 0 0.7rem 0;
    }
    
    .sticky-top-wrapper.scrolled .category-nav {
        padding: 0.3rem 0 0.5rem 0;
    }
    
    .nav-container {
        gap: 0.6rem;
        padding: 0 0.75rem 0.5rem 0.75rem;
    }
    
    .nav-item {
        padding: 0.6rem 1.1rem;
        font-size: 0.85rem;
    }
    
    .closing-section {
        padding: 1.5rem 1rem 2.5rem 1rem;
        margin-top: 1.5rem;
    }
    
    .closing-title {
        font-size: 1.1rem;
    }
    
    .closing-text {
        font-size: 0.8rem;
        margin-bottom: 1.2rem;
    }
    
    .social-buttons {
        gap: 0.8rem;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
    }
    
    .social-btn svg {
        width: 22px;
        height: 22px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    .header {
        padding: 1.5rem 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-decoration {
        width: 70px;
        height: 70px;
    }
    
    .header-decoration.left,
    .header-decoration.right {
        display: none;
    }
    
    .container {
        padding: 1.5rem 0.75rem;
    }
    
    .menu-section {
        padding: 1.25rem;
        border-radius: 15px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .social-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .social-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 0.7rem 1.2rem;
    }
    
    .footer {
        padding: 1.5rem 1rem;
    }
    
    .footer-decoration {
        width: 150px;
        height: 75px;
        top: -40px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        max-width: 180px;
    }
    
    .sun {
        width: 60px;
        height: 60px;
    }
    
    .sun-rays {
        width: 60px;
        height: 60px;
    }
    
    .sun-rays::before,
    .sun-rays::after {
        width: 100px;
        height: 100px;
    }
    
    .category-nav {
        padding: 0.6rem 0 1rem 0;
    }
    
    .nav-container {
        padding: 0 0.5rem 0.4rem 0.5rem;
    }
    
    .nav-item {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
    
    .footer-decoration {
        width: 120px;
        height: 60px;
        top: -30px;
    }
    
    .menu-grid {
        gap: 1rem;
    }
    
    .menu-section {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .item-name {
        font-size: 0.9rem;
    }
    
    .item-description {
        font-size: 0.8rem;
    }
    
    .item-price {
        font-size: 0.9rem;
    }
    
    .category-name,
    .category-price {
        font-size: 0.9rem;
    }
    
    .item-tag {
        font-size: 0.85rem;
        padding: 0.35rem 0.7rem;
    }
    
    .adicionales-grid {
        grid-template-columns: 1fr;
    }
    
    .adicional-item {
        font-size: 0.8rem;
    }
    
    .social-link {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
}
