/* ============================================================
   TFC — Hamburguesería artesanal · Paysandú
   styles.css — CSS3 puro, sin frameworks
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:         #0a0a0a;
  --surface:    #111111;
  --gold:       #C9A84C;
  --gold-light: #E8C96A;
  --white:      #FFFFFF;
  --muted:      rgba(255,255,255,0.45);
  --border:     rgba(255,255,255,0.07);

  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body:    'Montserrat', system-ui, sans-serif;

  --max:  1280px;
  --pad:  clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Grain ---------- */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9998;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: 14px;
}
.section-title--md { font-size: clamp(40px, 5.5vw, 72px); }

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .2s ease;
  will-change: transform;
}
.btn-gold {
  background: var(--gold);
  color: #0a0a0a;
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.28);
}
.btn-outline:hover {
  background: var(--gold);
  color: #0a0a0a;
  border-color: var(--gold);
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--gold);
  z-index: 10000;
  transition: width .08s linear;
}

/* ---------- Cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 5px; height: 5px;
  background: var(--gold);
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid rgba(201,168,76,0.7);
  transition: width .25s var(--ease), height .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease);
}
.cursor-ring.is-hover {
  width: 52px; height: 52px;
  background: rgba(201,168,76,0.08);
  border-color: var(--gold);
}
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, [data-magnetic], [data-product] { cursor: none; }
}
@media not all and (hover: hover) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease),
              border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo-placeholder {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.nav-logo { height: 38px; width: auto; }

.nav-links { display: flex; gap: 34px; }
.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.78);
  position: relative;
  padding: 4px 0;
  transition: color .3s ease;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width .3s var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

.nav-cta { padding: 12px 24px; font-size: 12px; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px; height: 22px;
  justify-content: center;
}
.nav-burger span {
  display: block; height: 2px; width: 100%;
  background: var(--white);
  transition: transform .35s var(--ease), opacity .25s ease;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }
.nav-overlay-links { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.nav-overlay-link {
  font-family: var(--font-display);
  font-size: clamp(38px, 11vw, 64px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  transition: color .3s ease;
}
.nav-overlay-link:hover { color: var(--gold); }
.nav-overlay-cta { margin-top: 14px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: -8% 0 0 0;
  z-index: 0;
  will-change: transform;
}
.hero-img {
  width: 100%; height: 116%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, #0a0a0a 4%, rgba(10,10,10,0.4) 45%, rgba(10,10,10,0.65) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--pad) clamp(70px, 12vh, 130px);
}
.hero-eyebrow { margin-bottom: 22px; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(80px, 14vw, 180px);
  line-height: 0.86;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.line-mask { display: block; overflow: hidden; }
.line { display: block; will-change: transform; }

.hero-sub {
  margin-top: 26px;
  max-width: 460px;
  font-weight: 300;
  font-size: 16px;
  color: rgba(255,255,255,0.7);
}
.hero-actions {
  margin-top: 34px;
  display: flex; flex-wrap: wrap; gap: 14px;
}

.hero-scroll {
  position: absolute; right: var(--pad); bottom: clamp(40px, 8vh, 70px);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.hero-scroll-label {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.hero-scroll-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  position: relative; overflow: hidden;
}
.hero-scroll-line::after {
  content: ''; position: absolute; top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--gold-light);
  animation: scrollPulse 1.8s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%   { transform: translateY(0); }
  100% { transform: translateY(300%); }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  will-change: transform;
}
.marquee-group {
  display: inline-flex; align-items: center;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}
.marquee-group > span { padding: 0 26px; }
.marquee-group .dot { color: rgba(201,168,76,0.5); padding: 0; }

/* ============================================================
   ESPECIALIDADES
   ============================================================ */
.specials { padding: clamp(80px, 12vw, 150px) 0; }
.specials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .5s var(--ease), border-color .5s var(--ease);
}
.card:hover { border-color: rgba(201,168,76,0.4); transform: translateY(-6px); }

.card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease), filter .6s var(--ease);
}
.card:hover .card-img { transform: scale(1.08); filter: brightness(0.6); }

.card-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--surface) 2%, rgba(17,17,17,0.1) 55%, transparent 100%);
}
.card-gold-overlay {
  position: absolute; inset: 0;
  background: rgba(201,168,76,0.15);
  opacity: 0;
  transition: opacity .5s var(--ease);
  mix-blend-mode: overlay;
}
.card:hover .card-gold-overlay { opacity: 1; }

