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

@font-face {
  font-family: "Quicksand";
  src: url("fonts/quicksand-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #102c43;
  --ink-soft: #476174;
  --paper: #FAF6F1;
  --paper-deep: #eee6dc;
  --sand: #d8b68b;
  --terracotta: #BBB07B;
  --line: #d9cebf;
  --avenida-veil: rgb(250 246 241 / 0.8);
  --shell: 70rem;
  --header-height: 4.5rem;
  --slide-transition: 700ms cubic-bezier(0.645, 0.045, 0.355, 1);
}

* {
  box-sizing: border-box;
}

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

html.js,
html.js body {
  block-size: 100%;
  overflow: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Quicksand", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.94rem, 0.91rem + 0.16vw, 1.06rem);
  font-weight: 500;
  line-height: 1.55;
}

img {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
figure {
  margin-block: 0;
}

h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  line-height: 0.98;
}

h2,
h3 {
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.75rem, 1.35rem + 2vw, 3.1rem);
}

h3 {
  margin-block-start: 1.3rem;
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.35rem);
}

p,
li,
address {
  text-align: justify;
  text-justify: inter-word;
}

p + p,
p + h3 {
  margin-block-start: 0.75rem;
}

.shell {
  inline-size: min(calc(100% - 2rem), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 60;
  inset: 0.75rem auto auto 0.75rem;
  padding: 0.55rem 0.8rem;
  color: white;
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 0.18rem solid var(--terracotta);
  outline-offset: 0.2rem;
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  block-size: var(--header-height);
  color: var(--ink);
  background: rgb(250 246 241 / 0.94);
  border-block-end: 1px solid transparent;
  backdrop-filter: blur(0.8rem);
  transition: opacity 350ms ease, visibility 350ms ease, color 350ms ease, background 350ms ease, border-color 350ms ease;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  block-size: 100%;
}

.brand-rail-link {
  display: block;
  flex: 1 1 auto;
  min-inline-size: 0;
  max-inline-size: 18rem;
  overflow: hidden;
  color: var(--terracotta);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 350ms ease;
}

.brand-rail {
  display: block;
  block-size: 1.5rem;
  overflow: hidden;
}

.brand-rail-track {
  display: flex;
  flex-direction: column;
  transform: translate3d(0, calc(var(--rail-index, 0) * -1.5rem), 0);
  transition: transform var(--slide-transition);
  will-change: transform;
}

.brand-rail-item {
  flex: 0 0 1.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navigation {
  display: flex;
  flex: 0 0 auto;
  gap: 0.35rem;
  margin-inline-start: auto;
  scrollbar-width: none;
}

.navigation::-webkit-scrollbar {
  display: none;
}

.navigation a {
  display: grid;
  flex: 0 0 auto;
  inline-size: 2.1rem;
  block-size: 2.1rem;
  padding: 0;
  place-items: center;
  border-block-end: 1px solid transparent;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 200ms ease, border-color 200ms ease;
}

.navigation a:hover,
.navigation a[aria-current="page"],
.text-link:hover {
  color: var(--terracotta);
  border-block-end-color: currentcolor;
}

.navigation a:focus-visible,
.dress-references summary:focus-visible,
.faq-list summary:focus-visible,
.lightbox-trigger:focus-visible,
.lightbox-close:focus-visible {
  outline: none;
  box-shadow: inset 0 -0.12rem var(--terracotta);
}

body[data-current-slide="inicio"] .site-header,
body[data-current-slide="cierre"] .site-header {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  color: white;
  background: linear-gradient(rgb(7 24 34 / 0.55), transparent);
  border-color: transparent;
  backdrop-filter: none;
}

body[data-current-slide="inicio"] .brand-rail-link,
body[data-current-slide="inicio"] .navigation a:hover {
  color: #f0cfaa;
}

.slides-track {
  position: relative;
}

.js .slides-track {
  block-size: 100svh;
  transform: translate3d(0, var(--slide-offset, 0), 0);
  transition: transform var(--slide-transition);
  will-change: transform;
}

.slide {
  position: relative;
  display: grid;
  min-block-size: 100svh;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.slide[data-avenida] {
  background-color: var(--paper);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.slide[data-avenida="2"] {
  background-image: linear-gradient(var(--avenida-veil), var(--avenida-veil)), url("images/avenida/Avenida 2.webp");
}

.slide[data-avenida="3"] {
  background-image: linear-gradient(var(--avenida-veil), var(--avenida-veil)), url("images/avenida/Avenida 3.webp");
}

.slide[data-avenida="4"] {
  background-image: linear-gradient(var(--avenida-veil), var(--avenida-veil)), url("images/avenida/Avenida 4.webp");
}

.slide[data-avenida="5"] {
  background-image: linear-gradient(var(--avenida-veil), var(--avenida-veil)), url("images/avenida/Avenida 5.webp");
}

.slide[data-avenida="6"] {
  background-image: linear-gradient(var(--avenida-veil), var(--avenida-veil)), url("images/avenida/Avenida 6.webp");
}

.slide[data-avenida="7"] {
  background-image: linear-gradient(var(--avenida-veil), var(--avenida-veil)), url("images/avenida/Avenida 7.webp");
}

.slide[data-avenida="8"] {
  background-image: linear-gradient(90deg, rgb(7 24 34 / 0.66), rgb(7 24 34 / 0.16) 78%), url("images/avenida/Avenida 8.webp");
}

.site-footer[data-avenida="8"] {
  color: white;
  padding: 0 2rem;
}

.site-footer[data-avenida="8"] p {
  transform: translateY(-4svh);
}

.mobile-art-slide {
  display: none;
}

.js .slide {
  block-size: 100svh;
}

.slide.shell {
  inline-size: 100%;
  max-inline-size: none;
  margin-inline: 0;
  padding-inline: max(1rem, calc((100% - var(--shell)) / 2));
}

.slide-status,
.scroll-hint {
  position: fixed;
  z-index: 40;
  inset-block-end: 1.2rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 350ms ease, opacity 350ms ease;
}

.slide-status {
  inset-inline-start: 1rem;
  display: flex;
  gap: 0.3rem;
}

.scroll-hint {
  inset-inline-start: 50%;
  inset-inline-end: auto;
  inline-size: max-content;
  visibility: hidden;
  opacity: 0;
  color: #000;
  font-size: 0.9rem;
  text-align: center;
  transform: translateX(-50%);
  transition: color 350ms ease, opacity 350ms ease, visibility 350ms ease;
}

.scroll-hint span {
  display: inline-block;
  margin-inline-start: 0.35rem;
  animation: hint-bounce 1.8s ease-in-out infinite;
}

body[data-current-slide="inicio"] .slide-status {
  color: white;
}

body[data-current-slide="inicio"] .scroll-hint {
  visibility: visible;
  opacity: 1;
  color: #000;
}

@keyframes hint-bounce {
  50% {
    transform: translateY(0.3rem);
  }
}

.hero {
  color: #4a4441;
}

.hero > picture,
.hero > picture img,
.hero::after,
.hero-content {
  grid-area: 1 / 1;
}

.hero > picture,
.hero > picture img {
  inline-size: 100%;
  block-size: 100%;
}

.hero > picture {
  display: block;
}

.hero > picture img {
  object-fit: cover;
  object-position: center 64%;
}

.hero::after {
  content: "";
  z-index: 1;
  background: linear-gradient(90deg, rgb(7 24 34 / 0.66), rgb(7 24 34 / 0.16) 78%);
}

.hero-content {
  z-index: 2;
  align-self: center;
  padding-block-start: calc(var(--header-height) * 0.45);
  text-align: center;
  transform: translateY(-12rem)
}

.hero-label,
.section-kicker,
.eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-label {
  margin-block-end: 0.7rem;
}

.hero h1 {
  max-inline-size: 54rem;
  margin-inline: auto;
}

.hero-logo {
  display: block;
}

.hero-logo img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  transform: translateX(0.585%);
}

.welcome {
  align-content: center;
  padding-block: calc(var(--header-height) + 2rem) 3rem;
  text-align: center;
}

.welcome > * {
  inline-size: min(100%, 48rem);
  margin-inline: auto;
}

.welcome .eyebrow,
.section-kicker {
  color: var(--terracotta);
}

.welcome h2 {
  margin-block: 0.75rem 1rem;
  font-size: clamp(2rem, 1.45rem + 2.6vw, 3.8rem);
}

.welcome > p:last-child {
  max-inline-size: 42rem;
  color: var(--ink-soft);
}

.section {
  align-content: safe center;
  padding-block: calc(var(--header-height) + 1.5rem) 3rem;
}

.section::before {
  position: absolute;
  z-index: -1;
  inset: auto -4vw -18vw auto;
  inline-size: 44vw;
  aspect-ratio: 1;
  border: 1px solid rgb(158 75 62 / 0.08);
  border-radius: 50%;
  content: "";
}

.section-copy {
  position: relative;
  z-index: 1;
  max-inline-size: 48rem;
  padding-inline-start: clamp(1rem, 2vw, 1.75rem);
  border-inline-start: 1px solid var(--sand);
}

.stack-spacing {
  display: grid;
  gap: 0.75rem;
}

.stack-spacing > :is(h2, h3, p, .action-row, .text-link, ul, .dress-references) {
  margin: 0;
}

.stack-spacing > .text-link {
  justify-self: start;
}

.section-kicker {
  margin-block-end: 0.5rem;
}

.section h2 + p,
.section h2 + address,
.section h2 + .event-list,
.section h2 + .faq-list {
  margin-block-start: 1rem;
}

.event-list,
.dress-list {
  display: grid;
  gap: 0.42rem;
  margin-block: 1rem 0;
  padding-inline-start: 1.2rem;
}

.event-list li::marker {
  color: var(--terracotta);
}

.note {
  margin-block-start: 0.9rem;
}

address {
  display: grid;
  gap: 0.12rem;
  font-style: normal;
}

address strong {
  font-size: 1.05rem;
}

.action-row {
  display: flex;
  gap: 0.75rem;
  margin-block: 0.9rem 1.15rem;
}

.app-link {
  display: grid;
  inline-size: 3.5rem;
  block-size: 3.5rem;
  place-items: center;
  background: white;
  border: 1px solid rgb(16 44 67 / 0.1);
  border-radius: 0.9rem;
  box-shadow: 0 0.2rem 0.7rem rgb(16 44 67 / 0.1);
  transition: transform 180ms ease, border-color 180ms ease;
}

.app-link:hover {
  border-color: var(--sand);
  transform: translateY(-0.15rem);
}

.app-link img {
  inline-size: 1.85rem;
  block-size: 1.85rem;
}

.app-link-waze {
  background: #f3fbff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-block-size: 2.5rem;
  padding-block: 0.4rem;
  border-block-end: 1px solid currentcolor;
  font-weight: 700;
  text-decoration: none;
}

.section-with-art {
  --art-size: clamp(10rem, 42vw, 14rem);
  grid-template-columns: 1fr;
}

.art-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "art"
    "lead"
    "body";
  align-items: start;
  gap: 1rem clamp(0.75rem, 3vw, 1.5rem);
  inline-size: 100%;
  max-inline-size: none;
  max-block-size: calc(100svh - var(--header-height) - 4.5rem);
  padding-inline-end: 0.65rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-color: var(--sand) transparent;
  scrollbar-width: thin;
}

.art-lead {
  grid-area: lead;
  min-inline-size: 0;
}

.art-body {
  grid-area: body;
  min-inline-size: 0;
}

.illustration {
  z-index: 2;
  justify-self: center;
  inline-size: min(100%, 14rem);
  margin-inline: 0;
}

.art-layout > .illustration {
  position: static;
  grid-area: art;
  align-self: start;
  justify-self: center;
  inline-size: var(--art-size);
}

.illustration img {
  inline-size: 100%;
  block-size: auto;
  object-fit: contain;
}

.dress-list {
  padding: 0;
  list-style: none;
}

#ubicacion .art-body > strong + p {
  margin-block-start: 0.4rem;
}

#ubicacion :is(p, address) {
  text-align: justify;
  text-justify: inter-word;
}

