@charset "UTF-8";
/* Entry point del theme "moderna" → dist/css/moderna.css
   Sistema editorial sage + beige (handoff Claudia & Diego). */
/* Theme moderna — base (tokens :root, reset, primitivas, scaffold, botones, .invite).
   Portado de design_handoff_invitacion (Claudia & Diego). */
@font-face {
  font-family: "cormorant-italic";
  src: url("/assets/fonts/Cormorant-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "cormorant-regular";
  src: url("/assets/fonts/Cormorant-VariableFont_wght.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
:root {
  --ivory:#F7F3EA;
  --paper:#FBF8F1;
  --beige:#EBE3D3;
  --beige-deep:#DACDB7;
  --sage:#97A68E;
  --sage-mid:#7B8C71;
  --sage-deep:#56654E;
  --ink:#3A4038;
  --ink-soft:#6C7064;
  --line:rgba(86,101,78,.22);
  --line-strong:rgba(86,101,78,.4);
  --gold:#B29A6B;
  --display:"Cormorant Garamond",Georgia,serif;
  --body:"EB Garamond",Georgia,serif;
  --label:"Jost",system-ui,sans-serif;
  --label: "Jost", system-ui, sans-serif;
  --cormorant-italic: "cormorant-italic", system-ui, sans-serif;
  --cormorant-regular: "cormorant-regular", system-ui, sans-serif;
  --col: 480px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body);
  color: var(--ink);
  background: radial-gradient(120% 80% at 50% -10%, #aab59f 0%, #7d8c72 45%, #5d6a53 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

#app {
  width: 100%;
  display: flex;
  justify-content: center;
}

.invite {
  position: relative;
  width: 100%;
  background: var(--ivory);
  overflow: hidden;
  box-shadow: 0 40px 120px -30px rgba(30, 38, 26, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04);
  background-image: 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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

@media (min-width: 520px) {
  .invite {
    margin: 0 auto;
    min-height: 100vh;
  }
}
/* Primitivas tipográficas */
.eyebrow {
  font-family: var(--label);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--sage-mid);
}

.script {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
}

.section-title {
  font-size: clamp(34px, 11vw, 46px);
  font-weight: 300;
  letter-spacing: 0.01em;
}

.lede {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.serif-num {
  font-family: var(--display);
  font-weight: 300;
  font-variant-numeric: lining-nums;
}

/* Scaffold de sección */
.section {
  position: relative;
  padding: 74px 34px;
  text-align: center;
}

.section.tight {
  padding: 54px 34px;
}

.section.screen {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 96px;
  padding-bottom: 88px;
}

.section.alt {
  background: linear-gradient(180deg, var(--beige) 0%, #EFE8DA 100%);
}

.section.sage {
  background: var(--sage-deep);
  color: var(--ivory);
}

.section.sage .eyebrow {
  color: rgba(255, 255, 255, 0.62);
}

.section.sage h1, .section.sage h2 {
  color: var(--ivory);
}

.section.sage .lede {
  color: rgba(247, 243, 234, 0.8);
}

/* Reveal on scroll */
.reveal {
  opacity: 1;
}

@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.reveal.in {
  animation: revealIn 1.05s cubic-bezier(0.16, 0.7, 0.3, 1) both;
}

.reveal.d1 {
  animation-delay: 0.12s;
}

.reveal.d2 {
  animation-delay: 0.24s;
}

.reveal.d3 {
  animation-delay: 0.36s;
}

/* Divisor stem + node */
.stem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0 auto;
}

.stem .l {
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--line-strong), transparent);
}

.stem .l.up {
  background: linear-gradient(transparent, var(--line-strong));
}

.stem .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--sage-mid);
}

