:root {
  --bg: #efe6d6;
  --sand: #c4a574;
  --sand-deep: #b39463;
  --sand-ink: #9a7d52;
  --paper: #fbf6ee;
  --ink: #4a4540;
  --muted: #6f6860;
  --gold: #c4a574;
  --serif: "Cinzel", "Cormorant Garamond", serif;
  --serif-soft: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", "Outfit", "Segoe UI", sans-serif;
  --shadow: 0 16px 38px rgba(110, 88, 52, 0.16);
  --shadow-soft: 0 10px 26px rgba(110, 88, 52, 0.12);
  --radius: 24px;
  --gap: 22px;
  --paper-tex: url("../assets/textures/1.jpg");
  --paper-tex-size: 460px auto;
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.05'/%3E%3C/svg%3E");

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-open {
  overflow: auto;
}

[hidden] {
  display: none !important;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* ============ CARTA CERRADA ============ */
.letter {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #c4a574;
  overflow: hidden;
  perspective: 1600px;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.letter.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.letter__body {
  position: absolute;
  inset: 0;
  background-color: #b39e7d;
  background-image: var(--noise);
  background-size: 240px 240px;
}

.letter__body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 20%, rgba(255, 255, 255, 0.14), transparent 60%);
}

.letter__flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 56%;
  transform-origin: top center;
  transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(0.4, 0.05, 0.2, 1);
  z-index: 2;
  filter: drop-shadow(0 16px 24px rgba(90, 64, 32, 0.28));
}

.letter.is-opening .letter__flap {
  transform: rotateX(172deg);
}

.letter__flap-face,
.letter__flap-back {
  position: absolute;
  inset: 0;
  clip-path: polygon(
    0 0,
    100% 0,
    57% 86%,
    54.6% 91.2%,
    52.9% 94.6%,
    51.6% 97%,
    50.7% 98.5%,
    50% 99.4%,
    49.3% 98.5%,
    48.4% 97%,
    47.1% 94.6%,
    45.4% 91.2%,
    43% 86%
  );
  backface-visibility: hidden;
}

.letter__flap-face {
  background-color: #d4bc93;
  background-image: var(--noise), linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.06));
  background-size: 240px 240px, auto;
  overflow: hidden;
}

.letter__flap-back {
  background: #eee4d4;
  transform: rotateX(180deg);
}

.letter__logo {
  position: absolute;
  top: 9%;
  left: 50%;
  transform: translateX(-50%);
  width: min(52%, 245px);
  pointer-events: none;
  filter: drop-shadow(0 3px 8px rgba(70, 48, 24, 0.28));
}

.letter__seal {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -52%);
  width: 132px;
  height: 132px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  z-index: 5;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-drag: none;
  filter: drop-shadow(0 10px 16px rgba(70, 38, 20, 0.42));
  transition:
    transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.5s ease,
    filter 0.5s ease;
}

.letter__seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-drag: none;
}

.letter__seal:hover,
.letter__seal:focus-visible {
  transform: translate(-50%, -52%) scale(1.06);
}

