/* =============================================================
   Pálpito · Recuerdos picanteros
   Arquetipo: Editorial oscuro cálido (barro, sillar y terracota)
   Firma: fotos que se "revelan" de sepia a color
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #120D0A;   /* barro quemado */
  --bg-2:      #1A1310;
  --bg-3:      #231A15;   /* tarjetas */
  --bg-4:      #2E231C;
  --sillar:    #F1E8DA;   /* texto: piedra de sillar */
  --sillar-2:  #D8CBB7;
  --mute:      #A59580;
  --accent:    #D0683F;   /* terracota del logo */
  --accent-hi: #E58A5F;   /* para texto sobre oscuro */
  --terra:     #A94A2B;   /* banda de color */
  --gold:      #D9AA62;   /* ámbar de chicha */
  --ink:       #160D08;   /* texto sobre claros */
  --paper:     #F3EBDD;
  --wa:        #25D366;
  --line:      rgba(241, 232, 218, .12);
  --line-2:    rgba(241, 232, 218, .22);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand:  "Homemade Apple", "Segoe Script", cursive;

  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 76px;
  --radius: 18px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  overflow-x: clip;
  background: var(--bg);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--sillar);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance; }
em { font-style: italic; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg .fill, svg.fill { fill: currentColor; stroke: none; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(84px, 12vw, 160px); position: relative; }
.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: fixed; top: -100px; left: 1rem; z-index: 10000;
  padding: .6rem 1rem; background: var(--sillar); color: var(--ink); border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.hand { font-family: var(--hand); font-weight: 400; letter-spacing: 0; }
.grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =============================================================
   4. Typography
   ============================================================= */
.kicker {
  display: flex; width: fit-content; align-items: center; gap: .8rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.kicker-line { width: 34px; height: 1px; background: currentColor; opacity: .7; }
.kicker-dark { color: var(--sillar); }
.section-title { font-size: clamp(2.5rem, 5.6vw, 4.6rem); max-width: 16ch; }
.section-title em { color: var(--accent-hi); font-weight: 500; }
.section-lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--sillar-2); max-width: 56ch; margin-top: 1.4rem; }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); }
.section-head-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head-center .section-title { max-width: 20ch; }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  --bh: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: var(--bh); padding: 0 1.6rem;
  border-radius: 999px; font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform .45s var(--ease-out), background-color .3s var(--ease-out), color .3s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .45s var(--ease-out); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { --bh: 42px; padding: 0 1.15rem; font-size: .88rem; }