#ubicacion .art-lead address h3 {
  margin-block: 0 0.63rem;
}

#vestimenta :is(p, address) {
  text-align: justify;
  text-justify: inter-word;
}

#asistencia :is(p, address) {
  text-align: justify;
  text-justify: inter-word;
}

#evento .section-copy {
  display: grid;
  gap: 0.75rem;
}

#evento .section-copy > h3,
#evento .section-copy > p {
  margin: 0;
}

.dress-references {
  position: relative;
  z-index: 3;
  margin-block: 0.75rem 0.85rem;
}

.dress-references details,
.faq-list details {
  border-block-end: 1px solid var(--line);
}

.dress-references details:first-child,
.faq-list details:first-child {
  border-block-start: 1px solid var(--line);
}

.dress-references summary,
.faq-list summary {
  position: relative;
  min-block-size: 2.8rem;
  padding: 0.7rem 1.8rem 0.7rem 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.dress-references summary::-webkit-details-marker,
.faq-list summary::-webkit-details-marker {
  display: none;
}

.dress-references summary::after,
.faq-list summary::after {
  position: absolute;
  inset: 0.72rem 0 auto auto;
  color: var(--terracotta);
  content: "+";
  font-size: 1.25rem;
  line-height: 1;
}

.dress-references details[open] summary::after,
.faq-list details[open] summary::after {
  content: "–";
}

.dress-reference-image {
  display: grid;
  place-items: center;
  padding-block: 0.75rem 1rem;
}

.dress-reference-image img {
  inline-size: min(100%, 34rem);
  max-block-size: 55svh;
  object-fit: contain;
}

.lightbox-trigger {
  display: grid;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.lightbox {
  inset: 0;
  inline-size: 100vw;
  max-inline-size: none;
  block-size: 100svh;
  max-block-size: none;
  margin: 0;
  padding: clamp(3.5rem, 6vw, 5rem);
  border: 0;
  background: transparent;
  overflow: hidden;
}

.lightbox[open] {
  display: grid;
  place-items: center;
  justify-content: center;
  align-content: center;
}

.lightbox::backdrop {
  background: rgb(8 24 34 / 0.88);
  backdrop-filter: blur(0.35rem);
}

.lightbox > img {
  inline-size: auto;
  max-inline-size: 92vw;
  max-block-size: 88svh;
  margin-inline: auto;
  justify-self: center;
  align-self: center;
  border-radius: 0.35rem;
  box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 0.35);
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  z-index: 1;
  inset: 1rem 1rem auto auto;
  display: grid;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.55);
  border-radius: 50%;
  color: white;
  background: rgb(8 24 34 / 0.45);
  font: 1.8rem/1 Quicksand, sans-serif;
  cursor: pointer;
}