.letter__seal:active,
.letter__seal:focus {
  background: transparent;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.letter.is-unsealing .letter__seal,
.letter.is-opening .letter__seal,
.letter.is-unsealing .letter__seal:hover,
.letter.is-opening .letter__seal:hover,
.letter.is-unsealing .letter__seal:focus-visible,
.letter.is-opening .letter__seal:focus-visible {
  transform: translate(-50%, -52%) scale(1.45);
  opacity: 0;
  filter: drop-shadow(0 22px 28px rgba(70, 38, 20, 0.18));
  pointer-events: none;
}

.letter.is-unsealing .letter__hint {
  animation: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.letter__hint {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.95);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
  width: min(86%, 320px);
  z-index: 6;
  pointer-events: none;
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ============ LAYOUT ============ */
.site {
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.is-open .site {
  opacity: 1;
}

.wrap {
  width: min(500px, 92vw);
  margin: 0 auto;
  padding: 0 0 72px;
  overflow: visible;
}

.leaf {
  position: absolute;
  width: 168px;
  pointer-events: none;
  opacity: 0.52;
  z-index: 0;
  mix-blend-mode: multiply;
}

.leaf--light {
  opacity: 0.2;
  filter: brightness(0) invert(1);
  mix-blend-mode: normal;
}

/* Superficies base */
.sheet {
  position: relative;
  width: 100%;
  background-color: var(--paper);
  background-image: linear-gradient(rgb(255 255 255 / 60%), rgb(255 255 255 / 60%)), var(--paper-tex), var(--paper-grain);
  background-size: 100% 100%, var(--paper-tex-size), 200px 200px;
  background-repeat: no-repeat, repeat, repeat;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 26px;
  margin-bottom: var(--gap);
  z-index: 1;
}

.sand-card {
  position: relative;
  width: 100%;
  color: #fff;
  background-color: var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: var(--gap);
  z-index: 1;
}

.sand-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: 220px 220px;
  opacity: 0.3;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 0;
}

.sand-card > * {
  position: relative;
  z-index: 1;
}

.sand-card > .leaf {
  z-index: 0;
}

.arch {
  border-radius: 190px 190px var(--radius) var(--radius);
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sand-ink);
}

/* ============ BIENVENIDA ============ */
.welcome {
  position: relative;
  padding-top: 6px;
  margin-bottom: 0;
  overflow: visible;
}

.welcome__frame {
  position: relative;
  width: 108%;
  margin-left: -4%;
  z-index: 1;
  overflow: visible;
  container-type: inline-size;
  container-name: welcome-frame;
}

.welcome__ornament {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 16px 30px rgba(110, 88, 52, 0.16));
}

.welcome__inner {
  position: absolute;
  /*inset: 29% 28% 29% 28%;*/
  inset: 25% 28% 29% 28%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  pointer-events: none;
}

.welcome__text {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
}

.welcome__text p {
  font-family: var(--serif-soft);
  font-size: clamp(13px, 3.5vw, 17px);
  font-size: clamp(13px, 5.4cqi, 17px);
  line-height: 1.35;
  color: #5d5a53;
  margin-bottom: 6px;
  max-width: 100%;
}

.welcome__text p:last-child {
  margin-bottom: 0;
}

.welcome__sign {
  position: static;
  align-self: flex-end;
  z-index: 2;
  width: max-content;
  max-width: 100%;
  margin: auto 0 0 auto;
  padding: 0;
  flex: 0 0 auto;
  text-align: right;
  line-height: 1.2;
  font-family: var(--serif-soft);
  color: #4a4844;
}

.welcome__close {
  display: block;
  font-style: italic;
  font-size: clamp(12px, 3.3vw, 14px);
  font-size: clamp(12px, 4.2cqi, 14px);
  color: #6a655c;
  margin: 0 0 4px;
}

.welcome__sign strong {
  display: block;
  font-family: var(--serif-soft);
  font-size: clamp(15px, 4.2vw, 20px);
  font-size: clamp(15px, 5.8cqi, 20px);
  font-weight: 600;
  margin-top: 0;
  color: #4a4844;
  white-space: nowrap;
}

.badge-guests {
  position: relative;
  z-index: 3;
  margin: -28px 10px 0 auto;
  width: min(230px, 76%);
  border: 1px solid #c3a478;
  background-color: var(--paper);
  background-image: linear-gradient(rgb(195 164 120 / 60%), rgb(195 164 120 / 60%)), var(--paper-tex), var(--paper-grain);
  background-size: 100% 100%, var(--paper-tex-size), 200px 200px;
  background-repeat: no-repeat, repeat, repeat;
  color: #2a2a28;
  border-radius: 22px;
  text-align: center;
  padding: 16px 18px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.6;
  box-shadow: var(--shadow-soft);
}

.badge-guests--card {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(90, 70, 40, 0.12),
    0 1px 2px rgba(80, 60, 35, 0.18),
    0 8px 10px -6px rgba(80, 60, 35, 0.28),
    0 18px 28px -8px rgba(80, 60, 35, 0.32),
    0 36px 40px -16px rgba(80, 60, 35, 0.22);
}

.badge-guests--blink span {
  animation: badge-letter-blink 1.7s ease-in-out infinite;
}

@keyframes badge-letter-blink {
  0%,
  100% {
    opacity: 1;
    text-shadow: none;
  }
  50% {
    opacity: 0.28;
    text-shadow: 0 0 10px rgba(42, 42, 40, 0.18);
  }
}

