@font-face {
  font-family: Cinzel;
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../assets/fonts/cinzel-latin.woff2") format("woff2");
}

@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/archivo-latin.woff2") format("woff2");
}

@font-face {
  font-family: Archivo;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/archivo-italic-latin.woff2") format("woff2");
}

:root {
  --black: #000;
  --gold: #dec99e;
  --gold-hi: #ead9ac;
  --shade: #7a683a;
  --bronze: #4a3e22;
  --ivory: #f3ede0;
  --paper: #e8dfcc;
  --ink: #1a1408;
  --gris: #8a8478;
  --gold-deep: #9a8248;
  --dock: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--black);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: Archivo, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.45;
  overflow-x: clip;
  padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom));
}

img {
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: var(--gold);
}

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

::selection {
  background: var(--gold);
  color: var(--black);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--gold);
  color: var(--black);
  padding: 10px 14px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  background: var(--gold);
  color: var(--black);
  font-family: Cinzel, "Times New Roman", serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
}

.btn-line {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 20px 0;
  font-family: Cinzel, "Times New Roman", serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.top a {
  color: var(--gold);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.hero {
  padding: 8px 20px 18px;
  text-align: center;
}

.seal {
  position: relative;
  width: min(70vw, 520px);
  aspect-ratio: 1;
  margin: 0 auto;
  background: var(--black);
}

.seal-photo,
.seal-shade,
.seal-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.seal-photo {
  object-fit: cover;
  object-position: center 62%;
  /* Triángulo del logo: (18.15,35.05) (133.85,35.05) (76,129.15) sobre viewBox 150. */
  clip-path: polygon(12.1% 23.4%, 89.2% 23.4%, 50.7% 86.1%);
  filter: brightness(0.72) saturate(0.82);
}

.seal-shade {
  clip-path: polygon(12.1% 23.4%, 89.2% 23.4%, 50.7% 86.1%);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.45) 68%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}

.seal-logo {
  display: block;
}

.seal-logo #logo-bg {
  display: none;
}

.hero-place {
  margin: 12px 0 10px;
  font-family: Cinzel, "Times New Roman", serif;
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-cta {
  width: min(100%, 320px);
}

.hero-hours {
  margin: 12px 0 0;
  color: var(--gris);
  font-size: 0.95rem;
}

.planilla {
  background: var(--ivory);
  color: var(--ink);
  padding: 12px 16px 48px;
  scroll-margin-top: 12px;
}

.planilla :focus-visible,
.ticket :focus-visible {
  outline-color: var(--ink);
}

.planilla-inner {
  max-width: 980px;
  margin: 0 auto;
}

.planilla-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.planilla h2,
.block-title {
  font-family: Cinzel, "Times New Roman", serif;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0.9;
}

.planilla h2 {
  margin: 0;
  font-size: clamp(3rem, 15vw, 7.2rem);
  letter-spacing: 0.04em;
}

.stamp {
  flex: 0 0 auto;
  margin: 10px 4px 0 0;
  border: 1px solid var(--shade);
  color: var(--bronze);
  font-family: Cinzel, "Times New Roman", serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 10px;
  transform: rotate(-6deg);
}

.lede {
  max-width: 38rem;
  margin: 12px 0 14px;
  font-size: 1.05rem;
}

.days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  max-width: 520px;
}

