/* Las Pipas de Einstein - estilos propios (Tailwind Play CDN aporta utilidades de layout) */
:root {
    --carbon: #0b0b0b;
    --coal: #1f1f1f;
    --gold: #e9ce87;
    --wood: #563428;
    --fire: #be1824;
    --flame: #d51415;
    --mustard: #e7b11b;
    --yellow: #e0b70f;
    --muted: #cfc8b8;
    --nav-h: 7.5rem;
}

[hidden] { display: none !important; }
html { scroll-padding-top: var(--nav-h); }
body {
    background-color: var(--carbon);
    background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .028) 0 46px, transparent 46px 120px);
    overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Oswald', Impact, sans-serif; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--mustard); color: #000; padding: .6rem 1rem; z-index: 100; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Madera oscura (tablas) + rayas diagonales */
.wood-dark {
    background-color: #17110e;
    background-image:
        repeating-linear-gradient(115deg, rgba(255, 255, 255, .03) 0 46px, transparent 46px 120px),
        linear-gradient(180deg, rgba(11, 11, 11, .86), rgba(11, 11, 11, .94)),
        repeating-linear-gradient(0deg, #3a2419 0 54px, #2a1a12 54px 57px, #46291d 57px 110px, #1e130d 110px 113px);
}

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .9rem 1.8rem; font-family: 'Oswald', sans-serif; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; transition: transform .2s, box-shadow .2s, background-color .2s; text-align: center; }
.btn:hover { transform: translateY(-3px); }
.btn-gold { background: var(--mustard); color: #111; box-shadow: 0 6px 22px rgba(231, 177, 27, .3); }
.btn-gold:hover { background: var(--gold); box-shadow: 0 10px 28px rgba(231, 177, 27, .5); }
.btn-ghost { border: 2px solid var(--gold); color: var(--gold); }
.btn-ghost:hover { background: var(--gold); color: #111; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 4rem 0 5rem; }
.hero-embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero-logo { width: min(340px, 82vw); height: auto; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .7));  mix-blend-mode: lighten; }
@media (min-width: 1024px) { .hero-logo { width: 460px; } }
.hero-photos { position: relative; height: 330px; max-width: 520px; width: 100%; margin: 0 auto; perspective: 900px; }
@media (min-width: 640px) { .hero-photos { height: 420px; } }
.hero-photo { position: absolute; margin: 0; border-radius: 14px; overflow: hidden; border: 3px solid var(--gold); box-shadow: 0 20px 50px rgba(0, 0, 0, .7); transition: transform .15s ease-out; will-change: transform; background: #000; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-photo-a { width: 82%; aspect-ratio: 503 / 302; top: 0; right: 0; transform: rotate(3deg); }
.hero-photo-b { width: 52%; aspect-ratio: 432 / 402; bottom: 0; left: 0; transform: rotate(-4deg); border-color: var(--mustard); }
.scroll-cue { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--gold); border-radius: 14px; z-index: 1; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--gold); border-radius: 2px; animation: cue 1.6s infinite; }
@keyframes cue { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* Cinta de fotos */
.marquee { overflow: hidden; background: #000; border-block: 4px solid var(--mustard); padding: .6rem 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; gap: .6rem; padding-right: .6rem; }
.marquee-set img { height: 180px; width: auto; border-radius: 8px; display: block; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Nav sticky */
.menu-nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 11, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 3px solid var(--mustard); }
.nav-row { display: flex; align-items: center; gap: .6rem; padding: .6rem 0 .3rem; }
.tabs { display: flex; gap: .3rem; background: var(--coal); padding: .25rem; border-radius: 999px; flex: none; }
.tab { padding: .45rem .9rem; border-radius: 999px; font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; font-size: .9rem; color: var(--gold); transition: background-color .2s, color .2s; white-space: nowrap; }
.tab.is-active { background: var(--mustard); color: #111; }
.search { display: flex; align-items: center; gap: .5rem; flex: 1; min-width: 0; margin-left: auto; max-width: 20rem; background: var(--coal); border: 1px solid #3a3a3a; border-radius: 999px; padding: 0 .9rem; color: var(--gold); }
.search:focus-within { border-color: var(--mustard); box-shadow: 0 0 0 3px rgba(231, 177, 27, .3); }
.search input { background: transparent; border: 0; outline: 0; color: #fff; padding: .55rem 0; width: 100%; min-width: 0; font-size: .95rem; }
.search input::placeholder { color: #a9a293; }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding: .4rem 0 .7rem; scrollbar-width: none; position: relative; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: .3rem .85rem; border: 1px solid #4a4a4a; border-radius: 999px; font-size: .85rem; color: #ddd5c3; transition: all .2s; white-space: nowrap; }
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.is-active { background: var(--gold); border-color: var(--gold); color: #111; font-weight: 600; }
.chip[hidden] { display: none; }

/* Secciones y tarjetas */
.menu-group { padding: 4.5rem 0 3rem; }
.group-head { text-align: center; margin-bottom: 2.5rem; }
.group-title { font-size: clamp(2.4rem, 7vw, 4.2rem); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; line-height: 1.05; }
.rule { display: block; width: 90px; height: 5px; margin-top: .8rem; background: linear-gradient(90deg, var(--fire), var(--mustard)); border-radius: 3px; }
.group-head .rule { margin-inline: auto; }

.cards { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .cards { grid-template-columns: 1fr 1fr; gap: 2rem; } }

.card { position: relative; background: linear-gradient(160deg, #1f1f1f, #111); border: 1px solid #333; border-top: 4px solid var(--mustard); border-radius: 14px; overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; }
.card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(233, 206, 135, .12) 50%, transparent 65%); transform: translateX(-120%); transition: transform .8s; }
.card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 18px 40px rgba(0, 0, 0, .6), 0 0 0 1px rgba(233, 206, 135, .25); }
.card:hover::after { transform: translateX(120%); }
.card-photo { overflow: hidden; aspect-ratio: 16 / 7; border-bottom: 3px solid var(--fire); background: #000; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; transition: transform .8s ease; display: block; }
.card:hover .card-photo img { transform: scale(1.08); }
.card-body { padding: 1.3rem 1.3rem 1.1rem; }
.card-title { font-size: 1.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; margin-bottom: .8rem; }
.card-title small { font-family: 'Inter', sans-serif; font-size: .8rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--gold); margin-left: .3rem; }

.items { list-style: none; margin: 0; padding: 0; }
.menu-item { display: flex; align-items: baseline; gap: .5rem; padding: .42rem .3rem; border-radius: 6px; transition: background-color .2s; }
.menu-item:hover { background: rgba(233, 206, 135, .08); }
.item-label { flex: 0 1 auto; min-width: 0; }
.item-name { font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 1.06rem; letter-spacing: .02em; text-transform: uppercase; }
.item-note { display: inline-block; font-size: .78rem; color: var(--muted); font-style: italic; text-transform: none; }
.dots { flex: 1 1 1rem; min-width: .8rem; border-bottom: 2px dotted rgba(233, 206, 135, .45); transform: translateY(-.28em); }
.price { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 1.1rem; color: var(--mustard); white-space: nowrap; font-variant-numeric: tabular-nums; }
.item-break { height: 1px; margin: .55rem 0; background: linear-gradient(90deg, transparent, var(--wood), var(--gold), var(--wood), transparent); }

/* Filas aparecen al entrar la tarjeta */
.js .card .menu-item { opacity: 0; transform: translateX(-12px); }
.js .card.aos-animate .menu-item { animation: rowIn .5s ease both; animation-delay: calc(var(--i) * 45ms + 150ms); }
@keyframes rowIn { to { opacity: 1; transform: none; } }
.no-aos .card .menu-item, .searching .card .menu-item { opacity: 1 !important; transform: none !important; animation: none !important; }
.no-aos [data-aos], .searching [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }

.no-results { text-align: center; padding: 4rem 1.5rem; font-size: 1.2rem; color: var(--gold); }
.no-results[hidden] { display: none; }

/* Foto destacada (parallax) */
.feature { position: relative; overflow: hidden; min-height: 420px; display: flex; align-items: center; background: #000; }
.feature-img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.feature-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 11, 11, .95) 10%, rgba(11, 11, 11, .55) 60%, rgba(11, 11, 11, .75)); }
.feature-text { position: relative; width: 100%; padding-block: 3rem; }

/* Banner promo */
.promo { background: var(--yellow); color: #0b0b0b; text-align: center; padding: 1.4rem 1rem; border-block: 4px solid #0b0b0b; margin-top: 2rem; }
.promo p { font-family: 'Oswald', sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(1.15rem, 3.4vw, 2rem); letter-spacing: .02em; }

/* Contacto */
.contact { padding: 4.5rem 0 0; }
.contact .rule { margin-bottom: 2.5rem; }
.contact-strip { background: var(--yellow); color: #0b0b0b; padding: 1.8rem 0; }
.contact-link { display: inline-flex; align-items: center; gap: .6rem; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: clamp(1.2rem, 3.4vw, 1.6rem); padding: .4rem .2rem; border-bottom: 3px solid transparent; transition: border-color .2s, transform .2s; }
.contact-link:hover { border-color: #0b0b0b; transform: translateY(-2px); }
.contact-strip :focus-visible { outline-color: #0b0b0b; }

.footer { background: #000; text-align: center; padding: 2.5rem 1rem 6rem; color: var(--muted); display: grid; gap: .6rem; justify-items: center; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #05381b; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); transition: transform .2s; }
.wa-float:hover { transform: scale(1.1); }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.4s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

@media (max-width: 639px) {
    :root { --nav-h: 6.6rem; }
    .tab { padding: .4rem .7rem; font-size: .82rem; }
    .card-title { font-size: 1.6rem; }
    .marquee-set img { height: 130px; }
    .menu-group { padding-top: 3.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .card .menu-item { opacity: 1; transform: none; }
    .marquee { overflow-x: auto; }
    .hero-embers { display: none; }
}