.badge-guests hr {
  border: 0;
  border-top: 1px solid rgba(196, 165, 116, 0.55);
  margin: 9px 20px;
}

/* ============ MÚSICA ============ */
.player {
  text-align: center;
  padding: 46px 12px 30px;
}

.player p {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: #a89880;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.player__bar {
  height: 3px;
  background: #e8dcc8;
  border-radius: 99px;
  margin: 0 6px 16px;
}

.player__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--sand);
  border-radius: 99px;
  position: relative;
}

.player__bar span::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sand);
  transform: translateY(-50%);
}

.player__controls {
  display: flex;
  justify-content: center;
  gap: 34px;
  align-items: center;
}

.player__controls button {
  background: none;
  border: 0;
  color: var(--sand);
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
}

/* ============ INVITACIÓN ============ */
.invite {
  border-radius: 6px 6px 0 0;
  padding: 50px 28px 76px;
  margin-bottom: 0;
  text-align: center;
  overflow: visible;
  z-index: 4;
}

.invite .leaf--invite {
  top: 0px;
  right: 0px;
  width: 210px;
  opacity: 0.62;
}

.quote {
  font-family: var(--serif-soft);
  font-style: italic;
  font-size: 16px;
  line-height: 1.75;
  color: #ffffff;
  margin-bottom: 30px;
}

.quote strong {
  font-weight: 600;
}

.quote cite {
  display: block;
  font-size: 14px;
  margin-top: 4px;
}

.invite__kicker {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 2;
  margin-bottom: 22px;
}

.names {
  font-family: var(--serif-soft);
  font-size: clamp(38px, 10.5vw, 52px);
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.16em;
  line-height: 1.1;
}

.names .amp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 24px;
  margin: 10px 0;
  color: #ffffff;
}

.names .amp::before,
.names .amp::after {
  content: "";
  width: 74px;
  height: 1px;
  background: #ffffff;
}

.invite__date {
  margin-top: 26px;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 2.1;
}

.invite__date strong {
  font-weight: 700;
  color: #c2a47b;
}

.wax-join {
  position: absolute;
  left: 50%;
  bottom: -38px;
  transform: translateX(-50%);
  width: 78px;
  z-index: 4;
  filter: drop-shadow(0 8px 10px rgba(80, 42, 22, 0.32));
}

/* ============ PADRES ============ */
.family {
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 56px 26px 42px;
  text-align: center;
  margin-bottom: 40px;
}