.rsvp-button {
  margin-block: 0.45rem 0.15rem;
}

.faq-list {
  display: grid;
}

.faq-list details > div {
  max-block-size: 24svh;
  padding-block-end: 0.8rem;
  overflow-y: auto;
  color: var(--ink-soft);
  scrollbar-width: thin;
}

.site-footer {
  place-items: center;
  padding: calc(var(--header-height) + 2rem) 1rem 3rem;
  text-align: center;
}

.site-footer p {
  max-inline-size: 36rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
}

#cierre .illustration-cierre {
  transform: translateY(2rem);
}

@media (max-width: 56.249rem) {
  .hero h1 {
    max-inline-size: none;
  }

  .hero-logo img {
    transform: translateX(-0.318%);
  }

  .mobile-art-slide {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 1rem;
  }

  .mobile-art-slide .illustration {
    inline-size: clamp(15rem, 52vw, 22rem);
  }

  .mobile-art-title {
    color: var(--terracotta);
    font-size: clamp(1.45rem, 4vw, 2.2rem);
    text-align: center;
  }

  .section-with-art .art-layout {
    grid-template-areas:
      "lead"
      "body";
  }

  .section-with-art .art-layout > .illustration {
    display: none;
  }

  .section-with-art :is(p, li, address) {
    text-align: left;
    text-wrap: pretty;
  }

  #preguntas-titulo {
    text-align: center;
    text-wrap: balance;
  }
}

