/*
Theme Name: Boka Bistró
Theme URI: https://bokabistro.es
Author: Boka Bistró
Description: Tema personalizado para Boka Bistró – Café, Tapas y Cocina
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: boka-bistro
*/

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

:root {
  --cream:   #faf8f4;
  --white:   #ffffff;
  --dark:    #1a1a18;
  --mid:     #3d3d38;
  --accent:  #c8a96e;
  --accent2: #e8d5a3;
  --green:   #4a7c59;
  --muted:   #7a7a72;
  --border:  #e8e4dd;
  --r: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2.5rem;
  background: rgba(250,248,244,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.07); }
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -.3px;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--dark);
  color: var(--white) !important;
  padding: .5rem 1.2rem;
  border-radius: 50px;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--accent) !important; color: var(--dark) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.4rem; }

/* ─── HERO ─── */
#hero {
  height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,26,24,.45) 0%, rgba(26,26,24,.65) 100%);
}
#hero.loaded .hero-bg { transform: scale(1); }
.hero-content {
  position: relative; z-index: 2;
  padding: 2rem;
  animation: fadeUp .9s .1s both;
}
.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 50px;
  margin-bottom: 1.4rem;
}
.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 9vw, 6.5rem);
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.hero-content h1 em { color: var(--accent); font-style: normal; }
.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,.8);
  max-width: 520px; margin: 0 auto 2.2rem;
  font-weight: 300;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent);
  color: var(--dark);
  padding: .85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  letter-spacing: .02em;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,169,110,.4); }
.btn-outline {
  border: 1.5px solid rgba(255,255,255,.5);
  color: var(--white);
  padding: .85rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: .92rem;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.5); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero-scroll::before {
  content: '';
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.4));
}

/* ─── SECTION COMMONS ─── */
section { padding: 6rem 1.5rem; }
.section-inner { max-width: 1160px; margin: 0 auto; }
.section-label {
  font-size: .72rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: .6rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--muted); font-size: 1rem; font-weight: 300;
  max-width: 520px; margin-bottom: 3rem;
}

/* ─── AMBIENCE STRIP ─── */
#ambience { padding: 0; background: var(--white); }
.ambience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0; overflow: hidden;
}
.ambience-item { position: relative; overflow: hidden; aspect-ratio: 3/4; }
.ambience-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.ambience-item:hover img { transform: scale(1.06); }
.ambience-item .cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.2rem 1rem .8rem;
  background: linear-gradient(transparent, rgba(26,26,24,.7));
  color: var(--white); font-size: .82rem; font-weight: 500; letter-spacing: .04em;
  opacity: 0; transition: opacity .3s;
}
.ambience-item:hover .cap { opacity: 1; }

/* ─── HIGHLIGHTS ─── */
#highlights { background: var(--cream); }
.highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.hl-card {
  background: var(--white);
  border-radius: var(--r);
  padding: 2rem 1.8rem;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.hl-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.06); }
.hl-icon { font-size: 2rem; margin-bottom: 1rem; }
.hl-card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: .5rem; }
.hl-card p { color: var(--muted); font-size: .9rem; }

/* ─── MENU ─── */
#menu { background: var(--white); }
.menu-tabs { display: flex; gap: .5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.tab-btn {
  padding: .55rem 1.3rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: none; cursor: pointer;
  font-size: .85rem; font-weight: 500; color: var(--muted);
  transition: all .2s; font-family: 'Inter', sans-serif;
}
.tab-btn.active { background: var(--dark); border-color: var(--dark); color: var(--white); }
.menu-panel { display: none; }
.menu-panel.active { display: block; }
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.menu-item {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--border);
}
.menu-item:nth-child(odd) { padding-right: 2.5rem; }
.menu-item:nth-child(even) { padding-left: 2.5rem; border-left: 1px solid var(--border); }
.mi-name { font-weight: 500; font-size: .95rem; }
.mi-desc { font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.mi-price { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--accent); white-space: nowrap; flex-shrink: 0; }
.menu-note {
  margin-top: 2rem; padding: 1rem 1.5rem;
  background: var(--cream); border-radius: 12px;
  font-size: .85rem; color: var(--muted); border-left: 3px solid var(--accent);
}

/* ─── GALLERY ─── */
#gallery { background: var(--cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 260px 260px;
  gap: 12px;
}
.g-item { overflow: hidden; border-radius: 12px; position: relative; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; display: block; }
.g-item:hover img { transform: scale(1.05); }
.g1 { grid-column: span 5; grid-row: span 2; }
.g2 { grid-column: span 7; }
.g3 { grid-column: span 3; }
.g4 { grid-column: span 4; }

/* ─── LOCATION ─── */
#location { background: var(--white); }
.location-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.info-block { margin-bottom: 2rem; }
.info-block h4 {
  font-weight: 600; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .6rem;
}
.info-block p { color: var(--mid); font-size: .95rem; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: .4rem 0; font-size: .9rem; color: var(--mid); }
.hours-table td:last-child { text-align: right; color: var(--muted); }
.hours-table tr.today td { font-weight: 600; color: var(--dark); }
.badge-open {
  display: inline-block;
  background: #d4edda; color: #1a6b30;
  font-size: .7rem; font-weight: 600;
  padding: .2rem .6rem; border-radius: 50px;
  letter-spacing: .05em; vertical-align: middle; margin-left: .4rem;
}
.map-wrap { border-radius: var(--r); overflow: hidden; box-shadow: 0 4px 32px rgba(0,0,0,.08); height: 380px; }
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ─── CTA BAND ─── */
#cta-band { background: var(--dark); text-align: center; padding: 5rem 1.5rem; }
#cta-band h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4vw, 3rem); color: var(--white); margin-bottom: 1rem; }
#cta-band h2 em { color: var(--accent); font-style: normal; }
#cta-band p { color: rgba(255,255,255,.6); margin-bottom: 2rem; font-size: 1rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-wa {
  background: #25d366; color: #fff;
  padding: .85rem 2rem; border-radius: 50px;
  font-weight: 600; font-size: .92rem; text-decoration: none;
  display: flex; align-items: center; gap: .5rem;
  transition: transform .2s, box-shadow .2s;
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.35); }
.btn-tel {
  border: 1.5px solid rgba(255,255,255,.3); color: var(--white);
  padding: .85rem 2rem; border-radius: 50px;
  font-weight: 500; font-size: .92rem; text-decoration: none;
  transition: border-color .2s;
}
.btn-tel:hover { border-color: var(--white); }

/* ─── FOOTER ─── */
footer { background: #111110; color: rgba(255,255,255,.4); text-align: center; padding: 2rem; font-size: .8rem; }
footer a { color: var(--accent); text-decoration: none; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .highlights-grid { grid-template-columns: 1fr 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-item:nth-child(even) { padding-left: 0; border-left: none; }
  .menu-item:nth-child(odd) { padding-right: 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; grid-auto-rows: 200px; }
  .g1, .g2, .g3, .g4 { grid-column: span 1; grid-row: span 1; }
  .g1 { grid-column: span 2; }
  .location-grid { grid-template-columns: 1fr; }
  .ambience-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  nav { padding: 1rem 1.2rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); padding: 1.5rem; border-bottom: 1px solid var(--border); gap: 1.2rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .highlights-grid { grid-template-columns: 1fr; }
  .ambience-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 4rem 1.2rem; }
}