.family__blessing {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.family h3 {
  font-size: 10.5px;
  letter-spacing: 0.24em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.family p {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.7;
  margin-bottom: 26px;
  font-weight: 300;
}

.family p:last-child {
  margin-bottom: 0;
}

/* ============ LUGARES ============ */
.place {
  text-align: center;
  padding: 42px 26px 36px;
}

.place h2 {
  font-family: var(--serif);
  font-size: clamp(20px, 5.4vw, 26px);
  font-weight: 400;
  letter-spacing: 0.14em;
  color: #c4b89a;
  line-height: 1.35;
  margin-bottom: 18px;
}

.ceremony-illu {
  width: min(220px, 72%);
  margin: 0 auto 22px 24%;
  mix-blend-mode: multiply;
}

.place .venue {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.8;
  color: #55524c;
}

.place .addr {
  font-size: 13px;
  line-height: 1.7;
  color: #6f6b64;
  margin-top: 4px;
}

.place .time {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  margin: 8px 0 20px;
}

.place .note {
  font-size: 11.5px;
  line-height: 1.7;
  color: #8b877d;
  margin-top: 20px;
}

.place--party {
  overflow: hidden;
  margin-bottom: 40px;
}

.place--party .leaf--party {
  top: -18px;
  right: 0;
  width: 150px;
  opacity: 0.5;
}

.btn-ghost {
  display: inline-block;
  border: 1px solid #b9b6a4;
  color: #6b6862;
  text-decoration: none;
  padding: 11px 32px;
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-ghost:hover {
  background: var(--sand);
  border-color: var(--sand);
  color: #fff;
}

/* ============ CUENTA REGRESIVA ============ */
.countdown {
  padding: 78px 20px 48px;
  text-align: center;
  margin-bottom: 40px;
}

.countdown.sand-card::before {
  opacity: 0.12;
}

.countdown .leaf--count {
  top: 48px;
  right: -70px;
  width: 240px;
  opacity: 0.18;
}

.countdown h2 {
  font-family: var(--serif);
  font-size: clamp(25px, 7vw, 36px);
  font-weight: 400;
  letter-spacing: 0.16em;
}

.countdown .sub {
  font-size: 10.5px;
  letter-spacing: 0.28em;
  margin: 12px 0 28px;
}

.timer {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  max-width: 330px;
  margin: 0 auto;
}

.timer strong {
  display: block;
  font-family: var(--serif-soft);
  font-size: clamp(26px, 8vw, 34px);
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
}

.timer span {
  display: block;
  font-size: 8.5px;
  letter-spacing: 0.2em;
  margin-top: 12px;
}

.timer .sep {
  font-family: var(--serif-soft);
  font-size: clamp(22px, 6vw, 30px);
  font-style: normal;
  padding: 0 2px;
  opacity: 0.9;
}

/* ============ ITINERARIO ============ */
.itinerary {
  padding: 36px 22px 40px;
  text-align: center;
  margin-bottom: 40px;
}

.itinerary h2 {
  font-family: var(--serif);
  letter-spacing: 0.34em;
  font-weight: 400;
  font-size: clamp(19px, 5vw, 24px);
  margin-bottom: 22px;
}

.timeline {
  list-style: none;
  position: relative;
  max-width: 320px;
  margin: 0 auto;
  padding: 4px 0 4px 0;
  text-align: left;
}

.timeline::before {
  display: none;
}

.timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 35px;
  top: calc(50% + 31px);
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.55);
  z-index: 0;
  pointer-events: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
  position: relative;
  padding: 12px 0;
}

.timeline li:not(:last-child) {
  border: 0;
}

.timeline img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  justify-self: center;
  filter: brightness(0) invert(1);
  position: relative;
  z-index: 2;
}