.btn-primary { background: var(--accent); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(208, 104, 63, .65); }
.btn-primary:hover { background: var(--accent-hi); box-shadow: 0 16px 38px -12px rgba(229, 138, 95, .7); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--sillar); }
.btn-ghost:hover { border-color: var(--sillar); background: rgba(241, 232, 218, .06); }
.btn-dark { background: var(--ink); color: var(--sillar); }
.btn-dark:hover { background: #000; }
.btn-wa { background: var(--wa); color: #06210f; }
.btn-wa svg { width: 20px; height: 20px; }
.btn-wa:hover { background: #3ee07c; }

.status-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--mute); flex: none;
}
.is-open .status-dot { background: #5BD27F; box-shadow: 0 0 0 0 rgba(91, 210, 127, .6); animation: livePulse 2.4s var(--ease-soft) infinite; }
.is-closed .status-dot { background: #E0715A; }
.status-pill {
  display: none; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 500; color: var(--sillar-2);
  padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px;
}

.tag {
  display: inline-block; vertical-align: middle;
  font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: .28rem .55rem; border-radius: 999px; margin-left: .4rem;
  border: 1px solid var(--line-2); color: var(--sillar-2);
  position: relative; top: -3px;
}
.tag-hot { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* Arco de sillar: el motivo arquitectónico de Arequipa */
.arch {
  position: relative; overflow: hidden;
  border-radius: 999px 999px 22px 22px;
  background: var(--bg-3);
  isolation: isolate;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================================
   6. Sections
   ============================================================= */

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .7s var(--ease-out), visibility .7s;
  animation: splashSafety .01s 3.2s forwards;
}
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-inner { display: grid; justify-items: center; gap: 1rem; }
.splash-seal { width: 74px; height: 74px; animation: beat 1.2s var(--ease-soft) infinite; }
.splash-seal circle { fill: var(--accent); stroke: none; }
.splash-seal text { fill: var(--ink); stroke: none; font-family: var(--serif); font-size: 46px; font-weight: 600; }
.splash-word { font-family: var(--serif); font-weight: 600; letter-spacing: .35em; font-size: 1rem; color: var(--sillar-2); padding-left: .35em; }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.12); } 28% { transform: scale(1); } 42% { transform: scale(1.08); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 800;
  transition: background-color .4s var(--ease-out), border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .nav.is-menu-open {
  background: rgba(18, 13, 10, .9);
  border-bottom-color: var(--line);
}
@supports (backdrop-filter: blur(10px)) {
  .nav.is-scrolled { background: rgba(18, 13, 10, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
}
.nav-inner {
  height: var(--nav-h);
  max-width: 1340px; margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .75rem; }
.brand-seal {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--ink);
  font-family: var(--serif); font-weight: 700; font-size: 1.45rem; line-height: 1;
  padding-top: 2px;
  transition: transform .6s var(--ease-out);
}
.brand:hover .brand-seal { transform: rotate(-12deg) scale(1.06); }
.brand-text { display: grid; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.42rem; letter-spacing: .14em; }
.brand-sub { font-size: .58rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); margin-top: .3rem; }
.nav-links { display: none; gap: 2rem; }
.nav-links a {
  position: relative; font-size: .9rem; font-weight: 500; color: var(--sillar-2);
  padding-block: .4rem; transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent-hi); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav-links a:hover { color: var(--sillar); }
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.is-current { color: var(--sillar); }
.nav-actions { display: flex; align-items: center; gap: .8rem; }
.nav-burger {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-content: center; gap: 6px;
}
.nav-burger span { display: block; width: 18px; height: 1.5px; background: var(--sillar); transition: transform .45s var(--ease-out); }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-menu {
  display: grid; gap: .2rem;
  padding: 1rem var(--gutter) 1.6rem;
  border-top: 1px solid var(--line);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  font-family: var(--serif); font-size: 1.9rem; font-weight: 600; padding: .35rem 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .mobile-menu-wa { font-family: var(--sans); font-size: 1rem; color: var(--wa); border: 0; padding-top: 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(28px, 6vw, 70px)) 0 clamp(70px, 9vw, 110px);
  display: flex; align-items: center;
  overflow: clip;
}
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 80vw; height: 80vw; max-width: 1100px; max-height: 1100px;
  background: radial-gradient(closest-side, rgba(208, 104, 63, .30), rgba(169, 74, 43, .10) 55%, transparent 75%);
  filter: blur(30px); pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; display: grid; gap: clamp(48px, 7vw, 80px); align-items: center; }
.hero-title {
  font-size: clamp(3.2rem, 9.4vw, 7.4rem);
  line-height: .92; letter-spacing: -0.02em; font-weight: 600;
  margin-bottom: 1.6rem;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { color: var(--accent-hi); font-weight: 500; }
.js .hero-title .line > span { transform: translateY(108%); animation: lineSafety .01s 3.4s forwards; }
.is-loaded .hero-title .line > span { transform: none; transition: transform 1.25s var(--ease-out); }
.is-loaded .hero-title .line:nth-child(2) > span { transition-delay: .12s; }
@keyframes lineSafety { to { transform: none; } }
.hero-sub { font-size: clamp(1.02rem, 1.35vw, 1.14rem); color: var(--sillar-2); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.2rem 2rem;
  margin-top: clamp(2.4rem, 5vw, 3.6rem); padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.hero-facts dt { font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .3rem; }
.hero-facts dd { font-size: .95rem; color: var(--sillar); }
.js .hero-copy > * { opacity: 0; transform: translateY(18px); animation: fadeSafety .01s 3.4s forwards; }
.js .hero-copy > .hero-title { opacity: 1; transform: none; animation: none; }
.is-loaded .hero-copy > * { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.is-loaded .hero-copy > .hero-sub { transition-delay: .3s; }
.is-loaded .hero-copy > .hero-actions { transition-delay: .42s; }
.is-loaded .hero-copy > .hero-facts { transition-delay: .54s; }
@keyframes fadeSafety { to { opacity: 1; transform: none; } }

.hero-visual { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.hero-arch { aspect-ratio: 4 / 5; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9); }
.hero-visual::before {
  content: ""; position: absolute; inset: -14px -14px 14px 14px;
  border: 1px solid rgba(208, 104, 63, .55);
  border-radius: 999px 999px 26px 26px; pointer-events: none;
}
.hero-arch img { transform: scale(1.06); }
.seal {
  position: absolute; left: -36px; bottom: 9%; width: clamp(112px, 15vw, 156px); aspect-ratio: 1;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55));
  z-index: 3;
}
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal-spin { transform-box: view-box; transform-origin: 100px 100px; animation: spin 36s linear infinite; }
.seal-bg { fill: var(--accent); stroke: none; }
.seal-ring { fill: none; stroke: rgba(22, 13, 8, .35); stroke-width: 1; }
.seal-text { fill: var(--ink); stroke: none; font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: 2px; }
.seal-p { fill: var(--ink); stroke: none; font-family: var(--serif); font-size: 64px; font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-note {
  position: absolute; right: -6px; bottom: -30px; z-index: 3;
  font-family: var(--hand); font-size: clamp(.95rem, 1.5vw, 1.15rem); color: var(--gold);
  transform: rotate(-5deg);
}
.hero-scroll {
  position: absolute; left: 50%; bottom: 22px; z-index: 2; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid var(--line-2); border-radius: 20px;
  display: none;
}
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--sillar); animation: scrollCue 2.2s var(--ease-soft) infinite; }
@keyframes scrollCue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Ticker ---------- */
.ticker {
  position: relative; overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 1.15rem 0;
  background: var(--bg-2);
}
.ticker-track { display: flex; width: max-content; align-items: center; gap: 2.2rem; animation: ticker 60s linear infinite; }
.ticker span { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2.1rem); white-space: nowrap; color: var(--sillar-2); }
.ticker i { font-style: normal; color: var(--accent); font-size: .9rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Revelado (firma): sepia → color ---------- */
.develop { position: relative; }
.develop img { transition: filter 2.2s var(--ease-soft), transform 1.4s var(--ease-out); }
.js .develop img { filter: sepia(.9) saturate(.5) contrast(1.06) brightness(.78); animation: developSafety .01s 6s forwards; }
.js .develop.is-developed img { filter: none; }
@keyframes developSafety { to { filter: none; } }
.develop::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(120% 80% at 80% 10%, rgba(255, 196, 140, .35), transparent 60%);
  mix-blend-mode: screen; opacity: 0; transition: opacity 2.4s var(--ease-soft);
}
.js .develop:not(.is-developed)::after { opacity: 1; }

/* ---------- Reveal genérico ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
  animation: opacitySafety .01s 5s forwards;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@keyframes opacitySafety { to { opacity: 1; } }

/* ---------- Historia ---------- */
.story-grid { display: grid; gap: clamp(56px, 8vw, 110px); align-items: center; }
.story-photos { position: relative; padding-bottom: 18%; max-width: 560px; width: 100%; justify-self: center; }
.photo-frame {
  background: var(--paper); padding: 10px 10px 44px; border-radius: 4px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .85);
}
.photo-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.photo-frame figcaption { position: absolute; left: 14px; right: 14px; bottom: 10px; color: #3b2a1f; font-size: .82rem; line-height: 1.2; z-index: 3; }
.story-photo-main { width: 78%; transform: rotate(-2.5deg); }
.story-photo-small { position: absolute; right: 0; bottom: 0; width: 46%; transform: rotate(4deg); }
.story-photo-small img { aspect-ratio: 1; }
.js .story-photo-main[data-reveal] { transform: translateY(28px) rotate(-2.5deg); }
.js .story-photo-main[data-reveal].is-visible { transform: rotate(-2.5deg); }
.js .story-photo-small[data-reveal] { transform: translateY(40px) rotate(8deg); }
.js .story-photo-small[data-reveal].is-visible { transform: rotate(4deg); transition-delay: .2s; }
.dedication { font-size: clamp(1.3rem, 2.4vw, 1.75rem); color: var(--accent-hi); transform: rotate(-3deg); margin: -.2rem 0 1.4rem; display: block; width: fit-content; }
.js .dedication[data-reveal] { transform: translateY(20px) rotate(-3deg); }
.js .dedication[data-reveal].is-visible { transform: rotate(-3deg); }
.story-text { margin-top: 1.8rem; display: grid; gap: 1.1rem; color: var(--sillar-2); max-width: 58ch; font-size: 1.04rem; }
.story-quote {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.3;
  color: var(--sillar); border-left: 2px solid var(--accent); padding-left: 1.2rem; margin-top: .6rem;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; line-height: 1; color: var(--accent-hi); margin-bottom: .5rem; white-space: nowrap; }
.stats li > span { font-size: .84rem; color: var(--mute); line-height: 1.45; display: block; }
.pillars { display: grid; gap: 1px; margin-top: clamp(70px, 10vw, 130px); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar { background: var(--bg); padding: clamp(28px, 4vw, 44px); transition: background-color .5s var(--ease-out); }
.pillar:hover { background: var(--bg-2); }
.pillar-num { font-size: .78rem; font-weight: 700; letter-spacing: .2em; color: var(--gold); }
.pillar h3 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin: 1rem 0 .7rem; }
.pillar p { color: var(--sillar-2); font-size: .98rem; }

/* ---------- Carta ---------- */
.carta { background: var(--bg-2); border-block: 1px solid var(--line); }
.carta-tabs { display: none; }
.js .carta-tabs {
  display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1) clamp(28px, 4vw, 44px); padding: 4px var(--gutter);
  scroll-snap-type: x proximity;
}
.carta-tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; scroll-snap-align: start;
  padding: .75rem 1.25rem; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--sillar-2);
  font-size: .92rem; font-weight: 600;
  transition: background-color .35s var(--ease-out), color .35s, border-color .35s;
}
.tab:hover { color: var(--sillar); border-color: var(--sillar-2); }
.tab.is-active { background: var(--sillar); color: var(--ink); border-color: var(--sillar); }
.carta-body { display: grid; gap: clamp(32px, 5vw, 70px); align-items: start; }
.carta-panel + .carta-panel { margin-top: 3rem; }
.js .carta-panel + .carta-panel { margin-top: 0; }
.js .carta-panel:not(.is-active) { display: none; }
.js .carta-panel.is-active { animation: panelIn .7s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.panel-title { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.panel-title small { font-family: var(--sans); font-size: .85rem; font-weight: 500; color: var(--mute); letter-spacing: 0; }
.js .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dish { padding: 1.35rem 0; border-bottom: 1px dashed var(--line-2); transition: padding .5s var(--ease-out); }
.dish:first-child { border-top: 1px dashed var(--line-2); }
.dish-head { display: flex; align-items: baseline; gap: .6rem; }
.dish h4 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); font-weight: 600; transition: color .35s; }
.leader { flex: 1; min-width: 20px; border-bottom: 1px dotted rgba(241, 232, 218, .3); transform: translateY(-5px); }
.price { font-weight: 700; color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dish p { color: var(--mute); font-size: .95rem; max-width: 56ch; margin-top: .35rem; }
@media (hover: hover) {
  .dish:hover { padding-left: .6rem; }
  .dish:hover h4 { color: var(--accent-hi); }
}
.carta-photo { position: relative; }
.carta-arch { aspect-ratio: 16 / 11; border-radius: 22px; }
.carta-img { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease-out), transform 1.4s var(--ease-out); }
.carta-img.is-on { opacity: 1; transform: scale(1); }
.carta-photo figcaption { margin-top: 1rem; font-size: 1rem; color: var(--gold); text-align: center; min-height: 1.6em; }
.carta-note { margin-top: clamp(28px, 4vw, 44px); font-size: .88rem; color: var(--mute); max-width: 70ch; }

