/* ============================================================
   Picantería Turística Tradiciones Arequipeñas
   Identidad: sillar + rojo vino + oro + volcán (heritage editorial)
   ============================================================ */

:root {
  --vino: #821615;
  --vino-deep: #4A2513;
  --vino-soft: #C45F15;
  --sillar: #F8F3E8;
  --sillar-2: #F5E3CE;
  --oro: #DC9949;
  --oro-soft: #DC9949;
  --volcan: #210F08;
  --ink: #210F08;
  --muted: #7C6D63;
  --line: rgba(130, 22, 21, 0.14);
  --card: #FFFFFF;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 18px 50px -22px rgba(74, 37, 19, 0.45);
  --shadow-soft: 0 10px 30px -18px rgba(74, 37, 19, 0.35);
  --header-h: 82px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--sillar);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, canvas, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 2000;
  background: var(--vino); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Tipografía ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  color: var(--volcan);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.8rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.55rem; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--vino);
  margin-bottom: 1rem;
}

.lead { font-size: 1.18rem; font-weight: 400; color: var(--volcan); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--vino); color: #fff;
  box-shadow: 0 12px 30px -12px rgba(109, 26, 42, 0.7);
}
.btn-primary:hover { background: var(--vino-soft); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,0.06); color: #fff;
  border-color: rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--vino);
  border-color: var(--vino);
}
.btn-outline:hover { background: var(--vino); color: #fff; }
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.05rem; }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #1f9d55; color: #fff;
  padding: 0.55rem 1.1rem; border-radius: 999px;
  font-weight: 500; font-size: 0.92rem;
  transition: background 0.25s ease, transform 0.25s ease;
}
.btn-whatsapp:hover { background: #178346; transform: translateY(-2px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease, height 0.35s ease;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(20,10,8,0.55), transparent);
  transition: opacity 0.35s ease;
}
.site-header.scrolled { background: rgba(247, 242, 232, 0.94); box-shadow: 0 8px 30px -18px rgba(67,16,26,0.4); backdrop-filter: blur(10px); }
.site-header.scrolled::before { opacity: 0; }

.header-inner {
  width: 100%; max-width: 1280px; margin: 0 auto;
  padding: 0 1.6rem;
  display: flex; align-items: center; gap: 1.4rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; margin-right: auto; }
.brand img { width: 78px; height: auto; border-radius: 8px; box-shadow: 0 4px 14px -6px rgba(0,0,0,0.4); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff; }
.brand-text em { font-style: normal; font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--oro-soft); }
.site-header.scrolled .brand-text strong { color: var(--vino); }
.site-header.scrolled .brand-text em { color: var(--oro); }

.main-nav { display: flex; gap: 1.4rem; align-items: center; }
.main-nav a {
  font-size: 0.92rem; font-weight: 400; color: #fff;
  position: relative; padding: 0.3rem 0;
  transition: color 0.25s ease;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1.5px; background: var(--oro-soft);
  transition: width 0.3s ease;
}
.main-nav a:hover::after { width: 100%; }
.site-header.scrolled .main-nav a { color: var(--ink); }
.site-header.scrolled .main-nav a::after { background: var(--vino); }