.timeline__name {
  font-family: var(--serif-soft);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.timeline__time {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.92;
}

/* ============ FOTO CAMPANARIO (opciones) ============ */
.photo-polaroid {
  margin: 8px auto 28px;
  padding: 6px 22px 10px;
  border: 0;
}

.photo-polaroid__card {
  background-color: #fffaf2;
  background-size: var(--paper-tex-size), 200px 200px;
  padding: 12px 12px 46px;
  box-shadow: var(--shadow);
  transform: rotate(0deg);
}

.photo-polaroid img,
.photo-round img {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.photo-round {
  margin: 0 0 var(--gap);
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #d7c3a3;
}

/* ============ DETALLES ============ */
.details {
  padding: 100px 26px 80px 62px;
  overflow: hidden;
  margin-bottom: 0;
}

.details__title {
  position: absolute;
  left: 14px;
  top: 50%;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  font-family: var(--serif);
  letter-spacing: 0.34em;
  color: #cfcdbd;
  font-size: 26px;
  z-index: 1;
}

.details h3 {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  font-weight: 700;
  text-transform: uppercase;
  color: #4a4844;
  margin-bottom: 6px;
}

.details p {
  font-size: 13px;
  line-height: 1.65;
  color: #6f6b64;
}

.details .elegant {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.details .block {
  margin-top: 30px;
}

.dress {
  display: flex;
  justify-content: center;
  margin: 4px 18px 0px 0px;
}

.dress img {
  width: min(240px, 88%);
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.details .leaf--details {
  bottom: -28px;
  left: -48px;
  width: 220px;
  opacity: 0.48;
}

/* ============ SÓLO ADULTOS ============ */
.adults {
  width: min(82%, 320px);
  margin: -18px 0 var(--gap) auto;
  padding: 78px 24px 28px;
  text-align: center;
  z-index: 4;
  overflow: visible;
}

.adults > .adults__stamp {
  position: absolute;
  top: -46px;
  left: 50%;
  z-index: 5;
  width: 122px;
  height: 122px;
  margin: 0;
  display: grid;
  place-content: center;
  place-items: center;
  gap: 2px;
  border-radius: 47% 53% 49% 51% / 52% 46% 54% 48%;
  background:
    radial-gradient(circle at 34% 28%, #f0d2b8 0%, #c98b64 46%, #8d5334 100%);
  box-shadow:
    0 12px 22px rgba(90, 48, 24, 0.32),
    inset 0 0 0 6px rgba(247, 232, 214, 0.22),
    inset 0 0 0 8px rgba(90, 42, 22, 0.28);
  color: #ffffff;
  transform: translateX(-50%) rotate(-8deg);
  pointer-events: none;
}

.adults__stamp::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: inherit;
  border: 1px dashed rgba(247, 232, 214, 0.45);
  pointer-events: none;
}

.adults__stamp-dot {
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.22em;
  opacity: 0.9;
}

.adults__stamp-label,
.adults__stamp-title {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
}

.adults__stamp-label {
  font-size: 12px;
  letter-spacing: 0.38em;
}

.adults__stamp-title {
  font-size: 14px;
  letter-spacing: 0.16em;
}

.adults h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.adults__icon {
  width: 68px;
  height: 44px;
  margin: 0 auto 14px;
  filter: brightness(0) invert(1);
}

.adults p {
  font-size: 12px;
  line-height: 1.7;
  font-weight: 300;
}

/* ============ UNPLUGGED ============ */
.unplugged {
  padding: 92px 30px 46px;
  text-align: center;
  margin-bottom: 0;
}

.unplugged h2 {
  font-family: var(--serif);
  color: var(--gold);
  font-size: clamp(16px, 4.6vw, 22px);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.35;
  margin-bottom: 16px;
}

.unplugged p {
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 2;
  color: #a89474;
  text-transform: uppercase;
}

/* ============ RSVP ============ */
.rsvp {
  display: grid;
  place-items: center;
  margin: -26px 0 -20px;
  position: relative;
  z-index: 5;
}

.rsvp__circle {
  width: min(310px, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 34px;
}

.rsvp h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 6.8vw, 38px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
}

.rsvp p {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  line-height: 1.9;
  margin: 14px 0 22px;
  text-transform: uppercase;
}

.btn-solid {
  background: #fff;
  color: #6b6862;
  border: 0;
  border-radius: 999px;
  padding: 13px 30px;
  letter-spacing: 0.24em;
  font-size: 10.5px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(60, 60, 40, 0.12);
}

/* ============ REGALOS ============ */
.gifts {
  padding: 82px 26px 40px;
  text-align: center;
  overflow: hidden;
}

.gifts h2 {
  font-family: var(--serif);
  color: var(--gold);
  font-size: clamp(24px, 6.4vw, 30px);
  font-weight: 400;
  letter-spacing: 0.3em;
  margin-bottom: 16px;
}

.gifts > p {
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 2;
  color: #a89474;
  text-transform: uppercase;
}

.mesas {
  list-style: none;
  margin: 24px auto 0;
  max-width: 320px;
  text-align: left;
}

.mesas li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eae5d8;
  padding: 11px 0;
  font-size: 13px;
  color: #55524c;
}

.mesas a {
  font-style: normal;
  letter-spacing: 0.1em;
  color: var(--sand-ink);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.mesas a:hover,
.mesas a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gifts .eyebrow {
  display: block;
  margin: 26px 0 12px;
}

.iban {
  margin-top: 16px;
  font-size: 13px;
  color: #55524c;
}

.iban .clabe {
  font-family: ui-monospace, "Courier New", monospace;
  letter-spacing: 0.1em;
  margin: 10px 0;
  font-size: 15px;
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: center;
  padding: 0;
}

.iban .btn-solid {
  box-shadow: none;
  border: 1px solid #ddd8c8;
}

.gifts .leaf--gifts {
  bottom: -10px;
  right: 0px;
  width: 200px;
  opacity: 0.40;
}

/* ============ FAQ ============ */
.faq {
  padding: 38px 26px;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.faq ::selection {
  background: transparent;
}

.faq-toggle {
  width: 100%;
  cursor: pointer;
  font-size: 14px;
  color: #55524c;
  background: none;
  border: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}

.faq-toggle:focus,
.faq-toggle:active,
.faq-toggle:focus-visible {
  outline: none;
  background: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.faq h2 {
  font-family: var(--serif);
  text-align: center;
  color: #c4b89a;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}

.faq-item {
  border-bottom: 1px solid #eae5d8;
  padding: 13px 0;
}

.faq-toggle::after {
  content: "+";
  color: var(--sand);
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
  transition: transform 0.32s ease;
}

.faq-item.is-open .faq-toggle::after {
  transform: rotate(45deg);
}

.faq-panel {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    height 0.38s ease,
    opacity 0.32s ease,
    transform 0.32s ease;
}

.faq-item.is-open .faq-panel {
  opacity: 1;
  transform: none;
}

.faq-panel__inner {
  overflow: hidden;
}

.faq p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* ============ PIE ============ */
.footer {
  text-align: center;
  padding: 34px 0 0;
}

.footer__logo {
  width: min(210px, 64%);
  margin: 0 auto 10px;
}

.footer a {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

/* ============ MODAL RSVP ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(46, 44, 38, 0.5);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
}

.modal.is-on {
  opacity: 1;
  visibility: visible;
}

.modal__box {
  width: min(400px, 100%);
  background: var(--paper);
  border-radius: 24px;
  padding: 30px 24px;
  max-height: 90vh;
  overflow: auto;
}

.modal h2 {
  font-family: var(--serif);
  text-align: center;
  letter-spacing: 0.2em;
  font-weight: 400;
  color: #a89474;
  margin-bottom: 6px;
}

.modal .family-name {
  text-align: center;
  font-family: var(--serif-soft);
  font-style: italic;
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--muted);
}

.field-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 18px 0 8px;
  color: var(--muted);
}

.modal input[type="text"],
.modal select {
  width: 100%;
  border: 1px solid #e0dacb;
  background: #fff;
  padding: 11px 13px;
  font-size: 14px;
  border-radius: 10px;
}

.campo-personas {
  overflow: hidden;
  opacity: 1;
  transform: none;
  transform-origin: top center;
  transition:
    height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s ease,
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.campo-personas.is-collapsed {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.campo-personas__inner {
  overflow: hidden;
}

.choice {
  display: grid;
  gap: 8px;
}

.choice__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e0dacb;
  background: #fff;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 14px;
  cursor: pointer;
  margin: 0;
}

.choice__opt input[type="radio"] {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--sand);
}

.choice__opt:has(input:checked) {
  border-color: var(--sand);
  background: #f7f1e6;
}

.modal .actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.modal .actions button {
  flex: 1;
  padding: 13px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.14em;
  font-size: 11px;
  text-transform: uppercase;
}

.modal .cancel {
  background: transparent;
  border: 1px solid #d8d2c2;
}

.modal .send {
  background: var(--sand);
  color: #fff;
  border: 0;
}

.thanks {
  display: none;
  text-align: center;
  padding: 16px 6px 4px;
}

.thanks.is-on {
  display: block;
}

.thanks p {
  font-family: var(--serif-soft);
  font-size: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.thanks .btn-ghost {
  margin-top: 18px;
}

/* ============ REVEAL AL SCROLL ============ */

.sheet.invite.reveal.is-in{
  background-image: linear-gradient(rgb(0 0 0 / 40%), rgb(0 0 0 / 70%)), url("../assets/puerta.jpg");
  background-size: cover;
  background-position: center;
}

.sand-card.countdown.reveal.is-in {
  background-color: #2c241c;
  background-image: linear-gradient(rgb(0 0 0 / 42%), rgb(0 0 0 / 72%)), url(../assets/preparate.jpg);
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  height: clamp(350px, 50vh, 600px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(4px);
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform, filter;
}

.reveal--zoom {
  transform: translateY(22px) scale(0.96);
}

.reveal--left {
  transform: translateX(-28px);
}

.reveal--right {
  transform: translateX(28px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal--zoom,
  .reveal--left,
  .reveal--right {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .faq-toggle::after,
  .faq-panel,
  .campo-personas,
  .badge-guests--blink span {
    transition: none;
    animation: none;
  }
}

@media (max-width: 380px) {
  .details {
    padding-left: 52px;
  }
  .adults {
    width: 84%;
  }
  .welcome__inner {
    inset: 30% 27% 30% 27%;
  }
  .welcome__text p {
    font-size: 12.5px;
    line-height: 1.32;
    margin-bottom: 4px;
  }
}