/* ---------- Triple ---------- */
.triple { position: relative; background: var(--terra); color: var(--sillar); overflow: clip; padding-block: clamp(80px, 11vw, 150px); }
.triple::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.triple-grid { position: relative; display: grid; gap: clamp(40px, 6vw, 90px); align-items: center; }
.triple-photo { position: relative; z-index: 1; width: min(100%, 480px); aspect-ratio: 1; justify-self: center; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 12px rgba(241, 232, 218, .14), 0 50px 90px -40px rgba(0, 0, 0, .7); }
.triple-photo img { width: 100%; height: 100%; object-fit: cover; }
.triple-copy { position: relative; z-index: 1; }
.triple-title { font-size: clamp(3.2rem, 8vw, 6.4rem); line-height: .92; }
.triple-title em { font-weight: 500; }
.triple-text { font-size: 1.1rem; max-width: 46ch; margin-top: 1.4rem; color: rgba(241, 232, 218, .92); }
.triple-foot { display: flex; align-items: baseline; gap: 1.2rem; margin: 2rem 0 2.2rem; flex-wrap: wrap; }
.triple-price { font-family: var(--serif); font-size: clamp(3.4rem, 6vw, 4.6rem); font-weight: 600; line-height: 1; }
.triple-price small { font-size: .45em; margin-right: .2em; vertical-align: .6em; }
.triple-serves { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; padding: .45rem .9rem; border: 1px solid rgba(241, 232, 218, .45); border-radius: 999px; }
.triple-big {
  position: absolute; right: -2%; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-weight: 600; font-size: clamp(18rem, 40vw, 34rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1.5px rgba(241, 232, 218, .16);
  pointer-events: none; user-select: none; z-index: 0;
}

/* ---------- Desayunos ---------- */
.breakfast-grid { display: grid; gap: clamp(56px, 8vw, 100px); align-items: center; }
.ritual { margin: 2.4rem 0 2.6rem; position: relative; display: grid; gap: 1.4rem; }
.ritual::before { content: ""; position: absolute; left: 3.15rem; top: .6rem; bottom: .6rem; width: 1px; background: var(--line-2); }
.ritual li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.4rem; align-items: start; position: relative; }
.ritual li::before { content: ""; position: absolute; left: calc(3.15rem - 4px); top: .55rem; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.ritual time { font-weight: 700; font-size: .85rem; color: var(--gold); font-variant-numeric: tabular-nums; padding-top: .25rem; }
.ritual strong { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.15; }
.ritual span { color: var(--mute); font-size: .92rem; }
.breakfast-visual { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.breakfast-photo { transform: rotate(2deg); }
.js .breakfast-photo[data-reveal] { transform: translateY(28px) rotate(5deg); }
.js .breakfast-photo[data-reveal].is-visible { transform: rotate(2deg); }
.stamp {
  position: absolute; left: -26px; top: -26px; z-index: 3;
  width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; gap: .1rem;
  background: var(--bg); color: var(--gold);
  border: 2px dashed var(--gold);
  box-shadow: 0 0 0 6px var(--bg), 0 20px 40px -10px rgba(0, 0, 0, .6);
  transform: rotate(-12deg);
}
.stamp span { font-size: .6rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.stamp strong { font-family: var(--serif); font-size: 2.3rem; font-weight: 600; line-height: 1; color: var(--sillar); }

/* ---------- Álbum ---------- */
.album { background: var(--bg-2); border-top: 1px solid var(--line); }
.album-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 3vw, 40px) clamp(14px, 2.4vw, 34px); }
.polaroid {
  --r: 0deg;
  position: relative; background: var(--paper); padding: 9px 9px 46px; border-radius: 3px;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .85);
  transform: rotate(var(--r));
  transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out), opacity 1s var(--ease-out);
}
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.polaroid figcaption { position: absolute; left: 12px; right: 12px; bottom: 9px; color: #3b2a1f; font-size: clamp(.62rem, 1.4vw, .85rem); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 3; }
.js .polaroid[data-reveal] { transform: translateY(46px) rotate(calc(var(--r) * 2.4)); }
.js .polaroid[data-reveal].is-visible { transform: rotate(var(--r)); }
@media (hover: hover) {
  .polaroid:hover, .js .polaroid[data-reveal].is-visible:hover { transform: rotate(0deg) scale(1.04); z-index: 4; box-shadow: 0 40px 70px -26px rgba(0, 0, 0, .95); }
}
.album-cta { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; margin-top: clamp(48px, 7vw, 80px); color: var(--sillar-2); }
.album-cta svg { width: 19px; height: 19px; }

/* ---------- Visítanos ---------- */
.visit-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: stretch; }
.visit-card .section-title { font-size: clamp(2.3rem, 4.6vw, 3.8rem); }
.visit-address { display: flex; gap: 1rem; align-items: flex-start; margin-top: 2rem; font-size: 1.05rem; color: var(--sillar-2); }
.visit-address strong { color: var(--sillar); font-weight: 600; font-size: 1.15rem; }
.visit-address svg { width: 26px; height: 26px; color: var(--accent-hi); flex: none; margin-top: .1rem; }
.visit-status {
  display: inline-flex; align-items: center; gap: .65rem; margin-top: 1.6rem;
  font-size: .9rem; font-weight: 600; padding: .55rem 1rem; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line);
}
.hours { margin-top: 1.4rem; font-size: .95rem; }
.hours th, .hours td { padding: .62rem .2rem; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; }
.hours th { color: var(--sillar-2); }
.hours td { text-align: right; color: var(--sillar-2); font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--sillar); font-weight: 700; }
.hours tr.is-today th::after { content: "hoy"; margin-left: .6rem; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 999px; background: var(--accent); color: var(--ink); vertical-align: middle; }
.visit-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.visit-map { position: relative; min-height: 380px; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); }
.visit-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: sepia(.28) saturate(.85) contrast(1.04) brightness(.95); }
.map-chip {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  background: var(--bg); color: var(--sillar); font-size: .85rem; font-weight: 600;
  padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line-2);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
  transition: background-color .3s, color .3s;
}
.map-chip:hover { background: var(--accent); color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: #0C0806; border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 100px) 0 calc(28px + 140px); }
.footer-grid { display: grid; gap: 2.6rem; }
.footer-word { display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.6rem); letter-spacing: .14em; line-height: 1; }
.footer-brand .brand-sub { display: block; margin-top: .6rem; }
.footer-dedication { margin-top: 1.4rem; color: var(--accent-hi); font-size: 1rem; }
.footer-col h3 { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-col p, .footer-col a { display: block; color: var(--sillar-2); font-size: .95rem; margin-bottom: .4rem; }
.footer-col a { transition: color .3s; }
.footer-col a:hover { color: var(--accent-hi); }
.footer-bottom { display: grid; gap: .5rem; margin-top: clamp(48px, 6vw, 70px); padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--mute); }
.footer-credits a { color: var(--sillar-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Botones flotantes ---------- */
.fab-stack {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.fab {
  position: relative; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .7);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .3s;
}
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab svg { width: 28px; height: 28px; }
.fab-wa { background: var(--wa); color: #fff; }
.fab-wa svg { fill: currentColor; stroke: none; width: 30px; height: 30px; }
.fab-label {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(8px, -50%);
  background: var(--sillar); color: var(--ink); font-size: .8rem; font-weight: 700; white-space: nowrap;
  padding: .45rem .8rem; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .45s var(--ease-out);
}
@media (hover: hover) { .fab-wa:hover .fab-label { opacity: 1; transform: translate(0, -50%); } }
.fab-chat { background: var(--accent); color: var(--ink); }
.fab-chat:hover { background: var(--accent-hi); }
.fab-chat .fab-icon-close { display: none; }
.fab-chat[aria-expanded="true"] .fab-icon-open { display: none; }
.fab-chat[aria-expanded="true"] .fab-icon-close { display: block; }
.fab-ping { position: absolute; top: 3px; right: 3px; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); border: 2px solid var(--bg); }
.fab-ping::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--gold); animation: ping 2.2s var(--ease-out) infinite; }
.fab-chat[aria-expanded="true"] .fab-ping, .fab-chat.is-seen .fab-ping { display: none; }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(91, 210, 127, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(91, 210, 127, 0); } }