.rule {
  width: 46px;
  height: 1px;
  background: var(--line-strong);
  margin: 18px auto;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--label);
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--sage-deep);
  color: var(--ivory);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1), background 0.3s, box-shadow 0.35s;
  box-shadow: 0 12px 28px -14px rgba(56, 64, 56, 0.8);
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--ink);
  box-shadow: 0 18px 34px -14px rgba(56, 64, 56, 0.9);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn.ghost {
  background: transparent;
  color: var(--sage-deep);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.btn.ghost:hover {
  background: rgba(86, 101, 78, 0.06);
  color: var(--ink);
}

.btn.light {
  background: var(--ivory);
  color: var(--sage-deep);
}

.btn.light:hover {
  background: #fff;
  color: var(--ink);
}

.btn.wa {
  background: #3a4f3a;
}

.btn.block {
  width: 100%;
}

/* Placeholder / foto */
.ph {
  position: relative;
  width: 100%;
  background: repeating-linear-gradient(135deg, #e7e0d0, #e7e0d0 11px, #ded5c2 11px, #ded5c2 22px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
}

.ph span {
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: rgba(247, 243, 234, 0.85);
  padding: 6px 12px;
  border-radius: 3px;
}

.photo {
  overflow: hidden;
  background: var(--beige);
}

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

/* Monograma */
.mono {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mono span {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--sage-deep);
  white-space: nowrap;
}

.mono.lg {
  width: 118px;
  height: 118px;
}

.mono.lg span {
  font-size: 38px;
}

/* Helpers */
.mt-s {
  margin-top: 14px;
}

.mt-m {
  margin-top: 24px;
}

.mt-l {
  margin-top: 36px;
}

.maxw {
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.center-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Desktop — responsive landing */
@media (min-width: 880px) {
  body {
    background: var(--ivory);
  }
  .invite {
    max-width: none;
    width: 100%;
    box-shadow: none;
  }
  .section {
    padding-block: 128px;
  }
  .section.tight {
    padding-block: 100px;
  }
  .section > *:not(.story):not(.glb) {
    max-width: 740px;
    margin-inline: auto;
  }
  .section-title {
    font-size: clamp(48px, 5vw, 72px);
  }
  .lede {
    font-size: 20px;
  }
  .maxw {
    max-width: 620px;
  }
  .cover .names {
    font-size: clamp(104px, 10.5vw, 170px);
  }
  .cover .when {
    font-size: 13px;
    letter-spacing: 0.3em;
  }
  .cover .inner {
    padding-bottom: 104px;
  }
  .cover .topline {
    font-size: 12px;
  }
  .count-inner {
    padding-block: 130px;
  }
  .count-grid {
    max-width: 560px;
  }
  .count-cell .n {
    font-size: 66px;
  }
  .place-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    max-width: 840px !important;
    align-items: stretch;
  }
  .infocard h3 {
    font-size: 30px;
  }
  .gal {
    max-width: 720px;
  }
  .rsvp-card {
    max-width: 540px;
  }
  .closing {
    height: 94vh;
  }
  .closing .c-names {
    font-size: clamp(72px, 7.5vw, 118px);
  }
  .closing .c-inner {
    padding-bottom: 130px;
  }
  .footer {
    padding-block: 84px 130px;
  }
  .footer .f-line {
    font-size: 23px;
  }
  .tabbar {
    max-width: 440px;
  }
}
@media (min-width: 1280px) {
  .section > *:not(.story):not(.glb) {
    max-width: 780px;
  }
  .place-grid {
    max-width: 900px !important;
  }
  .gal {
    max-width: 780px;
  }
}
/* Cover (portada) + opener (overlay de apertura) */
.cover {
  position: relative;
  height: 100svh;
  min-height: 560px;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cover .bg {
  position: absolute;
  inset: 0;
}

.cover .bg img, .cover .bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover.is-kenburns .bg img {
  will-change: transform;
  animation: ken-burns 22s ease-in-out infinite;
}

@keyframes ken-burns {
  0%, 100% {
    transform: scale(1.05) translate(0%, 0%);
  }
  50% {
    transform: scale(1.12) translate(-1.5%, -1%);
  }
}
.cover .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 32, 22, 0.46) 0%, rgba(26, 32, 22, 0.05) 26%, rgba(24, 30, 20, 0.18) 55%, rgba(20, 26, 16, 0.66) 80%, rgba(18, 24, 15, 0.92) 100%);
}

.cover .inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 34px 26px 86px;
  text-align: center;
}

.cover .topline {
  font-family: var(--label);
  font-size: 10.5px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.92;
}

.cover .heart {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 4px;
}

.cover .names {
  font-family: var(--display);
  font-weight: 500;
  line-height: 0.9;
  font-size: clamp(60px, 18vw, 92px);
  letter-spacing: 0.005em;
  text-shadow: 0 2px 26px rgba(16, 22, 12, 0.7), 0 1px 3px rgba(16, 22, 12, 0.5);
}

.cover .names .amp {
  display: block;
  font-style: italic;
  font-weight: 400;
  font-size: 0.4em;
  margin: 0.04em 0;
  opacity: 0.92;
}

.cover .when {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--label);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(16, 22, 12, 0.6);
}

