:root {
    --oslo-green: #1B4439; 
    --oslo-green-rgb: 27, 68, 57;
    --oslo-cream: #F6F4F1; 
    --oslo-sand: #E3D8C3;  
    --white: #FFFFFF;
    --black: #000000;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { overflow-x: hidden; }

html { scroll-behavior: smooth; scroll-padding-top: 150px; }

body {
    font-family: 'Figtree', sans-serif;
    background: linear-gradient(rgba(246, 244, 241, 0.85), rgba(246, 244, 241, 0.85)), url('bg_beans.png?v=48') repeat fixed center;
    background-size: auto, 500px;
    color: var(--black);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    overflow-x: clip; 
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }

.card {
    background: white; padding: 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* === HERO === */
.main-header { 
    background-color: var(--oslo-green); 
    color: var(--white); 
    text-align: center; 
    padding: 60px 1.5rem 20px 1.5rem; 
}

.header-hero-text { max-width: 650px; margin: 0 auto; }
.hero-paragraph { font-size: 0.95rem; font-weight: 400; line-height: 1.6; letter-spacing: 1px; margin-bottom: 1.5rem; opacity: 0.95; }

/* === NAVBAR VERDE PEGAJOSA === */
.top-navbar { 
    position: -webkit-sticky; 
    position: sticky; 
    top: -1px; 
    width: 100%; 
    background-color: rgba(var(--oslo-green-rgb), 0.95); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.25); 
    padding-bottom: 15px; 
    transition: background-color 0.3s ease;
}

.header-top-row { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding: 1rem 1.5rem 0.5rem 1.5rem; 
    max-width: 1200px; 
    margin: 0 auto; 
    position: relative; 
}

.logo { text-align: center; margin-bottom: 15px; cursor: pointer; }
.logo h1 { 
    font-size: 2.2rem; 
    font-weight: 700; 
    letter-spacing: 2px; 
    color: var(--white); 
    line-height: 1; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 12px; 
}
.logo p { font-size: 0.65rem; letter-spacing: 4px; margin-top: 5px; opacity: 0.9; color: var(--white); }

.category-nav-pc {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 25px;
    width: 100%;
}

.category-nav-pc a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.75;
    transition: opacity 0.3s ease, color 0.3s ease;
    white-space: nowrap;
    position: relative;
    padding-bottom: 4px;
}

.category-nav-pc a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--oslo-sand);
    transition: width 0.3s ease, left 0.3s ease;
}

.category-nav-pc a.active::after,
.category-nav-pc a:hover::after {
    width: 100%;
    left: 0;
}

.category-nav-pc a.active {
    opacity: 1;
    color: var(--oslo-sand);
}

.menu-toggle { display: none; position: absolute; top: 20px; right: 20px; background: none; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 6px; padding: 5px; }
.menu-toggle span { display: block; width: 25px; height: 2px; background-color: var(--white); transition: 0.3s; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.nav-menu-mobile { display: none; width: 100%; text-align: center; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 10px; }
.nav-menu-mobile.active { display: flex; flex-direction: column; gap: 1rem; }
.nav-menu-mobile a { color: var(--white); text-decoration: none; text-transform: uppercase; font-weight: 700; font-size: 0.85rem; letter-spacing: 2px; transition: color 0.3s ease; }
.nav-menu-mobile a.active { color: var(--oslo-sand); font-weight: 700; }

/* === CURVA DE DISEÑO ORGÁNICO === */
.header-curve {
    width: 100%; 
    height: 60px;
    background-color: var(--oslo-green); 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23F6F4F1' fill-opacity='1' d='M0,224L80,224C160,224,320,224,480,202.7C640,181,800,139,960,138.7C1120,139,1280,181,1360,202.7L1440,224L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: top;
    margin-bottom: 2rem;
}

/* === LAYOUT 2 COLUMNAS (PC) === */
.split-container { 
    display: grid; 
    grid-template-columns: 260px 1fr; 
    gap: 60px; 
    margin-top: 1rem; 
    margin-bottom: 0; 
    align-items: start; 
}

/* COLUMNA FOTOS VERTICAL */
.photo-column { position: sticky; top: 150px; height: calc(100vh - 150px); overflow: hidden; display: flex; justify-content: center; }
.scroller-track-vertical { display: flex; flex-direction: column; animation: scrollVertical 25s linear infinite; width: 260px; }
.scroller-group-vertical { display: flex; flex-direction: column; }
@keyframes scrollVertical { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
.scroll-img { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); margin-bottom: 20px; transition: transform 0.3s ease; }
.scroll-img:hover { transform: scale(1.03); }

/* === CARTA CENTRAL === */
.menu-column { width: 100%; min-width: 0; padding-bottom: 2rem; }
.menu-section { margin-bottom: 4rem; }
.menu-section:last-child { margin-bottom: 1rem; }

.section-title { 
    font-size: 1.25rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 3px; 
    color: var(--oslo-green); 
    border-bottom: 1px solid var(--oslo-sand); 
    padding-bottom: 5px; 
    margin-bottom: 1rem; 
}

.sub-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--oslo-green);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(27, 68, 57, 0.15);
}