.day {
  min-height: 52px;
  border: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-family: Cinzel, "Times New Roman", serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day.is-on {
  background: var(--black);
  color: var(--ivory);
  border-color: var(--black);
}

.hoy {
  font-family: Archivo, sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.day.is-on .hoy {
  color: var(--gold);
}

.day-name {
  margin: 16px 0 0;
  font-family: Cinzel, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.slots {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  border-top: 1px solid var(--ink);
}

.slot {
  display: grid;
  grid-template-columns: 6.6rem minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 6px 2px;
  border-bottom: 1px solid rgba(26, 20, 8, 0.28);
  text-align: left;
  cursor: pointer;
}

.slot-time {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.cap {
  display: grid;
  grid-template-columns: minmax(40px, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.track {
  display: block;
  height: 3px;
  background: rgba(26, 20, 8, 0.16);
}

.bar {
  display: block;
  height: 100%;
  width: 0;
}

.slot[data-state="disponible"] .bar {
  width: 38%;
  background: var(--shade);
}

.slot[data-state="pocos"] .bar {
  width: 76%;
  background: var(--bronze);
}

.slot[data-state="completo"] .bar {
  width: 100%;
  background: #2c2618;
}

.slot[data-state="apartado"] .bar {
  width: 100%;
  background: var(--gold-deep);
}

.cap-label {
  font-size: 0.92rem;
  white-space: nowrap;
}

.band {
  padding: 56px 0 8px;
}

.band-head,
.rail {
  padding-left: 20px;
  padding-right: 20px;
}

.block-title {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: clamp(1.45rem, 4.4vw, 2.4rem);
  letter-spacing: 0.12em;
}

.rail-wrap {
  overflow: hidden;
}

.rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  padding-bottom: 18px;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  height: 0;
}

.story {
  position: relative;
  flex: 0 0 78%;
  max-width: 340px;
  aspect-ratio: 3 / 4;
  scroll-snap-align: start;
  background: #111;
}

.story img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.story-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 56px 14px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
}

.story h3 {
  margin: 0 0 6px;
  font-family: Cinzel, "Times New Roman", serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.story p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
}

.reel {
  flex: 0 0 64%;
  max-width: 230px;
  aspect-ratio: 9 / 16;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--shade);
  color: var(--gold);
  text-decoration: none;
  background:
    linear-gradient(to bottom, rgba(222, 201, 158, 0.08), transparent 42%),
    var(--black);
}

.reel-mark {
  position: absolute;
  left: 16%;
  right: 16%;
  top: 12%;
  height: 46%;
}

.reel-word {
  font-family: Cinzel, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 1rem;
}

.reel-go {
  font-size: 0.92rem;
  color: var(--ivory);
}

.sala {
  padding-bottom: 48px;
}

.mosaic {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 10px;
  align-items: start;
  padding: 0 20px;
  max-width: 1100px;
}

.frame {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--shade);
  overflow: hidden;
  cursor: zoom-in;
  background: #111;
}

.frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.frame.big {
  aspect-ratio: 4 / 5;
}

.frame.side {
  aspect-ratio: 3 / 4;
  margin-top: 18%;
}

.pase {
  display: flex;
  justify-content: center;
  padding: 28px 20px 56px;
}

.ticket {
  width: min(100%, 560px);
  color: var(--black);
  padding: 28px 22px 26px;
  background:
    radial-gradient(circle at 0 62%, #000 12px, transparent 13px),
    radial-gradient(circle at 100% 62%, #000 12px, transparent 13px),
    var(--gold);
}

.ticket-brand {
  margin: 0 0 18px;
  font-family: Cinzel, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 0.95;
}

.hours-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 16px;
}

.hours-line span {
  font-family: Cinzel, "Times New Roman", serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hours-line strong {
  font-family: Cinzel, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 6vw, 2.3rem);
  letter-spacing: 0.04em;
}

.perf {
  border-top: 1px dashed var(--shade);
  margin: 4px 0 16px;
}

.ticket dl {
  margin: 0;
}

.ticket dt {
  margin: 0 0 2px;
  font-family: Cinzel, "Times New Roman", serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ticket dd {
  margin: 0 0 14px;
}

.ticket a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--shade);
}

.stars {
  color: var(--bronze);
  letter-spacing: 0.08em;
}

.map {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
  margin-top: 4px;
  background: var(--paper);
  filter: grayscale(1) contrast(1.08);
}

.demo-banner {
  margin: 0 20px 28px;
  border: 1px solid var(--shade);
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

.demo-banner p {
  margin: 0;
  max-width: 46ch;
}

footer {
  padding: 8px 20px 28px;
}

.foot-by {
  margin: 0;
  color: var(--gold-hi);
  font-size: 0.92rem;
}

.foot-name {
  margin: 2px 0 0;
  font-family: Cinzel, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.85rem;
  letter-spacing: 0.06em;
}

.foot-name a {
  color: var(--gold);
  text-decoration: none;
}

.foot-note {
  margin: 12px 0 0;
  color: var(--gris);
  font-size: 0.88rem;
  max-width: 42ch;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--black);
}

.dock a {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: Cinzel, "Times New Roman", serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dock .go {
  color: var(--gold);
  border-top: 1px solid var(--gold);
}

.dock .wa {
  background: var(--gold);
  color: var(--black);
}

.dock a:focus-visible {
  outline-offset: -4px;
}

.dock .wa:focus-visible {
  outline-color: var(--black);
}

body.layer-open .dock {
  visibility: hidden;
}

.overlay[hidden] {
  display: none !important;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.sheet-panel,
.modal-panel,
.lightbox-panel {
  position: absolute;
  outline: none;
}

.sheet-panel {
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(86vh, 540px);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--ivory);
  color: var(--ink);
  border-top: 3px solid var(--gold);
  padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
}

.sheet-kicker,
.modal-kicker {
  margin: 0 0 8px;
  font-family: Cinzel, "Times New Roman", serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--shade);
}

.sheet-panel h3,
.modal-panel h2 {
  margin: 0 0 8px;
  font-family: Cinzel, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
}

.sheet-panel h3 {
  font-size: 1.55rem;
}

.sheet-state {
  margin: 0 0 8px;
  font-weight: 600;
}

.sheet-note,
.sheet-status,
.modal-panel p {
  margin: 0 0 12px;
}

.sheet-status:empty {
  display: none;
}

.sheet-actions,
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.sheet-actions .btn,
.modal-actions .btn {
  width: 100%;
}

#sheet-confirm[hidden] {
  display: none;
}

.modal-panel {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100% - 32px));
  background: var(--black);
  color: var(--ivory);
  border: 1px solid var(--gold);
  padding: 26px 22px 22px;
}

