/* ============================================================
   Restaurant Sebas — Editorial Dark Warm (paleta pròpia del local)
   ============================================================ */

:root {
  --bg: #120a08;
  --bg-2: #1a0f0c;
  --bg-3: #2b0f16;
  --cream: #f3ead9;
  --cream-2: #dccdb0;
  --cream-3: #9c8a76;
  --accent: #c97b2e;
  --accent-2: #8c2f39;
  --gold: #d9a35c;
  --line: rgba(243, 234, 217, 0.12);
  --shadow: rgba(0, 0, 0, 0.5);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --nav-h: 76px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; line-height: 1.05; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; color: var(--accent); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.grain {
  position: fixed; inset: 0; z-index: 2; opacity: 0.045; mix-blend-mode: overlay; pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)"/></svg>');
}

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 999; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  animation: splashSafety .01s 3.2s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; transition: opacity .5s var(--ease-out); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; } }
.splash-word {
  font-family: var(--font-display); font-style: italic; font-size: 2.4rem; color: var(--accent);
  letter-spacing: 0.08em; animation: splashPulse 1.4s ease-in-out infinite;
}
@keyframes splashPulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(18,10,8,.92), rgba(18,10,8,0));
  transition: background .3s var(--ease-out);
}
.nav.is-scrolled { background: rgba(18, 10, 8, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-brand { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--cream); white-space: nowrap; }
@media (max-width: 480px) { .nav-brand { font-size: 1.25rem; } }
.nav-links { display: flex; gap: 1.8rem; font-size: 0.92rem; letter-spacing: .01em; }
.nav-links a { position: relative; padding: .3rem 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--accent);
  transition: width .3s var(--ease-out);
}
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.lang-switch { display: flex; gap: .2rem; border: 1px solid var(--line); border-radius: 999px; padding: .2rem; margin-right: .4rem; }
.lang-switch button {
  padding: .3rem .6rem; border-radius: 999px; font-size: .75rem; letter-spacing: .05em; color: var(--cream-3);
  font-family: var(--font-mono); transition: color .2s, background .2s;
}
.lang-switch button.is-active { background: var(--accent); color: var(--bg); }
.btn-icon {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--cream); transition: transform .2s var(--ease-out), background .2s;
}
.btn-icon:hover { transform: translateY(-2px); background: var(--bg-3); }
.btn-icon-wa:hover { color: #3ddc84; }
.nav-burger { display: none; width: 38px; height: 38px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-burger span { width: 20px; height: 1.5px; background: var(--cream); transition: transform .3s, opacity .3s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.6rem; border-radius: 999px;
  font-size: .95rem; font-weight: 500; transition: transform .25s var(--ease-out), box-shadow .25s, background .25s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(201,123,46,.5); }
.btn-ghost { border: 1px solid var(--line); color: var(--cream); }
.btn-ghost:hover { transform: translateY(-2px); background: var(--bg-3); }
.btn-text { color: var(--cream-2); padding: .85rem .4rem; }
.btn-text:hover { color: var(--accent); }
.btn-lg { padding: 1.1rem 2.2rem; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Section shared ---------- */
main > section { padding: clamp(4rem, 9vw, 7rem) clamp(1.2rem, 5vw, 5rem); position: relative; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.kicker {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .8rem;
}
.kicker-light { color: var(--gold); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); text-wrap: balance; }
.section-sub { color: var(--cream-2); font-size: 1.05rem; max-width: 60ch; margin: 1rem auto 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
  padding: calc(var(--nav-h) + 2rem) clamp(1.2rem, 5vw, 5rem) 3rem;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  filter: saturate(1.15) contrast(1.08) brightness(1.05);
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(18,10,8,.92) 0%, rgba(18,10,8,.72) 42%, rgba(18,10,8,.32) 68%, rgba(18,10,8,.18) 100%),
              linear-gradient(0deg, rgba(18,10,8,.88), transparent 42%);
}
.hero-inner { position: relative; z-index: 2; max-width: 620px; }

.hero-photo-stack { position: absolute; z-index: 2; right: 6%; bottom: 9%; width: 30%; max-width: 300px; }

.hero-polaroid {
  position: absolute; z-index: 3; margin: 0; padding: .5rem .5rem .8rem; background: var(--cream);
  border-radius: 6px; box-shadow: 0 25px 50px -15px rgba(0,0,0,.6);
  animation: polaroidFloat 7s ease-in-out infinite;
}
.hero-polaroid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; border-radius: 2px; display: block; }
.hero-polaroid-1 { width: 100%; right: 0; bottom: 0; transform: rotate(-6deg); }
.hero-polaroid-2 { width: 68%; left: -22%; top: -18%; transform: rotate(7deg); animation-delay: -3.5s; }
@keyframes polaroidFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .hero-polaroid { animation: none; } }
@media (max-width: 900px) {
  .hero-photo-stack { display: none; }
  .hero-inner { max-width: 100%; }
}
.kicker { display: inline-block; }
.hero-title { font-size: clamp(2.6rem, 6.4vw, 4.6rem); margin-bottom: 1.2rem; }
.hero-sub { font-size: 1.1rem; color: var(--cream-2); max-width: 46ch; margin-bottom: 2rem; }
.hero-actions { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .7rem; }
.trust-badge {
  display: flex; align-items: baseline; gap: .35rem; padding: .55rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(243,234,217,.04); font-size: .82rem; color: var(--cream-2);
  transition: border-color .2s, transform .2s var(--ease-out);
}
.trust-badge:hover { border-color: var(--accent); transform: translateY(-2px); }
.trust-badge strong { font-family: var(--font-mono); color: var(--gold); font-size: .95rem; }
.trust-badge em { font-style: normal; color: var(--cream); }
.trust-badge-static { font-family: var(--font-mono); }

