/* ═══════════════════════════════════════════
   LA DROGUERIA — Design System
   Pure static CSS — no build tools
   ═══════════════════════════════════════════ */

:root {
  --bg:         #080808;
  --bg-2:       #111111;
  --bg-3:       #1a1a1a;
  --gold:       #D4A843;
  --amber:      #C17A2E;
  --cream:      #F2EBD9;
  --yellow:     #F5C842;
  --text:       #F0EBE3;
  --muted:      #888580;
  --faint:      #444440;
  --matcha:     #7A9E5F;
  --cold:       #4A7C9E;

  --ff-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-body:    "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --ff-mono:    "DM Mono", "Courier New", monospace;

  --nav-h: 72px;
  --max-w: 1400px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

@media (hover: hover) and (pointer: fine) {
  body, a, button { cursor: none; }
}

::selection { background: var(--gold); color: var(--bg); }

img { display: block; max-width: 100%; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 1.15;
}

p { margin-bottom: 1.4rem; }
a { color: inherit; text-decoration: none; }

button {
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
}

/* ── LAYOUT ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 48px; } }

.section { padding: 120px 0; }
@media (max-width: 768px) { .section { padding: 72px 0; } }

.section-heading {
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
  margin-bottom: 56px;
  color: var(--cream);
}

/* ── CUSTOM CURSOR ── */
.custom-cursor {
  position: fixed;
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%,-50%);
  transition: width .25s cubic-bezier(.23,1,.32,1),
              height .25s cubic-bezier(.23,1,.32,1),
              background .25s ease, opacity .2s ease;
  will-change: transform;
  opacity: 0;
}
.custom-cursor.visible { opacity: 1; }
.custom-cursor.hover {
  width: 44px; height: 44px;
  background: transparent;
  border: 1.5px solid var(--gold);
}
@media (hover: none), (pointer: coarse) {
  .custom-cursor { display: none !important; }
}

/* ── BUTTON ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color .4s ease;
}

.btn-outline {
  border: 1px solid var(--gold);
  color: var(--gold);
}
.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s cubic-bezier(.86,0,.07,1);
}
.btn-outline:hover { color: var(--bg); }
.btn-outline:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* ══════════ NAV ══════════ */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background .4s ease, box-shadow .4s ease;
}
.nav.scrolled {
  background: rgba(8,8,8,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,.04);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .nav-container { padding: 0 48px; } }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
}
.logo-icon { flex-shrink: 0; }
.logo-text {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-link {
  font-size: .82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  transition: color .3s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .35s cubic-bezier(.23,1,.32,1);
}
.nav-link:hover::after { width: 100%; }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 1001;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* Mobile overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-overlay-links {
  display: flex;
  flex-direction: column;
  gap: 36px;
  text-align: center;
}
.mobile-link {
  font-family: var(--ff-display);
  font-size: 2.6rem;
  color: var(--text);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .45s ease, transform .45s ease, color .3s ease;
}
.mobile-link:hover { color: var(--gold); }
.mobile-overlay.open .mobile-link { opacity: 1; transform: translateY(0); }
.mobile-overlay.open .mobile-link:nth-child(1) { transition-delay: .08s; }
.mobile-overlay.open .mobile-link:nth-child(2) { transition-delay: .16s; }
.mobile-overlay.open .mobile-link:nth-child(3) { transition-delay: .24s; }
.mobile-overlay.open .mobile-link:nth-child(4) { transition-delay: .32s; }

/* ══════════ HERO ══════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, rgba(212,168,67,.04) 0%, transparent 60%);
}

.noise-overlay {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  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='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none;
  animation: grain .8s steps(3) infinite;
  z-index: 1;
}
@keyframes grain {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-5%,-5%); }
  40%  { transform: translate(5%,-10%); }
  60%  { transform: translate(-10%,5%); }
  80%  { transform: translate(10%,5%); }
  100% { transform: translate(5%,0); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hero-title {
  font-size: clamp(3rem, 12vw, 120px);
  line-height: 1.08;
  margin-bottom: 2rem;
  letter-spacing: -.02em;
}
.hero-line-1 { font-style: italic; }
.hero-line-2 { color: var(--gold); }

/* Word-wrap animation containers */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.word-inner {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
}

.hero-sub {
  font-family: var(--ff-mono);
  font-size: clamp(.7rem, 1.2vw, .88rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(16px);
}

.hero-cta {
  opacity: 0;
  transform: translateY(16px);
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--faint);
  animation: bob 2.5s ease-in-out infinite;
  opacity: 0;
}
@keyframes bob {
  0%,100% { transform: translate(-50%,0); }
  50%     { transform: translate(-50%,10px); }
}

/* ══════════ ABOUT ══════════ */
.about { position: relative; }
.about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--faint) 50%, transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  margin-bottom: 72px;
}
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

