@import url('./gate.css');
@import url('./hero.css');

@font-face {
  font-family: 'AN Eastwood';
  src: url('../../assets/font/br-eastwood.woff2') format('woff2');
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'AN Eastwood';
  src: url('../../assets/font/br-eastwood-italic.woff2') format('woff2');
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'AN Verandah';
  src: url('../../assets/font/br-verandah.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'AN Cormorant';
  src: url('../../assets/font/br-cormorant-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'AN Cormorant';
  src: url('../../assets/font/br-cormorant-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

html, body { background: var(--an-medianoche); }
body { color: var(--an-parchment); font-weight: 500; }
.kc-section, .kc-footer { text-align: center; }
.kc-section {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding-block: clamp(56px, 12vw, 96px);
}
.kc-section-title, .kc-title {
  color: var(--an-champan);
  font-family: var(--an-font-western), Georgia, serif;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 2px 10px rgba(10, 20, 48, .72);
}
.kc-title { font-size: var(--kc-text-title); }
.kc-section-title em, .kc-title em { color: var(--an-champan); font-style: italic; }
.kc-eyebrow {
  color: var(--an-cielo);
  font-size: var(--kc-text-eyebrow);
  font-weight: 500;
  letter-spacing: var(--kc-tracking-eyebrow);
  text-transform: uppercase;
}
.kc-body { color: var(--an-parchment); text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--an-champan); outline-offset: 4px; }

/* Every stop names its section, so an empty optional section cannot shift the night.
 * Each section fades its tile out at both edges, so the seams between tiles never show.
 * The night starts at the Hero exit (#0B1A43) and the watercolour tile gives the navy its life (.kc/ornaments/night-wash.py). */
#dedicatoria { --stars: 0.15; background: linear-gradient(180deg, #0B1A43 0, rgba(11, 26, 67, 0) 56px, rgba(16, 33, 78, 0) calc(100% - 56px), #10214E 100%), url('../../assets/page/noche-acuarela.webp') 0 0 / 768px repeat, linear-gradient(180deg, #0B1A43 0%, #10214E 100%); }
#counter { --stars: 0.2; background: linear-gradient(180deg, #10214E 0, rgba(16, 33, 78, 0) 56px, rgba(19, 38, 88, 0) calc(100% - 56px), #132658 100%), url('../../assets/page/noche-acuarela.webp') -210px -90px / 768px repeat, linear-gradient(180deg, #10214E 0%, #132658 100%); }
#familia { --stars: 0.25; background: linear-gradient(180deg, #132658 0, rgba(19, 38, 88, 0) 56px, rgba(20, 42, 94, 0) calc(100% - 56px), #142A5E 100%), url('../../assets/page/noche-acuarela.webp') -430px -300px / 768px repeat, linear-gradient(180deg, #132658 0%, #142A5E 100%); }
#historia { --stars: 0.25; background: linear-gradient(180deg, #142A5E 0, rgba(20, 42, 94, 0) 56px, rgba(21, 44, 98, 0) calc(100% - 56px), #152C62 100%), url('../../assets/page/noche-acuarela.webp') -120px -520px / 768px repeat, linear-gradient(180deg, #142A5E 0%, #152C62 100%); }
#ubicaciones { --stars: 0.3; background: linear-gradient(180deg, #152C62 0, rgba(21, 44, 98, 0) 56px, rgba(20, 42, 94, 0) calc(100% - 56px), #142A5E 100%), url('../../assets/page/noche-acuarela.webp') -560px -160px / 768px repeat, linear-gradient(180deg, #152C62 0%, #142A5E 100%); }
#vestimenta { --stars: 0.35; background: linear-gradient(180deg, #142A5E 0, rgba(20, 42, 94, 0) 56px, rgba(18, 38, 87, 0) calc(100% - 56px), #122657 100%), url('../../assets/page/noche-acuarela.webp') -300px -640px / 768px repeat, linear-gradient(180deg, #142A5E 0%, #122657 100%); }
.an-ride { --stars: 0.4; background: linear-gradient(180deg, #122657 0, rgba(18, 38, 87, 0) 56px, rgba(16, 34, 79, 0) calc(100% - 56px), #10224F 100%), url('../../assets/page/noche-acuarela.webp') -80px -380px / 768px repeat, linear-gradient(180deg, #122657 0%, #10224F 100%); }
#regalos { --stars: 0.5; background: linear-gradient(180deg, #10224F 0, rgba(16, 34, 79, 0) 56px, rgba(14, 29, 71, 0) calc(100% - 56px), #0E1D47 100%), url('../../assets/page/noche-acuarela.webp') -640px -40px / 768px repeat, linear-gradient(180deg, #10224F 0%, #0E1D47 100%); }
#rsvp { --stars: 0.6; background: linear-gradient(180deg, #0E1D47 0, rgba(14, 29, 71, 0) 56px, rgba(12, 25, 62, 0) calc(100% - 56px), #0C193E 100%), url('../../assets/page/noche-acuarela.webp') -260px -700px / 768px repeat, linear-gradient(180deg, #0E1D47 0%, #0C193E 100%); }
#captura { --stars: 0.7; background: linear-gradient(180deg, #0C193E 0, rgba(12, 25, 62, 0) 56px, rgba(11, 22, 54, 0) calc(100% - 56px), #0B1636 100%), url('../../assets/page/noche-acuarela.webp') -500px -460px / 768px repeat, linear-gradient(180deg, #0C193E 0%, #0B1636 100%); }
#secreto { --stars: 0.8; background: linear-gradient(180deg, #0B1636 0, rgba(11, 22, 54, 0) 56px, rgba(10, 20, 48, 0) calc(100% - 56px), #0A1430 100%), url('../../assets/page/noche-acuarela.webp') -30px -220px / 768px repeat, linear-gradient(180deg, #0B1636 0%, #0A1430 100%); }
#kc-footer { --stars: 1; background: linear-gradient(180deg, #0A1430 0, rgba(10, 20, 48, 0) 56px, rgba(7, 14, 34, 0) calc(100% - 56px), #070E22 100%), url('../../assets/page/noche-acuarela.webp') -380px -560px / 768px repeat, linear-gradient(180deg, #0A1430 0%, #070E22 100%); }

#dedicatoria::before, #counter::before, #familia::before, #ubicaciones::before, #vestimenta::before,
#regalos::before, #rsvp::before, #captura::before, #secreto::before, #kc-footer::before,
.an-ride::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--stars);
  background-image:
    radial-gradient(1px 1px at 7% 13%, rgba(232, 207, 142, .9) 55%, transparent 100%),
    radial-gradient(1px 1px at 18% 72%, rgba(143, 166, 214, .9) 55%, transparent 100%),
    radial-gradient(1px 1px at 32% 28%, rgba(232, 207, 142, .9) 55%, transparent 100%),
    radial-gradient(1px 1px at 46% 84%, rgba(143, 166, 214, .9) 55%, transparent 100%),
    radial-gradient(1px 1px at 58% 17%, rgba(232, 207, 142, .9) 55%, transparent 100%),
    radial-gradient(1px 1px at 71% 61%, rgba(143, 166, 214, .9) 55%, transparent 100%),
    radial-gradient(1px 1px at 84% 35%, rgba(232, 207, 142, .9) 55%, transparent 100%),
    radial-gradient(1px 1px at 94% 91%, rgba(143, 166, 214, .9) 55%, transparent 100%),
    radial-gradient(.7px .7px at 11% 48%, rgba(232, 207, 142, .58) 50%, transparent 100%),
    radial-gradient(.7px .7px at 39% 58%, rgba(143, 166, 214, .58) 50%, transparent 100%),
    radial-gradient(.7px .7px at 65% 92%, rgba(232, 207, 142, .58) 50%, transparent 100%),
    radial-gradient(.7px .7px at 89% 7%, rgba(143, 166, 214, .58) 50%, transparent 100%);
  background-size: 260px 260px, 260px 260px, 260px 260px, 260px 260px,
    260px 260px, 260px 260px, 260px 260px, 260px 260px,
    180px 180px, 180px 180px, 180px 180px, 180px 180px;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 86px 53px, 86px 53px, 86px 53px, 86px 53px;
  background-repeat: repeat;
}
#dedicatoria::after, #counter::after, #familia::after, #ubicaciones::after, #vestimenta::after,
#regalos::after, #rsvp::after, #captura::after, #secreto::after, #kc-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .55;
  background-image:
    radial-gradient(2px 2px at 14% 36%, rgba(232, 207, 142, .95), transparent 2px),
    radial-gradient(2px 2px at 63% 22%, rgba(143, 166, 214, .9), transparent 2px),
    radial-gradient(2px 2px at 87% 74%, rgba(232, 207, 142, .95), transparent 2px),
    radial-gradient(1.5px 1.5px at 41% 86%, rgba(143, 166, 214, .85), transparent 2px);
  animation: an-twinkle 5.6s ease-in-out infinite alternate;
}
#counter::after { animation-delay: -1.7s; }
#familia::after { animation-delay: -3.1s; }
#ubicaciones::after { animation-delay: -2.3s; }
#regalos::after { animation-delay: -4.2s; }
#rsvp::after { animation-delay: -3.7s; }
#captura::after { animation-delay: -2.8s; }
#secreto::after { animation-delay: -1.1s; }
#kc-footer::after { animation-duration: 6.8s; animation-delay: -2s; }
@keyframes an-twinkle { from { opacity: .22; } to { opacity: .9; } }

.an-parchment-card, .kc-location {
  position: relative;
  isolation: isolate;
  color: var(--an-ink);
  border: 22px solid transparent;
  border-radius: 0;
  background: none;
}
.an-parchment-card::after, .kc-location::after {
  content: "";
  position: absolute;
  inset: -22px;
  z-index: -1;
  border: 22px solid transparent;
  border-image: url('../../assets/page/parchment.webp') 44 fill / 22px / 0 round;
  filter: drop-shadow(0 10px 14px rgba(10, 20, 48, .45)) drop-shadow(0 1px 1px rgba(10, 20, 48, .45));
  pointer-events: none;
}
.an-parchment-card .kc-title, .an-parchment-card .kc-title em { color: var(--an-rey); text-shadow: none; }

/* Dedication: the guitar tucks under the lower paper edge. */
#dedicatoria .kc-container {
  position: relative;
  max-width: min(38rem, calc(100% - 20px));
  padding: 16px 14px 30px;
  text-align: center;
}
#dedicatoria .kc-eyebrow, #dedicatoria .kc-title { color: var(--an-rey); text-shadow: none; }
.kc-dedication {
  max-width: 30rem;
  margin-inline: auto;
  color: var(--an-ink);
  font-family: var(--an-font-serif), Georgia, serif;
  font-size: clamp(1.2rem, 1.06rem + .65vw, 1.5rem);
  font-style: italic;
  line-height: 1.55;
}
#dedicatoria .an-guitar {
  position: absolute;
  right: -10px;
  bottom: -52px;
  z-index: 1;
  width: clamp(112px, 30vw, 160px);
  height: auto;
  transform: rotate(-14deg);
  pointer-events: none;
}