.cover .when::before, .cover .when::after {
  content: "";
  width: 20px;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
}

.cover .where {
  margin-top: 8px;
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.75;
  text-shadow: 0 1px 8px rgba(16, 22, 12, 0.5);
}

.cover .cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--label);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.8;
}

.cover .cue .arr {
  width: 1px;
  height: 34px;
  background: linear-gradient(rgba(255, 255, 255, 0.8), transparent);
  animation: cueY 1.8s ease-in-out infinite;
}

@keyframes cueY {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}
.opener {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  text-align: center;
  padding: 40px;
  background-image: 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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  transition: opacity 1.1s ease, transform 1.1s ease;
}

.opener.gone {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

.opener .o-eye {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--sage-mid);
}

.opener .o-names {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(58px, 18vw, 86px);
  line-height: 0.95;
  color: var(--ink);
}

.opener .o-names em {
  font-style: italic;
  display: block;
  font-size: 0.4em;
  color: var(--sage-mid);
  margin: 0.1em 0;
}

.opener .o-sub {
  font-family: var(--display);
  font-style: italic;
  font-size: 21px;
  color: var(--ink-soft);
}

/* Bottom app nav (tabbar) + control de música mini */
.tabbar {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: fit-content;
  max-width: calc(var(--col) - 28px);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  padding: 12px 16px calc(11px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 16px 40px -16px rgba(40, 48, 32, 0.4), 0 2px 8px -4px rgba(40, 48, 32, 0.2);
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.42s ease;
}

.tabbar.hidden {
  transform: translate(-50%, 160%);
  opacity: 0;
  pointer-events: none;
}

.tab {
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  transition: color 0.25s;
}

.tab .ti {
  width: 46px;
  height: 30px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s, transform 0.25s;
}

.tab .tl {
  font-family: var(--label);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tab.active {
  color: var(--sage-deep);
}

.tab.active .ti, .tab.playing .ti {
  background: var(--sage-deep);
  color: var(--ivory);
}

.tab.playing {
  color: var(--sage-deep);
}

.tab:active .ti {
  transform: scale(0.9);
}

.tab-music .eq {
  display: none;
}

.tab-music.playing .eq {
  display: flex;
}

.tab-music.playing .ico {
  display: none;
}

.tab .eq {
  align-items: flex-end;
  gap: 2.5px;
  height: 16px;
}

.tab .eq i {
  width: 2.5px;
  background: currentColor;
  height: 5px;
  border-radius: 2px;
  animation: eq 0.9s ease-in-out infinite;
}

.tab .eq i:nth-child(2) {
  animation-delay: 0.15s;
}

.tab .eq i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes eq {
  0%, 100% {
    height: 5px;
  }
  50% {
    height: 16px;
  }
}
/* Mini control de música flotante: esquina inferior derecha, visible cuando el
   tabbar está oculto (incluida la portada). En la portada se muestra más
   translúcido para que sea sutil y no llame la atención. */
.music-fab {
  position: fixed;
  z-index: 59;
  right: 14px;
  bottom: 14px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 40px -16px rgba(40, 48, 32, 0.4), 0 2px 8px -4px rgba(40, 48, 32, 0.2);
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.42s ease, background 0.42s ease, box-shadow 0.42s ease, border-color 0.42s ease;
}

body.is-opened .music-fab {
  display: flex;
}

body.on-cover .music-fab {
  background: rgba(86, 101, 78, 0.42);
  border-color: rgba(247, 243, 234, 0.55);
  color: var(--ivory);
  box-shadow: 0 10px 28px -10px rgba(40, 48, 32, 0.55), 0 0 0 1px rgba(40, 48, 32, 0.1);
}

body.on-cover .music-fab.playing {
  color: var(--ivory);
}

.tabbar:not(.hidden) ~ .music-fab {
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}

.music-fab:active {
  transform: scale(0.9);
}

.music-fab.playing {
  color: var(--sage-deep);
}

.music-fab .ti {
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-fab .eq {
  display: none;
  align-items: flex-end;
  gap: 2.5px;
  height: 16px;
}

.music-fab.playing .eq {
  display: flex;
}

.music-fab.playing .ico {
  display: none;
}

.music-fab .eq i {
  width: 2.5px;
  background: currentColor;
  height: 5px;
  border-radius: 2px;
  animation: eq 0.9s ease-in-out infinite;
}

.music-fab .eq i:nth-child(2) {
  animation-delay: 0.15s;
}

.music-fab .eq i:nth-child(3) {
  animation-delay: 0.3s;
}

/* Countdown band */
.count-band {
  position: relative;
  overflow: hidden;
}

.count-band .bgimg {
  position: absolute;
  inset: 0;
}

.count-band .bgimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.count-band .ov {
  position: absolute;
  inset: 0;
  background: rgba(50, 58, 46, 0.7);
}

.count-inner {
  position: relative;
  z-index: 2;
  padding: 70px 28px;
  text-align: center;
  color: var(--ivory);
}

.count-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-width: 360px;
  margin: 30px auto 0;
}

.count-cell {
  position: relative;
}

.count-cell .n {
  font-family: var(--cormorant-italic);
  font-weight: 300;
  font-size: clamp(40px, 13vw, 56px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.count-cell .u {
  font-family: var(--label);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-top: 9px;
  opacity: 0.78;
}

.count-cell:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 8%;
  height: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.22);
}

/* Info cards (ceremonia / recepción) */
.place-grid {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 14px;
}

.infocard {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 24px;
  text-align: center;
}

.infocard .ic-type {
  font-family: var(--label);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage-mid);
}

.infocard h3 {
  font-size: 27px;
  margin: 12px 0 4px;
}

.infocard .ic-place {
  font-size: 18px;
  color: var(--ink);
}

.infocard .ic-addr {
  font-size: 15.5px;
  color: var(--ink-soft);
  margin-top: 4px;
  margin-bottom: 30px;
  line-height: 1.5;
}

.infocard .ic-time {
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
  color: var(--sage-deep);
  margin: 12px 0 18px;
}

.infocard .ic-cta {
  margin-top: auto;
  align-self: center;
}

/* Padres / Padrinos */
.parents-title {
  font-size: clamp(26px, 8vw, 36px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  color: var(--sage-deep);
  margin-top: 14px;
}

.parents-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.parents-group {
  text-align: center;
}

.parents-group--full {
  grid-column: 1/-1;
}

.parents-group-img {
  width: min(120px, 40vw);
  height: auto;
  display: block;
  margin: 0 auto 12px;
  border-radius: 8px;
  object-fit: cover;
}

.parents-role {
  color: var(--sage-mid);
  margin-bottom: 8px;
}

.parents-name {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.4;
}

@media (min-width: 880px) {
  .parents-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 620px;
  }
  .parents-name {
    font-size: 24px;
  }
}
/* Dress code swatches */
.swatches {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 26px 0 6px;
}

.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.swatch .dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.07);
}

