/* ============================================================
   STYLE.CSS — David Menu Digital
   Minimalista · Dark · Mobile-first · Elegante
   ============================================================ */

/* ---------- VARIABLES ---------- */
:root {
  --bg:       #0a0a0f;
  --surface:  #12121a;
  --border:   rgba(255,255,255,.06);
  --text:     #e8e8ed;
  --dim:      #8b8b9a;
  --accent:   #d4a853;
  --white:    #fff;
  --radius:   16px;
  --font:     'Inter', sans-serif;
  --font-h:   'Poppins', sans-serif;
  --ease:     cubic-bezier(.16,1,.3,1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box }
html { scroll-behavior:smooth; -webkit-font-smoothing:antialiased }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
}
img { max-width:100%; display:block }
a { text-decoration:none; color:inherit }
button { cursor:pointer; border:none; background:none; font:inherit; color:inherit }

/* Fondo gradiente */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212,168,83,.05), transparent),
    radial-gradient(ellipse 40% 40% at 80% 90%, rgba(212,168,83,.03), transparent);
}


/* ============================================================
   HEADER — Minimal
   ============================================================ */
.header {
  position: fixed; top:0; left:0; right:0; z-index: 100;
  padding: 16px 24px;
  transition: background .3s, box-shadow .3s;
}
.header.scrolled {
  background: rgba(10,10,15,.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav {
  max-width: 1200px; margin:0 auto;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo {
  display: flex; align-items: center;
  transition: opacity .2s;
}
.nav-logo:hover { opacity: .7 }
.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-bar-logo {
  display: flex; align-items: center;
  transition: opacity .2s;
}
.nav-bar-logo:hover { opacity: .7 }
.bar-logo-img {
  height: 32px;
  width: auto;
  display: block;
}


/* ============================================================
   FULL-SCREEN PANELS — 3 paneles que llenan el viewport
   ============================================================ */
.main-full {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  padding: 72px 12px 12px;
}

.panels {
  display: flex;
  flex: 1;
  gap: 12px;
}

/* Cada panel */
.panel-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 16px;
  border-radius: var(--radius);
  border: none;
  text-align: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition:
    transform .4s var(--ease),
    box-shadow .4s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

/* Fondos sutiles por panel */
.panel-bar     { background: linear-gradient(180deg, rgba(212,168,83,.08), rgba(212,168,83,.01)); }
.panel-eventos { background: linear-gradient(180deg, rgba(255,80,80,.06), rgba(255,80,80,.01)); }
.panel-comida  { background: linear-gradient(180deg, rgba(255,140,60,.06), rgba(255,140,60,.01)); }

.panel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 80px rgba(212,168,83,.06), 0 16px 60px rgba(0,0,0,.35);
}
.panel-card:active { transform: scale(.98); transition: transform .1s var(--ease) }

/* Logo del panel */
.panel-logo {
  max-width: 75%;
  max-height: 55%;
  object-fit: contain;
  display: block;
  transition: transform .4s var(--ease);
  position: relative;
  z-index: 1;
}
.panel-card:hover .panel-logo { transform: scale(1.06); }

/* Título debajo del logo */
.panel-title {
  font-family: var(--font-h);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: .03em;
  position: relative;
  z-index: 1;
  transition: color .3s;
}
.panel-card:hover .panel-title { color: var(--accent); }

/* Tag sutil abajo */
.panel-tag {
  font-size: .72rem;
  font-weight: 500;
  color: var(--dim);
  padding: 5px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 100px;
  opacity: .6;
  transition: opacity .3s, border-color .3s, color .3s;
  position: relative;
  z-index: 1;
}
.panel-card:hover .panel-tag {
  opacity: 1;
  border-color: rgba(212,168,83,.25);
  color: var(--accent);
}


/* ============================================================
   SECCIONES (Bebidas & Ofertas)
   ============================================================ */
.section {
  position: relative; z-index: 1;
  padding: 80px 24px;
}
.section[aria-hidden="true"] { display: none }

.section-inner {
  max-width: 1100px; margin: 0 auto;
}

.sec-title {
  font-family: var(--font-h);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}
.sec-sub {
  text-align: center;
  color: var(--dim);
  font-size: 1.05rem;
  margin-bottom: 48px;
}


/* ---- Bebidas Accordion ---- */
.drinks-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.drink-category {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: rgba(255,255,255,.02);
  overflow: hidden;
  transition: border-color .3s var(--ease);
}
.drink-category[open] {
  border-color: rgba(212,168,83,.2);
  background: rgba(255,255,255,.03);
}

/* Cabecera de categoría */
.cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background .2s;
  -webkit-tap-highlight-color: transparent;
}
.cat-header::-webkit-details-marker { display: none }
.cat-header:hover { background: rgba(255,255,255,.03) }

.cat-name {
  flex: 1;
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -.01em;
}
.cat-count {
  font-size: .72rem;
  color: var(--dim);
  background: rgba(255,255,255,.05);
  padding: 2px 10px;
  border-radius: 100px;
}
.cat-arrow {
  font-size: .8rem;
  color: var(--dim);
  transition: transform .3s var(--ease);
}
.drink-category[open] .cat-arrow { transform: rotate(180deg); color: var(--accent) }

/* Items dentro de la categoría */
.cat-items {
  border-top: 1px solid var(--border);
  padding: 8px 0;
}

.drink-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  transition: background .15s;
}
.drink-row:hover { background: rgba(255,255,255,.02) }

