:root {
  --bg: #0b0a09;
  --bg-2: #12100e;
  --panel: #161310;
  --line: rgba(240, 210, 150, .12);
  --line-strong: rgba(240, 210, 150, .28);
  --text: #f5efe6;
  --muted: #a89f92;
  --gold: #d9a94e;
  --gold-light: #f3d58a;
  --gold-grad: linear-gradient(120deg, #f6dc96 0%, #d9a94e 45%, #b9812f 70%, #ecc56d 100%);
  --ink: #1a1307;
  --wa: #25d366;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Textura sutil de grano */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
h1 em, h2 em {
  font-style: italic;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
p { margin: 0; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus { top: 12px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 760px) { .container { padding: 0 40px; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }

/* Botones */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  text-decoration: none;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}
.btn--gold {
  background: var(--gold-grad);
  color: var(--ink);
  box-shadow: 0 10px 30px -12px rgba(217, 169, 78, .6);
}
.btn--gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(217, 169, 78, .75); }
.btn--gold:hover::after { transform: translateX(120%); }
.btn--line { border: 1px solid var(--line-strong); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn--line:hover { border-color: var(--gold); background: rgba(217, 169, 78, .08); }
.btn--small { min-height: 42px; padding: 0 20px; font-size: 14px; }

/* Logo */
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; text-decoration: none; }
.logo__metro {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo__sub { margin-top: 3px; font-size: 8.5px; font-weight: 600; letter-spacing: .38em; text-transform: uppercase; color: var(--text); padding-left: .38em; }

/* Barra superior */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
}
.topbar.is-scrolled {
  background: rgba(11, 10, 9, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.topbar .logo { margin-right: auto; }
.nav { display: none; gap: 36px; }
.nav a { position: relative; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: .04em; transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
@media (min-width: 860px) { .nav { display: flex; } }
@media (max-width: 520px) {
  .topbar__inner { gap: 12px; }
  .hide-sm { display: none; }
}

/* Portada */
.hero {
  position: relative;
  padding: 140px 0 80px;
  background:
    radial-gradient(55% 60% at 80% 35%, rgba(217, 169, 78, .14), transparent 70%),
    radial-gradient(45% 50% at 5% 95%, rgba(150, 70, 25, .18), transparent 70%),
    var(--bg);
  overflow: hidden;
}
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; }
}
.hero h1 { font-size: clamp(48px, 9vw, 104px); }
.hero h1 em { display: block; padding-right: .1em; }
.hero__lead { margin-top: 28px; max-width: 520px; color: var(--muted); font-size: clamp(16px, 2vw, 18px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__art { display: flex; justify-content: center; }
.bottles { width: 100%; max-width: 300px; height: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .5)); }
@media (min-width: 960px) { .bottles { max-width: 460px; } }
.js .bottles { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .02);
  color: var(--muted);
  font-size: 14px;
}
.status strong { color: var(--text); font-weight: 600; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: #7c7368; }
.status.is-open .status__dot { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .15); }

/* Franja animada */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding: 22px 0 22px 40px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-style: italic;
  color: var(--muted);
  white-space: nowrap;
}
.marquee span::after { content: "✦"; font-size: 12px; font-style: normal; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Secciones */
.section { padding: 110px 0; }
.section--tight { padding: 0 0 110px; }
.section--panel { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { margin-bottom: 56px; max-width: 640px; }
.section__head h2, .cta h2 { font-size: clamp(38px, 6vw, 64px); }

/* Categorías */
.cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cats { grid-template-columns: repeat(3, 1fr); } }
.cat { position: relative; padding: 36px 32px 40px; background: var(--bg); transition: background-color .4s var(--ease); }
.cat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 0% 0%, rgba(217, 169, 78, .1), transparent 70%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.cat:hover::before { opacity: 1; }
.cat__icon { width: 34px; height: 34px; fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 28px; }
.cat__num { position: absolute; top: 34px; right: 32px; font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--line-strong); }
.cat h3 { font-size: 30px; margin-bottom: 10px; }
.cat p { color: var(--muted); font-size: 15px; }

/* Ventajas */
.perks { display: grid; gap: 40px; }
@media (min-width: 860px) { .perks { grid-template-columns: repeat(3, 1fr); gap: 56px; } }
.perk__line { display: block; width: 48px; height: 1px; background: var(--gold-grad); margin-bottom: 24px; }
.perk h3 { font-size: 28px; margin-bottom: 10px; }
.perk p { color: var(--muted); }
.perk a { color: var(--gold-light); }

/* Sucursales */
.branches { display: grid; gap: 24px; }
@media (min-width: 900px) { .branches { grid-template-columns: repeat(2, 1fr); } }
.branch {
  position: relative;
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0)), var(--bg);
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.branch:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.branch__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.branch h3 { font-size: 34px; }
@media (max-width: 520px) {
  .branch { padding: 30px 24px; }
  .branch__top { flex-direction: column; gap: 14px; }
  .branch__top .badge { order: -1; }
  .branch h3 { font-size: 30px; }
}
.branch__area { margin-top: 6px; color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.badge { flex-shrink: 0; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em; border: 1px solid var(--line-strong); color: var(--muted); }
.badge.is-open { color: #86efac; border-color: rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .08); }
.branch__info { margin: 0 0 24px; display: grid; gap: 16px; }
.branch__info dt { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.branch__info dd { margin: 4px 0 0; font-size: 16px; }
.branch__info a { text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: border-color .3s; }
.branch__info a:hover { border-color: var(--gold); }
.hours { list-style: none; margin: 0 0 28px; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 2px; font-size: 15px; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; margin: 0 -10px; border-radius: 8px; }
.hours li span { white-space: nowrap; }
.hours li span:first-child { color: var(--muted); }
.hours li.is-today { background: rgba(217, 169, 78, .08); }
.hours li.is-today span:first-child { color: var(--gold-light); font-weight: 600; }
@media (max-width: 400px) { .hours li span:first-child { white-space: normal; } }
.branch__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Llamado a la acción */
.cta {
  position: relative;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(217, 169, 78, .18), transparent 70%),
    var(--bg-2);
}
.cta .eyebrow { justify-content: center; }
.cta .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--gold); }
.cta > p:not(.eyebrow) { max-width: 480px; margin: 20px auto 0; color: var(--muted); font-size: 17px; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }

/* Pie */
.footer { padding: 64px 0 110px; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .footer { padding-bottom: 48px; } }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer__links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .3s; }
.footer__links a:hover { color: var(--gold-light); }
.footer__bottom { display: grid; gap: 10px; padding-top: 28px; color: var(--muted); font-size: 13px; }
.footer__bottom strong { color: var(--text); font-weight: 600; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .55);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }

/* Animación al aparecer (solo si hay JavaScript) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