.swatch .lab {
  font-family: var(--label);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.dresscode__photo {
  display: block;
  max-width: 280px;
  width: 90%;
  border-radius: 8px;
  margin: 0 auto 24px;
  object-fit: cover;
}

/* Sin niños (solo adultos) */
.nc-illu {
  display: flex;
  justify-content: center;
  color: var(--sage-mid);
}

.nc-illu svg {
  width: 56px;
  height: 56px;
  opacity: 0.85;
}

@media (min-width: 880px) {
  .nc-illu svg {
    width: 68px;
    height: 68px;
  }
}
/* Gallery — collage justificado por filas + visor tipo historias (IG) */
.gal {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gal .grow {
  display: flex;
  gap: 8px;
}

.gal .cell {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  background: var(--beige);
  cursor: pointer;
  border-radius: 3px;
}

.gal .cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gal .cell:hover img {
  transform: scale(1.05);
}

.story {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: #0e0f0a;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
}

.story.on {
  opacity: 1;
  pointer-events: auto;
}

.story-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  will-change: transform;
}

@media (min-width: 880px) {
  .story-img {
    width: auto;
    height: 100%;
    max-width: 480px;
  }
  .story {
    background: #0e0f0a;
  }
}
.story-bars {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  gap: 4px;
  padding: 11px 12px 11px;
}

.story-bars .bar {
  flex: 1;
  height: 2.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.32);
  overflow: hidden;
}

.story-bars .bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  border-radius: 2px;
}

.story-head {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 11px;
  padding: 0 14px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.story-ava {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sage), var(--sage-deep));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.story-ava span {
  font-family: var(--display);
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.02em;
}

.story-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  color: #fff;
}

.story-meta b {
  font-family: var(--label);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.story-meta span {
  font-family: var(--label);
  font-size: 11px;
  opacity: 0.82;
}

.story-x {
  width: 34px;
  height: 34px;
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.burst {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
}

.burst svg {
  width: 110px;
  height: 110px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.4));
  transform: scale(0.4);
}