.drink-row-name {
  flex: 1;
  font-size: .92rem;
  color: var(--text);
}
.drink-row-price {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: .95rem;
  color: var(--accent);
  white-space: nowrap;
}


/* ---- Ofertas Gallery (solo imágenes, sin texto) ---- */
.offers-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  background: rgba(255,255,255,.02);
}
.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 60px rgba(0,0,0,.35);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}
.gallery-item:hover img {
  transform: scale(1.05);
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative; z-index: 1;
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  font-size: .82rem; color: var(--dim);
}
.footer strong { color: var(--text) }


/* ============================================================
   BACK TO TOP
   ============================================================ */
.btn-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 99;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700;
  color: var(--white);
  background: rgba(18,18,26,.85);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-top.visible { opacity:1; visibility:visible; transform:translateY(0) }
.btn-top:hover { background: var(--accent); color: var(--bg); border-color: var(--accent) }


/* ============================================================
   ANIMACIONES
   ============================================================ */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(16px) }
  to   { opacity:1; transform:translateY(0) }
}


/* ============================================================
   EXTRAS — Admin link, Back link, Page sections
   ============================================================ */

/* Admin link en el header */
.nav-admin-link {
  font-size: .9rem;
  opacity: .4;
  transition: opacity .2s;
  padding: 4px 8px;
}
.nav-admin-link:hover { opacity: .8 }

/* ---- Video Background ---- */
.bg-video-wrap {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden;
}
.bg-video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
.bg-video-overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,15,.75);
}

/* Páginas secundarias (bebidas, ofertas) */
.page-section {
  padding-top: 120px;
  min-height: 70vh;
}

/* Botón volver al inicio */
.back-link-wrap {
  text-align: center;
  margin-top: 48px;
}
.back-link {
  display: inline-block;
  color: var(--dim);
  font-size: .9rem;
  font-weight: 500;
  padding: 10px 24px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  transition: color .2s, border-color .2s, background .2s;
}
.back-link:hover {
  color: var(--white);
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.03);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Móvil (< 640px): paneles en columna */
@media (max-width: 639px) {
  .main-full { padding: 72px 8px 8px; }
  .panels { flex-direction: column; }
  .panel-card { padding: 32px 20px; }
  .cat-header { padding: 14px 16px; }
  .drink-row { padding: 10px 16px; }
}

/* ≥ 900px: más espaciado */
@media (min-width: 900px) {
  .main-full { padding: 80px 20px 20px; }
  .panels { gap: 20px; }
  .panel-card { padding: 48px 24px; }
}