.card-body {
  position: relative;
  padding: 0 26px 28px;
  margin-top: -54px;
  z-index: 2;
}
.card-num {
  font-family: var(--font-body);
  font-weight: 700; font-size: 12px; letter-spacing: 0.2em;
  color: var(--gold);
}
.card-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 6px 0 10px;
  transition: transform .4s var(--ease);
}
.card:hover .card-name { transform: translateY(-4px); }
.card-desc {
  font-weight: 300;
  font-size: 14px;
  color: var(--muted);
  min-height: 63px;
}
.card-foot {
  margin-top: 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.card-price {
  font-weight: 700; font-size: 22px;
  color: var(--gold);
}
.card-cta {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 9px 16px; border-radius: 2px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease),
              background .3s ease, color .3s ease, border-color .3s ease;
}
.card:hover .card-cta { opacity: 1; transform: translateY(0); }
.card-cta:hover { background: var(--gold); color: #0a0a0a; border-color: var(--gold); }

/* ============================================================
   MENÚ COMPLETO
   ============================================================ */
.menu {
  position: relative;
  background: var(--surface);
  padding: clamp(80px, 12vw, 150px) 0;
  overflow: hidden;
}
.menu-bg {
  position: absolute; inset: 0;
  background: url("assets/img/menu-bg.jpg") center/cover no-repeat;
  opacity: 0.10;
}
.menu-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--surface), rgba(17,17,17,0.5), var(--surface));
}
.menu-container { position: relative; z-index: 2; }
.menu-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
}
.menu-cat-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--gold);
}
.menu-cat-title--spaced { margin-top: 48px; }

.menu-item {
  display: flex; align-items: flex-start; gap: 20px;
  justify-content: space-between;
  padding: 18px 14px;
  margin: 0 -14px;
  border-bottom: 1px solid var(--border);
  border-radius: 3px;
  transition: background .3s ease;
}
.menu-item:hover { background: rgba(201,168,76,0.06); }
.menu-item-info { display: flex; flex-direction: column; gap: 4px; }
.menu-item-name {
  font-weight: 600; font-size: 16px;
  color: var(--white);
  display: inline-flex; align-items: center; gap: 10px;
}
.tag-signature {
  font-style: normal;
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
  padding: 3px 8px; border-radius: 999px;
}
.menu-item-desc { font-weight: 300; font-size: 13.5px; color: var(--muted); max-width: 42ch; }
.menu-item-price {
  font-weight: 700; font-size: 18px; color: var(--gold);
  white-space: nowrap;
  transition: color .3s ease, transform .3s ease;
}
.menu-item:hover .menu-item-price { color: var(--gold-light); transform: scale(1.05); }

/* ============================================================
   CÓMO PEDIRLO
   ============================================================ */
.order { padding: clamp(80px, 12vw, 150px) 0; }
.order-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 44px 32px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transition: transform .5s var(--ease), border-color .5s var(--ease);
}
.order-card:hover { transform: translateY(-6px); border-color: rgba(201,168,76,0.4); }
.order-icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 50%;
  color: var(--gold);
  margin-bottom: 22px;
}
.order-icon svg { width: 26px; height: 26px; }
.order-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 12px;
}
.order-text { font-weight: 300; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.order-link {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--gold);
  margin-top: auto;
  transition: color .3s ease;
}
.order-link:hover { color: var(--gold-light); }
.order-btn { margin-top: auto; }

/* ============================================================
   NOSOTROS
   ============================================================ */
.about { padding: clamp(80px, 12vw, 150px) 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.about-media {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.about-img { width: 100%; height: 100%; object-fit: cover; }
.about-text {
  margin: 22px 0 0;
  font-weight: 300; font-size: 16px;
  color: rgba(255,255,255,0.7);
  max-width: 46ch;
}
.about-stats {
  display: flex; gap: 40px; margin-top: 38px; flex-wrap: wrap;
}
.about-stats li { display: flex; flex-direction: column; }
.about-stats strong {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 60px); font-weight: 400;
  color: var(--gold); line-height: 1;
}
.about-stats span {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-top: 6px;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta {
  position: relative;
  padding: clamp(100px, 16vw, 200px) 0;
  text-align: center;
  overflow: hidden;
}
.cta-glow {
  position: absolute; top: 50%; left: 50%;
  width: 800px; height: 800px; max-width: 120vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201,168,76,0.16), transparent 62%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 2; }
.cta-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(70px, 13vw, 170px);
  line-height: 0.86;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.cta-sub { margin-top: 20px; font-weight: 300; font-size: 17px; color: rgba(255,255,255,0.7); }
.cta-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-top: clamp(56px, 8vw, 90px);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-logo { font-size: 48px; display: block; }
.footer-tagline { margin-top: 12px; font-weight: 300; font-size: 14px; color: var(--muted); }
.footer-h {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.footer-a, .footer-p {
  display: block;
  font-size: 14px; font-weight: 400;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
  transition: color .3s ease;
}
.footer-a:hover { color: var(--gold); }
.footer-p--muted { color: var(--muted); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 26px; padding-bottom: 30px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}
.footer-credit a { color: var(--gold); }

/* ============================================================
   REVEAL STATES
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

[data-reveal-clip] {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease);
}
[data-reveal-clip].is-revealed { clip-path: inset(0 0 0 0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .specials-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .card-desc { min-height: 0; }
  .order-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .menu-cols { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 440px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .hero { align-items: center; }
  .hero-content { padding-bottom: 0; padding-top: 90px; }
  .hero-scroll { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
