/* Alma Nara · el mundo de su Instagram: papel cálido, terracota del sello,
   rótulo en Jost fina y espaciada, titulares en Cormorant cursiva, fotos como copias con paspartú */
:root {
  --paper: #fbfaf6;
  --paper-2: #f3efe7;
  --ink: #2a2320;
  --ink-2: #5d524c;
  --terra: #a6502f;
  --terra-dk: #8a4126;
  --cream: #fbfaf6;
  --mat: #ffffff;
  --line: rgba(42, 35, 32, .16);
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --serif: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; scrollbar-color: var(--terra) var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--terra); color: var(--cream); }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 60; background: var(--ink); color: var(--cream); padding: 10px 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.col { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 40px; } }

.display {
  font: italic 500 clamp(40px, 6.2vw, 80px)/1.02 var(--serif);
  color: var(--terra);
  letter-spacing: -.01em;
  text-wrap: balance;
}
.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink); max-width: 60ch; }
.lede + .lede { margin-top: 1em; }

/* Botones: como una tarjeta de invitación, rectos y con letra espaciada */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 2px;
  font: 500 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 12px; }
.btn--accent { background: var(--terra); color: var(--cream); }
.btn--accent:hover { background: var(--terra-dk); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: var(--terra); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--cream); }
.btn--cream { background: var(--cream); color: var(--terra-dk); }
.btn--cream:hover { background: var(--ink); color: var(--cream); }

/* Barra superior: aparece al dejar atrás la portada */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 40;
  background: var(--paper); border-bottom: 1px solid var(--line);
  transform: translateY(-101%); transition: transform .5s var(--ease);
}
.show-bar .bar { transform: none; }
.bar__in { display: flex; align-items: center; gap: 24px; height: 64px; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .bar__in { padding: 0 40px; } }
.bar__brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--terra); font: 400 15px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; }
.bar__brand img { width: 34px; height: 34px; border-radius: 50%; }
.bar__nav { display: none; gap: 32px; margin-left: auto; }
.bar__nav a { font-size: 14px; letter-spacing: .08em; text-decoration: none; color: var(--ink-2); }
.bar__nav a:hover { color: var(--terra); }
.bar .btn { margin-left: auto; }
@media (min-width: 900px) { .bar__nav { display: flex; } .bar .btn { margin-left: 0; } }

/* ============ Portada: el cartel y la puerta ============ */
.door { position: relative; }
.door__stage {
  position: relative; height: 100vh; height: 100svh; min-height: 600px;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  padding: max(22px, env(safe-area-inset-top)) 16px 26px;
  overflow: hidden;
}
.js-door .door { height: 290vh; }
.js-door .door__stage { position: sticky; top: 0; }

.door__lockup { text-align: center; }
.seal { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 14px; }
.wordmark {
  font: 300 clamp(26px, 4.6vw, 46px)/1 var(--sans);
  letter-spacing: .34em; margin-right: -.34em;
  text-transform: uppercase; color: var(--terra);
}
.lockup-sub {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 12px;
  font: 400 11px/1 var(--sans); letter-spacing: .38em; text-transform: uppercase; color: var(--ink-2);
}
.lockup-sub::before, .lockup-sub::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.lockup-sub span { margin-right: -.38em; }

