/* Me latte café — "la pared del café"
   Regla de color: verde oliva (las paredes) y marrón café son los fondos; el bordó del sofá
   aparece una sola vez; el papel crema es SOLO para polaroids, notas y la carta; latte = acento. */

:root {
  --olive: #4e5226;
  --olive-d: #3d401d;
  --olive-l: #6a6e36;
  --coffee: #2e1e14;
  --oxblood: #5b2328;
  --zocalo: #24221a;
  --paper: #f3ecdb;
  --paper-2: #e6dcc4;
  --latte: #d9ae7e;
  --ink: #2e1e14;
  --muted: #d8d0bb;
  --line: rgba(243, 236, 219, .22);
  --serif: "Fraunces", Georgia, serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --gut: clamp(16px, 4vw, 64px);
  --nav-h: 70px;
  --panels: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 3px), rgba(0, 0, 0, .35) calc(12.5% - 3px) calc(12.5% - 1px), rgba(255, 255, 255, .05) calc(12.5% - 1px) 12.5%);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--olive); color: var(--paper); font: 350 18px/1.6 var(--serif); font-variation-settings: "SOFT" 60; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--latte); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; background: var(--paper); color: var(--ink); transform: translateY(-160%); }
.skip:focus { transform: none; }
.kick { font: 700 26px/1 var(--hand); color: var(--latte); margin-bottom: 12px; }
.h2 { font: italic 400 clamp(40px, 5.4vw, 84px)/1 var(--serif); font-variation-settings: "SOFT" 100; letter-spacing: -.02em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 50px; padding: 0 24px;
  border: 1.5px solid transparent; border-radius: 999px; text-decoration: none; text-align: center;
  font: 600 16px/1.1 var(--serif); letter-spacing: .01em; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-cream { background: var(--paper); color: var(--ink); }
.btn-cream:hover { background: var(--latte); }
.btn-latte { background: var(--latte); color: var(--ink); }
.btn-latte:hover { background: var(--paper); }
.btn-line { border-color: rgba(243, 236, 219, .6); color: var(--paper); }
.btn-line:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--nav-h); padding: 0 var(--gut); display: flex; align-items: center; gap: 26px; transition: background-color .3s, box-shadow .3s; }
.nav.is-scrolled { background: rgba(61, 64, 29, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span { font: italic 500 22px/1 var(--serif); font-variation-settings: "SOFT" 100; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-size: 16px; text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav-links a:hover { border-color: var(--latte); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { min-width: 40px; min-height: 36px; padding: 0 8px; border: 0; background: transparent; font: 600 12px/1 var(--serif); letter-spacing: .06em; }
.lang button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }

/* ---------- Hero: la pared ---------- */
.hero {
  position: relative; height: 100svh; min-height: 700px; overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 55% at 50% 0%, rgba(255, 220, 140, .18), transparent 70%), radial-gradient(40% 30% at 20% 10%, rgba(255, 210, 120, .1), transparent 70%), var(--olive);
}
.zocalo-band { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; z-index: 0; background: var(--panels), linear-gradient(180deg, #2f2c21, var(--zocalo)); box-shadow: 0 -6px 0 #35321f, 0 -9px 0 rgba(0, 0, 0, .25); }
.wall { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.pol {
  position: absolute; left: var(--x); top: var(--y); width: var(--w);
  padding: 10px 10px 0; background: var(--paper); color: var(--ink);
  box-shadow: 0 2px 2px rgba(0, 0, 0, .12), 0 18px 34px rgba(0, 0, 0, .35);
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r));
  pointer-events: auto;
}
.pol::before { content: ""; position: absolute; top: -12px; left: 50%; width: 46%; height: 24px; translate: -50% 0; rotate: -4deg; background: rgba(217, 174, 126, .78); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.pol img { width: 100%; aspect-ratio: 1; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.pol.tall img { aspect-ratio: 3 / 4; }
.pol figcaption { font: 600 clamp(18px, 1.5vw, 24px)/1 var(--hand); text-align: center; padding: 10px 4px 12px; }
.note {
  position: absolute; left: var(--x); top: var(--y); z-index: 4; pointer-events: auto;
  padding: 16px 20px; background: var(--latte); color: var(--ink);
  font: 700 clamp(20px, 1.7vw, 26px)/1.15 var(--hand);
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r));
  box-shadow: 0 14px 26px rgba(0, 0, 0, .3);
}
@media (hover: hover) and (pointer: fine) {
  [data-drag] { cursor: grab; touch-action: none; }
  [data-drag].is-dragging { cursor: grabbing; }
}
.hero-center { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; text-align: center; padding: var(--nav-h) var(--gut) 18svh; }
.eyebrow { font: 700 clamp(20px, 1.6vw, 26px)/1.2 var(--hand); color: var(--latte); }
.title { position: relative; margin: 6px 0 4px; font: italic 380 clamp(84px, 12.5vw, 210px)/.9 var(--serif); font-variation-settings: "SOFT" 100, "opsz" 144; letter-spacing: -.035em; }
.title > span { display: inline-block; }
.t-cafe { position: absolute; right: -.1em; bottom: -.32em; font: 700 .3em/1 var(--hand); color: var(--latte); letter-spacing: 0; rotate: -8deg; }
.lede { max-width: 36ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); margin-top: 18px; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.hint { position: absolute; left: var(--gut); bottom: 7%; z-index: 2; font: 600 22px/1 var(--hand); color: var(--latte); }
.hero-meta { position: absolute; right: var(--gut); bottom: 7%; z-index: 2; font-size: 15px; color: var(--muted); }
.hero-meta strong { color: var(--paper); }

/* ---------- La casa ---------- */
.casa { background: var(--olive-d); padding: clamp(90px, 11vw, 160px) var(--gut); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.casa-photo { grid-column: 1 / 9; grid-row: 1; position: relative; }
.casa-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.casa-card { grid-column: 7 / 13; grid-row: 1; align-self: end; margin-bottom: -56px; position: relative; z-index: 2; background: var(--paper); color: var(--ink); padding: clamp(26px, 3.4vw, 48px); rotate: 1.2deg; box-shadow: 0 24px 50px rgba(0, 0, 0, .35); display: grid; gap: 16px; }
.casa-card .kick { color: var(--oxblood); margin: 0; }
.casa-card .h2 { font-size: clamp(34px, 3.6vw, 56px); }
.casa-card .cap { font: 600 20px/1.2 var(--hand); color: #6b3a1f; }
.rincones { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); margin-top: clamp(90px, 10vw, 140px); }
.rc { border-top: 1.5px solid var(--line); padding-top: 22px; }
.rc-n { font: 700 34px/1 var(--hand); color: var(--latte); }
.rc h3 { font: italic 400 clamp(26px, 2.4vw, 36px)/1.1 var(--serif); font-variation-settings: "SOFT" 100; margin: 8px 0 8px; }
.rc p { color: var(--muted); font-size: 17px; }

/* ---------- Carta ---------- */
.carta { position: relative; background: radial-gradient(60% 50% at 50% 40%, #3b281b, var(--coffee)); padding: clamp(90px, 11vw, 160px) var(--gut) clamp(110px, 12vw, 180px); overflow: hidden; }
.carta-head { max-width: 640px; margin: 0 auto; text-align: center; display: grid; gap: 14px; justify-items: center; }
.carta-head p:not(.kick) { color: var(--muted); }
.sheet {
  position: relative; max-width: 1040px; margin: clamp(48px, 6vw, 80px) auto 0; padding: clamp(28px, 4.4vw, 64px);
  background: var(--paper); color: var(--ink); rotate: -.6deg;
  box-shadow: 0 2px 0 var(--paper-2), 0 40px 80px rgba(0, 0, 0, .45);
}
.sheet-logo { position: absolute; top: -36px; left: 50%; translate: -50% 0; width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.sheet-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3.4vw, 48px); }
.menu h3 { font: italic 500 clamp(28px, 2.6vw, 38px)/1 var(--serif); font-variation-settings: "SOFT" 100; color: var(--oxblood); padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1.5px solid var(--ink); }
.menu li { padding: 11px 0; border-bottom: 1px dotted rgba(46, 30, 20, .4); font-size: 17px; line-height: 1.4; }
.sheet-note { margin-top: 32px; padding-top: 20px; border-top: 1.5px solid var(--ink); text-align: center; font-size: 16px; }
.sheet-note a { font-weight: 600; color: var(--oxblood); }
.pin { position: absolute; width: clamp(130px, 13vw, 190px); padding: 8px 8px 0; background: var(--paper); color: var(--ink); box-shadow: 0 16px 30px rgba(0, 0, 0, .4); z-index: 2; }
.pin img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pin figcaption { font: 600 18px/1.05 var(--hand); text-align: center; padding: 8px 2px 10px; }
.pin-a { left: max(var(--gut), calc(50% - 700px)); top: 34%; rotate: -8deg; }
.pin-b { right: max(var(--gut), calc(50% - 700px)); top: 26%; rotate: 7deg; }
.pin-c { right: max(calc(var(--gut) + 40px), calc(50% - 640px)); bottom: 6%; rotate: -4deg; }

/* ---------- La taza ---------- */
.taza { background: var(--oxblood); padding: clamp(90px, 11vw, 160px) var(--gut); display: grid; justify-items: center; gap: clamp(40px, 5vw, 64px); overflow: hidden; }
.cup { position: relative; width: min(64vw, 420px); aspect-ratio: 1; }
.cup img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; border-radius: 50%; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.ring { position: absolute; inset: -17%; width: 134%; height: 134%; overflow: visible; }
.ring text { fill: var(--latte); font: 600 15px var(--serif); text-transform: uppercase; }
.quote { max-width: 18ch; text-align: center; font: italic 350 clamp(38px, 5.4vw, 84px)/1.05 var(--serif); font-variation-settings: "SOFT" 100; letter-spacing: -.02em; }

/* ---------- Fotos ---------- */
.fotos { padding: clamp(90px, 11vw, 160px) var(--gut); }
.fotos-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 32px; }
.fotos-head .kick { grid-column: 1 / -1; margin: 0; }
.ig { font-size: 16px; color: var(--muted); }
.ig strong { color: var(--paper); }
.board { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.6vw, 40px); margin-top: clamp(48px, 6vw, 80px); }
.board .pol { position: relative; left: auto; top: auto; width: auto; transform: none; }
.board .pol img { aspect-ratio: 3 / 4; }
.b1 { rotate: -3deg; margin-top: 30px; }
.b2 { rotate: 2deg; }
.b3 { rotate: -1.5deg; margin-top: 60px; }
.b4 { rotate: 3deg; margin-top: 14px; }

/* ---------- Visitanos ---------- */
.visita { background: var(--coffee); padding: clamp(90px, 11vw, 160px) var(--gut); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 100px); }
.visita-info { display: grid; gap: 18px; align-content: start; }
.visita-info > p:not(.kick):not(.live):not(.small) { color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 16px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #9a9178; flex: none; }
.dot.is-open { background: #9bd17f; box-shadow: 0 0 0 4px rgba(155, 209, 127, .22); }
.turnos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.turno { position: relative; padding: 20px 22px; border: 1.5px solid var(--line); border-radius: 18px; display: grid; gap: 4px; }
.turno-k { font: 700 26px/1 var(--hand); color: var(--latte); }
.turno b { font: 500 clamp(26px, 2.4vw, 34px)/1.1 var(--serif); }
.turno.is-now { background: var(--latte); color: var(--ink); border-color: var(--latte); }
.turno.is-now .turno-k { color: var(--oxblood); }
.small { font-size: 15px; color: #bfb7a2; }
.visita-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.visita-map { border-radius: 24px; overflow: hidden; min-height: 420px; background: #3b281b; }
.visita-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: sepia(.35) saturate(.8); }

/* ---------- Zócalo ---------- */
.zocalo { background: var(--panels), linear-gradient(180deg, #2f2c21, var(--zocalo)); box-shadow: inset 0 8px 0 #35321f; padding: clamp(90px, 11vw, 150px) var(--gut) 40px; }
.z-cta { text-align: center; display: grid; justify-items: center; gap: 18px; }
.z-title { font: italic 400 clamp(44px, 7vw, 116px)/.98 var(--serif); font-variation-settings: "SOFT" 100; letter-spacing: -.025em; max-width: 14ch; }
.z-cta p { color: var(--muted); max-width: 44ch; }
.z-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.z-foot { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 16px 24px; margin-top: clamp(70px, 8vw, 110px); padding-top: 28px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.z-foot img { width: 56px; height: 56px; border-radius: 50%; }
.z-name { font: italic 500 22px/1.1 var(--serif); color: var(--paper); }
.z-foot ul { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: flex-end; }
.z-demo { grid-column: 1 / -1; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #a39b85; }

.mbar { display: none; }

/* ---------- Estado inicial de la entrada (solo con JS) ---------- */
.js .hero [data-hero], .js .wall > * { opacity: 0; }
.js .title > span { opacity: 0; transform: translateY(40%); }

/* ---------- Responsive ---------- */
@media (hover: none), (pointer: coarse) { .hint { display: none; } }

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .pin { display: none; }
}

@media (max-width: 760px) {
  :root { --nav-h: 60px; }
  body { font-size: 17px; }
  .nav-cta { display: none; }
  .brand span { font-size: 20px; }

  .hero { min-height: 680px; }
  .hero-center { align-content: end; padding-bottom: 128px; }
  .hint { display: none; }
  .title { font-size: clamp(74px, 22vw, 110px); }
  .lede { font-size: 16px; margin-top: 12px; }
  .hero-ctas { display: none; }
  .hero-meta { left: var(--gut); right: var(--gut); bottom: 84px; text-align: center; font-size: 14px; }
  .zocalo-band { height: 13%; }
  .p1 { --x: 3% !important; --y: 10% !important; --w: 40vw !important; }
  .p3 { --x: 60% !important; --y: 12% !important; --w: 34vw !important; }
  .p4 { --x: 8% !important; --y: 35% !important; --w: 27vw !important; }
  .p2, .p5 { display: none; }
  .note { --x: 56% !important; --y: 40% !important; font-size: 18px; padding: 10px 14px; }
  .pol figcaption { font-size: 16px; padding: 6px 2px 8px; }

  .casa { grid-template-columns: 1fr; }
  .casa-photo, .casa-card, .rincones { grid-column: 1; grid-row: auto; }
  .casa-card { margin: -40px 10px 0; }
  .rincones { grid-template-columns: 1fr; margin-top: 56px; gap: 24px; }

  .sheet-cols { grid-template-columns: 1fr; }
  .sheet { rotate: 0deg; padding-top: 52px; }

  .fotos-head { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr 1fr; }
  .b3, .b1 { margin-top: 0; }
  .b2, .b4 { margin-top: 30px; }

  .visita { grid-template-columns: 1fr; }
  .turnos { grid-template-columns: 1fr 1fr; }
  .visita-map, .visita-map iframe { min-height: 320px; }

  .z-foot { grid-template-columns: auto minmax(0, 1fr); }
  .z-foot ul { grid-column: 1 / -1; justify-content: flex-start; flex-direction: column; }
  .zocalo { padding-bottom: 110px; }

  .mbar {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(36, 34, 26, .97); border-top: 1px solid var(--line);
  }
  .mbar .btn { flex: 1; min-height: 52px; padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .btn:hover { transform: none; }
}

/* Pantallas bajas: una foto menos en la pared para no tapar los botones */
@media (min-width: 761px) and (max-height: 820px) {
  .p5 { display: none; }
}