/* Save the Date: sheriff star, burned card, and leather counter. */
#counter .kc-container { max-width: 34rem; }
#counter .kc-eyebrow { color: var(--an-cielo); font-family: var(--an-font-western); }
#counter .kc-eyebrow em { font-style: italic; }
#counter .kc-title { margin-bottom: 0; line-height: 1.1; }
#counter .an-star {
  position: relative;
  z-index: 3;
  display: block;
  width: 86px;
  height: auto;
  margin: 18px auto -42px;
  transform: rotate(-6deg);
}
.an-date-card {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 420px;
  margin: 0 auto;
  padding: 30px 10px 12px;
  color: var(--an-rey);
  font: 400 clamp(1.4rem, 6vw, 2rem)/1.3 var(--an-font-western);
  text-align: center;
}
.an-date-card::before {
  content: "Save the Date";
  display: block;
  margin-bottom: 6px;
  color: var(--an-rey);
  font: 400 .85rem/1.2 var(--an-font-western);
  letter-spacing: .14em;
}
.kc-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 420px;
  margin: 16px auto 0;
}
.kc-countdown__unit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 10px 4px;
  overflow: hidden;
  border: 1.5px solid var(--an-oro-viejo);
  border-radius: 6px;
  background-color: var(--an-marino);
  background-image: repeating-linear-gradient(3deg, transparent 0 7px, rgba(232, 207, 142, .06) 7px 8px, transparent 8px 13px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.kc-countdown__unit::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle, var(--an-oro-viejo) 0 1.5px, transparent 1.7px) 7px 6px / 5px 5px no-repeat,
    radial-gradient(circle, var(--an-oro-viejo) 0 1.5px, transparent 1.7px) calc(100% - 12px) 6px / 5px 5px no-repeat;
}
.kc-countdown__value {
  color: var(--an-champan);
  font: 400 clamp(1.6rem, 7vw, 2.2rem)/1 var(--an-font-western);
  text-shadow: 0 1px 0 rgba(10, 20, 48, .7);
}
.kc-countdown__label {
  color: var(--an-cielo);
  font: 500 .72rem/1.1 var(--an-font-serif);
  text-transform: uppercase;
}
#countdown-status { color: var(--an-champan); text-align: center; }
#countdown-pending { margin-top: 1rem; color: var(--an-champan); text-align: center; }
.an-calendar { margin: 18px auto 0; text-align: center; }
.an-calendar__label { margin-bottom: 6px; color: var(--an-champan); font: 400 .9rem/1.2 var(--an-font-western); letter-spacing: .08em; }
.an-calendar__actions { display: flex; justify-content: center; }
.an-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--an-champan);
  border-radius: 999px;
  background: transparent;
  color: var(--an-champan);
  font: 400 .95rem/1.1 var(--an-font-western);
  letter-spacing: .04em;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.an-action:hover, .an-action:focus-visible, .an-action:active { background: var(--an-champan); color: var(--an-medianoche); }