/* AGRUPACIÓN POR TAMAÑO */
.size-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3.5rem; 
    padding-bottom: 2.5rem;
    gap: 30px;
    border-bottom: 1px dashed rgba(27, 68, 57, 0.15); 
    transition: border-bottom-color 0.3s ease;
}

.size-group:hover {
    border-bottom-color: rgba(27, 68, 57, 0.4);
}

.size-group:hover .cup-svg {
    transform: scale(1.15) rotate(3deg);
}

.size-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.group-icon-area {
    width: 85px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    padding-top: 5px; 
    position: sticky;
    top: 180px; 
}

.group-icon-area .cup-svg { 
    width: 100%; 
    max-width: 75px; 
    height: auto; 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.items-sublist {
    flex-grow: 1;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 1.5rem 40px; 
}

.menu-item { 
    display: flex; 
    align-items: center; 
    width: 100%; 
    padding: 8px 12px;
    border-radius: 8px;
    margin: 0 -12px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.menu-item:hover {
    background-color: rgba(var(--oslo-green-rgb), 0.05);
    transform: translateY(-2px) translateX(4px);
    box-shadow: 0 4px 12px rgba(var(--oslo-green-rgb), 0.04);
}
.item-details { max-width: 70%; }
.item-name-container { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item-name { font-weight: 700; font-size: 1.05rem; color: var(--black); transition: color 0.3s ease; }
.menu-item:hover .item-name { color: var(--oslo-green); }
.item-obs { font-size: 0.8rem; opacity: 0.7; font-style: italic; display: block; margin-top: 3px; }
.dots { flex-grow: 1; border-bottom: 1px dotted rgba(var(--oslo-green-rgb), 0.3); margin: 0 10px; transition: border-bottom-color 0.3s ease, opacity 0.3s ease; }
.menu-item:hover .dots { border-bottom-color: var(--oslo-green); opacity: 0.8; }
.price { font-weight: 700; font-size: 1.05rem; min-width: 80px; text-align: right; transition: color 0.3s ease, transform 0.3s ease; }
.menu-item:hover .price { color: var(--oslo-green); transform: scale(1.05); }

/* ICONOS */
.icons { display: inline-flex; gap: 4px; align-items: center; }
.carta-icon { 
    width: 1.3em; 
    height: 1.3em; 
    filter: brightness(0); 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.menu-item:hover .carta-icon {
    transform: scale(1.2) rotate(-5deg);
}
.ing-icon-shot { filter: sepia(1) saturate(5) brightness(0.6); }
.ing-icon-leche, .ing-icon-espuma { filter: invert(1) brightness(1.1); }
.ing-icon-canela { filter: sepia(1) saturate(6) hue-rotate(20deg) brightness(0.8); }
.ing-icon-chocolate { filter: sepia(1) saturate(5) hue-rotate(-20deg) brightness(0.5); }
.ing-icon-agua, .ing-icon-tonica { filter: sepia(1) saturate(8) hue-rotate(190deg); }
.ing-icon-hielo { filter: sepia(1) saturate(8) hue-rotate(180deg) brightness(1.2); }
.ing-icon-almibar { filter: sepia(1) saturate(7) hue-rotate(40deg); }
.ing-icon-matcha { filter: sepia(1) saturate(7) hue-rotate(90deg); }
.ing-icon-sintacc { filter: none !important; width: 1.2em; height: 1.2em; }

#mobile-carousel { display: none !important; }

/* === RESPONSIVE MÓVIL (Acá se aprovecha más el ancho) === */
@media (max-width: 1050px) {
    /* 1. Reducimos márgenes blancos laterales de toda la página para ganar espacio */
    .container { padding: 0 0.8rem; } 
    
    .category-nav-pc { display: none; } 
    .top-navbar { padding-bottom: 5px; }
    .header-top-row { flex-direction: row; justify-content: space-between; padding: 1rem 0.8rem; }
    .logo { text-align: left; margin-bottom: 0; }
    .logo h1 { font-size: 1.8rem; justify-content: flex-start; }
    .menu-toggle { display: flex; position: static; }
    
    .split-container { grid-template-columns: 1fr; margin-bottom: 0; gap: 0; }
    .photo-column { display: none !important; }
    
    .items-sublist { grid-template-columns: 1fr; }
    
    /* 2. Le damos más permiso al texto para expandirse horizontalmente */
    .item-details { max-width: 85%; } 
    
    /* 3. Achicamos apenas la columna de los vasitos y la caja del precio */
    .price { min-width: 65px; font-size: 1rem; } 
    .group-icon-area { width: 55px; top: 120px; }
    .group-icon-area .cup-svg { width: 45px; }
    
    /* 4. Acercamos la lista al vasito */
    .size-group { gap: 12px; margin-bottom: 2.5rem; padding-bottom: 2rem; }
    
    #mobile-carousel { display: block !important; margin-top: 1rem; width: 100%; overflow: hidden; padding-bottom: 1rem; }
    .scroller-track-horizontal { display: flex; animation: scrollHorizontal 15s linear infinite; width: max-content; }
    .scroller-group-horizontal { display: flex; padding-right: 15px; }
    .scroller-group-horizontal .scroll-img { width: 120px; margin-right: 15px; margin-bottom: 0; }
}

@keyframes scrollHorizontal { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.footer { background-color: var(--oslo-green); color: white; padding: 3rem 0; text-align: center; font-size: 0.8rem; position: relative; z-index: 10; }
.footer p { margin-bottom: 0.5rem; letter-spacing: 2px; }

/* === ANIMACIONES POR SCROLL (FADE-IN & SLIDE-UP) === */
.fade-in-section {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.7s cubic-bezier(0.215, 0.61, 0.355, 1);
    will-change: opacity, transform;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* === TAZA DE CAFÉ HUMEANTE EN LA BARRA DE MENÚ (PC Y MÓVIL) === */
.navbar-coffee-cup {
    display: inline-block;
    vertical-align: middle;
    z-index: 10;
}

.navbar-coffee-cup .steaming-coffee-svg {
    width: 68px;   /* Aumentado 25% (antes 54px) */
    height: 53px;  /* Aumentado 25% (antes 42px) */
    display: block;
    margin: 0 auto;
    overflow: visible !important; /* Evita que el vapor se corte al subir */
}

/* === VAPOR DE CAFÉ CON MOVIMIENTO REAL === */
.steam-line {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: realSteam 4s infinite linear;
    opacity: 0;
}

.steam-1 { animation-delay: 0s; }
.steam-2 { animation-delay: 1.6s; }
.steam-3 { animation-delay: 0.8s; }

@keyframes realSteam {
    0% {
        stroke-dashoffset: 20;
        opacity: 0;
        transform: translateY(8px) translateX(0) scaleX(0.8);
    }
    15% {
        opacity: 0.9;
    }
    45% {
        opacity: 0.7;
        transform: translateY(-4px) translateX(-3px) scaleX(1.1);
    }
    75% {
        opacity: 0.35;
        transform: translateY(-16px) translateX(3px) scaleX(1.3);
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0;
        transform: translateY(-26px) translateX(0px) scaleX(1.5);
    }
}

/* Animación de flotación orgánica para las tazas de la carta en móvil */
@keyframes floatCup {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-4px) rotate(2.5deg) scale(1.08);
    }
}

@media (max-width: 1050px) {
    body {
        background-attachment: scroll !important;
        background-size: auto, 320px !important;
        background-repeat: repeat !important;
    }
    
    .navbar-coffee-cup .steaming-coffee-svg {
        width: 60px;   /* Aumentado 25% (antes 48px) */
        height: 48px;  /* Aumentado 25% (antes 38px) */
        overflow: visible !important;
    }

    /* Animación continua y asíncrona para que las tazas de la carta no estén estáticas en celular */
    .group-icon-area .cup-svg {
        animation: floatCup 4s ease-in-out infinite;
    }

    .size-group:nth-child(even) .group-icon-area .cup-svg {
        animation-delay: 2s; /* Desfase de animación */
    }
}