@media (min-width: 52rem) {
  :root {
    --header-height: 5rem;
  }

  .navigation {
    gap: 0.65rem;
    overflow: visible;
  }

  .navigation a {
    inline-size: 2.35rem;
    block-size: 2.35rem;
    font-size: 1.1rem;
  }

  .hero h1 {
    max-inline-size: none;
  }

  .slide-status {
    inset-inline-start: max(2rem, calc((100vw - var(--shell)) / 2));
  }

  .scroll-hint {
    inset-inline-end: max(2rem, calc((100vw - var(--shell)) / 2));
  }

}

@media (min-width: 56.25rem) {
  .art-layout {
    grid-template-columns: minmax(0, 7fr) minmax(14rem, 3fr);
    grid-template-areas:
      "lead art"
      "body art";
    column-gap: clamp(3rem, 7vw, 6rem);
  }

  .art-layout > .illustration {
    align-self: center;
    justify-self: center;
    inline-size: min(100%, 15rem);
  }

  .faq-section .art-layout > .illustration {
    inline-size: min(100%, 14rem);
  }
}

@media (min-width: 56.25rem) and (max-height: 46rem) {
  :root {
    --header-height: 4.5rem;
  }

  body {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .section {
    padding-block: calc(var(--header-height) + 1rem) 2.2rem;
  }

  .art-layout > .illustration,
  .faq-section .art-layout > .illustration {
    inline-size: 10rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  :root {
    --slide-transition: 0ms;
  }

  .scroll-hint span {
    animation: none;
  }
}