.pull-quote {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--cream);
  font-style: italic;
  line-height: 1.25;
  position: sticky;
  top: calc(var(--nav-h) + 48px);
}

.about-right p { color: var(--muted); font-size: 1.05rem; line-height: 1.8; }

.callout-box {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--bg-3);
  border-left: 2px solid var(--gold);
  border-radius: 0 4px 4px 0;
}
.callout-title { color: var(--text); margin-bottom: .4rem; }
.callout-sub { font-size: .88rem; color: var(--muted); margin-bottom: 0; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--faint);
  padding-top: 48px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  color: var(--gold);
  padding: 20px;
  border-radius: 4px;
  transition: background .3s ease;
}
.stat:hover { background: var(--bg-3); }
.stat span {
  font-family: var(--ff-mono);
  font-size: .8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

@media (max-width: 768px) {
  .stats-row { grid-template-columns: 1fr; gap: 12px; }
  .stat { flex-direction: row; justify-content: center; gap: 12px; }
}

/* ══════════ MENU ══════════ */
.menu {
  background: var(--bg-2);
  position: relative;
}
.menu::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--faint) 50%, transparent);
}

.menu-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 48px;
}
.tab {
  font-family: var(--ff-mono);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 18px;
  border-radius: 2px;
  transition: color .3s ease, background .3s ease;
  position: relative;
}
.tab:hover { color: var(--text); background: rgba(255,255,255,.03); }
.tab.active { color: var(--gold); background: rgba(212,168,67,.08); }
.tab::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .35s ease, left .35s ease;
}
.tab.active::after { width: 60%; left: 20%; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
  min-height: 200px;
}
@media (min-width: 1200px) {
  .menu-grid { grid-template-columns: repeat(3,1fr); }
}

.menu-card {
  background: var(--bg-3);
  padding: 24px 24px 20px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid transparent;
  transition: transform .4s cubic-bezier(.23,1,.32,1),
              box-shadow .4s ease,
              border-color .4s ease;
}
.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 36px rgba(212,168,67,.12);
  border-color: rgba(212,168,67,.18);
}

.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-name { font-family: var(--ff-display); font-size: 1.3rem; color: var(--text); line-height: 1.3; }
.card-price { font-family: var(--ff-mono); color: var(--gold); font-size: 1rem; white-space: nowrap; padding-top: 3px; }
.card-desc { color: var(--muted); font-size: .86rem; margin-bottom: 10px; flex-grow: 1; line-height: 1.5; }

.card-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.pill {
  font-family: var(--ff-mono);
  font-size: .63rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 10px;
  border-radius: 999px;
}
.pill-espresso { color: var(--amber); background: rgba(193,122,46,.12); }
.pill-matcha   { color: var(--matcha); background: rgba(122,158,95,.12); }
.pill-coldbrew { color: var(--cold); background: rgba(74,124,158,.12); }
.pill-beans    { color: var(--text); background: rgba(255,255,255,.07); }

