/* =========================================================
   MARUKA — Identidad digital
   Specialty Coffee, Açaí & Brunch — Costa Teguise, Lanzarote
   ========================================================= */

/* ---------- Tokens ---------- */
:root{
  /* Color — extraídos de assets reales (logo, interior, La Marzocco) */
  --burgundy:        #5A0918;
  --burgundy-dark:   #3B0510;
  --burgundy-light:  #832038;
  --volcanic:        #15110E;
  --volcanic-2:      #1F1914;
  --cream:           #F6EFE3;
  --cream-2:         #EEE3D1;
  --paper:           #FBF8F2;
  --ink:             #211B16;
  --ink-soft:        #52483F;
  --copper:          #BE6642; /* AA-safe on --volcanic (4.6:1) */

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-script:  "Caveat Brush", cursive;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(5.5rem, 11vw, 11rem);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;

  --shadow-soft: 0 30px 80px -24px rgba(21, 17, 14, 0.34);
  --shadow-tight: 0 10px 28px -14px rgba(21, 17, 14, 0.38);

  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .7s;
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
video{ max-width: 100%; display: block; background: var(--volcanic); }
a{ color: inherit; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p,figure{ margin: 0; }
button{ font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea{ font: inherit; }

.sr-only{
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link{
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1.25rem; border-radius: var(--radius-sm);
  z-index: 1000; transition: top .25s var(--ease);
}
.skip-link:focus{ top: 1rem; }

:focus-visible{
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Type scale ---------- */
.eyebrow{
  display: inline-flex; align-items: center; gap: .7em;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 700; color: var(--burgundy);
}
.eyebrow::before{
  content: ""; width: 32px; height: 1px; background: currentColor; opacity: .6;
}
.on-dark .eyebrow{ color: var(--copper); }

h1, .h1{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: .98;
  letter-spacing: -.02em;
}
h2, .h2{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -.015em;
}
h3, .h3{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  line-height: 1.25;
}
.lede{
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 46ch;
}
.on-dark .lede{ color: rgba(246,239,227,.78); }
.script{
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--burgundy);
}
em{ font-style: italic; color: var(--burgundy); }
.on-dark em{ color: var(--copper); }

/* ---------- Layout helpers ---------- */
.container{
  position: relative; z-index: 1;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section{ padding-block: var(--section-y); position: relative; }
.section-head{
  display: flex; flex-direction: column; gap: 1.35rem;
  max-width: 720px; margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
.on-dark{ background: var(--volcanic); color: var(--cream); }
.on-tint{ background: var(--cream-2); }

.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.7em;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform .4s var(--ease), background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
  white-space: nowrap;
}
.btn-primary{
  background: var(--burgundy); color: var(--paper);
  box-shadow: 0 12px 30px -12px rgba(90,9,24,.55);
}
.btn-primary:hover{ background: var(--burgundy-light); transform: translateY(-3px); box-shadow: 0 18px 38px -14px rgba(90,9,24,.6); }
.btn-primary:active{ transform: translateY(-1px) scale(.98); box-shadow: 0 8px 20px -12px rgba(90,9,24,.55); }
.btn-ghost{
  background: transparent; color: var(--ink);
  border: 1px solid rgba(33,27,22,.25);
}
.btn-ghost:hover{ background: rgba(33,27,22,.06); transform: translateY(-3px); }
.btn-ghost:active{ transform: translateY(-1px) scale(.98); }
.on-dark .btn-ghost{ color: var(--cream); border-color: rgba(246,239,227,.3); }
.on-dark .btn-ghost:hover{ background: rgba(246,239,227,.08); }
.btn-sm{ padding: .7em 1.3em; font-size: .85rem; }

/* ---------- Reveal-on-scroll ---------- */
.reveal{
  opacity: 0; transform: translateY(32px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal.in-view{ opacity: 1; transform: translateY(0); }

/* =========================================================
   NAV
   ========================================================= */
.nav{
  position: fixed; inset-inline: 0; top: 0; z-index: 500;
  padding-block: 1.1rem;
  transition: padding .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled{
  padding-block: .65rem;
  background: rgba(246,239,227,.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: rgba(33,27,22,.08);
  box-shadow: 0 10px 30px -20px rgba(21,17,14,.5);
}
.nav .container{
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand{ display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img{
  width: 42px; height: 42px; border-radius: 50%;
  object-fit: cover; box-shadow: var(--shadow-tight);
}
.brand-word{ font-family: var(--font-script); font-size: 1.7rem; color: var(--paper); line-height: 1; transition: color .4s var(--ease); }
.nav.is-scrolled .brand-word{ color: var(--burgundy); }
.brand-sub{
  display: block; font-family: var(--font-body); font-size: .58rem;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(251,248,242,.7);
  transition: color .4s var(--ease);
}
.nav.is-scrolled .brand-sub{ color: var(--ink-soft); }
.nav-links{
  display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.1rem);
}
.nav-links a{
  font-size: .88rem; font-weight: 500; text-decoration: none;
  position: relative; padding-block: .3rem;
  color: var(--paper); transition: color .4s var(--ease);
}
.nav.is-scrolled .nav-links a{ color: var(--ink); }
.nav-links a::after{
  content:""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--copper); transition: right .35s var(--ease), background-color .4s var(--ease);
}
.nav.is-scrolled .nav-links a::after{ background: var(--burgundy); }
.nav-links a:hover::after{ right: 0; }
.nav-actions{ display: flex; align-items: center; gap: .7rem; }
.nav-toggle{
  display: none; width: 44px; height: 44px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: rgba(251,248,242,.14);
  transition: background-color .4s var(--ease);
}
.nav.is-scrolled .nav-toggle{ background: rgba(33,27,22,.06); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; display: block; width: 18px; height: 2px; background: var(--paper);
  position: relative; transition: transform .3s var(--ease), opacity .3s var(--ease), background-color .4s var(--ease);
}
.nav.is-scrolled .nav-toggle span,
.nav.is-scrolled .nav-toggle span::before,
.nav.is-scrolled .nav-toggle span::after,
.nav-toggle.force-dark span,
.nav-toggle.force-dark span::before,
.nav-toggle.force-dark span::after{ background: var(--ink); }
.nav-toggle.force-dark{ background: rgba(33,27,22,.06); }
.nav-toggle span::before{ position: absolute; top: -6px; }
.nav-toggle span::after{ position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span{ background: transparent; }
.nav-toggle[aria-expanded="true"] span::before{ top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after{ top: 0; transform: rotate(-45deg); }

.mobile-menu{
  position: fixed; inset: 0; z-index: 480;
  background: var(--cream);
  display: flex; flex-direction: column; justify-content: center; gap: 2rem;
  padding: 8rem var(--gutter) 4rem;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s linear .5s;
}
.mobile-menu.is-open{
  transform: translateY(0);
  visibility: visible;
  transition: transform .5s var(--ease), visibility 0s linear 0s;
}
.mobile-menu a{
  font-family: var(--font-display); font-size: clamp(1.8rem, 8vw, 2.6rem);
  text-decoration: none; color: var(--ink);
}
.mobile-menu .btn{ align-self: flex-start; }
.mobile-menu a.btn-primary{ color: var(--paper); font-family: var(--font-body); font-size: .95rem; }

@media (max-width: 900px){
  .nav-links{ display: none; }
  .nav-toggle{ display: inline-flex; }
  .nav-actions .btn-primary{ display: none; }
}

/* =========================================================
   HERO — cinematográfico, fullscreen, vídeo protagonista
   ========================================================= */
.hero{
  position: relative;
  /* min-height, no height fija: si el contenido no cabe en 100svh (barra de
     direcciones, ventana no maximizada, etc.), el hero crece en vez de
     recortar el texto contra el nav. */
  min-height: max(100svh, 640px);
  overflow: hidden;
  isolation: isolate;
  background: var(--volcanic);
}
.hero-bg{
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
  will-change: transform;
}
.hero-bg video, .hero-bg img{
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1);
  animation: heroKenBurns 28s ease-in-out infinite alternate;
}
@keyframes heroKenBurns{
  from{ transform: scale(1); }
  to{ transform: scale(1.09); }
}
.hero-scrim{
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(9,7,6,.88) 0%, rgba(9,7,6,.32) 42%, rgba(9,7,6,.08) 62%, rgba(9,7,6,.42) 100%),
    linear-gradient(to right, rgba(9,7,6,.6) 0%, rgba(9,7,6,0) 58%);
}
.hero-inner{
  min-height: inherit;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-block: 6rem clamp(2.75rem, 7vh, 4.5rem);
  gap: clamp(1.75rem, 4vh, 2.75rem);
}
.hero-copy{ max-width: 680px; }
.hero-copy .eyebrow{ color: var(--copper); margin-bottom: 1.6rem; }
.hero-copy h1{ color: var(--paper); margin-bottom: 1.6rem; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero-copy .lede{ color: rgba(251,248,242,.86); margin-bottom: 2.4rem; }
.hero-ctas{ display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; }
.hero .btn-ghost{ color: var(--paper); border-color: rgba(251,248,242,.38); }
.hero .btn-ghost:hover{ background: rgba(251,248,242,.1); }
.hero-facts{ display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.hero-facts li{
  font-size: .82rem; color: rgba(251,248,242,.72); display: flex; align-items: center; gap: .5em;
}
.hero-facts li::before{ content:"—"; color: var(--copper); }

.hero-media-chip{
  align-self: flex-end;
  width: 100%; max-width: 272px;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .95rem 1.15rem; border-radius: var(--radius-md);
  background: rgba(21,17,14,.36);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(246,239,227,.18);
  color: var(--cream);
  transition: transform .5s var(--ease), background-color .5s var(--ease);
}
.hero-media-chip:hover{ transform: translateY(-3px); background: rgba(21,17,14,.48); }
.hero-media-chip strong{ font-family: var(--font-display); font-weight: 500; display: block; font-size: 1rem; }
.hero-media-chip span{ font-size: .74rem; color: rgba(246,239,227,.75); }
.hero-media-dot{
  width: 9px; height: 9px; border-radius: 50%; background: #6BCB77; flex: none;
  box-shadow: 0 0 0 3px rgba(107,203,119,.25);
  animation: dotPulse 2.6s ease-in-out infinite;
}
@keyframes dotPulse{ 0%,100%{ box-shadow: 0 0 0 3px rgba(107,203,119,.25); } 50%{ box-shadow: 0 0 0 6px rgba(107,203,119,.12); } }

.hero-scroll-cue{
  position: absolute; left: 50%; bottom: clamp(1.5rem, 4vh, 2.5rem); transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(251,248,242,.7);
}
.hero-scroll-cue .scroll-track{
  position: relative; width: 1px; height: 38px; border-radius: 1px;
  background: rgba(251,248,242,.22); overflow: hidden;
}
.hero-scroll-cue .scroll-dot{
  position: absolute; left: 50%; top: 0; width: 5px; height: 5px; margin-left: -2px;
  border-radius: 50%; background: var(--copper);
  animation: scrollDot 2.4s ease-in-out infinite;
}
@keyframes scrollDot{
  0%{ transform: translateY(-6px); opacity: 0; }
  25%{ opacity: 1; }
  85%{ opacity: 1; }
  100%{ transform: translateY(38px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce){
  .hero-bg video, .hero-bg img{ animation: none; }
  .hero-scroll-cue .scroll-dot{ animation: none; top: 50%; opacity: 1; }
  .hero-media-dot{ animation: none; }
}

@media (max-width: 700px){
  .hero-inner{ padding-block: 6.5rem 2.5rem; }
  .hero-media-chip{ align-self: stretch; max-width: none; }
}

/* ---------- Marquee ---------- */
.marquee{
  position: relative;
  background: var(--burgundy); color: var(--cream);
  overflow: hidden; white-space: nowrap;
  padding-block: .85rem;
  border-top: 1px solid rgba(246,239,227,.15);
  border-bottom: 1px solid rgba(246,239,227,.15);
}
.marquee::before{
  content: ""; position: absolute; inset: 0 0 auto 0; height: 46px;
  background: linear-gradient(to bottom, rgba(9,7,6,.55), transparent);
  pointer-events: none;
}
.marquee-track{
  display: inline-flex; gap: 2.5rem;
  animation: marquee 32s linear infinite;
}
.marquee-track span{
  font-family: var(--font-display); font-style: italic; font-size: 1.05rem;
  display: inline-flex; align-items: center; gap: 2.5rem;
}
.marquee-track span::after{ content:"✦"; font-style: normal; color: var(--copper); margin-left: 2.5rem; }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee-track{ animation: none; } }

/* =========================================================
   SCROLL STORYTELLING — disoluciones editoriales entre secciones
   y fondos con vida muy sutil (sin afectar el rendimiento: solo
   transform/opacity, todo con pointer-events:none).
   ========================================================= */
#acai::before, #brunch::before, #filosofia::before, #momentos::before,
#galeria::before, #instagram::before, #carta::before, #reserva::before{
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: min(14vw, 140px); pointer-events: none; z-index: 0;
}
#acai::before{ background: linear-gradient(to bottom, var(--cream), transparent); }
#brunch::before{ background: linear-gradient(to bottom, var(--cream-2), transparent); }
#filosofia::before{ background: linear-gradient(to bottom, var(--cream), transparent); }
#momentos::before{ background: linear-gradient(to bottom, var(--volcanic), transparent); }
#galeria::before{ background: linear-gradient(to bottom, var(--cream), transparent); }
#instagram::before{ background: linear-gradient(to bottom, var(--cream-2), transparent); }
#carta::before{ background: linear-gradient(to bottom, var(--cream), transparent); }
#reserva::before{ background: linear-gradient(to bottom, var(--cream-2), transparent); }

@keyframes blobDrift{
  0%, 100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(3%, -4%) scale(1.08); }
}
#cafe::after, #acai::after, #reserva::after{
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 44vw; height: 44vw; max-width: 620px; max-height: 620px;
  border-radius: 50%; filter: blur(90px); opacity: .3;
  animation: blobDrift 24s ease-in-out infinite;
}
#cafe::after{ top: -12%; left: -10%; background: radial-gradient(circle, rgba(90,9,24,.4), transparent 70%); }
#acai::after{ bottom: -16%; right: -10%; background: radial-gradient(circle, rgba(190,102,66,.35), transparent 70%); animation-duration: 28s; }
#reserva::after{ top: -10%; right: -6%; background: radial-gradient(circle, rgba(190,102,66,.22), transparent 70%); animation-duration: 30s; }
@media (prefers-reduced-motion: reduce){ #cafe::after, #acai::after, #reserva::after{ animation: none; } }
@media (max-width: 700px){ #cafe::after, #acai::after, #reserva::after{ display: none; } }

/* ---------- Reveal en cascada para grids (stagger sin tocar el HTML) ---------- */
.gallery.reveal, .moments-rail.reveal, .insta-grid.reveal, .community-grid.reveal{
  opacity: 1; transform: none; transition: none;
}
.gallery.reveal figure{ opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.gallery.reveal.in-view figure{ opacity: 1; transform: translateY(0); }
.moments-rail.reveal .moment-card{ opacity: 0; transform: translateY(26px) scale(.97); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.moments-rail.reveal.in-view .moment-card{ opacity: 1; transform: translateY(0) scale(1); }
.insta-grid.reveal .insta-item{ opacity: 0; transform: scale(.93); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.insta-grid.reveal.in-view .insta-item{ opacity: 1; transform: scale(1); }
.community-grid.reveal .media-frame{ opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.community-grid.reveal.in-view .media-frame{ opacity: 1; transform: translateY(0); }

.gallery.reveal.in-view figure:nth-child(1),
.moments-rail.reveal.in-view .moment-card:nth-child(1),
.insta-grid.reveal.in-view .insta-item:nth-child(1),
.community-grid.reveal.in-view .media-frame:nth-child(1),
.bowl-grid .bowl-card.in-view:nth-child(1),
.ingredient-grid .ingredient-card.in-view:nth-child(1){ transition-delay: 0ms; }
.gallery.reveal.in-view figure:nth-child(2),
.moments-rail.reveal.in-view .moment-card:nth-child(2),
.insta-grid.reveal.in-view .insta-item:nth-child(2),
.community-grid.reveal.in-view .media-frame:nth-child(2),
.bowl-grid .bowl-card.in-view:nth-child(2),
.ingredient-grid .ingredient-card.in-view:nth-child(2){ transition-delay: 90ms; }
.gallery.reveal.in-view figure:nth-child(3),
.moments-rail.reveal.in-view .moment-card:nth-child(3),
.insta-grid.reveal.in-view .insta-item:nth-child(3),
.community-grid.reveal.in-view .media-frame:nth-child(3),
.bowl-grid .bowl-card.in-view:nth-child(3),
.ingredient-grid .ingredient-card.in-view:nth-child(3){ transition-delay: 180ms; }
.gallery.reveal.in-view figure:nth-child(4),
.moments-rail.reveal.in-view .moment-card:nth-child(4),
.insta-grid.reveal.in-view .insta-item:nth-child(4),
.community-grid.reveal.in-view .media-frame:nth-child(4),
.bowl-grid .bowl-card.in-view:nth-child(4),
.ingredient-grid .ingredient-card.in-view:nth-child(4){ transition-delay: 270ms; }
.gallery.reveal.in-view figure:nth-child(5),
.insta-grid.reveal.in-view .insta-item:nth-child(5){ transition-delay: 360ms; }
.gallery.reveal.in-view figure:nth-child(6),
.insta-grid.reveal.in-view .insta-item:nth-child(6){ transition-delay: 450ms; }
.insta-grid.reveal.in-view .insta-item:nth-child(7){ transition-delay: 540ms; }
.insta-grid.reveal.in-view .insta-item:nth-child(8){ transition-delay: 630ms; }
@media (prefers-reduced-motion: reduce){
  .gallery.reveal figure, .moments-rail.reveal .moment-card,
  .insta-grid.reveal .insta-item, .community-grid.reveal .media-frame{
    transition-delay: 0ms !important;
  }
}

/* =========================================================
   SPLIT / FEATURE SECTIONS (Café, Açaí, Brunch)
   ========================================================= */
.split{
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}
.split.reverse .split-media{ order: 2; }
.split-copy p + p{ margin-top: 1rem; }
.split-copy p{ color: var(--ink-soft); max-width: 52ch; }
.split-list{ margin-top: 1.8rem; display: flex; flex-direction: column; }
.split-list li{
  display: flex; gap: .8rem; align-items: baseline; font-size: .95rem;
  padding-block: .85rem; border-top: 1px solid rgba(33,27,22,.1);
  transition: padding-left .35s var(--ease);
}
.split-list li:hover{ padding-left: .4rem; }
.split-list li strong{ color: var(--burgundy); font-family: var(--font-display); font-weight: 500; white-space: nowrap; }

.media-frame{
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: box-shadow .6s var(--ease);
}
.media-frame:hover{ box-shadow: 0 40px 90px -22px rgba(21,17,14,.42); }
.media-frame img{ width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.media-frame:hover img{ transform: scale(1.045); }
.media-caption{
  position: absolute; left: 1rem; bottom: 1rem;
  font-size: .72rem; letter-spacing: .04em; color: var(--cream);
  background: rgba(21,17,14,.45); backdrop-filter: blur(10px);
  padding: .4rem .8rem; border-radius: 999px;
}
.thumb-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; }
.thumb-row .media-frame{ aspect-ratio: 4/3; }

@media (max-width: 900px){
  .split{ grid-template-columns: 1fr; }
  .split.reverse .split-media{ order: -1; }
}

/* ---------- Açaí bowl teaser cards ---------- */
.bowl-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.35rem; margin-top: 3.5rem;
}
.bowl-card{
  background: var(--paper); border-radius: var(--radius-md);
  padding: 1.8rem 1.6rem; box-shadow: var(--shadow-tight);
  border: 1px solid rgba(33,27,22,.06);
  position: relative; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.bowl-card::before{
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--burgundy), var(--copper));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.bowl-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-soft); }
.bowl-card:hover::before{ transform: scaleX(1); }
.bowl-card h3{ font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; margin-bottom: .6rem; }
.bowl-card p{ font-size: .84rem; color: var(--ink-soft); margin-bottom: 1.2rem; min-height: 3.6em; }
.bowl-card .price{ font-weight: 700; color: var(--burgundy); letter-spacing: .02em; font-size: .9rem; }

@media (max-width: 900px){
  .bowl-grid{ grid-template-columns: 1fr 1fr; }
  .thumb-row{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){ .bowl-grid{ grid-template-columns: 1fr; } }

/* ---------- Brunch placeholder cards (no real photography available) ---------- */
.ingredient-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.35rem; margin-top: 3.5rem;
}
.ingredient-card{
  aspect-ratio: 3/4; border-radius: var(--radius-md);
  background: var(--volcanic); color: var(--cream);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.7rem; position: relative; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.ingredient-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.ingredient-card:nth-child(2n){ background: var(--burgundy); }
.ingredient-card::before{
  content: attr(data-index);
  position: absolute; right: -.2rem; bottom: -1.1rem;
  font-family: var(--font-display); font-size: 6rem; font-weight: 500;
  color: rgba(246,239,227,.08); line-height: 1;
}
.ingredient-card h3{ font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; }
.ingredient-card p{ font-size: .8rem; color: rgba(246,239,227,.7); }
@media (max-width: 900px){ .ingredient-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .ingredient-grid{ grid-template-columns: 1fr 1fr; gap: .75rem; } }

/* =========================================================
   FILOSOFÍA
   ========================================================= */
.philosophy{ background: var(--volcanic); color: var(--cream); overflow: hidden; }
.philosophy .container{
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.pull-quote{
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.32;
  color: var(--cream);
}
.pull-quote .mark{ color: var(--copper); }
.pull-quote-attr{
  margin-top: 1.6rem; font-family: var(--font-body); font-style: normal;
  font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(246,239,227,.6);
}
.philosophy-media{ position: relative; }
.philosophy-media .media-frame{ aspect-ratio: 3/4; }
.philosophy-media .badge-heritage{
  position: absolute; top: -1.4rem; right: -1.2rem;
  background: var(--copper); color: var(--volcanic);
  width: 108px; height: 108px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-script); font-size: .95rem; line-height: 1.15; padding: .6rem;
  box-shadow: var(--shadow-soft);
  transform: rotate(8deg);
}
@media (max-width: 900px){
  .philosophy .container{ grid-template-columns: 1fr; }
  .philosophy-media{ order: -1; max-width: 320px; margin-inline: auto; }
}

/* =========================================================
   MOMENTS — horizontal reel rail
   ========================================================= */
.moments-rail{
  display: flex; gap: 1.3rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 1.5rem; margin-top: 1rem;
  scrollbar-width: thin; scrollbar-color: var(--burgundy) transparent;
}
.moments-rail::-webkit-scrollbar{ height: 6px; }
.moments-rail::-webkit-scrollbar-thumb{ background: rgba(90,9,24,.4); border-radius: 999px; }
.moment-card{
  scroll-snap-align: start; flex: 0 0 auto;
  width: min(76vw, 300px); aspect-ratio: 9/16;
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  box-shadow: var(--shadow-soft);
  background: var(--volcanic);
  transition: transform .5s var(--ease);
}
.moment-card:hover{ transform: translateY(-6px); }
.moment-card video, .moment-card img{ width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.moment-card:hover video, .moment-card:hover img{ transform: scale(1.04); }
.moment-card figcaption{
  position: absolute; left: .9rem; right: .9rem; bottom: .9rem;
  color: var(--cream); font-size: .82rem;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent 130%);
  padding: 1.6rem .3rem .2rem;
}
.moment-card .play-badge{
  position: absolute; top: .8rem; right: .8rem;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(246,239,227,.2); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
}

/* =========================================================
   GALERÍA editorial (masonry via columns)
   ========================================================= */
.gallery{
  columns: 220px; column-gap: 1.1rem;
}
.gallery figure{
  break-inside: avoid; margin: 0 0 1.1rem; border-radius: var(--radius-md);
  overflow: hidden; position: relative; cursor: zoom-in;
}
/* height:auto es imprescindible: el atributo HTML height="…" de cada imagen
   actúa como pista de presentación en píxeles; si solo se sobrescribe el
   width, el navegador mantiene ese alto literal y deforma la foto. */
.gallery img{ width: 100%; height: auto; display: block; transition: transform .6s var(--ease); }
.gallery figure:hover img{ transform: scale(1.06); }
.gallery figcaption{ position: absolute; inset: auto 0 0 0; padding: .6rem .8rem;
  font-size: .7rem; color: var(--cream); background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
  opacity: 0; transition: opacity .3s var(--ease);
}
.gallery figure:hover figcaption{ opacity: 1; }

/* Lightbox */
.lightbox{
  position: fixed; inset: 0; z-index: 900; display: none;
  align-items: center; justify-content: center; padding: 4vh 4vw;
  background: rgba(15,12,10,.9); backdrop-filter: blur(6px);
}
.lightbox.is-open{ display: flex; }
.lightbox img{ max-width: 92vw; max-height: 88vh; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.lightbox-close{
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 46px; height: 46px; border-radius: 50%; color: var(--cream);
  background: rgba(246,239,227,.12); font-size: 1.3rem;
}
.lightbox-caption{ position: absolute; bottom: 2rem; left: 0; right: 0; text-align: center; color: var(--cream); font-size: .85rem; }

/* =========================================================
   INSTAGRAM grid
   ========================================================= */
.insta-head{
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.insta-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem;
}
.insta-item{
  position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden;
  text-decoration: none;
}
.insta-item img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.insta-item::after{
  content: ""; position: absolute; inset: 0;
  background: rgba(90,9,24,0); transition: background .35s var(--ease);
}
.insta-item .ig-icon{
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; opacity: 0; transition: opacity .35s var(--ease);
}
.insta-item:hover img{ transform: scale(1.08); }
.insta-item:hover::after{ background: rgba(90,9,24,.42); }
.insta-item:hover .ig-icon{ opacity: 1; }
@media (max-width: 700px){ .insta-grid{ grid-template-columns: repeat(3, 1fr); } }

/* =========================================================
   CARTA
   ========================================================= */
.menu-wrap{
  display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(2rem, 5vw, 4rem);
}
.menu-cats{ display: flex; flex-direction: column; gap: 3rem; }
.menu-cat h3{ margin-bottom: 1.2rem; }
.menu-row{
  display: flex; justify-content: space-between; gap: 1rem;
  padding-block: .95rem; border-bottom: 1px dashed rgba(33,27,22,.18);
  transition: padding-left .35s var(--ease);
}
.menu-row:hover{ padding-left: .35rem; }
.menu-row:last-child{ border-bottom: none; }
.menu-row .name{ font-weight: 600; }
.menu-row .desc{ display: block; font-size: .82rem; color: var(--ink-soft); font-weight: 400; margin-top: .15rem; max-width: 44ch; }
.menu-row .price{ font-family: var(--font-display); color: var(--burgundy); white-space: nowrap; }
.menu-note{ margin-top: 1rem; font-size: .78rem; color: var(--ink-soft); font-style: italic; }
.menu-visual{ position: relative; }
.menu-visual .media-frame{ position: sticky; top: 7rem; aspect-ratio: 4/5; }
@media (max-width: 900px){
  .menu-wrap{ grid-template-columns: 1fr; }
  .menu-visual .media-frame{ position: static; aspect-ratio: 16/10; }
}

/* =========================================================
   EVENTOS
   ========================================================= */
.events{ background: var(--cream-2); }
.events .split{ align-items: start; }
.flyer-frame{
  position: relative; max-width: 380px; margin-inline: auto;
  transform: rotate(-3deg);
  box-shadow: var(--shadow-soft); border-radius: var(--radius-md);
  overflow: hidden; border: 8px solid var(--paper);
}
.flyer-frame img{ display: block; }
.flyer-tape{
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 90px; height: 28px; background: rgba(246,239,227,.55);
  border: 1px solid rgba(255,255,255,.4);
}

/* =========================================================
   COMUNIDAD
   ========================================================= */
.community-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 200px); gap: 1.25rem;
}
.community-grid .media-frame:nth-child(1){ grid-column: span 2; grid-row: span 2; }
.community-grid .media-frame:nth-child(2){ grid-column: span 2; }
.community-grid .media-frame:nth-child(3){ grid-column: span 1; }
.community-grid .media-frame:nth-child(4){ grid-column: span 1; }
.community-badges{ display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.pill{
  display: inline-flex; align-items: center; gap: .55em;
  padding: .55em 1.1em; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: var(--paper); border: 1px solid rgba(33,27,22,.1);
  color: var(--burgundy);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pill:hover{ transform: translateY(-2px); box-shadow: var(--shadow-tight); }
.pill svg{ flex: none; display: block; }
@media (max-width: 900px){
  .community-grid{ grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 160px); }
  .community-grid .media-frame:nth-child(1){ grid-column: span 2; grid-row: span 1; }
}

/* =========================================================
   RESERVA + CONTACTO — cierre cinematográfico
   ========================================================= */
#reserva{
  background:
    linear-gradient(rgba(11,9,7,.92), rgba(11,9,7,.96)),
    url("../img/storefront.jpg") center 30% / cover no-repeat;
  background-attachment: fixed;
}
@media (max-width: 900px), (prefers-reduced-motion: reduce){
  #reserva{ background-attachment: scroll; }
}
.reserve-wrap{
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
}
.form-card{
  background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-soft); border: 1px solid rgba(33,27,22,.06);
}
.form-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 1.6rem; }
.field{ display: flex; flex-direction: column; gap: .45rem; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-size: .78rem; font-weight: 600; letter-spacing: .03em; }
.field input, .field select, .field textarea{
  padding: .85em 1em; border-radius: var(--radius-sm);
  border: 1px solid rgba(33,27,22,.18); background: var(--cream);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus{
  border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(90,9,24,.12); outline: none;
}
.form-foot{ display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap; }
.form-status{ font-size: .82rem; color: var(--ink-soft); }
.form-status[data-state="ok"]{ color: #2E7D32; }

.contact-card{
  background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-soft); border: 1px solid rgba(33,27,22,.06);
}
.contact-card h3{ margin-bottom: .5rem; }
.contact-list{ display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1.6rem; }
.contact-list .item{ display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .icon{
  width: 42px; height: 42px; border-radius: 50%; background: var(--cream-2);
  display: flex; align-items: center; justify-content: center; flex: none; color: var(--burgundy);
  transition: background-color .35s var(--ease), transform .35s var(--ease);
}
.contact-list .item:hover .icon{ background: var(--burgundy); color: var(--paper); transform: scale(1.06); }
.contact-list .icon svg{ display: block; }
.contact-list h3{ font-size: .95rem; margin-bottom: .2rem; }
.contact-list p, .contact-list a{ font-size: .88rem; color: var(--ink-soft); text-decoration: none; }
.contact-list a:hover{ color: var(--burgundy); }
.map-frame{ border-radius: var(--radius-lg); overflow: hidden; margin-top: 1.6rem; box-shadow: var(--shadow-tight); border: 1px solid rgba(33,27,22,.08); }
.map-frame iframe{ width: 100%; height: 320px; border: 0; display: block; filter: grayscale(.15) contrast(1.05); }
.social-row{ display: flex; gap: .8rem; margin-top: 1.6rem; }
.social-row a{
  width: 44px; height: 44px; border-radius: 50%; background: var(--paper);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
  border: 1px solid rgba(33,27,22,.1); transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.social-row a:hover{ background: var(--burgundy); color: var(--paper); transform: translateY(-3px); }

@media (max-width: 900px){ .reserve-wrap{ grid-template-columns: 1fr; } .form-grid{ grid-template-columns: 1fr; } }

/* =========================================================
   WHATSAPP FAB
   ========================================================= */
.fab-whatsapp{
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 400; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(37,211,102,.55);
  transition: transform .3s var(--ease);
  text-decoration: none;
}
.fab-whatsapp:hover{ transform: translateY(-4px) scale(1.04); }
.fab-whatsapp svg{ width: 28px; height: 28px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ background: var(--volcanic); color: rgba(246,239,227,.75); padding-block: 4.5rem 2rem; }
.footer-top{
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(246,239,227,.12);
}
.footer-brand .brand-word{ color: var(--cream); font-size: 2rem; }
.footer-brand p{ margin-top: 1rem; max-width: 34ch; font-size: .88rem; }
.footer-col h3{ color: var(--cream); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col ul{ display: flex; flex-direction: column; gap: .65rem; }
.footer-col a, .footer-col p{ font-size: .88rem; text-decoration: none; color: inherit; }
.footer-col a:hover{ color: var(--cream); }
.footer-bottom{
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  padding-top: 1.8rem; font-size: .78rem;
}
@media (max-width: 900px){ .footer-top{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-top{ grid-template-columns: 1fr; } }

/* =========================================================
   Utility responsive polish
   ========================================================= */
@media (max-width: 560px){
  .gallery{ columns: 150px; }
  .insta-grid{ grid-template-columns: repeat(2, 1fr); }
}