.an-action:focus-visible { outline-offset: 3px; }
.an-action:disabled, .an-action:disabled:hover { background: transparent; color: var(--an-champan); opacity: .85; }

/* Family card: the felt hat bridges the title and parchment. */
#familia .kc-container { max-width: 38rem; }
#familia .kc-section-title { margin-bottom: 10px; }
#familia .an-hat {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(110px, 32vw, 150px);
  height: auto;
  margin: 4px auto -22px;
}
.an-family-card { padding: 22px 14px 14px; text-align: center; }
.kc-family { gap: var(--kc-space-4); color: var(--an-ink); }
.kc-family__group { gap: 4px; }
.kc-family__group h3 {
  margin-bottom: 8px;
  color: var(--an-ink);
  font: 400 .78rem/1.2 var(--an-font-western);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.kc-family__group li { color: var(--an-rey); font: 400 1.15rem/1.5 var(--an-font-serif); }
#familia-padres .kc-family__group li { font: 500 clamp(1.8rem, 8vw, 2.4rem)/1.1 var(--an-font-script); }

/* Location cards are parchment; the pin stays in the map action. */
#ubicaciones .kc-container { max-width: 40rem; }
#ubicaciones .kc-section-title { padding-inline: 72px; }
#ubicaciones .an-boots {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: clamp(64px, 18vw, 92px);
  height: auto;
}
.kc-locations { display: grid; gap: 16px; }
.kc-location { gap: 8px; padding: 12px 10px; text-align: center; }
.an-place-icon { width: 2.6rem; height: 2.6rem; fill: none; stroke: var(--an-rey); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.kc-location__title { color: var(--an-rey); font: 400 .78rem/1.3 var(--an-font-western); letter-spacing: .08em; text-transform: uppercase; }
.kc-location h3 { color: var(--an-ink); font: 500 1.2rem/1.25 var(--an-font-serif); }
.kc-location__address, .kc-location__time { color: var(--an-ink-soft); }
.kc-location__address { max-width: 28rem; text-wrap: balance; }
.an-location-date { color: var(--an-ink-soft); font: 500 .8rem/1.3 var(--an-font-serif); letter-spacing: .14em; text-transform: uppercase; }
.kc-map-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  padding: .55rem 1rem;
  border: 1.5px solid var(--an-rey);
  background: transparent;
  color: var(--an-rey);
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.an-pin { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.kc-map-link:hover, .kc-map-link:focus-visible, .kc-map-link:active { background: var(--an-rey); color: var(--an-parchment); }
.kc-map-link:focus-visible { outline-color: var(--an-champan); }

/* The rider crosses the seam between logistics and gifts. */
.an-ride {
  position: relative;
  isolation: isolate;
  height: clamp(120px, 34vw, 200px);
  overflow: clip;
}
.an-ride__rider {
  position: absolute;
  left: 18vw;
  bottom: 8%;
  z-index: 1;
  width: auto;
  height: 80%;
  max-width: none;
  opacity: 0;
  transform: translateX(calc(100vw + 10%));
  transition: transform 2.6s ease-out, opacity .4s ease-out;
  pointer-events: none;
}
.an-ride.is-revealed .an-ride__rider { opacity: 1; transform: translateX(0); }
.an-ride::after {
  content: "";
  position: absolute;
  inset: auto -5% -1px;
  z-index: 2;
  height: 26px;
  border-top: 1px solid rgba(232, 207, 142, .24);
  border-radius: 50% 50% 0 0 / 85% 85% 0 0;
  pointer-events: none;
}
.an-ride__stars { position: absolute; inset: 0; z-index: -1; opacity: var(--stars); pointer-events: none; }
.an-ride__stars::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 14% 36%, rgba(232, 207, 142, .95), transparent 2px),
    radial-gradient(2px 2px at 63% 22%, rgba(143, 166, 214, .9), transparent 2px),
    radial-gradient(2px 2px at 87% 74%, rgba(232, 207, 142, .95), transparent 2px),
    radial-gradient(1.5px 1.5px at 41% 86%, rgba(143, 166, 214, .85), transparent 2px);
  animation: an-twinkle 5.6s ease-in-out infinite alternate;
}

/* Gifts: the house envelope floats, the rain falls behind it,
   three small gifts wait at its foot, and her own words sit below on parchment. */