.badge {
  font-family: var(--ff-mono);
  font-size: .63rem;
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.menu-footnote {
  text-align: center;
  font-family: var(--ff-mono);
  font-size: .8rem;
  color: var(--muted);
  padding-top: 32px;
  border-top: 1px solid rgba(68,68,64,.4);
  margin-bottom: 0;
}

/* ══════════ GALLERY ══════════ */
.gallery {
  position: relative;
}
.gallery::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--faint) 50%, transparent);
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 160px;
  gap: 14px;
}
@media (min-width: 768px) { .mosaic { gap: 18px; grid-auto-rows: 180px; } }

.tile {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  transition: transform .5s cubic-bezier(.23,1,.32,1);
}
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: border-color .35s ease;
  pointer-events: none;
  z-index: 3;
}
.tile:hover { transform: scale(1.02); z-index: 10; }
.tile:hover::after { border-color: var(--gold); }

/* Noise texture on tiles */
.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  z-index: 1;
  pointer-events: none;
}

.tile-label {
  position: absolute;
  bottom: 14px; left: 14px;
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  z-index: 2;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
  background: rgba(8,8,8,.55);
  padding: 4px 10px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}
.tile:hover .tile-label { opacity: 1; transform: translateY(0); }

/* Tile sizes */
.t1  { grid-column: span 5; grid-row: span 2; }
.t2  { grid-column: span 4; grid-row: span 1; }
.t3  { grid-column: span 3; grid-row: span 2; }
.t4  { grid-column: span 4; grid-row: span 1; }
.t5  { grid-column: span 4; grid-row: span 2; }
.t6  { grid-column: span 5; grid-row: span 1; }
.t7  { grid-column: span 3; grid-row: span 1; }
.t8  { grid-column: span 4; grid-row: span 2; }
.t9  { grid-column: span 5; grid-row: span 1; }
.t10 { grid-column: span 3; grid-row: span 1; }
.t11 { grid-column: span 5; grid-row: span 1; }
.t12 { grid-column: span 4; grid-row: span 1; }

@media (max-width: 768px) {
  .mosaic { grid-template-columns: repeat(2,1fr); grid-auto-rows: 180px; }
  .tile { grid-column: span 1 !important; grid-row: span 1 !important; }
  .t1, .t5 { grid-column: span 2 !important; }
}
@media (max-width: 480px) {
  .mosaic { grid-template-columns: 1fr; }
  .t1, .t5 { grid-column: span 1 !important; }
}

/* ══════════ VISIT ══════════ */
.visit {
  background: var(--bg-2);
  position: relative;
}
.visit::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--faint) 50%, transparent);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 992px) {
  .visit-grid { grid-template-columns: 1fr; gap: 40px; }
}

.visit-info { display: flex; flex-direction: column; gap: 32px; }
.info-row { display: flex; gap: 18px; align-items: flex-start; }
.info-icon { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.info-row p { color: var(--text); font-size: 1.02rem; line-height: 1.8; margin-bottom: 0; }

.instagram-cta { margin-top: 8px; }

.visit-map {
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(212,168,67,.28);
  transition: border-color .4s ease;
}
.visit-map:hover { border-color: var(--gold); }
.visit-map iframe {
  width: 100%; height: 100%;
  filter: grayscale(100%) contrast(1.1) brightness(.6);
  transition: filter .6s ease;
}
.visit-map:hover iframe {
  filter: grayscale(40%) contrast(1.1) brightness(.8);
}

/* ══════════ FOOTER ══════════ */
.footer {
  border-top: 1px solid var(--gold);
  padding: 32px 0;
  background: var(--bg);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-family: var(--ff-mono);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  transition: color .3s ease;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  font-family: var(--ff-mono);
  font-size: .74rem;
  color: var(--faint);
}

@media (max-width: 768px) {
  .footer-row { flex-direction: column; text-align: center; }
}

/* ══════════ REVEAL (initial hidden state for GSAP) ══════════ */
.reveal-el {
  opacity: 0;
  transform: translateY(28px);
}