.burst.go {
  animation: burst 0.65s ease forwards;
}

@keyframes burst {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  25% {
    opacity: 1;
  }
  45% {
    transform: scale(1.05);
  }
  70% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.1);
  }
}
.burst.go svg {
  animation: burstHeart 0.65s ease forwards;
}

@keyframes burstHeart {
  0% {
    transform: scale(0.4);
  }
  45% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
.story-actions {
  position: absolute;
  right: 14px;
  bottom: calc(34px + env(safe-area-inset-bottom, 0px));
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.story-actions .act {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.2s;
}

.story-actions .act svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  transition: transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.story-actions .act:active {
  transform: scale(0.9);
}

.story-actions .act.like.on {
  color: #ED4956;
}

.story-actions .act.like.on svg {
  animation: likepop 0.4s ease;
}

@keyframes likepop {
  0% {
    transform: scale(0.7);
  }
  55% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}
.story-actions .act-n {
  font-family: var(--label);
  font-size: 12px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.story-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: 48px 76px calc(20px + env(safe-area-inset-bottom, 0px)) 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
  color: #fff;
  pointer-events: none;
  transition: padding-top 0.25s ease, background 0.25s ease;
}

.story-caption.is-collapsible {
  pointer-events: auto;
  cursor: pointer;
}

.story-caption__title {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 4px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.story-caption__desc {
  font-family: var(--label);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  opacity: 0.92;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Botón "Ver más / Ver menos": solo visible cuando el texto desborda. */
.story-caption__more {
  display: none;
  margin-top: 6px;
  padding: 0;
  font-family: var(--label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  opacity: 0.85;
  background: none;
  border: 0;
  cursor: pointer;
  pointer-events: auto;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.story-caption.is-collapsible .story-caption__more {
  display: inline-block;
}

/* Estado expandido: muestra todo el texto, con scroll si es muy largo. */
.story-caption.expanded {
  padding-top: 80px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 55%, rgba(0, 0, 0, 0));
}

.story-caption.expanded .story-caption__inner {
  max-height: 46vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.story-caption.expanded .story-caption__desc {
  display: block;
  -webkit-line-clamp: none;
  overflow: visible;
}

@media (min-width: 880px) {
  .story-caption {
    left: 50%;
    right: auto;
    width: 480px;
    transform: translateX(-50%);
  }
}
/* TODO: funcionalidad de likes pendiente — ocultar hasta implementar */
.story-actions {
  display: none;
}

/* Cover Flow (gallery type) */
.gallery__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 30px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.gallery__slide {
  flex: 0 0 64%;
  scroll-snap-align: center;
}

.gallery__slide img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--beige);
}

.gallery__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
  padding: 0 30px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.gallery__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background 0.3s, width 0.3s;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.gallery__dot.is-active {
  background: var(--sage-deep);
  width: 20px;
  border-radius: 4px;
}

.gallery__cf-wrap {
  position: relative;
}

.gallery__cf-prev, .gallery__cf-next {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.gallery__cf-prev:hover, .gallery__cf-next:hover {
  background: #fff;
}

.gallery__cf-prev svg, .gallery__cf-next svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.gallery__cf-prev {
  left: 8px;
}

.gallery__cf-next {
  right: 8px;
}

@media (min-width: 768px) {
  .gallery__track {
    padding-left: max(40px, 50% - 320px);
    padding-right: max(40px, 50% - 320px);
  }
  .gallery__slide {
    flex-basis: 300px;
  }
  .gallery__cf-prev, .gallery__cf-next {
    display: flex;
  }
  .gallery__track {
    cursor: grab;
  }
  .gallery__track.is-dragging {
    cursor: grabbing;
  }
}
/* Masonry grid + lightbox (gallery type) */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
}

@media (min-width: 480px) {
  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 768px) {
  .gallery__grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    padding: 5px;
  }
}
.gallery__grid-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: zoom-in;
}

.gallery__grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery__grid-item:hover img {
  transform: scale(1.06);
}

.gallery__grid-item--featured {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.glb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  background: rgba(10, 12, 10, 0.97);
  flex-direction: column;
}

.glb.is-open {
  display: flex;
}

.glb__bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}

.glb__counter {
  font-family: var(--label);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.5);
}

.glb__close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.glb__close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.glb__close svg {
  height: 18px;
  width: 18px;
  stroke-width: 2;
}