/* ---------- Asistente (chat) ---------- */
.chat {
  position: fixed; z-index: 950;
  inset: 0;
  display: flex; flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  overflow: hidden;
}
.chat[hidden] { display: none; }
.chat.is-open { animation: chatIn .5s var(--ease-out); }
@keyframes chatIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-head {
  display: flex; align-items: center; gap: .8rem;
  padding: 1rem 1rem 1rem 1.1rem; padding-top: calc(1rem + env(safe-area-inset-top));
  background: var(--bg-3); border-bottom: 1px solid var(--line);
}
.chat-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center; padding-top: 2px;
  background: var(--accent); color: var(--ink);
  font-family: var(--serif); font-weight: 700; font-size: 1.5rem;
}
.chat-meta { flex: 1; min-width: 0; }
.chat-meta h2 { font-family: var(--sans); font-size: .98rem; font-weight: 700; letter-spacing: 0; line-height: 1.2; }
.chat-meta h2 small { font-weight: 500; color: var(--mute); font-size: .82rem; }
.chat-meta p { display: flex; align-items: center; gap: .45rem; font-size: .76rem; color: var(--mute); margin-top: .15rem; }
.chat-meta .status-dot { background: #5BD27F; }
.chat-close { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--sillar-2); transition: background-color .3s; }
.chat-close:hover { background: rgba(241, 232, 218, .08); }
.chat-close svg { width: 20px; height: 20px; }
.chat-log { flex: 1; overflow-y: auto; padding: 1.2rem 1rem .6rem; display: flex; flex-direction: column; gap: .7rem; scroll-behavior: smooth; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: .75rem .95rem; border-radius: 16px; font-size: .93rem; line-height: 1.5; animation: msgIn .45s var(--ease-out); }
.msg p + p, .msg p + ul, .msg ul + p { margin-top: .45rem; }
.msg ul { display: grid; gap: .2rem; }
.msg li { display: flex; justify-content: space-between; gap: .8rem; }
.msg li b { color: var(--gold); font-weight: 700; white-space: nowrap; }
.msg strong { color: var(--sillar); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg-bot { align-self: flex-start; background: var(--bg-3); border: 1px solid var(--line); border-bottom-left-radius: 5px; color: var(--sillar-2); }
.msg-user { align-self: flex-end; background: var(--accent); color: var(--ink); border-bottom-right-radius: 5px; font-weight: 500; }
.msg-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.msg-actions a, .msg-actions button {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .8rem; font-weight: 700; padding: .5rem .8rem; border-radius: 999px;
  background: var(--sillar); color: var(--ink); transition: background-color .3s;
}
.msg-actions a:hover, .msg-actions button:hover { background: #fff; }
.msg-actions .act-wa { background: var(--wa); color: #06210f; }
.msg-actions .act-wa:hover { background: #3ee07c; }
.typing { display: inline-flex; gap: 4px; padding: .9rem 1rem; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); animation: typing 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-chips { display: flex; gap: .4rem; flex-wrap: wrap; padding: .3rem 1rem .7rem; }
.chat-chips:empty { display: none; }
.chip {
  font-size: .8rem; font-weight: 600; padding: .48rem .8rem; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--sillar);
  transition: background-color .3s, border-color .3s, color .3s;
}
.chip:hover { background: var(--sillar); color: var(--ink); border-color: var(--sillar); }
.chat-form { display: flex; gap: .5rem; padding: .7rem .8rem; border-top: 1px solid var(--line); background: var(--bg-3); }
.chat-form input {
  flex: 1; min-width: 0; height: 46px; padding: 0 1rem; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line-2); outline: none;
  font-size: 16px;
}
.chat-form input:focus { border-color: var(--accent); }
.chat-form input::placeholder { color: var(--mute); }
.chat-form button { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; flex: none; transition: background-color .3s; }
.chat-form button:hover { background: var(--accent-hi); }
.chat-form button svg { width: 20px; height: 20px; }
.chat-wa { display: block; text-align: center; font-size: .78rem; color: var(--mute); padding: .55rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: var(--bg-3); }
.chat-wa:hover { color: var(--wa); }
body.chat-open .fab-stack { display: none; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .album-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
  .chat {
    inset: auto max(16px, env(safe-area-inset-right)) calc(16px + 58px + 14px + env(safe-area-inset-bottom)) auto;
    width: 390px; height: min(620px, calc(100svh - 120px));
    border-radius: 24px;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
  }
  body.chat-open .fab-stack { display: flex; }
  body.chat-open .fab-wa { display: none; }
  .chat-head { padding-top: 1rem; }
}

@media (min-width: 720px) {
  .status-pill { display: inline-flex; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .hero-scroll { display: block; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
  .mobile-menu { display: none !important; }
  .hero-inner { grid-template-columns: 1.15fr .85fr; }
  .hero-visual { justify-self: end; }
  .story-grid { grid-template-columns: .95fr 1.05fr; }
  .carta-body { grid-template-columns: 1.25fr .75fr; }
  .carta-photo { position: sticky; top: calc(var(--nav-h) + 28px); }
  .carta-arch { aspect-ratio: 4 / 5; border-radius: 999px 999px 22px 22px; }
  .triple-grid { grid-template-columns: .9fr 1.1fr; }
  .breakfast-grid { grid-template-columns: 1.05fr .95fr; }
  .visit-grid { grid-template-columns: .9fr 1.1fr; }
  .visit-map { min-height: 100%; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer { padding-bottom: 32px; }
}

@media (max-width: 959px) {
  .carta-photo { order: -1; }
  .stamp { left: auto; right: 6px; top: -34px; width: 108px; height: 108px; }
  .stamp strong { font-size: 1.9rem; }
  .seal { left: -14px; }
}

@media (max-width: 539px) {
  .stats { grid-template-columns: 1fr; gap: 1.4rem; }
  .stats li { display: grid; grid-template-columns: 7.5rem 1fr; align-items: center; gap: 1rem; }
  .stats strong { margin-bottom: 0; font-size: 2.2rem; }
  .hero-note { right: 4px; bottom: -34px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .ritual::before { left: 2.95rem; }
  .ritual li { grid-template-columns: 3.2rem 1fr; gap: 1.1rem; }
  .ritual li::before { left: calc(2.95rem - 4px); }
  .story-photos { padding-bottom: 22%; }
}

/* =============================================================
   9. Reduced motion (solo lo intrusivo)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fab-ping::after, .is-open .status-dot, .hero-scroll span, .splash-seal { animation: none; }
}