.nav-toggle { display: none; background: none; border: none; width: 42px; height: 42px; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: 0.3s; }
.site-header.scrolled .nav-toggle span { background: var(--vino); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-align: center; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; background: #140a06; }
.hero-media .hero-poster, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero-media video { opacity: 0; transition: opacity 0.8s ease; }
.hero-media video.is-playing { opacity: 1; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(33,15,8,0.55) 0%, rgba(33,15,8,0.25) 45%, rgba(33,15,8,0.72) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(33,15,8,0.35) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 1.4rem; max-width: 900px; animation: hero-in 1.1s cubic-bezier(0.2,0.7,0.2,1) both; }
.hero-content .eyebrow { color: var(--oro-soft); }
.hero-content h1 { color: #fff; text-shadow: 0 4px 40px rgba(0,0,0,0.4); margin-bottom: 1rem; }
.hero-sub { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.9rem); color: var(--oro-soft); margin-bottom: 0.8rem; }
.hero-text { max-width: 34ch; margin: 0 auto 1.9rem; font-size: 1.05rem; color: rgba(255,255,255,0.92); }
.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  color: rgba(255,255,255,0.85); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.hero-scroll svg { animation: bob 2.2s ease-in-out infinite; }

@keyframes hero-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ============================================================
   SECCIONES
   ============================================================ */
.section { position: relative; padding: clamp(4.2rem, 9vw, 7.5rem) 0; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 1.6rem; position: relative; z-index: 2; }

.section-head { max-width: 640px; margin: 0 auto 3.2rem; text-align: center; }
.section-intro { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

/* motivo sillar */
.sillar-pattern {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.55;
  background-image:
    linear-gradient(to right, rgba(109,26,42,0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(109,26,42,0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 75%);
}

/* ============================================================
   HISTORIA
   ============================================================ */
.historia { background: var(--sillar); }
.historia-grid { position: relative; }
.historia-media { position: relative; }
.media-frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.media-frame::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15); pointer-events: none; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; transition: transform 0.7s ease; }
.historia-media:hover .media-frame img { transform: scale(1.04); }
.seal {
  position: absolute; right: -22px; bottom: 26px;
  background: var(--vino); color: var(--oro-soft);
  font-family: var(--font-display); font-style: italic; font-size: 0.98rem;
  padding: 1rem 1.3rem; border-radius: 50% 50% 50% 8px;
  box-shadow: var(--shadow-soft); max-width: 150px; line-height: 1.25;
}
.historia-copy h2 { margin-bottom: 1.2rem; }
.historia-copy .lead { margin-bottom: 1rem; }
.historia-copy > p:not(.lead) { color: var(--muted); margin-bottom: 1.8rem; }

.pilares { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 1.8rem; margin-top: 0.4rem; }
.pilares li { border-left: 2px solid var(--oro); padding-left: 1rem; }
.pilares strong { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--vino); }
.pilares span { font-size: 0.92rem; color: var(--muted); }

/* ============================================================
   SABORES
   ============================================================ */
.sabores { background: var(--sillar-2); }
.platos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.plato-card {
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-soft);
  transition: transform 0.4s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.4s ease;
  display: flex; flex-direction: column;
}
.plato-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plato-card figure { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.plato-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.plato-card:hover figure img { transform: scale(1.07); }
.plato-body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.plato-body h3 { font-size: 1.4rem; }
.plato-body p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.plato-cta {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--oro); font-weight: 600; margin-top: 0.4rem;
}

/* ============================================================
   GALERÍA
   ============================================================ */
.galeria { background: var(--sillar); }
.gallery { columns: 3 280px; column-gap: 1.5rem; }
.gallery figure {
  break-inside: avoid; margin-bottom: 1.5rem;
  position: relative; border-radius: 12px; overflow: hidden; cursor: zoom-in;
  box-shadow: var(--shadow-soft);
}
.gallery figure img { width: 100%; height: auto; transition: transform 0.6s ease, filter 0.4s ease; }
.gallery figure:hover img { transform: scale(1.05); filter: brightness(1.03); }

/* ============================================================
   CARTA (flipbook con giro de hoja tipo periódico)
   ============================================================ */