.glb__stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glb__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.2s;
  user-select: none;
  -webkit-user-drag: none;
}

.glb__prev, .glb__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.glb__prev {
  left: 14px;
}

.glb__next {
  right: 14px;
}

.glb__prev:hover, .glb__next:hover {
  background: rgba(255, 255, 255, 0.15);
}

.glb__prev svg, .glb__next svg {
  height: 20px;
  width: 20px;
  stroke-width: 1.8;
}

.glb__dots {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  overflow-x: auto;
  scrollbar-width: none;
}

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

.glb__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  border: 0;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.2s, transform 0.2s;
}

.glb__dot.is-active {
  background: #fff;
  transform: scale(1.3);
}

/* Gifts — cuentas bancarias */
.gift {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 22px 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gift + .gift {
  margin-top: 12px;
}

.gift .g-bank {
  font-family: var(--display);
  font-size: 21px;
  color: var(--ink);
  line-height: 1.1;
}

.gift .g-owner {
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-top: 3px;
}

.gift .g-divider {
  height: 1px;
  background: var(--line);
  margin: 16px 0 14px;
}

.gift .g-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gift .g-field + .g-field {
  margin-top: 14px;
}

.gift .g-label {
  font-family: var(--label);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-mid);
}

.gift .g-num {
  font-family: var(--label);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink);
  flex: 1;
  min-width: 0;
  word-break: break-all;
}

.gift .g-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gift .copy {
  flex: 0 0 auto;
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.gift .copy:hover {
  background: var(--sage-deep);
  color: var(--ivory);
  border-color: var(--sage-deep);
}

.gift .copy.done {
  background: var(--sage-deep);
  color: var(--ivory);
  border-color: var(--sage-deep);
}

.registry-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  text-align: left;
  text-decoration: none;
  background: var(--sage-deep);
  color: var(--ivory);
  border-radius: 8px;
  padding: 26px 24px;
  box-shadow: 0 22px 48px -22px rgba(40, 48, 32, 0.85);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.4s;
}

.registry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(247, 243, 234, 0.16);
  border-radius: 8px;
  pointer-events: none;
}

.registry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -22px rgba(40, 48, 32, 0.95);
}

.registry-card .reg-ic {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ivory);
  border: 1px solid rgba(247, 243, 234, 0.3);
  background: rgba(247, 243, 234, 0.06);
}

.registry-card .reg-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.registry-card .reg-eyebrow {
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.62);
}

.registry-card .reg-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.05;
  color: var(--ivory);
}

.registry-card .reg-text {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(247, 243, 234, 0.82);
  margin-top: 2px;
}

.registry-card .reg-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  font-family: var(--label);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
}

.registry-card .reg-cta svg {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.registry-card:hover .reg-cta svg {
  transform: translateX(5px);
}

.reg-or {
  display: block;
  font-family: var(--label);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}

/* Songs — sugerir canciones: input + autocomplete + chips votables + envío + confirmación */
.songs-box {
  position: relative;
}

/* Cómo participar: dos pasos (sugerir / votar) */
.song-how {
  max-width: 440px;
  margin: 22px auto 4px;
  display: grid;
  gap: 12px;
  text-align: left;
}

.song-how__step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.song-how__num {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--sage-deep);
  color: var(--ivory);
  font-family: var(--label);
  font-size: 13px;
  line-height: 24px;
  text-align: center;
}

.song-how__step p {
  margin: 0;
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.song-how__step strong {
  display: block;
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-mid);
  margin-bottom: 2px;
}

/* Pistas de texto */
.song-hint {
  font-family: var(--body);
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 8px;
}

.song-vote-hint {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--sage-mid);
  text-align: center;
  margin-top: 28px;
}

.song-vote-hint + .song-block {
  margin-top: 14px;
}

.song-sendnote {
  font-family: var(--body);
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 10px;
}

/* Formulario (input + botón añadir) */
.song-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  justify-content: center;
}

.song-ac {
  position: relative;
  flex: 1;
}

.input {
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 14px 15px;
  outline: none;
  transition: border 0.25s;
}

.input:focus {
  border-color: var(--sage-mid);
}

.input::placeholder {
  color: #9a9c8f;
}

.input.is-error {
  border-color: #b3543f;
}

.song-add {
  padding: 0 22px;
}

/* Autocomplete: lista desplegable bajo el input */
.song-ac__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: 0 18px 34px -16px rgba(56, 64, 56, 0.45);
  max-height: 232px;
  overflow-y: auto;
  padding: 5px;
}