/* ---------- Menu del dia live ---------- */
.menu-live { background: var(--bg-2); }
.menu-live-stack { display: flex; flex-direction: column; align-items: center; gap: 2rem; max-width: 1000px; margin: 0 auto; }
.menu-live-frame {
  width: 100%; max-width: 860px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 20px; padding: 1.6rem;
  box-shadow: 0 30px 60px -30px var(--shadow);
}
.frame-label {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem;
}
.frame-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 8px #3ddc84; }
.menu-live-photo-big {
  position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--bg-2);
}
.menu-live-photo-big img { width: 100%; height: auto; display: block; }
.menu-live-photo-big.is-fallback img { aspect-ratio: 4/3; object-fit: cover; }
.menu-live-zoom {
  position: absolute; right: .9rem; bottom: .9rem; padding: .4rem .8rem; border-radius: 999px;
  background: rgba(18,10,8,.75); border: 1px solid var(--line); color: var(--cream); font-size: .78rem;
  opacity: 0; transition: opacity .2s;
}
.menu-live-photo-big:hover .menu-live-zoom, .menu-live-photo-big:focus-visible .menu-live-zoom { opacity: 1; }
.menu-live-caption { margin-top: .8rem; color: var(--cream-3); font-size: .85rem; text-align: center; }
.menu-live-side { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; max-width: 640px; }
.menu-live-lead { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--cream); margin-bottom: .2rem; }
.menu-live-actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }
.menu-live-note { font-size: .85rem; color: var(--cream-3); text-align: center; }

/* ---------- Kitchen mosaic ---------- */
.kitchen { background: var(--bg); }
.mosaic {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; max-width: 1200px; margin: 0 auto;
}
.mosaic-item {
  position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 1/1; perspective: 800px;
}
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out), filter .6s; }
.mosaic-item:hover img { transform: scale(1.08); filter: saturate(1.15) brightness(1.05); }
.mosaic-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .8rem 1rem .7rem;
  font-size: .85rem; color: var(--cream); background: linear-gradient(0deg, rgba(18,10,8,.85), transparent);
  transform: translateY(6px); opacity: 0; transition: opacity .3s, transform .3s;
}
.mosaic-item:hover .mosaic-cap { opacity: 1; transform: none; }
@media (max-width: 767px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .mosaic-cap { opacity: 1; transform: none; }
}

/* ---------- Takeaway ---------- */
.takeaway { background: linear-gradient(120deg, var(--bg-3), var(--bg-2)); }
.takeaway-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.takeaway h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin: .8rem 0 1rem; }

/* ---------- About ---------- */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; max-width: 1140px; margin: 0 auto; align-items: center; }
.about-figure { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px var(--shadow); }
.about-figure img { aspect-ratio: 4/3; object-fit: cover; filter: saturate(1.05); }
.about-text h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: .6rem 0 1rem; }
.feature-list { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.feature-list li {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; padding: .5rem .9rem;
  border: 1px solid var(--line); border-radius: 999px; color: var(--cream-2);
}

/* ---------- Reviews ---------- */
.reviews { background: var(--bg-2); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; max-width: 1100px; margin: 0 auto 2.4rem; }
.review-card {
  margin: 0; padding: 1.6rem; border-radius: 16px; background: var(--bg-3); border: 1px solid var(--line);
}
.review-card p { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--cream); margin-bottom: .9rem; }
.review-card cite { font-family: var(--font-mono); font-size: .78rem; color: var(--cream-3); }
.review-links { display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap; }

/* ---------- Location ---------- */
.location { background: var(--bg); }
.location-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.4rem; max-width: 1140px; margin: 0 auto; align-items: stretch; }
.location-map { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); min-height: 380px; }
.location-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.2) invert(.92) contrast(.92); }
.location-info { display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.location-info h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.location-info address { color: var(--cream-2); font-size: 1.05rem; }
.location-note { color: var(--cream-3); font-size: .92rem; max-width: 42ch; }
.location-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 2.4rem clamp(1.2rem, 5vw, 5rem); }
.footer-inner { max-width: 1140px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-brand { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; }
.footer-social { display: flex; gap: 1.2rem; font-size: .85rem; color: var(--cream-2); }
.footer-social a:hover { color: var(--accent); }
.footer-meta { width: 100%; font-size: .78rem; color: var(--cream-3); margin-top: .6rem; font-family: var(--font-mono); }
.footer-admin { font-size: .68rem; color: rgba(156,138,118,.4); font-family: var(--font-mono); margin-top: .8rem; }
.footer-admin:hover { color: var(--cream-3); }

/* ---------- Floating WhatsApp ---------- */
.fab-wa {
  position: fixed; bottom: 1.6rem; right: 1.6rem; z-index: 90; width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); transition: transform .25s var(--ease-out);
}
.fab-wa:hover { transform: scale(1.08); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10,6,5,.94);
  display: none; align-items: center; justify-content: center; padding: 4vw;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(90vw, 900px); max-height: 85vh; border-radius: 12px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.7); }
.lightbox-close {
  position: absolute; top: 1.4rem; right: 1.6rem; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .about-grid, .location-grid, .menu-live-grid { grid-template-columns: 1fr; }
  .location-map { min-height: 300px; }
  .review-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .lang-switch { margin-right: 0; }
}
@media (max-width: 640px) {
  .hero-collage { opacity: .5; }
  .collage-1 { width: 60%; top: 4%; left: -6%; }
  .collage-2 { width: 55%; top: 42%; right: -8%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

/* Nav mobile drawer */
@media (max-width: 900px) {
  .nav-links {
    display: flex; flex-direction: column; gap: 0; position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 1rem clamp(1.2rem, 5vw, 5rem) 1.4rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .nav-links a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  body.nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  body.nav-open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}
