:root {
    --bg: #0e0e0e;
    --text: #e8e8e8;
    --accent: #ff4d00;
    --gray: #252525;
    --clear: #6f6f6f;
}

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

html,
body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Unbounded', sans-serif;
    background-color: var(--bg);
    color: var(--text);
}

/* Cursor veloz */
.cursor {
    width: 15px;
    height: 15px;
    background: var(--text);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

/* Loader */
.loader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
}

.loader-text {
    font-size: 2rem;
    letter-spacing: -2px;
}

.loader-text span {
    color: var(--accent);
}

nav {
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.logo {
    font-weight: 900;
    font-size: 1.2rem;
    background: var(--text);
    color: var(--bg);
    padding: 0.5rem 1rem;
    text-decoration: none;
}

/* Menú a la derecha */
.nav-links {
    list-style: none;
    text-align: right;
    margin-right: 5%;
}

.nav-links a {
    font-family: 'Space Mono', monospace;
    text-decoration: none;
    color: var(--text);
    font-size: 0.8rem;
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* Hero Wrapper - Grid para evitar solapamiento */
.hero {
    height: 100vh;
    padding: 0 5%;
    display: flex;
    align-items: center;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    width: 100%;
    align-items: center;
}

.hero-text-side h1 {
    font-size: clamp(5rem, 9vw, 9rem);
    line-height: 0.85;
    letter-spacing: -5px;
    text-transform: uppercase;
}

.hero-text-side h1 span {
    color: var(--accent);
    display: block;
}

.tagline {
    margin-top: 2rem;
    font-family: 'Space Mono';
    font-size: 0.8rem;
    color: var(--accent);
}

.hero-image-side {
    height: 80vh;
    width: 100%;
    overflow: hidden;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-image {
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1509042239860-f550ce710b93?q=80&w=1200') center/cover;
    filter: grayscale(1);
    transition: 0.5s ease;
}

.hero-image:hover {
    filter: grayscale(0);
}

/* Seccion con fotos */
.beans-section {
    padding: 100px 5%;
    border-top: 1px solid var(--gray);
}

.beans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.bean-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    filter: grayscale(1);
    transition: 0.5s;
}

.bean-card img:hover {
    filter: grayscale(0);
}

.bean-card h3 {
    margin-top: 20px;
    font-size: 1.2rem;
}

.bean-card p {
    font-family: 'Space Mono';
    color: var(--accent);
    font-size: 0.8rem;
}

/* Ritual (NUEVA) */
.ritual-section {
    padding: 150px 0;
    overflow: hidden;
    background: #000;
}

/* ACTUALIZA ESTA PARTE EN TU CSS */
.ritual-section {
    padding: 100px 0;
    overflow: hidden;
    background: #000;
}

.marquee {
    border-top: 1px solid var(--gray);
    border-bottom: 1px solid var(--gray);
    padding: 30px 0;
    display: flex;
    overflow: hidden;
    user-select: none;
}

.marquee-inner {
    display: flex;
    white-space: nowrap;
    animation: marquee-loop 20s linear infinite;
    /* Movimiento constante */
}

.marquee h2 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px var(--clear);
    text-transform: uppercase;
    padding-right: 50px;
}

@keyframes marquee-loop {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Efecto hover: se pone naranja cuando pasás el mouse */
.marquee:hover h2 {
    -webkit-text-stroke: 1px var(--accent);
    transition: 0.3s;
}

.ritual-content {
    padding: 80px 5%;
    display: flex;
    justify-content: flex-end;
}

.ritual-box {
    max-width: 500px;
}

.ritual-box p {
    font-family: 'Space Mono';
    font-size: 1.1rem;
    line-height: 1.6;
    color: #888;
}

/* Seccion Menu */
.menu-section {
    padding: 100px 5%;
    border-top: 1px solid var(--gray);
}

.section-tag {
    font-family: 'Space Mono';
    color: var(--accent);
    margin-bottom: 2rem;
    display: block;
}

.menu-layout {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.menu-big-text {
    flex: 1;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.menu-list {
    flex: 1;
}

.menu-item {
    padding: 2rem 0;
    border-bottom: 1px solid var(--gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-item:hover {
    color: var(--accent);
}

/* Footer */
.footer {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--accent);
    color: #000;
}

.footer h2 {
    font-size: clamp(4rem, 20vw, 15rem);
    line-height: 0.8;
}

.floating-info {
    position: fixed;
    bottom: 50px;
    left: -20px;
    transform: rotate(-90deg);
    font-family: 'Space Mono';
    font-size: 10px;
    color: var(--gray);
    z-index: 100;
}

.floating-info {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    font-family: 'Space Mono';
    font-size: 0.7rem;
    z-index: 100;
    transform: rotate(-90deg);
    transform-origin: left bottom;
    color: var(--gray);
}

.mobile-toggle {
    display: none;
}

/* Responsive Optimization */
@media (max-width: 900px) {
    nav {
        align-items: center;
        background: rgba(14, 14, 14, 0.8);
        backdrop-filter: blur(10px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        margin-right: 0;
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .mobile-toggle {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        z-index: 1001;
        cursor: pointer;
    }

    .mobile-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--text);
        position: absolute;
        transition: 0.3s;
    }

    .mobile-toggle span:nth-child(1) {
        top: 0;
    }

    .mobile-toggle span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .mobile-toggle span:nth-child(3) {
        bottom: 0;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
        bottom: 9px;
    }

    .hero {
        padding-top: 100px;
        height: auto;
        min-height: 100vh;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-text-side h1 {
        font-size: clamp(3.1rem, 15vw, 6rem);
        letter-spacing: -2px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    [data-scroll-container] {
        width: 100%;
        overflow-x: hidden;
    }

    .hero-image-side {
        display: block;
        height: 50vh;
        clip-path: none;
        order: -1;
    }

    .beans-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .bean-card img {
        height: 350px;
    }

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

    .menu-big-text {
        font-size: 2rem;
    }

    .floating-info {
        display: none;
    }

    .ritual-content {
        justify-content: flex-start;
    }

    .ritual-box p {
        font-size: 0.9rem;
    }
}



@media (max-width: 600px) {
    nav {
        padding: 1.5rem 5%;
    }

    .logo {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-text-side h1 {
        font-size: 3rem;
    }

    .section-tag {
        font-size: 0.7rem;
        margin-bottom: 1rem;
    }

    .menu-item {
        padding: 1.5rem 0;
    }

    .menu-item h3 {
        font-size: 0.9rem;
    }

    .price {
        font-size: 0.9rem;
    }

    .footer h2 {
        font-size: 15vw;
    }
}

/* Menu Page Specifics */
.menu-page-header {
    padding: 150px 5% 50px;
    border-bottom: 1px solid var(--gray);
}

.menu-category {
    padding: 80px 5%;
    border-bottom: 1px solid var(--gray);
}

.category-title {
    font-size: 0.8rem;
    font-family: 'Space Mono';
    color: var(--accent);
    margin-bottom: 3rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gray);
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 10%;
}

@media (max-width: 800px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
}

.back-link {
    font-family: 'Space Mono';
    color: var(--clear);
    text-decoration: none;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    transition: 0.3s;
}

.back-link:hover {
    color: var(--text);
}