.door__middle { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 88px); min-height: 0; padding: clamp(14px, 2.4vh, 28px) 0; }
.door__slot {
  --matw: clamp(8px, 1vw, 14px);
  position: relative; height: 100%; max-height: 56vh; aspect-ratio: 478 / 850;
  background: var(--mat);
  box-shadow: 0 1px 2px rgba(42, 35, 32, .08), 0 24px 48px -24px rgba(42, 35, 32, .35);
}
.door__window { position: absolute; inset: var(--matw); overflow: hidden; background: #d8d2c8; z-index: 5; }
.js-door .door__window { inset: 0; clip-path: inset(50%); background: transparent; }
.door__video, .door__inside, .door__inside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.door__video { background: #d8d2c8; }
.js-door .door__video { inset: auto; transform-origin: 50% 50%; will-change: transform; }
.door__inside { opacity: 0; }
.door__inside img { transform: scale(var(--zoom, 1.08)); transform-origin: 50% 55%; }

.print { display: none; background: var(--mat); padding: 9px; box-shadow: 0 1px 2px rgba(42, 35, 32, .08), 0 18px 36px -20px rgba(42, 35, 32, .32); }
.print img { width: clamp(150px, 13vw, 210px); height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.print--left { align-self: flex-end; margin-bottom: 4vh; }
.print--left img { object-position: 50% 40%; }
.print--right { align-self: flex-start; margin-top: 3vh; }
.print--right img { object-position: 40% 50%; }
@media (min-width: 900px) and (min-height: 640px) { .print { display: block; } }

.door__foot { text-align: center; }
.door__title { font: italic 500 clamp(34px, 5vw, 62px)/1 var(--serif); color: var(--terra); }
.door__days { margin-top: 12px; font: 500 15px/1.5 var(--sans); letter-spacing: .02em; color: var(--ink); }
@media (max-width: 640px) { .door__days span { display: block; } .door__days .sep { display: none; } }
.status { margin-top: 6px; font: 500 17px/1.5 var(--sans); color: var(--ink); min-height: 1.6em; }
.status.is-open { color: var(--terra); }
.door__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
@media (max-width: 420px) { .door__actions .btn { flex: 1 1 100%; } .door__actions { gap: 8px; } }
@media (max-height: 720px) and (max-width: 899px) { .door__actions .btn--line { display: none; } }

/* ============ Bienvenida ============ */
.welcome { padding: clamp(96px, 14vw, 180px) 0 clamp(80px, 10vw, 140px); text-align: center; }
.welcome .display { margin-bottom: 36px; }
.welcome .lede { margin-left: auto; margin-right: auto; }
.welcome__line {
  margin: clamp(56px, 7vw, 96px) auto 0; max-width: 24ch;
  font: italic 400 clamp(28px, 3.4vw, 44px)/1.2 var(--serif); color: var(--ink);
  text-wrap: balance;
}
.welcome__line::before { content: ""; display: block; width: 40px; height: 1px; margin: 0 auto 32px; background: var(--terra); }

/* ============ La tienda: la pared, como se cuelga en la tienda ============ */
.shop { padding: 0 0 clamp(96px, 12vw, 160px); }
.shop__title { text-align: center; margin-bottom: clamp(48px, 6vw, 88px); }
.hang { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 16px; align-items: start; }
.piece .mat { background: var(--mat); padding: clamp(7px, .8vw, 12px); box-shadow: 0 1px 2px rgba(42, 35, 32, .07), 0 18px 40px -22px rgba(42, 35, 32, .3); }
.piece img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.piece figcaption { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.piece figcaption span { display: block; margin-bottom: 2px; font: italic 500 23px/1.15 var(--serif); color: var(--terra); }
.piece--b, .piece--e, .piece--h { margin-top: 56px; }
.piece--c, .piece--f { grid-column: 1 / -1; }
.piece--c img, .piece--f img { aspect-ratio: 16 / 9; }
.piece--a img { object-position: 50% 15%; }
.piece--h img { object-position: 30% 70%; }
.shop__note { margin-top: 56px; text-align: center; font-size: 15px; color: var(--ink-2); }

@media (min-width: 900px) {
  .hang { grid-template-columns: repeat(12, 1fr); gap: 88px 32px; }
  .piece { margin-top: 0; }
  .piece--a { grid-column: 1 / span 4; grid-row: 1; }
  .piece--a img { aspect-ratio: 4 / 5; }
  .piece--b { grid-column: 6 / span 3; grid-row: 1; margin-top: 140px; }
  .piece--c { grid-column: 10 / span 3; grid-row: 1; margin-top: 40px; }
  .piece--c img { aspect-ratio: 3 / 4; }
  .piece--f { grid-column: 1 / span 7; grid-row: 2; margin-top: 20px; }
  .piece--f img { aspect-ratio: 16 / 8; }
  .piece--d { grid-column: 9 / span 4; grid-row: 2; margin-top: -40px; }
  .piece--d img { aspect-ratio: 4 / 5; }
  .piece--e { grid-column: 2 / span 3; grid-row: 3; margin-top: 0; }
  .piece--g { grid-column: 6 / span 3; grid-row: 3; margin-top: 120px; }
  .piece--h { grid-column: 10 / span 3; grid-row: 3; margin-top: 40px; }
}

/* ============ Talleres: la banda terracota, como su sello ============ */
.workshops { background: var(--terra); color: var(--cream); padding: clamp(88px, 11vw, 150px) 0; }
.workshops ::selection { background: var(--cream); color: var(--terra); }
.workshops :focus-visible { outline-color: var(--cream); }
.workshops__in { display: grid; gap: 56px; align-items: center; }
.workshops .display { color: var(--cream); margin-bottom: 28px; }
.workshops .lede { color: var(--cream); }
.event { margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(251, 250, 246, .35); max-width: 60ch; }
.event__name { font: 500 clamp(40px, 5vw, 64px)/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; }
.event__when { margin-top: 12px; font: 500 15px/1.5 var(--sans); color: var(--cream); }
.event p + p { margin-top: 12px; }
.event__price { font-weight: 500; }
.workshops__next { margin: 36px 0 22px; color: var(--cream); }
.workshops__print { justify-self: center; width: min(100%, 320px); transform: rotate(1.2deg); }
.mat--cream { background: var(--cream); padding: 12px; box-shadow: 0 24px 48px -24px rgba(42, 20, 10, .55); }
.workshops__print img { width: 100%; height: auto; }
.workshops__print { position: relative; }
.workshops__print figcaption { margin-top: 14px; text-align: center; font: italic 400 19px/1.3 var(--serif); color: var(--cream); }
.workshops__print .stamp { position: absolute; top: -30px; right: -26px; width: 84px; height: 84px; border-radius: 50%; transform: rotate(-14deg); box-shadow: 0 10px 24px -10px rgba(42, 20, 10, .6), 0 0 0 3px var(--cream); }
@media (max-width: 480px) { .workshops__print .stamp { right: -6px; width: 68px; height: 68px; } }
.reels { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px); align-items: start; justify-self: center; width: min(100%, 520px); }
.reel { width: 100%; }
.reel--a { transform: rotate(-1.4deg); }
.reel--b { transform: rotate(1.6deg); margin-top: 56px; }
.reel .mat { padding: clamp(7px, 1vw, 12px); }
.reel__video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: #3a2a22; }
.reel .stamp { left: -22px; right: auto; top: -26px; }
@media (max-width: 480px) { .reel .stamp { left: -8px; width: 60px; height: 60px; } }
@media (min-width: 900px) { .workshops__in { grid-template-columns: 1.3fr 1fr; gap: 96px; } }

/* ============ Dónde estamos ============ */
.visit { padding: clamp(96px, 12vw, 160px) 0; }
.visit__in { display: grid; gap: 48px; align-items: center; }
.visit__print { width: min(100%, 420px); justify-self: center; }
.visit__print .mat { background: var(--mat); padding: 12px; box-shadow: 0 1px 2px rgba(42, 35, 32, .07), 0 24px 48px -24px rgba(42, 35, 32, .32); }
.visit__print img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 45%; }
.visit .display { margin-bottom: 24px; }
.visit__addr { font: 400 clamp(20px, 2vw, 24px)/1.45 var(--sans); font-style: normal; }
.visit__where { margin-top: 12px; max-width: 46ch; color: var(--ink-2); }
.visit__where a { color: var(--terra-dk); }
.status--big { margin-top: 20px; font: italic 500 clamp(24px, 2.4vw, 30px)/1.25 var(--serif); color: var(--terra); }
.hours { margin: 24px 0 0; border-top: 1px solid var(--line); max-width: 520px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
@media (max-width: 520px) {
  .hours div { flex-direction: column; gap: 2px; }
  .hours dd { text-align: left; }
}
.visit__note { margin-top: 18px; font-size: 15px; color: var(--ink-2); max-width: 52ch; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
@media (min-width: 900px) { .visit__in { grid-template-columns: 5fr 7fr; gap: 96px; } }

/* ============ Guía: Qué hacer en Peguerinos ============ */
.guide__head { padding: clamp(120px, 14vw, 180px) 0 clamp(40px, 5vw, 64px); }
.guide__crumbs { margin-bottom: 18px; font-size: 14px; color: var(--ink-2); }
.guide__crumbs a { color: var(--terra); }
.guide__title { margin-bottom: 28px; }
.guide .lede + .lede { margin-top: 1em; }
.guide__sec { padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.guide__sec .col > p { max-width: 62ch; }
.guide__sec .col > p + p { margin-top: 1em; }
.guide__h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 20px; }
.guide__more { color: var(--ink-2); font-size: 15px; }
.guide__more a { color: var(--terra-dk); }
.facts { margin: 24px 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 500; }
.facts dd { margin: 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (min-width: 640px) { .facts div { grid-template-columns: 220px 1fr; gap: 24px; } }
.guide__close { background: var(--paper-2); padding: clamp(80px, 10vw, 128px) 0; margin-top: clamp(40px, 6vw, 72px); }
.guide__close-in { display: grid; gap: 48px; align-items: center; }
.guide__close .display { margin-bottom: 20px; }
@media (min-width: 900px) { .guide__close-in { grid-template-columns: 5fr 7fr; gap: 96px; } }
.guide__sources { padding: 32px 0 56px; font-size: 14px; color: var(--ink-2); }
.bar__nav a[aria-current="page"] { color: var(--terra); }
.guide__updated { margin: -12px 0 28px; font-size: 14px; color: var(--ink-2); }
.faq { margin: 8px 0 0; border-top: 1px solid var(--line); }
.faq div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.faq dt { font: italic 500 22px/1.25 var(--serif); color: var(--terra); }
.faq dd { margin: 8px 0 0; max-width: 62ch; }
.home-faq { padding: 0 0 clamp(88px, 11vw, 140px); }
.home-faq .display { margin-bottom: 24px; }

/* ============ Pie ============ */
.foot { background: var(--paper-2); color: var(--ink-2); padding: 88px 0 64px; text-align: center; border-top: 1px solid var(--line); }
.foot__seal { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 28px; }
.foot__name { font: 300 clamp(30px, 6vw, 64px)/1 var(--sans); letter-spacing: .34em; margin-right: -.34em; text-transform: uppercase; color: var(--terra); }
.foot__sub { margin-top: 16px; font: italic 400 22px/1.2 var(--serif); }
.foot__addr { margin-top: 24px; font-style: normal; font-size: 15px; line-height: 1.6; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: 40px; font-size: 15px; }
.foot a { color: var(--ink); }

/* ============ Movimiento ============ */
.reveal.is-pending { opacity: 0; transform: translateY(-16px) rotate(-1.4deg); }
.reveal { transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); transition-delay: var(--delay, 0s); transform-origin: 50% 0; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-pending { opacity: 1; transform: none; transition: none; }
  .bar, .btn { transition: none; }
}