.song-ac__list[hidden] {
  display: none;
}

.song-ac__item {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 4px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.15s;
}

.song-ac__item:hover {
  background: rgba(86, 101, 78, 0.08);
}

/* Mensaje de error de formato */
.song-error {
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #b3543f;
  text-align: center;
  margin-top: 8px;
}

.song-error[hidden] {
  display: none;
}

/* Chips genéricos */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.chip {
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: 0.04em;
  background: rgba(86, 101, 78, 0.08);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: pop 0.4s ease;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.chip .mus {
  color: var(--sage-mid);
}

/* Chips agregados por el invitado (con ✕ para quitar) */
.song-mine {
  margin-top: 14px;
}

.song-mine:empty {
  display: none;
}

.chip-mine {
  background: rgba(86, 101, 78, 0.14);
  border-color: var(--line-strong);
}

.chip-x {
  font-style: normal;
  font-size: 15px;
  line-height: 1;
  color: var(--sage-deep);
  cursor: pointer;
  padding: 0 2px;
  margin-left: 2px;
  transition: color 0.15s;
}

.chip-x:hover {
  color: var(--ink);
}

/* Bloques votables ("Más votadas", "Otras sugerencias") */
.song-block {
  margin-top: 30px;
}

.song-block__title {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage-mid);
}

.chip-vote {
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.chip-vote:hover {
  background: rgba(86, 101, 78, 0.16);
}

.chip-vote.is-selected {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: var(--ivory);
}

.chip-vote.is-selected .mus {
  color: var(--ivory);
}

.chip-count {
  font-variant-numeric: tabular-nums;
  background: rgba(86, 101, 78, 0.16);
  border-radius: 999px;
  min-width: 18px;
  padding: 1px 6px;
  text-align: center;
  font-size: 11px;
}

.chip-vote.is-selected .chip-count {
  background: rgba(247, 243, 234, 0.25);
}

/* Botón enviar */
.song-send {
  display: block;
  margin: 30px auto 0;
}

.song-send:disabled {
  opacity: 0.45;
  pointer-events: none;
  box-shadow: none;
}

/* Confirmación tras enviar: oculta el formulario y muestra la tarjeta */
.songs-box.is-confirmed > :not(.song-confirm) {
  display: none;
}

.song-confirm {
  text-align: center;
  padding: 8px 0;
  animation: pop 0.45s ease;
}

.song-confirm__icon {
  color: var(--sage-deep);
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.song-confirm__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
  color: var(--ink);
}

.song-confirm__sub {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-mid);
  margin-top: 10px;
}

.song-confirm__list {
  list-style: none;
  padding: 0;
  margin: 14px auto 0;
  max-width: 300px;
}

.song-confirm__list li {
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.song-confirm__list li:last-child {
  border-bottom: 0;
}

.song-confirm__msg {
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-top: 18px;
}

.song-confirm__more {
  margin-top: 22px;
}

/* Buenos deseos — muro de mensajes + formulario inline (theme moderna) */
.goodwishes .gw-wall {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gw-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px 20px;
  text-align: left;
}

.gw-card blockquote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
}

.gw-card figcaption {
  margin-top: 10px;
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-mid);
}

.gw-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.gw-input {
  resize: vertical;
  min-height: 96px;
}

.gw-form .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* RSVP — card, estado confirmado, QR y modal de acompañantes */
.rsvp-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 40px 28px;
  text-align: center;
  box-shadow: 0 24px 60px -36px rgba(56, 64, 56, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-inline: auto;
}

.rsvp-card > * {
  width: 100%;
}

.rsvp-card .guest-eye {
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage-mid);
}

.rsvp-card .guest-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 34px;
  margin: 10px 0 2px;
  color: var(--ink);
}

.passes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 24px auto 8px;
  padding: 22px 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  width: auto;
}

.passes b {
  font-family: var(--cormorant-italic);
  font-weight: 300;
  font-size: 64px;
  line-height: 0.9;
  color: var(--sage-deep);
  letter-spacing: 0;
}

.passes span {
  font-family: var(--label);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.confirmed {
  text-align: center;
}

.confirmed .check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sage-deep);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 30px;
  animation: pop 0.5s ease;
}

.qr-wrap {
  display: inline-block;
  padding: 18px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 16px 40px -20px rgba(56, 64, 56, 0.5);
  width: auto;
  margin: 22px auto 8px;
}