.carta { background: var(--sillar-2); }
.carta-book {
  max-width: 940px; margin: 0 auto;
  background: var(--card); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden;
  border: 1px solid var(--line);
}
.carta-bar {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: center; gap: 0.1rem;
  padding: 0.5rem 0.7rem; background: var(--volcan); color: #fff;
  border-top: 1px solid rgba(255,255,255,0.08); flex-wrap: wrap;
}
.cb-btn {
  background: transparent; border: 0; color: #fff;
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.cb-btn:hover:not(:disabled) { background: rgba(255,255,255,0.14); }
.cb-btn:disabled { opacity: 0.3; cursor: default; }
.cb-btn[aria-pressed="true"] { background: rgba(220,153,73,0.22); color: var(--oro-soft); }
.cb-page { font-size: 0.85rem; padding: 0 0.45rem; font-variant-numeric: tabular-nums; min-width: 54px; text-align: center; }
.cb-sep { width: 1px; height: 22px; background: rgba(255,255,255,0.16); margin: 0 0.45rem; }

.carta-thumbs { background: var(--volcan); border-top: 1px solid rgba(255,255,255,0.08); padding: 0.7rem; }
.carta-thumbs[hidden] { display: none; }
.carta-thumbs-inner { display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.2rem; }
.carta-thumb {
  flex: 0 0 auto; width: 78px; padding: 0; border: 2px solid transparent;
  border-radius: 8px; overflow: hidden; background: #fdf3d0; cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.carta-thumb img { width: 100%; display: block; }
.carta-thumb:hover { transform: translateY(-2px); }
.carta-thumb.is-current { border-color: var(--oro); }

.carta-stage {
  position: relative;
  padding: clamp(0.9rem, 2.8vw, 2rem);
  background: radial-gradient(ellipse at 50% -20%, #6b5140 0%, #3a2a20 45%, #20150e 100%);
  overflow: hidden;
  height: min(66vh, 600px);
}
/* StPageFlip: la librería controla el tamaño de este contenedor */
.carta-flip { width: 100%; height: 100%; }
.carta-page {
  background: #fdf3d0;
  overflow: hidden;
  box-shadow: 0 26px 60px -26px rgba(0,0,0,0.9);
  cursor: zoom-in;
}
.carta-page img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  -webkit-user-drag: none; user-select: none;
}

.carta-hint { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 0.9rem; }

.carta-book:fullscreen { max-width: none; border-radius: 0; border: 0; }
.carta-book:fullscreen .carta-stage { height: 100vh; }


/* ============================================================
   UBICACIÓN
   ============================================================ */
.ubicacion { background: var(--sillar); }
.datos { list-style: none; display: grid; gap: 1.4rem; margin: 1.8rem 0 2rem; }
.datos li { display: flex; gap: 1.5rem; align-items: flex-start; }
.dato-ico {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(109,26,42,0.08); color: var(--vino);
  display: flex; align-items: center; justify-content: center;
}
.datos strong { display: block; font-size: 1.02rem; color: var(--volcan); }
.datos p { color: var(--muted); }
.datos a { color: var(--vino); font-weight: 500; }
.dato-star { color: var(--oro); }
.ubicacion-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.mapa { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.mapa iframe { width: 100%; height: 430px; border: 0; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto {
  color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 82% 78% at 50% -16%, rgba(220, 153, 73, 0.32), transparent 62%),
    radial-gradient(ellipse 100% 80% at 50% 128%, rgba(196, 95, 21, 0.22), transparent 68%),
    #821615;
}
.contacto::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(220, 153, 73, 0.9), transparent);
}
.contacto::before {
  content: ""; position: absolute; inset: 0; opacity: 0.08;
  background-image: linear-gradient(to right, #fff 1px, transparent 1px), linear-gradient(to bottom, #fff 1px, transparent 1px);
  background-size: 26px 26px;
}
.contacto-inner { text-align: center; }
.contacto .eyebrow { color: var(--oro-soft); }
.contacto h2 { color: #fff; }
.contacto .section-intro { color: rgba(255,255,255,0.82); margin-bottom: 2rem; }
.contacto .btn-primary { background: #fff; color: var(--vino); box-shadow: none; }
.contacto .btn-primary:hover { background: var(--oro-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--volcan); color: rgba(255,255,255,0.8); padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 1.4rem 2rem; align-items: center; padding-bottom: 2rem; }
.footer-brand { grid-area: 1 / 1 / 2 / 2; display: flex; align-items: center; gap: 1rem; }
.footer-brand p { font-size: 0.95rem; line-height: 1.4; }
.footer-nav { grid-area: 2 / 1 / 3 / 3; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.55rem 1.7rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-nav a { color: rgba(255,255,255,0.75); font-size: 0.95rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--oro-soft); }
.footer-contact { grid-area: 1 / 2 / 2 / 3; text-align: right; }
.footer-contact a { color: var(--oro-soft); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 1.3rem 1.6rem; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.55); }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 60px; height: 60px; border-radius: 50%;
  background: #1f9d55; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -10px rgba(31,157,85,0.7);
  animation: pulse 3s ease-in-out infinite;
  transition: transform 0.25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float::after {
  content: attr(data-tooltip); position: absolute; right: 70px; top: 50%; transform: translateY(-50%);
  background: var(--volcan); color: #fff; padding: 0.5rem 0.9rem; border-radius: 8px;
  font-size: 0.82rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.whatsapp-float:hover::after { opacity: 1; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 12px 30px -10px rgba(31,157,85,0.7), 0 0 0 0 rgba(31,157,85,0.35); }
  50% { box-shadow: 0 12px 30px -10px rgba(31,157,85,0.7), 0 0 0 16px rgba(31,157,85,0); }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(16,9,7,0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s;
  overflow: hidden;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-figure { max-width: 86vw; max-height: 82vh; display: flex; align-items: center; justify-content: center; }
.lb-figure img { max-width: 86vw; max-height: 82vh; object-fit: contain; border-radius: 6px; transform-origin: center center; will-change: transform; cursor: zoom-in; }
.lb-close, .lb-nav {
  position: absolute; background: rgba(255,255,255,0.08); color: #fff; border: none;
  width: 54px; height: 54px; border-radius: 50%; font-size: 1.8rem; line-height: 1;
  transition: background 0.2s; display: flex; align-items: center; justify-content: center;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,0.2); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-zoom {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; z-index: 1520;
  background: rgba(0,0,0,0.55); padding: 8px 10px; border-radius: 999px;
}
.lb-zoom-btn {
  background: rgba(255,255,255,0.12); color: #fff; border: none;
  width: 40px; height: 40px; border-radius: 50%; font-size: 1.4rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lb-zoom-btn:hover { background: rgba(255,255,255,0.24); }
.lb-zoom-reset { width: auto; padding: 0 14px; border-radius: 999px; font-size: 0.85rem; }
.lb-zoom-val { color: #fff; font-size: 0.9rem; min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; }

/* ============================================================
   ANIMACIONES DE APARICIÓN
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2,0.7,0.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.3s; }
.reveal:nth-child(6) { transition-delay: 0.34s; }
.reveal:nth-child(7) { transition-delay: 0.38s; }
.reveal:nth-child(8) { transition-delay: 0.42s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .platos-grid { grid-template-columns: repeat(3, 1fr); }
  .main-nav { gap: 1.5rem; }
  .main-nav a { font-size: 0.86rem; }
}

@media (max-width: 860px) {
  :root { --header-h: 70px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(247,242,232,0.98); backdrop-filter: blur(12px);
    padding: 0.6rem 1.4rem 1.2rem; box-shadow: 0 20px 40px -20px rgba(0,0,0,0.3);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: 0.3s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { color: var(--ink) !important; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .main-nav a::after { display: none; }
  .btn-whatsapp span { display: none; }
  .btn-whatsapp { padding: 0.55rem 0.7rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .platos-grid { grid-template-columns: repeat(2, 1fr); }
  .seal { right: 10px; bottom: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .platos-grid { grid-template-columns: 1fr; }
  .pilares { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { columns: 2 150px; }
  .brand-text { display: none; }
  .carta-bar { gap: 0; padding: 0.45rem 0.4rem; }
  .cb-btn { width: 36px; height: 36px; }
  .cb-sep { margin: 0 0.25rem; }
  .carta-thumb { width: 62px; }
}

/* ============================================================
   ACCESIBILIDAD
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .whatsapp-float { animation: none; }
}

:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; }

/* ============================================================
   MOMENTOS DE TRADICION (tira deslizable)
   ============================================================ */
.momentos { background: var(--volcan); }
.momentos .eyebrow { color: var(--oro-soft); }
.momentos h2 { color: #fff; }
.momentos .section-intro { color: rgba(255,255,255,0.78); }
.momentos .sillar-pattern {
  opacity: 0.32;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.07) 1px, transparent 1px);
}
.momentos .momentos-hint { color: rgba(255,255,255,0.6); }
.momentos-wrap { position: relative; }
.momentos-strip {
  display: flex; gap: 1.5rem;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding: 0.5rem 0.2rem 1.1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.momentos-strip::-webkit-scrollbar { height: 6px; }
.momentos-strip::-webkit-scrollbar-track { background: transparent; }
.momentos-strip::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.22); border-radius: 99px; }
.momentos-strip:focus-visible { outline: 3px solid var(--oro); outline-offset: 4px; }
.momento {
  position: relative; flex: 0 0 auto; display: block;
  border: 0; padding: 0; margin: 0;
  height: clamp(230px, 34vw, 400px);
  border-radius: 14px; overflow: hidden;
  scroll-snap-align: start;
  cursor: zoom-in; background: var(--volcan);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.4s ease;
}
.momento:hover { box-shadow: var(--shadow); }
.momento img { height: 100%; width: auto; display: block; transition: transform 0.7s ease; }
.momento:hover img { transform: scale(1.05); }
.momento-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.4rem 0.9rem 0.7rem;
  background: linear-gradient(to top, rgba(20,10,8,0.92), rgba(20,10,8,0.5) 45%, rgba(20,10,8,0));
  color: #fff; font-size: 0.86rem; font-weight: 500; text-align: left;
  pointer-events: none;
}
.momentos-hint { text-align: center; color: var(--muted); font-size: 0.85rem; }
.strip-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,253,247,0.96);
  color: var(--vino); font-size: 1.6rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: background 0.25s ease, transform 0.25s ease;
}
.strip-nav:hover { background: #fff; transform: translateY(-50%) scale(1.07); }
.strip-prev { left: -16px; }
.strip-next { right: -16px; }
@media (max-width: 860px) { .strip-nav { display: none; } }
@media (max-width: 560px) { .momento { height: clamp(180px, 52vw, 260px); } }

.gallery-more { text-align: center; margin-top: 2.4rem; }

.tb-sound svg { display: block; }
.tb-sound[aria-pressed="false"] { color: rgba(255,255,255,0.45); }

/* Respaldo si la libreria de volteo no carga */
.carta-flip-fallback { display: flex; flex-direction: column; gap: 1.2rem; height: auto; max-height: 100%; overflow-y: auto; }
.carta-flip-fallback .carta-page { width: 100%; height: auto; }
.carta-flip-fallback .carta-page img { height: auto; }

/* ============================================================
   COOKIES
   ============================================================ */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1400;
  padding: 1rem; animation: cookieIn 0.5s cubic-bezier(0.2,0.7,0.2,1) both;
}
@keyframes cookieIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.cookie-banner[hidden], .cookie-modal[hidden] { display: none; }
.cookie-box {
  max-width: 1100px; margin: 0 auto; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 60px -24px rgba(74,37,19,0.65);
  padding: 1.2rem 1.4rem; display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap;
}
.cookie-text { flex: 1 1 360px; }
.cookie-text h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.cookie-text p { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.cookie-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cookie-btn { padding: 0.7rem 1.3rem; font-size: 0.92rem; }
.btn-outline.cookie-btn { color: var(--vino); }
.cookie-modal {
  position: fixed; inset: 0; z-index: 1600; background: rgba(33,15,8,0.62);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 1.2rem;
  overflow-y: auto;
}
.cookie-modal-box {
  width: min(560px, 100%); background: var(--card); border-radius: 18px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7); padding: 1.6rem;
  max-height: calc(100vh - 2.4rem); overflow-y: auto; margin: auto;
}
.cookie-modal-box h3 { font-size: 1.55rem; margin-bottom: 0.4rem; }
.cookie-modal-intro { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.2rem; }
.cookie-list { list-style: none; display: grid; gap: 0.9rem; }
.cookie-list li { border-top: 1px solid var(--line); padding-top: 0.9rem; }
.cookie-list li:first-child { border-top: 0; padding-top: 0; }
.cookie-item { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.cookie-item-copy { display: flex; flex-direction: column; }
.cookie-item-copy strong { font-family: var(--font-display); font-size: 1.18rem; color: var(--volcan); }
.cookie-item-copy span { font-size: 0.85rem; color: var(--muted); }
.cookie-switch { position: relative; flex: 0 0 auto; width: 48px; height: 26px; cursor: pointer; }
.cookie-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.cookie-switch span { position: absolute; inset: 0; background: rgba(124,109,99,0.35); border-radius: 999px; transition: background 0.25s; }
.cookie-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform 0.25s; box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
.cookie-switch input:checked + span { background: var(--vino); }
.cookie-switch input:checked + span::after { transform: translateX(22px); }
.cookie-modal-actions { display: flex; gap: 0.6rem; justify-content: flex-end; margin-top: 1.4rem; flex-wrap: wrap; }
.cookie-link { background: none; border: 0; color: var(--oro-soft); font-size: 0.82rem; text-decoration: underline; margin-left: 0.8rem; cursor: pointer; }
.cookie-link:hover { color: #fff; }
.mapa { position: relative; }
.mapa-placeholder {
  position: absolute; inset: 0; z-index: 2; border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  text-align: center; padding: 1.6rem;
  background: linear-gradient(160deg, var(--sillar-2), var(--sillar));
}
.mapa-placeholder[hidden] { display: none; }
.mapa-placeholder p { color: var(--muted); font-size: 0.92rem; max-width: 34ch; }
@media (max-width: 700px) {
  .cookie-box { flex-direction: column; align-items: stretch; }
  .cookie-actions .cookie-btn { flex: 1 1 auto; justify-content: center; }
  .footer-bottom { display: flex; flex-direction: column; gap: 0.5rem; }
  .cookie-link { margin-left: 0; }

  /* Configuración de cookies: compacta y desplazable en celular */
  .cookie-modal { padding: 0.7rem; }
  .cookie-modal-box { padding: 1.05rem; border-radius: 14px; max-height: calc(100vh - 1.4rem); max-height: calc(100dvh - 1.4rem); }
  .cookie-modal-box h3 { font-size: 1.22rem; margin-bottom: 0.2rem; }
  .cookie-modal-intro { font-size: 0.8rem; line-height: 1.4; margin-bottom: 0.75rem; }
  .cookie-list { gap: 0.5rem; }
  .cookie-list li { padding-top: 0.5rem; }
  .cookie-item { gap: 0.75rem; }
  .cookie-item-copy strong { font-size: 1rem; }
  .cookie-item-copy span { font-size: 0.76rem; line-height: 1.35; }
  .cookie-switch { width: 42px; height: 23px; }
  .cookie-switch span::after { width: 17px; height: 17px; }
  .cookie-switch input:checked + span::after { transform: translateX(19px); }
  .cookie-modal-actions { margin-top: 0.9rem; gap: 0.5rem; }
  .cookie-modal-actions .cookie-btn { flex: 1 1 auto; justify-content: center; padding: 0.6rem 0.9rem; font-size: 0.85rem; }
}
.carta-zoom-float {
  position: absolute; top: 1rem; right: 1rem; z-index: 6;
  background: rgba(255,255,255,0.94); color: var(--vino);
  border: 0; border-radius: 999px; padding: 0.55rem 1.15rem;
  font-size: 0.85rem; font-weight: 500; cursor: pointer;
  box-shadow: 0 8px 22px -10px rgba(0,0,0,0.7);
  transition: background 0.2s, transform 0.2s;
}
.carta-zoom-float:hover { background: #fff; transform: translateY(-1px); }

body.cookie-banner-open { padding-bottom: 340px; }
@media (min-width: 700px) { body.cookie-banner-open { padding-bottom: 170px; } }

/* ============================================================
   PREGUNTAS FRECUENTES
   ============================================================ */
.faq { background: var(--sillar); }
.faq-inner { max-width: 820px; }
.faq-list { display: grid; gap: 0.9rem; margin-top: 2.2rem; }
.faq-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow);
}
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.1rem 1.3rem; font-weight: 600; font-family: var(--font-display);
  font-size: 1.12rem; color: var(--volcan);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.6rem; line-height: 1; color: var(--vino);
  transition: transform 0.25s ease; flex: 0 0 auto; font-weight: 400;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.3rem 1.15rem; color: var(--muted); line-height: 1.65; }
.faq-item p a { color: var(--vino); font-weight: 600; }