/* ============ Base ============ */
:root {
  /* Paleta basada en el menú (cancha vino + logo blanco) */
  --bg: #0d080a;
  --surface: rgba(22, 12, 16, 0.86);
  --surface-2: rgba(32, 18, 24, 0.9);
  --text: #f5f1ed;
  --muted: rgba(245, 241, 237, 0.7);
  --border: rgba(245, 241, 237, 0.14);
  --shadow: 0 20px 60px rgba(0,0,0,.48);
  --accent: #f6d9b0; /* acento cálido que contraste con el fondo vino */
  --accent-2: #f1c78c;
  --bg-img: url('../img/bg_dark.jpg');

  --radius: 16px;
  --radius-sm: 12px;

  --container: 1100px;
  --pad: 20px;

  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f3f8;
  --text: #0f1222;
  --muted: rgba(15,18,34,.72);
  --border: rgba(15,18,34,.12);
  --shadow: 0 18px 50px rgba(15,18,34,.12);
  --bg-img: url('../img/bg_light.jpg');

  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  position: relative;
}

/* Fondo: foto + overlay vino + ruido ligero para textura de cancha */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(0,0,0,0.40) 0%, rgba(0,0,0,0.28) 38%, rgba(0,0,0,0.42) 100%),
    linear-gradient(180deg, rgba(48,8,16,0.38), rgba(20,6,10,0.55)),
    var(--bg-img) center/cover no-repeat;
  background-blend-mode: multiply, overlay, normal;
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.06), transparent 32%),
    radial-gradient(circle at 80% 40%, rgba(255,255,255,0.04), transparent 28%),
    radial-gradient(circle at 60% 80%, rgba(0,0,0,0.18), transparent 34%);
  z-index: -1;
  pointer-events: none;
  opacity: .55;
}

a { color: inherit; }
.container {
  width: min(var(--container), 100%);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--surface);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.skip-link:focus { left: 10px; z-index: 9999; }

/* Focus visible */
:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--accent) 85%, white 15%);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06110a;
  font-weight: 900;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand-text { font-weight: 900; letter-spacing: .08em; font-size: 14px; }

.nav {
  display: none;
  gap: 14px;
  align-items: center;
}
.nav a {
  text-decoration: none;
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--muted);
}
.nav a:hover { background: var(--surface-2); color: var(--text); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.theme-ico { font-size: 16px; }
.theme-label { font-size: 14px; color: var(--muted); }

@media (min-width: 860px) {
  .nav { display: inline-flex; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 26px;
}

.hero-inner {
  display: grid;
  gap: 22px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(245, 241, 237, 0.75);
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero h1 {
  margin: 10px 0 10px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.06;
  color: #f5f1ed;
}

.lead {
  margin: 0;
  color: rgba(245, 241, 237, 0.9);
  font-size: 16px;
  line-height: 1.6;
  max-width: 58ch;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
  font-weight: 700;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06110a;
  border-color: color-mix(in oklab, var(--accent) 65%, black 35%);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.badge {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  color: var(--muted);
  font-size: 13px;
}

.hero-media { position: relative; }
.hero-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  transform-origin: center;
  animation: heroFloat 5.5s ease-in-out infinite;
}
.hero-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.hero-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 14px 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.65));
}
[data-theme="light"] .hero-card-overlay {
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
}
.hero-card-title { color: rgba(255,255,255,.82); font-weight: 900; letter-spacing: .08em; }
.hero-card-sub { color: rgba(255,255,255,.82); font-size: 14px; }

.hero-glow {
  position: absolute;
  inset: -240px -200px auto -200px;
  height: 420px;
  background:
    radial-gradient(closest-side, rgba(0,230,118,.22), transparent 70%),
    radial-gradient(closest-side, rgba(0,200,83,.18), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.01); }
}

@media (min-width: 900px) {
  .hero { padding: 78px 0 34px; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; }
}

/* ============ Sections ============ */
.section { padding: 56px 0; }
.section-head h2 { margin: 0 0 10px; font-size: 30px; }
.section-head p { margin: 0; color: var(--muted); line-height: 1.6; }

[data-theme="light"] .section-head h2 { color: #f5f1ed; }
[data-theme="light"] .section-head p { color: rgba(245, 241, 237, 0.85); }

.features {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.feature h3 { margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); line-height: 1.6; }

@media (min-width: 900px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}

/* ============ Menu ============ */
.notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--muted);
}

.menu-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.menu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.menu-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: .02em;
}

.menu-items { display: grid; gap: 12px; }
.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
.menu-item:last-child { border-bottom: none; padding-bottom: 0; }

.menu-item-name { font-weight: 800; }
.menu-item-desc, .menu-item-notes {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}
.menu-item-price {
  font-weight: 900;
  color: color-mix(in oklab, var(--accent) 75%, var(--text) 25%);
  white-space: nowrap;
}

.menu-extras {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 2px;
}
.pill {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
}

@media (min-width: 920px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .menu-item { grid-template-columns: 1fr; }
  .menu-item-price { justify-self: flex-start; }
}

/* ============ Promos ============ */
.promo-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
.promo-card {
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.promo-card h3 { margin: 0 0 8px; }
.promo-card p { margin: 0; color: var(--muted); line-height: 1.6; }

@media (min-width: 900px) {
  .promo-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============ Gallery ============ */
.gallery-grid {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  grid-template-columns: repeat(2, 1fr);
}
.ph {
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  min-height: 110px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============ Contact ============ */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  gap: 18px;
}
.contact-copy p { color: var(--muted); line-height: 1.6; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.fineprint { font-size: 13px; opacity: .9; }

.map-ph {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: 18px;
  min-height: 200px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 900px) {
  .contact-card { grid-template-columns: 1.05fr .95fr; align-items: stretch; }
  .map-ph { min-height: 100%; }
}

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-links { display: inline-flex; gap: 12px; }
.footer-links a { text-decoration: none; padding: 8px 10px; border-radius: 12px; }
.footer-links a:hover { background: var(--surface); color: var(--text); }

/* ============ WhatsApp floating ============ */
.wa-float {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 60;
  padding: 12px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06110a;
  text-decoration: none;
  font-weight: 900;
  box-shadow: var(--shadow);
  border: 1px solid color-mix(in oklab, var(--accent) 60%, black 40%);
}
@media (min-width: 900px) {
  .wa-float { display: none; }
}

/* ============ Reveal animations ============ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; }
  .hero-card { animation: none; }
  .btn { transition: none; }
}
