:root {
  --red: #B0122C;
  --red-2: #8E0E23;
  --ink: #17120F;
  --ink-2: #2A2420;
  --paper: #ECE9E3;
  --paper-2: #F6F4F0;
  --green: #4C6A50;
  --muted: #5E5650;
  --hand: "Permanent Marker", "Comic Sans MS", cursive;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --grain: 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='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 3px solid #F2B705; outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

.kicker { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.kicker::before { content: ""; display: inline-block; width: 26px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 10px; }
.kicker-light { color: #F07C8C; }
.h2 {
  font-stretch: 68%;
  font-weight: 850;
  text-transform: uppercase;
  font-size: clamp(40px, 6vw, 92px);
  line-height: .9;
  letter-spacing: -.005em;
}
.h2-light { color: var(--paper-2); }
.hand-red { font-family: var(--hand); color: var(--red); text-transform: none; font-weight: 400; font-stretch: 100%; letter-spacing: 0; }

/* Botones (hover con translate para no pisar GSAP) */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none;
  transition: translate .25s ease, background-color .25s ease, color .25s ease;
}
.btn:hover { translate: 0 -2px; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-paper { background: var(--paper-2); color: var(--red); }
.btn-line { border: 2px solid rgba(246,244,240,.7); color: var(--paper-2); }
.btn-line:hover { background: var(--paper-2); color: var(--red); }
.btn-red { background: var(--red); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ghost { border: 2px solid var(--ink); color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Estado abierto/cerrado */
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.status i { width: 10px; height: 10px; border-radius: 50%; background: #E9A23B; box-shadow: 0 0 0 4px rgba(233,162,59,.25); }
.status.is-open i { background: #4CD07D; box-shadow: 0 0 0 4px rgba(76,208,125,.25); }

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px clamp(16px, 4vw, 48px);
  color: var(--paper-2);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.nav.is-solid { background: rgba(142,14,35,.96); box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.nav-brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-stretch: 115%; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; }
.nav-brand img { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; opacity: .9; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

/* HERO */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px clamp(16px, 4vw, 48px) 40px;
  background: var(--red);
  color: var(--paper-2);
  overflow: hidden;
}
.hero::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .22; mix-blend-mode: multiply; pointer-events: none; z-index: -1; }
.hero-word { position: relative; width: 100%; max-width: 1400px; margin: auto auto 0; font-size: clamp(56px, 15.5vw, 236px); }
.hero-el { font-size: .3em; font-weight: 500; font-stretch: 125%; letter-spacing: .3em; margin: 0 0 .1em .08em; line-height: 1; }
.porton { font-size: 1em; font-weight: 500; line-height: 1; }
.porton-row { display: flex; align-items: center; justify-content: space-between; font-stretch: 125%; letter-spacing: .02em; }
.porton-row .l { display: inline-block; position: relative; z-index: 2; }
.porton-row .br { display: none; }
.porton-row .o {
  position: relative; z-index: 1;
  flex: none; width: 1.18em; aspect-ratio: 1; margin: 0 -.12em;
  border-radius: 50%; overflow: hidden;
  border: .028em solid var(--paper-2);
  background: var(--red-2);
}
.porton-row .o img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.15); }
.porton-row .o2 img { object-position: 40% 60%; }
.hero-hand {
  font-family: var(--hand);
  font-size: clamp(30px, 4.6vw, 70px);
  line-height: 1;
  text-align: right;
  rotate: -3deg;
  margin: .2em .2em 0 0;
  color: var(--paper-2);
}
.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap;
  max-width: 1400px; width: 100%; margin: clamp(30px, 6vh, 70px) auto 0;
  padding-top: 26px; border-top: 1px solid rgba(246,244,240,.35);
}
.hero-lede { max-width: 520px; font-size: clamp(17px, 1.4vw, 20px); }
.hero-lede strong { font-weight: 800; }
.no-res { display: inline-block; white-space: nowrap; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .9em; background: var(--paper-2); color: var(--red); padding: 1px 7px; }
.hero-rating { position: absolute; top: 96px; right: clamp(16px, 4vw, 48px); font-size: 14px; font-weight: 600; opacity: .9; }
.hero-rating b { font-family: var(--hand); font-weight: 400; font-size: 26px; margin-right: 4px; }

/* PALABRAS */
.words { background: var(--ink); color: var(--paper-2); overflow: hidden; padding: 22px 0; border-block: 6px solid var(--red); }
.words-track { display: flex; width: max-content; animation: slide 46s linear infinite; }
.words span { font-family: var(--hand); font-size: clamp(30px, 4vw, 58px); line-height: 1.1; padding: 0 .55em; white-space: nowrap; }
.words span:nth-child(3n+2) { color: #F07C8C; }
.words span::after { content: "—"; margin-left: 1.1em; opacity: .5; }
@keyframes slide { to { transform: translateX(-50%); } }

/* LA CASA */
.casa {
  display: grid; grid-template-columns: 1.05fr 1fr .9fr; gap: clamp(24px, 4vw, 64px); align-items: center;
  max-width: 1400px; margin: 0 auto;
  padding: clamp(80px, 11vw, 160px) clamp(16px, 4vw, 48px);
}
.casa-num { font-family: var(--hand); color: var(--red); font-size: clamp(170px, 24vw, 380px); line-height: .8; letter-spacing: -.04em; }
.casa-copy p:not(.kicker) { margin-top: 20px; color: var(--muted); max-width: 46ch; }
.casa-copy .h2 { font-size: clamp(38px, 4.4vw, 66px); }
.casa-fig { margin: 0; mix-blend-mode: multiply; }
.casa-fig img { width: 100%; filter: grayscale(1) brightness(1.1) contrast(1.3); }

/* CARTA */
.carta { background: var(--ink); color: var(--paper-2); padding: clamp(80px, 10vw, 150px) clamp(16px, 4vw, 48px); position: relative; }
.carta-head { max-width: 1200px; margin: 0 auto 40px; }
.carta-sub { max-width: 560px; margin-top: 18px; color: #CFC8C1; }
.carta-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 34px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 2px solid rgba(246,244,240,.3); background: transparent; color: var(--paper-2);
  transition: background-color .2s, color .2s, border-color .2s;
}
.tab:hover { border-color: var(--paper-2); }
.tab.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.tacc { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; font-size: 15px; }
.tacc input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tacc-box { width: 50px; height: 28px; border-radius: 99px; background: #3A322D; position: relative; transition: background-color .2s; }
.tacc-box::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper-2); transition: translate .2s; }
.tacc input:checked + .tacc-box { background: #3E9A61; }
.tacc input:checked + .tacc-box::after { translate: 22px 0; }
.tacc input:focus-visible + .tacc-box { outline: 3px solid #F2B705; outline-offset: 3px; }

.sheet {
  max-width: 1200px; margin: 0 auto;
  background: var(--paper); color: var(--ink);
  padding: clamp(28px, 5vw, 70px);
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  position: relative;
}
.sheet::before { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .12; pointer-events: none; border-radius: inherit; }
.group h3 { font-stretch: 70%; font-weight: 850; text-transform: uppercase; color: var(--red); font-size: clamp(40px, 5vw, 70px); line-height: .95; }
.group h4 { font-stretch: 75%; font-weight: 800; text-transform: uppercase; color: var(--red); font-size: 22px; margin: 34px 0 6px; letter-spacing: .02em; }
.group-note { color: var(--muted); font-size: 15px; font-style: italic; margin-top: 10px; max-width: 70ch; }
.group-hand { font-family: var(--hand); color: var(--red); font-size: 28px; margin-top: 24px; rotate: -2deg; }
.items { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.items li {
  display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px dashed rgba(23,18,15,.22);
}
.items .n { font-weight: 700; font-style: italic; font-size: 17px; }
.items li[data-tacc] .n::after { content: "sin TACC"; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #2F7A4C; border: 1.5px solid currentColor; border-radius: 99px; padding: 1px 6px; margin-left: 8px; vertical-align: 2px; white-space: nowrap; }
.items .d { grid-column: 1 / -1; grid-row: 2; font-size: 14px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.items .p { font-weight: 800; font-stretch: 80%; font-size: 19px; white-space: nowrap; color: var(--ink); }
.group + .group { margin-top: 60px; }
.js-carta .group { display: none; }
.js-carta .group.is-on { display: block; }
.js-carta.only-tacc .items li:not([data-tacc]) { display: none; }
.js-carta.only-tacc .group h4.is-empty, .js-carta.only-tacc .items.is-empty { display: none; }
.empty { font-weight: 600; color: var(--red); margin-top: 20px; }
.sheet-foot { margin-top: 44px; padding-top: 18px; border-top: 2px solid var(--red); font-size: 14px; color: var(--muted); }
.sheet-foot a { color: var(--red); font-weight: 700; }

/* FRASE */
.frase { background: var(--red); color: var(--paper-2); padding: clamp(90px, 13vw, 190px) clamp(16px, 4vw, 48px); text-align: center; position: relative; isolation: isolate; overflow: hidden; }
.frase::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .2; mix-blend-mode: multiply; z-index: -1; }
.frase-small { font-size: 15px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.frase-big { font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(76px, 17vw, 270px); line-height: .82; margin-top: 18px; }
.reveal-line { display: inline-block; }
.frase-hand { font-family: var(--hand); color: var(--ink); font-size: clamp(40px, 7vw, 110px); rotate: -4deg; margin-top: -.1em; }

/* FIRMA (sticky stack) */
.firma {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 100px);
  max-width: 1300px; margin: 0 auto;
  padding: clamp(80px, 11vw, 160px) clamp(16px, 4vw, 48px);
}
.firma-intro { position: sticky; top: 120px; align-self: start; }
.firma-intro p:last-child { margin-top: 22px; color: var(--muted); max-width: 42ch; }
.stack { display: grid; gap: 26px; }
.card {
  position: sticky; top: calc(110px + var(--i, 0) * 22px);
  min-height: 330px; padding: clamp(26px, 3.4vw, 46px);
  border-radius: 22px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  box-shadow: 0 -10px 40px rgba(23,18,15,.12);
}
.card:nth-child(1) { --i: 0; } .card:nth-child(2) { --i: 1; } .card:nth-child(3) { --i: 2; } .card:nth-child(4) { --i: 3; } .card:nth-child(5) { --i: 4; }
.card h3 { font-family: var(--hand); font-weight: 400; font-size: clamp(38px, 4.4vw, 64px); line-height: 1; }
.card p { max-width: 46ch; }
.card-k { font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; opacity: .8; margin-bottom: auto !important; }
.card-p { font-weight: 800; font-stretch: 80%; font-size: 22px; }
.card-p span { opacity: .5; margin: 0 6px; }
.c-red { background: var(--red); color: var(--paper-2); }
.c-ink { background: var(--ink); color: var(--paper-2); }
.c-paper { background: var(--paper-2); color: var(--ink); border: 2px solid var(--ink); }
.c-green { background: var(--green); color: var(--paper-2); }
.c-red2 { background: var(--red-2); color: var(--paper-2); }

/* LUGAR */
.lugar { background: var(--ink); padding: clamp(80px, 10vw, 150px) clamp(16px, 4vw, 48px); }
.lugar-head { max-width: 1300px; margin: 0 auto 48px; }
.lugar-head .h2 { max-width: 15ch; }
.lugar-grid {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 70px; gap: 18px;
}
.lugar-grid figure { margin: 0; position: relative; overflow: hidden; border-radius: 6px; }
.lugar-grid img { width: 100%; height: 100%; object-fit: cover; }
.lugar-grid figcaption {
  position: absolute; left: 14px; bottom: 14px;
  background: var(--paper-2); color: var(--ink); font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 99px;
}
.g1 { grid-column: 1 / 6; grid-row: 1 / 10; }
.g1 img { object-position: 50% 40%; }
.g2 { grid-column: 6 / 10; grid-row: 2 / 8; }
.g3 { grid-column: 10 / 13; grid-row: 1 / 5; }
.g3 img { object-position: 50% 100%; }
.g4 { grid-column: 6 / 13; grid-row: 8 / 11; background: var(--red); color: var(--paper-2); border-radius: 6px; padding: 26px 30px; display: flex; gap: 28px; align-items: center; }
.g4-big { font-family: var(--hand); font-size: clamp(36px, 3.6vw, 54px); line-height: .95; flex: none; }
.g4 p:last-child { max-width: 40ch; }
.g4 a { font-weight: 800; }

/* VISITA */
.visita {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: stretch;
  max-width: 1300px; margin: 0 auto;
  padding: clamp(80px, 11vw, 160px) clamp(16px, 4vw, 48px);
}
.status-big { margin: 26px 0 18px; font-size: 17px; }
.hours { border-collapse: collapse; width: 100%; max-width: 520px; }
.hours th, .hours td { text-align: left; padding: 14px 0; border-bottom: 1px solid rgba(23,18,15,.18); font-size: 17px; }
.hours th { font-weight: 600; padding-right: 16px; }
.hours td { font-weight: 800; font-stretch: 85%; }
.hours td span { opacity: .4; margin: 0 4px; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--red); }
.hours tr.is-today th::after { content: " · hoy"; font-weight: 800; }
.facts { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 8px; }
.facts li { padding-left: 26px; position: relative; color: var(--muted); }
.facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--red); }
.facts b { color: var(--ink); }
.visita-map { min-height: 420px; border-radius: 22px; overflow: hidden; border: 2px solid var(--ink); }
.visita-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.4) contrast(1.05); display: block; }

/* FOOTER */
.foot { background: var(--red); color: var(--paper-2); text-align: center; padding: 70px 16px; display: grid; gap: 10px; font-size: 15px; }
.foot-logo { font-stretch: 125%; font-weight: 500; letter-spacing: .25em; font-size: clamp(26px, 4vw, 44px); margin-bottom: 10px; }
.fo { display: inline-block; width: 1.05em; height: 1.05em; border: 2px solid currentColor; border-radius: 50%; vertical-align: -.2em; margin: 0 .05em 0 -.05em; }
.foot a { font-weight: 700; }

/* DOCK móvil */
.dock { display: none; }

/* Reveal fail-safe: solo se oculta con .js */
.js .reveal { opacity: 0; transform: translateY(36px); }

@media (max-width: 1000px) {
  .casa { grid-template-columns: 1fr 1fr; }
  .casa-num { grid-column: 1 / -1; }
  .firma { grid-template-columns: 1fr; }
  .firma-intro { position: static; }
  .visita { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav .status { font-size: 13px; }
  .hero { padding-top: 96px; padding-bottom: 28px; }
  .hero { padding-bottom: 96px; }
  .hero-word { font-size: 29vw; margin-top: auto; }
  .hero-el { font-size: .22em; }
  .porton-row { flex-wrap: wrap; justify-content: center; row-gap: .02em; }
  .porton-row .br { display: block; flex-basis: 100%; height: 0; }
  .porton-row .o { width: 1.08em; margin: 0 -.1em; }
  .hero-hand { font-size: 34px; text-align: left; margin: .5em 0 0; }
  .hero-foot { flex-direction: column; align-items: stretch; gap: 22px; }
  .hero-foot .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .hero-rating { top: 84px; }
  .casa { grid-template-columns: 1fr; }
  .casa-num { font-size: 180px; }
  .items { grid-template-columns: 1fr; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; width: calc(100% + 32px); }
  .tab { flex: none; }
  .sheet { padding: 26px 18px; }
  .card { min-height: 300px; top: calc(80px + var(--i, 0) * 14px); }
  .lugar-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .g1 { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 5; }
  .g2 { grid-column: 1 / 2; grid-row: auto; aspect-ratio: 3 / 5; }
  .g3 { grid-column: 2 / 3; grid-row: auto; aspect-ratio: 3 / 5; }
  .g3 img { transform-origin: 50% 100%; scale: 1.35; }
  .g4 { grid-column: 1 / -1; grid-row: auto; flex-direction: column; align-items: flex-start; gap: 12px; }
  .visita-map, .visita-map iframe { min-height: 320px; }
  .foot { padding-bottom: 110px; }
  .dock {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px;
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60;
    background: var(--ink); border-radius: 18px; padding: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
  }
  .dock a { min-height: 48px; display: grid; place-items: center; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; border-radius: 13px; }
  .dock a:first-child { background: var(--red); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .words-track { animation: none; }
  .btn, .tab, .tacc-box::after { transition: none; }
}