.qr-wrap img, .qr-wrap canvas {
  display: block;
  width: 188px;
  height: 188px;
  image-rendering: pixelated;
}

.qr-label {
  font-family: var(--label);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 14px;
}

.qr-code {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--ink);
  margin-top: 4px;
}

.attend-list {
  list-style: none;
  margin: 16px 0 0;
}

.attend-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  padding: 5px 0;
  color: var(--ink);
}

.attend-list li .tick {
  color: var(--sage-mid);
}

.attend-list li.no {
  color: #b6b2a6;
  text-decoration: line-through;
}

.modal-back {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(34, 40, 30, 0.5);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-back.on {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: relative;
  width: 100%;
  max-width: var(--col);
  background: var(--ivory);
  border-radius: 20px 20px 0 0;
  padding: 14px 26px 30px;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-height: 90vh;
  overflow: auto;
}

.modal-back.on .modal {
  transform: none;
}

.modal-x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  opacity: 0.55;
  transition: opacity 0.2s;
}

.modal-x:hover {
  opacity: 1;
}

.modal .grab {
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: var(--line-strong);
  margin: 0 auto 18px;
}

.modal h3 {
  font-size: 27px;
  text-align: center;
}

.modal .m-sub {
  text-align: center;
  color: var(--ink-soft);
  font-size: 15.5px;
  margin: 6px 0 20px;
  line-height: 1.5;
}

.person {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  margin-bottom: 10px;
  text-align: left;
  transition: border 0.25s, background 0.25s;
}

.person.on {
  border-color: var(--sage-mid);
  background: rgba(86, 101, 78, 0.05);
}

.person .pname {
  flex: 1;
  font-family: var(--display);
  font-size: 20px;
  color: var(--ink);
}

.person .ptag {
  font-family: var(--label);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-mid);
  display: block;
  margin-top: 1px;
}

.check-toggle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: transparent;
  transition: all 0.25s;
}

.person.on .check-toggle {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: var(--ivory);
}

/* Closing (te esperamos) + footer */
.closing {
  position: relative;
  overflow: hidden;
  height: 88svh;
  min-height: 520px;
  color: #fff;
  display: flex;
  align-items: flex-end;
}

.closing .bg {
  position: absolute;
  inset: 0;
}

.closing .bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
}

.closing .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 36, 26, 0.15) 0%, rgba(28, 34, 24, 0.2) 50%, rgba(26, 32, 22, 0.82) 100%);
}

.closing .c-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding: 0 30px 116px;
}

.closing .c-names {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(48px, 16vw, 76px);
  line-height: 0.95;
}

.footer {
  background: #2f352c;
  color: rgba(247, 243, 234, 0.7);
  text-align: center;
  padding: 48px 30px 120px;
}

.footer .f-mono {
  margin: 0 auto 18px;
  border-color: rgba(255, 255, 255, 0.2);
}

.footer .f-mono span {
  color: var(--ivory);
}

.footer .f-line {
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
  color: var(--ivory);
}

.footer .f-meta {
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 22px;
  opacity: 0.6;
}

.footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer .brand b {
  font-family: var(--label);
  font-weight: 500;
  letter-spacing: 0.32em;
  font-size: 11px;
  color: var(--ivory);
}

.footer .brand .by {
  font-family: var(--label);
  font-size: 9px;
  letter-spacing: 0.22em;
  opacity: 0.6;
  text-transform: uppercase;
}

.story-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
}

.story-entry {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.story-entry__num {
  font-size: 32px;
  color: var(--sage-mid);
  line-height: 1;
  opacity: 0.6;
}
.story-entry__photo {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.story-entry__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.story-entry__photo:hover img {
  transform: scale(1.02);
}
.story-entry__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.story-entry__titulo {
  font-family: var(--display);
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
}
.story-entry__subtitulo {
  font-family: var(--body);
  font-size: 15px;
  font-style: italic;
  color: var(--sage-mid);
  line-height: 1.5;
}
.story-entry__descripcion {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.75;
}

@media (min-width: 880px) {
  .story-entry {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }
  .story-entry__num {
    flex: 0 0 auto;
    font-size: 48px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    align-self: flex-start;
    margin-top: 4px;
  }
  .story-entry__photo {
    flex: 1 1 0;
    min-width: 0;
  }
  .story-entry__copy {
    flex: 1 1 0;
    min-width: 0;
  }
  .story-entry--alt {
    flex-direction: row-reverse;
  }
}