#regalos .kc-container { max-width: 38rem; }
#regalos .kc-section-title { margin-bottom: 4px; }
#regalos .kc-envelopes:not([hidden]) { display: block; }
.an-gift-scene {
  position: relative;
  height: clamp(250px, 68vw, 300px);
  margin-inline: -16px;
}
.reg-lluvia {
  position: absolute;
  inset: 0 0 18%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 78%, transparent 100%);
}
.reg-lluvia span {
  position: absolute;
  top: 0;
  left: var(--x);
  width: var(--s);
  aspect-ratio: 3 / 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Crect x='.5' y='.5' width='29' height='19' rx='1.5' fill='%23F2E6CC' stroke='%23B8862F' stroke-opacity='.8'/%3E%3Cpath d='M.8 1.2 15 11.5 29.2 1.2' fill='none' stroke='%23B8862F' stroke-opacity='.8'/%3E%3Ccircle cx='15' cy='11.2' r='2.4' fill='%231F44A3'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transform: translate3d(0, -40px, 0) rotate(var(--r));
  filter: drop-shadow(0 2px 2px rgba(6, 12, 34, .45));
}
.reg-lluvia span.is-gift { aspect-ratio: 1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='9' width='18' height='13' rx='1' fill='%23F2E6CC' stroke='%23B8862F' stroke-opacity='.8'/%3E%3Crect x='2' y='6' width='20' height='4' rx='1' fill='%23F8EFDA' stroke='%23B8862F' stroke-opacity='.8'/%3E%3Cpath d='M10.5 6h3v16h-3z' fill='%231F44A3'/%3E%3Cpath d='M12 6c-2-4-6-4-6-2s4 2 6 2c2 0 6 0 6-2s-4-2-6 2Z' fill='%231F44A3'/%3E%3C/svg%3E"); }
@keyframes regSobreCae {
  0%   { transform: translate3d(0, -40px, 0) rotate(var(--r)); opacity: 0; }
  12%  { opacity: .85; }
  50%  { transform: translate3d(10px, 115px, 0) rotate(calc(var(--r) + 14deg)); }
  88%  { opacity: .85; }
  100% { transform: translate3d(-6px, 280px, 0) rotate(calc(var(--r) - 10deg)); opacity: 0; }
}
.reg-sobre {
  position: absolute;
  left: 50%;
  top: 40%;
  z-index: 2;
  width: clamp(150px, 44vw, 184px);
  height: auto;
  overflow: visible;
  transform: translate(-50%, -50%) rotate(-4deg);
  filter: drop-shadow(0 12px 14px rgba(6, 12, 34, .5)) drop-shadow(0 2px 3px rgba(6, 12, 34, .4));
}
@keyframes regSobreFlota {
  0%, 100% { transform: translate(-50%, -50%) rotate(-4deg); }
  50%      { transform: translate(-50%, calc(-50% - 10px)) rotate(-1.5deg); }
}
.reg-sobre-papel   { fill: #F2E6CC; stroke: var(--an-oro-viejo); stroke-width: 1.4; }
.reg-sobre-pliegue { fill: none; stroke: rgba(184, 134, 47, .55); stroke-width: 1; }
.reg-sobre-solapa  { fill: #EADBB9; stroke: var(--an-oro-viejo); stroke-width: 1.4; stroke-linejoin: round; }
.reg-sobre-filete  { fill: none; stroke: rgba(184, 134, 47, .7); stroke-width: .8; stroke-dasharray: 2 2.5; }
.reg-sobre-sello   { fill: var(--an-rey); stroke: #13285C; stroke-width: 1.2; }
.reg-sobre-sello-filo { fill: none; stroke: rgba(143, 166, 214, .75); stroke-width: .9; }
.reg-sobre-iniciales { font-family: var(--an-font-western), Georgia, serif; font-size: 15px; letter-spacing: .04em; fill: var(--an-cielo); }

/* Three small gifts at the foot: rey, old gold and champagne ribbons; the lids hop every so often. */
.an-caja-defs { position: absolute; width: 0; height: 0; }
.an-cajas {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  pointer-events: none;
}
.an-caja { display: block; height: auto; overflow: visible; filter: drop-shadow(0 6px 6px rgba(6, 12, 34, .45)); }
.an-caja--rey     { --cinta: #1F44A3; --mono-sombra: #13285C; width: clamp(76px, 22vw, 92px); margin-right: clamp(70px, 26vw, 120px); rotate: -4deg; }
.an-caja--oro     { --cinta: #B8862F; --mono-sombra: #8A6522; width: clamp(60px, 17vw, 72px); margin-right: -14px; rotate: 3deg; }
.an-caja--champan { --cinta: #E8CF8E; --mono-sombra: #B8862F; width: clamp(48px, 13vw, 58px); rotate: -2deg; }
.an-caja-piso { fill: rgba(6, 12, 34, .35); }
.an-caja-contorno { fill: none; stroke: rgba(138, 101, 34, .7); stroke-width: 1; }
.an-caja-hilo { stroke: rgba(10, 20, 48, .14); stroke-width: 2.4; }
.an-caja-cinta { fill: var(--cinta); }
.an-mono-lazo, .an-mono-cola { fill: var(--cinta); stroke: var(--mono-sombra); stroke-width: .8; stroke-linejoin: round; }
.an-mono-nudo { fill: var(--mono-sombra); }
.an-mono-pliegue { fill: none; stroke: var(--mono-sombra); stroke-width: 1; stroke-linecap: round; }
.an-caja-tapa { transform-box: fill-box; transform-origin: 0 100%; }
@keyframes regTapaTilin { 0%, 88%, 100% { transform: none; } 91% { transform: translateY(-3px) rotate(-2deg); } 94% { transform: none; } 97% { transform: translateY(-1.5px) rotate(1deg); } }

.an-gift-card { position: relative; margin: 6px auto 0; max-width: 420px; padding: 16px 14px; }
.an-gift-card .kc-body { position: relative; z-index: 1; color: var(--an-ink); font: italic 400 1.1rem/1.4 var(--an-font-serif); text-align: center; }
.an-gift-rose {
  /* the sprite is cut at its top and left: flipped, those sides face out, and the mask (local coords) feathers them */
  position: absolute;
  top: -14px;
  right: -12px;
  scale: -1 1;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%), linear-gradient(to right, transparent 0, #000 22%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%), linear-gradient(to right, transparent 0, #000 22%);
  mask-composite: intersect;
  z-index: 2;
  width: clamp(58px, 16vw, 80px);
  height: auto;
  filter: drop-shadow(0 3px 4px rgba(10, 20, 48, .35));
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .reg-lluvia span { animation: regSobreCae var(--d) linear var(--t) infinite; }
  .reg-sobre { animation: regSobreFlota 6s ease-in-out infinite; }
  .an-caja .an-caja-tapa { animation: regTapaTilin 5s ease-in-out 2s infinite; }
  .an-caja--oro .an-caja-tapa { animation-delay: 3.4s; }
  .an-caja--champan .an-caja-tapa { animation-delay: 4.6s; }
}
@media (prefers-reduced-motion: reduce) { .reg-lluvia { display: none; } }

/* RSVP remains visibly offline inside a parchment card. */
#rsvp .kc-container { max-width: 38rem; }
#rsvp .kc-section-title { margin-bottom: 12px; }
.an-rsvp-card { position: relative; padding: 82px 10px 14px; }
.an-bandana {
  position: absolute;
  left: -31px;
  top: -49px;
  z-index: 1;
  width: clamp(70px, 20vw, 96px);
  height: auto;
  transform: rotate(-14deg);
}
.kc-rsvp-deadline { margin-bottom: var(--kc-space-3); color: var(--an-ink); text-align: center; }
#rsvp .kc-rsvp-form { padding: 0; border: 0; background: transparent; color: var(--an-ink); text-align: left; }
#rsvp .kc-field legend, #rsvp .kc-field > label { color: var(--an-ink); font-size: 1rem; font-weight: 600; }
#rsvp .kc-field input:not([type="radio"]), #rsvp .kc-field select {
  padding: 0 .75rem;
  border: 1px solid var(--an-rey);
  border-radius: 2px;
  background: #F2E6CC;
  color: var(--an-ink);
}
#rsvp .kc-rsvp-attendance-face { border: 1px solid var(--an-rey); background: #F2E6CC; color: var(--an-ink); }
#rsvp .kc-rsvp-attendance-option:has(input:checked) .kc-rsvp-attendance-face { background: var(--an-rey); color: var(--an-parchment); }
#rsvp .kc-rsvp-attendance-option:has(input:focus-visible) { outline-color: var(--an-rey); }
#rsvp .kc-rsvp-submit { border: 1px solid var(--an-rey); background: var(--an-rey); color: var(--an-parchment); }
#rsvp .kc-rsvp-submit:disabled { background: var(--an-ink-soft); color: var(--an-parchment); }
#rsvp .kc-rsvp-offline { max-width: 23rem; margin: var(--kc-space-4) auto 0; color: var(--an-ink); font-size: 1.1rem; }
#rsvp :focus-visible { outline-color: var(--an-rey); }

/* Captura el momento: the album opens; a ranch camera floats above, its flash winks now and then. */
#captura .kc-title, #captura .kc-body { color: var(--an-parchment); }
.kc-captura__cta { margin-top: var(--kc-space-4); }
.an-camera {
  display: block;
  width: clamp(120px, 36vw, 150px);
  height: auto;
  margin: 0 auto 10px;
  overflow: visible;
  filter: drop-shadow(0 8px 10px rgba(6, 12, 34, .55));
}
.an-camera__body { transform-box: view-box; transform-origin: 50% 60%; }
.an-camera__box, .an-camera__top, .an-camera__flash, .an-camera__ring { fill: #13285C; stroke: var(--an-champan); stroke-width: 2.2; stroke-linejoin: round; }
.an-camera__top { fill: #0E1D47; }
.an-camera__flash { fill: #E8CF8E; }
.an-camera__lens { fill: #0A1430; stroke: var(--an-oro-viejo); stroke-width: 2; }
.an-camera__glint { fill: rgba(232, 207, 142, .85); }
.an-camera__band { fill: none; stroke: rgba(232, 207, 142, .45); stroke-width: 1.4; stroke-dasharray: 3 3; }
.an-camera__button { fill: var(--an-oro-viejo); stroke: var(--an-champan); stroke-width: 1.4; }
.an-camera__strap { fill: none; stroke: var(--an-oro-viejo); stroke-width: 2.4; stroke-linecap: round; }
.an-camera__star { fill: var(--an-champan); }
.an-camera__burst { fill: none; stroke: #FFF4D6; stroke-width: 2.4; stroke-linecap: round; opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes an-camera-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes an-camera-flash { 0%, 86%, 100% { opacity: 0; transform: scale(.6); } 89% { opacity: 1; transform: scale(1.15); } 93% { opacity: 0; transform: scale(1.3); } }
@keyframes an-camera-pop { 0%, 86%, 100% { fill: #E8CF8E; } 89% { fill: #FFFBEF; } }
@media (prefers-reduced-motion: no-preference) {
  .an-camera__body { animation: an-camera-float 4.2s ease-in-out infinite; }
  .an-camera__burst { animation: an-camera-flash 5s ease-out 1.2s infinite; }
  .an-camera__flash { animation: an-camera-pop 5s ease-out 1.2s infinite; }
}

/* Secret: a swinging horseshoe leads to the native details card. */
#secreto { overflow-x: clip; }
#secreto .kc-container { position: relative; z-index: 1; max-width: 30rem; }
#secreto .kc-section-title { margin-bottom: 16px; }
.kc-secret { max-width: 25rem; margin-inline: auto; }
.kc-secret > summary { color: var(--an-champan); }
.an-horseshoe {
  display: block;
  width: 92px;
  height: auto;
  transform-origin: 50% 0;
  animation: an-horseshoe-swing 3s ease-in-out infinite alternate;
}
/* Opening the secret knocks the horseshoe off its nail; when the card closes (by hand or after 13 s) it drops back on. */
#secreto details.is-fallen .an-horseshoe { animation: an-horseshoe-fall .9s cubic-bezier(.55, 0, .9, .45) forwards; }
#secreto details.is-back .an-horseshoe { animation: an-horseshoe-back .9s cubic-bezier(.2, .9, .3, 1.25) both, an-horseshoe-swing 3s ease-in-out .9s infinite alternate; }
@keyframes an-horseshoe-fall {
  0% { translate: 0 0; rotate: 4deg; opacity: 1; }
  20% { translate: 0 -6px; rotate: -10deg; opacity: 1; }
  100% { translate: 18px 150px; rotate: 70deg; opacity: 0; visibility: hidden; }
}
@keyframes an-horseshoe-back {
  0% { translate: 0 -60px; rotate: -18deg; opacity: 0; }
  60% { translate: 0 4px; rotate: 6deg; opacity: 1; }
  100% { translate: 0 0; rotate: -4deg; opacity: 1; }
}
@keyframes an-horseshoe-swing { from { rotate: -4deg; } to { rotate: 4deg; } }
.kc-secret__hint { color: var(--an-cielo); font: italic 600 .95rem/1.4 var(--an-font-serif); letter-spacing: .02em; }
.kc-secret__card { max-width: 25rem; margin: 16px auto 0; padding: 20px 14px; }
.kc-secret__card .kc-title { color: var(--an-rey); text-shadow: none; }
.kc-secret__message { color: var(--an-ink); font: italic 400 1.1rem/1.45 var(--an-font-serif); }
.kc-secret__signature { margin-top: var(--kc-space-3); color: var(--an-rey); font: 500 1.25rem/1.2 var(--an-font-script); text-align: right; }

/* Moonlit close: Azula's silhouette, the ridge, then the studio signature. */
#kc-footer {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  min-height: clamp(420px, 62svh, 520px);
  overflow: clip;
  padding: 0 20px max(0px, env(safe-area-inset-bottom));
  color: var(--an-parchment);
  text-align: center;
}
.an-footer-moon {
  position: absolute;
  top: 8%;
  right: 10%;
  z-index: 2;
  width: clamp(70px, 20vw, 120px);
  height: auto;
  color: var(--an-champan);
  background: radial-gradient(circle, rgba(143, 166, 214, .22) 0%, rgba(143, 166, 214, .08) 38%, transparent 72%);
}
.an-footer-cowgirl {
  position: absolute;
  left: 4%;
  bottom: 0;
  z-index: 2;
  width: auto;
  height: clamp(240px, 60vw, 380px);
  max-width: none;
  filter: drop-shadow(0 0 1px rgba(143, 166, 214, .5));
  pointer-events: none;
}
.an-footer-ridge {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  width: 100%;
  height: clamp(70px, 18vw, 130px);
  pointer-events: none;
}
.an-footer-ridge svg { display: block; width: 100%; height: 100%; }
.an-footer-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(clamp(70px, 15vw, 120px) + env(safe-area-inset-bottom));
  z-index: 4;
  width: min(92%, 560px);
  margin-inline: auto;
  text-shadow: 0 1px 8px rgba(10, 20, 48, .85);
}
.kc-footer__mark { justify-content: center; margin-bottom: 6px; color: var(--an-cielo); font-size: 1.05rem; letter-spacing: .08em; text-transform: none; }
.kc-footer__icon { display: none; }
.an-footer-dedication { margin-bottom: 10px; color: var(--an-parchment); font: italic 500 1rem/1.7 var(--an-font-serif); }
.an-footer-dedication .an-footer-name { color: var(--an-champan); font: 500 1.35rem/1.2 var(--an-font-script); }
.an-footer-detail { color: var(--an-cielo); font: 500 .9rem/1.5 var(--an-font-serif); }
.an-footer-star { display: inline-block; width: auto; height: 2.1em; margin: 0 .15em; vertical-align: -.7em; rotate: -6deg; }
.kc-footer__link { justify-content: center; margin-top: 8px; color: var(--an-parchment); text-decoration: none; }
.kc-footer__link:hover { color: var(--an-champan); }
.kc-footer__link svg { width: .95rem; height: .95rem; }

/* Placa de música: la estrella sheriff suelta en la esquina en champán y cielo.
   Sonando = se mece y le cruza un destello; pausada = quieta y tenue. Solo transform/opacity/filter. */
.kc-ring[data-ring="sello"] {
  right: max(10px, calc(env(safe-area-inset-right) + 6px));
  bottom: max(clamp(14px, 2.6vh, 26px), calc(env(safe-area-inset-bottom) + 8px));
  width: 72px;
  height: 68px;
  border: 0;
  border-radius: 14px;
  background: none;
  box-shadow: none;
}
.kc-ring[data-ring="sello"] .kc-ring__emblem,
.kc-ring[data-ring="sello"] .an-star-sheen {
  position: absolute;
  inset: 0 auto auto 3px;
  width: 66px;
  height: 61px;
  border-radius: 0;
  object-fit: contain;
  rotate: -8deg;
  transform-origin: 50% 8%;
  animation: an-star-sway 4.5s ease-in-out infinite paused;
  pointer-events: none;
}
.kc-ring[data-ring="sello"] .kc-ring__emblem {
  filter: drop-shadow(0 0 1.5px rgba(232, 207, 142, .55)) drop-shadow(0 3px 5px rgba(10, 20, 48, .55));
  transition: filter .4s ease, opacity .4s ease, scale .15s ease;
}
/* destello de lata: la propia estrella es la máscara */
.an-star-sheen {
  overflow: hidden;
  opacity: 0;
  transition: opacity .4s ease;
  -webkit-mask: url('../../assets/page/star.webp') center / 100% 100% no-repeat;
  mask: url('../../assets/page/star.webp') center / 100% 100% no-repeat;
}
.an-star-sheen::before {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: 0;
  width: 36%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 246, 220, .75) 45%, rgba(143, 166, 214, .45) 60%, transparent 100%);
  transform: translateX(-140%) skewX(-18deg);
  animation: an-star-glint 5s ease-in-out infinite paused;
}
.kc-ring[data-ring="sello"][data-kc-state="playing"] .kc-ring__emblem,
.kc-ring[data-ring="sello"][data-kc-state="playing"] .an-star-sheen,
.kc-ring[data-ring="sello"][data-kc-state="playing"] .an-star-sheen::before { animation-play-state: running; }
.kc-ring[data-ring="sello"][data-kc-state="playing"] .an-star-sheen { opacity: 1; }
.kc-ring[data-ring="sello"][data-kc-state="paused"] .kc-ring__emblem {
  opacity: .62;
  filter: saturate(.5) drop-shadow(0 0 1.5px rgba(232, 207, 142, .35)) drop-shadow(0 2px 4px rgba(10, 20, 48, .45));
}
.kc-ring[data-ring="sello"]:active .kc-ring__emblem { scale: .92; }
@media (hover: hover) { .kc-ring[data-ring="sello"]:hover .kc-ring__emblem { scale: 1.05; } }
.kc-ring[data-ring="sello"]:focus-visible { outline: 2px solid var(--an-champan); outline-offset: 2px; }
@keyframes an-star-sway { 0%, 100% { rotate: -8deg; } 50% { rotate: -3deg; } }
@keyframes an-star-glint {
  0%, 60% { transform: translateX(-140%) skewX(-18deg); }
  85%, 100% { transform: translateX(420%) skewX(-18deg); }
}

/* Aviso: etiqueta de pergamino colgada de la estrella (perforación + hilo). El core pone .is-visible. */
.kc-music-toast {
  right: calc(max(10px, calc(env(safe-area-inset-right) + 6px)) + 84px);
  bottom: calc(max(clamp(14px, 2.6vh, 26px), calc(env(safe-area-inset-bottom) + 8px)) + 50px);
  box-sizing: border-box;
  max-width: min(15rem, calc(100vw - 7.5rem));
  padding: 6px 10px 7px 8px;
  border: 10px solid transparent;
  border-image: url('../../assets/page/parchment-tag.webp') 20 fill / 10px / 0 round;
  color: var(--an-ink);
  font: italic 500 1.02rem/1.25 var(--an-font-serif);
  text-wrap: balance;
  filter: drop-shadow(0 6px 8px rgba(10, 20, 48, .45));
  rotate: -2deg;
  transform-origin: 100% 60%;
  transform: translate(10px, 0) rotate(6deg);
  transition: opacity .6s ease, transform .7s cubic-bezier(.2, .9, .3, 1.15);
}
.kc-music-toast.is-visible { transform: none; }
.kc-music-toast::before {
  content: "";
  position: absolute;
  bottom: 12px;
  right: -3.5px;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--an-ink);
  border-radius: 50%;
}
.kc-music-toast::after {
  content: "";
  position: absolute;
  bottom: 16px;
  left: calc(100% + 3.5px);
  width: 43px;
  height: 1.5px;
  background: var(--an-champan);
  opacity: .8;
  transform-origin: 0 50%;
  rotate: 55deg;
}

@media (min-width: 48rem) {
  #ubicaciones .kc-container { max-width: 48rem; }
  .kc-location { max-width: 36rem; margin-inline: auto; }
}

@media (max-width: 359px) {
  .an-action { width: 100%; padding-inline: 14px; font-size: .85rem; white-space: nowrap; }
  .kc-family__group li { font-size: 1.35rem; }
  .an-gift-card { padding-inline: 10px; }
  .an-caja--rey { margin-right: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  #dedicatoria::after, #counter::after, #familia::after, #ubicaciones::after,
  #regalos::after, #rsvp::after, #captura::after, #secreto::after, #kc-footer::after,
  .an-ride__stars::after, .an-horseshoe { animation: none; }
  #secreto details.is-fallen .an-horseshoe { animation: none; opacity: 0; transition: opacity .3s ease; }
  #secreto details.is-back .an-horseshoe { animation: none; }
  .an-ride__rider { transition: none; }
  .an-ride__rider { opacity: 1; transform: none; left: 18vw; }
  .kc-ring[data-ring="sello"] .kc-ring__emblem, .an-star-sheen, .an-star-sheen::before { animation: none; }
  .kc-music-toast { transition: none; transform: none; }
}

/* Decorative loops sleep behind the Gate and outside the nearby viewport. */
body.is-gate-locked #dedicatoria::after, body.is-gate-locked #counter::after,
body.is-gate-locked #familia::after, body.is-gate-locked #ubicaciones::after,
body.is-gate-locked #vestimenta::after, body.is-gate-locked #regalos::after,
body.is-gate-locked #rsvp::after, body.is-gate-locked #captura::after,
body.is-gate-locked #secreto::after, body.is-gate-locked #kc-footer::after,
body.is-gate-locked .an-ride__stars::after, body.is-gate-locked .reg-lluvia span,
body.is-gate-locked .reg-sobre, body.is-gate-locked .an-caja .an-caja-tapa,
body.is-gate-locked .an-camera__body, body.is-gate-locked .an-camera__burst,
body.is-gate-locked .an-camera__flash,
body.is-gate-locked #secreto details:not(.is-fallen):not(.is-back) .an-horseshoe,
body.is-gate-locked #hero .an-hero-cue::after {
  animation-play-state: paused;
}
body.is-gate-locked #secreto details.is-back .an-horseshoe { animation-play-state: running, paused; }

.an-io #dedicatoria:not(.an-live)::after, .an-io #counter:not(.an-live)::after,
.an-io #familia:not(.an-live)::after, .an-io #ubicaciones:not(.an-live)::after,
.an-io #vestimenta:not(.an-live)::after, .an-io #regalos:not(.an-live)::after,
.an-io #rsvp:not(.an-live)::after, .an-io #captura:not(.an-live)::after,
.an-io #secreto:not(.an-live)::after, .an-io #kc-footer:not(.an-live)::after,
.an-io #historia:not(.an-live) .an-ride__stars::after,
.an-io #regalos:not(.an-live) .reg-lluvia span,
.an-io #regalos:not(.an-live) .reg-sobre,
.an-io #regalos:not(.an-live) .an-caja .an-caja-tapa,
.an-io #captura:not(.an-live) .an-camera__body,
.an-io #captura:not(.an-live) .an-camera__burst,
.an-io #captura:not(.an-live) .an-camera__flash,
.an-io #secreto:not(.an-live) details:not(.is-fallen):not(.is-back) .an-horseshoe,
.an-io #hero:not(.an-live) .an-hero-cue::after {
  animation-play-state: paused;
}
.an-io #secreto:not(.an-live) details.is-back .an-horseshoe { animation-play-state: running, paused; }

/* ── Ronda 2 · integración Opus ───────────────────────────────────────── */
#hero { position: relative; z-index: 3; }

/* «Cómo llegar» grabado en el pergamino: sin relleno, hundido con sombras internas, doble filete. */
.kc-location .kc-map-link {
  border: 0;
  border-radius: 3px;
  background: rgba(90, 70, 48, .06);
  color: #5A4630;
  font: 400 .95rem/1.2 var(--an-font-western, 'AN Eastwood'), Georgia, serif;
  letter-spacing: .06em;
  text-shadow: 0 1px 0 rgba(255, 250, 235, .7);
  box-shadow:
    inset 0 1px 2px rgba(60, 40, 20, .38),
    inset 0 -1px 0 rgba(255, 250, 235, .55),
    0 1px 0 rgba(255, 250, 235, .5),
    0 0 0 1px rgba(90, 70, 48, .28),
    0 0 0 4px rgba(242, 230, 204, 0),
    0 0 0 5px rgba(90, 70, 48, .18);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.kc-location .kc-map-link .an-pin { filter: drop-shadow(0 1px 0 rgba(255, 250, 235, .7)); }
.kc-location .kc-map-link:hover,
.kc-location .kc-map-link:active { background: rgba(90, 70, 48, .12); color: #4A3922; box-shadow: inset 0 2px 4px rgba(60, 40, 20, .45), 0 0 0 1px rgba(90, 70, 48, .32), 0 0 0 5px rgba(90, 70, 48, .18); }
.kc-location .kc-map-link:focus-visible { background: rgba(90, 70, 48, .12); color: #4A3922; outline: 2px solid var(--an-rey, #1F44A3); outline-offset: 4px; }

/* Dibujos que se dibujan solos: tinta y acuarela multiplicadas sobre el pergamino, sin marco ni óvalo (ink-reveal.mjs). */
.an-drawing {
  position: relative;
  width: 100%;
  margin: 0 auto 14px;
}
.an-drawing__final,
.an-drawing__layer {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}
.an-drawing__layer { position: absolute; inset: 0; pointer-events: none; }
.an-drawing.is-armed .an-drawing__final { visibility: hidden; }
.an-drawing--retrato { max-width: 22rem; margin-top: -4px; }
.an-drawing--vestimenta { max-width: 19rem; }

/* Código de vestimenta: los atuendos dibujados, la regla y los colores reservados tachados. */
#vestimenta .kc-container { max-width: 38rem; }
#vestimenta .kc-section-title { margin-bottom: 14px; }
.an-dress-card { padding: 18px 14px 20px; text-align: center; }
.an-dress-title { color: var(--an-rey); font: 400 clamp(1.7rem, 7vw, 2.2rem)/1.1 var(--an-font-western); letter-spacing: .04em; }
.an-dress-text { max-width: 26rem; margin: 8px auto 0; color: var(--an-ink); font: italic 400 1.12rem/1.45 var(--an-font-serif); }
.an-dress-avoid { margin-top: 16px; color: var(--an-ink-soft); font: 400 .78rem/1.2 var(--an-font-western); letter-spacing: .14em; text-transform: uppercase; }
#vestimenta .kc-swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 10px 0 0; padding: 0; list-style: none; }
#vestimenta .kc-swatch { display: flex; align-items: center; gap: 8px; color: var(--an-ink); font: 500 1rem/1.2 var(--an-font-serif); }
/* Reserved colours as fabric chips with satin light, struck by a wine ranch "prohibido" stamp. */
#vestimenta .kc-swatch__drop {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .55) 0 7%, rgba(255, 255, 255, 0) 32%), var(--kc-swatch);
  box-shadow: inset 0 -4px 7px rgba(0, 0, 0, .45), inset 0 2px 3px rgba(255, 255, 255, .18), 0 2px 4px rgba(20, 26, 46, .35);
}
/* blue in every shade: three overlapping chips, cielo, rey and marino */
#vestimenta .kc-swatch:first-child .kc-swatch__drop {
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .5) 0 6%, rgba(255, 255, 255, 0) 24%),
    radial-gradient(circle at 26% 34%, #8FC4E8 0 27%, rgba(0, 0, 0, .25) 29%, transparent 31%),
    radial-gradient(circle at 70% 38%, #1F44A3 0 29%, rgba(0, 0, 0, .25) 31%, transparent 33%),
    radial-gradient(circle at 48% 74%, #0A1430 0 30%, transparent 32%),
    #13285C;
}
#vestimenta .kc-swatch:last-child .kc-swatch__drop {
  background: radial-gradient(ellipse 60% 34% at 40% 30%, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 70%), radial-gradient(circle at 50% 60%, #2A2A2E, #08080A 72%);
}
/* the stamp: a wine ring with its diagonal bar, slightly worn */
#vestimenta .kc-swatch__drop::before,
#vestimenta .kc-swatch__drop::after { content: ""; position: absolute; pointer-events: none; }
#vestimenta .kc-swatch__drop::before { inset: -5px; border: 3px solid rgba(142, 42, 58, .92); border-radius: 50%; box-shadow: 0 0 0 1px rgba(242, 230, 204, .8); }
#vestimenta .kc-swatch__drop::after {
  left: 50%;
  top: -4px;
  bottom: -4px;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: rgba(142, 42, 58, .92);
  rotate: -45deg;
}

/* Mi historia: dos polaroids colgadas de la reata con pinzas. */
#historia .kc-container { max-width: 34rem; }
#historia .kc-title { color: var(--an-champan, #E8CF8E); }
.an-clothesline { position: relative; padding-top: 10px; }
.an-clothesline__rope { position: absolute; inset: 0 0 auto; width: 100%; height: 60px; overflow: visible; pointer-events: none; }
.an-clothesline__rope path { fill: none; stroke: #C8A86A; stroke-width: 3; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; filter: drop-shadow(0 2px 1px rgba(10, 20, 48, .5)); }
#historia .kc-story { display: flex; justify-content: center; gap: clamp(14px, 5vw, 28px); margin: 0; padding: 18px 0 0; list-style: none; }
#historia .kc-story__item {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(44%, 210px);
  padding: 9px 9px 0;
  background: #FBF6EA;
  box-shadow: 0 10px 18px rgba(10, 20, 48, .5), 0 1px 0 rgba(0, 0, 0, .1);
  transform-origin: 50% -14px;
  rotate: -3deg;
}
#historia .kc-story__item:nth-child(even) { rotate: 3.5deg; margin-top: 14px; }
#historia .kc-story__item::before {
  /* Pinza de madera */
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  width: 12px;
  height: 30px;
  translate: -50% 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #A9824A 0 45%, #7A5A2E 45% 55%, #A9824A 55%);
  box-shadow: 0 2px 2px rgba(10, 20, 48, .45);
}
#historia .kc-story__photo { aspect-ratio: 4 / 5; margin: 0; background: radial-gradient(ellipse at 50% 35%, #22407F 0%, #13285C 60%, #0A1430 100%); }
#historia .kc-story__photo img { object-position: 50% 20%; }
#historia .kc-story__item h3 { margin: 0; padding: 10px 2px 12px; color: #1F2A44; font: 400 clamp(1.15rem, 4.6vw, 1.4rem)/1.1 var(--an-font-script, 'AN Verandah'), cursive; text-align: center; }
#historia .kc-story__year:empty, #historia .kc-story__item p:empty { display: none; }
#historia .kc-story__item.is-revealed { animation: an-polaroid-sway 2.4s ease-out both; }
@keyframes an-polaroid-sway { 0% { rotate: -9deg; } 35% { rotate: 4deg; } 65% { rotate: -4deg; } 100% { rotate: -3deg; } }
#historia .kc-story__item:nth-child(even).is-revealed { animation-name: an-polaroid-sway-even; }
@keyframes an-polaroid-sway-even { 0% { rotate: 10deg; } 35% { rotate: -2deg; } 65% { rotate: 5deg; } 100% { rotate: 3.5deg; } }

/* Secreto → footer sin hueco: la herradura baja junto a su carta y la noche continúa. */
#secreto { padding-bottom: 20px; }
#secreto .kc-eyebrow { margin-bottom: 4px; }
.kc-secret > summary { display: grid; justify-items: center; gap: 6px; }
.an-horseshoe { width: 76px; }
#kc-footer { min-height: clamp(330px, 46svh, 420px); }

@media (prefers-reduced-motion: reduce) {
  #historia .kc-story__item.is-revealed { animation: none; }
}