.modal-kicker {
  color: var(--gold);
}

.modal-panel h2 {
  font-size: 1.7rem;
  color: var(--ivory);
}

.lightbox-panel {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(920px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lightbox-panel img {
  width: 100%;
  max-height: calc(100vh - 96px);
  object-fit: contain;
  background: #111;
}

#scroll-sentinel {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

@media (hover: hover) {
  .slot:hover {
    background: rgba(26, 20, 8, 0.045);
  }

  .day:hover {
    background: var(--paper);
  }

  .day.is-on:hover {
    background: var(--black);
  }
}

@media (min-width: 800px) {
  body {
    padding-bottom: 0;
  }

  .dock {
    display: none;
  }

  .top,
  .hero,
  .band-head,
  .rail,
  .mosaic,
  .demo-banner,
  footer {
    padding-left: 48px;
    padding-right: 48px;
  }

  .hero {
    padding-top: 28px;
    padding-bottom: 56px;
  }

  .planilla {
    padding: 64px 48px 80px;
  }

  .pase {
    padding: 36px 48px 72px;
  }

  .demo-banner {
    margin-left: 48px;
    margin-right: 48px;
  }

  .sheet-panel {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(440px, calc(100% - 48px));
    border-top: 0;
    border: 1px solid var(--shade);
    padding: 28px 24px;
  }

  .sheet-actions {
    flex-direction: row;
  }

  .sheet-actions .btn {
    width: auto;
    flex: 1;
  }
}

@media (min-width: 860px) {
  .slots {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(8, auto);
    column-gap: 40px;
  }

  .story {
    flex-basis: 300px;
  }

  .reel {
    flex-basis: 220px;
  }
}

@media (min-width: 1100px) {
  .mosaic {
    grid-template-columns: 1.5fr 0.85fr;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .seal-logo #triangle path {
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    animation: seal-draw 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  .seal-logo #figure-man,
  .seal-logo #figure-woman {
    opacity: 0;
    animation: seal-in 0.8s ease 1.15s forwards;
  }

  .seal-logo #wordmark {
    opacity: 0;
    animation: seal-in 0.7s ease 1.55s forwards;
  }
}

@keyframes seal-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes seal-in {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .seal-logo #triangle path {
    stroke-dashoffset: 0;
  }

  .seal-logo #figure-man,
  .seal-logo #figure-woman,
  .seal-logo #wordmark {
    opacity: 1;
  }
}

/* #agenda-saas: contenedor vacío para el sistema de reservas */
#agenda-saas .agenda-slot{display:flex;flex-direction:column;align-items:center;gap:1.4rem;text-align:center;padding-block:clamp(3rem,10vw,6rem)}
#agenda-saas .agenda-btn{font-size:1.05rem;padding:1rem 2.4rem}

/* Funde la foto bajo la barra para que no quede un corte recto tras las cabezas */
.seal-photo{-webkit-mask-image:linear-gradient(to bottom,transparent 22%,#000 40%);mask-image:linear-gradient(to bottom,transparent 22%,#000 40%)}

/* Velo negro dentro del triángulo para que destaquen las figuras doradas */
.seal-shade{background:rgba(0,0,0,.45)}

/* v3 */
.overlay { animation: none; }
.lightbox-panel { align-items: center; }
.lightbox-panel img { max-height: calc(100vh - 140px); }
.lb-close {
  align-self: flex-end;
  width: 44px; height: 44px;
  border: 1px solid var(--gold); background: var(--black); color: var(--gold);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lb-nav { display: flex; align-items: center; justify-content: center; gap: 18px; }
.lb-btn {
  width: 48px; height: 48px;
  border: 1px solid var(--gold); background: var(--black); color: var(--gold);
  font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.lb-count { color: var(--ivory); font-size: 0.9rem; letter-spacing: 0.1em; min-width: 4ch; text-align: center; }
@media (min-width: 860px) {
  #grupos .rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }
  #grupos .story { max-width: none; width: 100%; }
}
