@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond.woff') format('woff');
  font-weight: 400 500;
  font-style: normal;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-Italic.woff') format('woff');
  font-weight: 400 500;
  font-style: italic;
}

@font-face {
  font-family: 'Spectral';
  src: url('fonts/Spectral.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Spectral';
  src: url('fonts/Spectral-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --night: #101c18;
  --night-2: #17271f;
  --paper: #f8f5ed;
  --ink: #303d35;
  --muted: #5e6456;
  --gold: #c9a86a;
  --red: #a34f45;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --body-serif: 'Spectral', Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body.concepto {
  background: var(--night);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

.c-snow {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.c-snow span {
  position: absolute;
  top: -20px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  opacity: .55;
  animation: c-fall linear infinite;
}

@keyframes c-fall {
  to { transform: translate3d(var(--drift, 12px), 105vh, 0); }
}

@keyframes c-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(9px); }
}

.c-masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  border-bottom: 1px solid rgba(201,168,106,.18);
  background: linear-gradient(to bottom, rgba(16,28,24,.88), rgba(16,28,24,0));
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.c-masthead.is-solid {
  background: rgba(16,28,24,.97);
  border-bottom-color: rgba(201,168,106,.42);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}

.c-brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--paper);
  text-decoration: none;
}

.c-brand small {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}

.c-masthead nav a {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,106,.5);
  padding-bottom: .25rem;
}

.c-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
  padding: 8rem 5% 6rem;
  overflow: hidden;
}

.c-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 40%, rgba(201,168,106,.16), transparent 42%),
    radial-gradient(circle at 12% 10%, rgba(163,79,69,.10), transparent 40%);
  pointer-events: none;
}

.c-hero-inner { position: relative; z-index: 3; }

.c-title {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  line-height: .9;
  letter-spacing: -.04em;
  font-weight: 400;
}

.c-title span, .c-title em { display: block; }
.c-title em { font-style: italic; color: var(--gold); }

.c-lead {
  max-width: 42ch;
  margin: 2rem 0 2.2rem;
  font-size: 1.1rem;
  color: rgba(248,245,237,.78);
}

.c-cta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--paper);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid var(--gold);
  padding-bottom: .35rem;
}

.c-cta svg { width: 18px; height: 18px; }

.c-fan {
  position: relative;
  min-height: clamp(340px, 42vw, 560px);
}

.c-card {
  position: absolute;
  width: clamp(170px, 20vw, 290px);
  padding: 9px 9px 0;
  background: var(--paper);
  border-radius: 4px;
  box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 3px 10px rgba(0,0,0,.25);
}

.c-card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 68px;
  height: 22px;
  transform: translateX(-50%) rotate(-5deg);
  background: rgba(201,168,106,.34);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.c-card img { display: block; width: 100%; height: auto; }
.c-card figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  text-align: center;
  color: var(--muted);
  padding: .45rem .2rem .6rem;
}

.c-card--left { top: 6%; left: 0; z-index: 1; transform: rotate(-12deg); }
.c-card--right { top: 13%; right: 0; z-index: 2; transform: rotate(10deg); }
.c-card--front {
  bottom: 0;
  left: 50%;
  margin-left: calc(clamp(170px, 20vw, 290px) * -0.5);
  z-index: 3;
  transform: rotate(-4deg);
  visibility: hidden;
}

.c-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  color: var(--gold);
  opacity: .75;
  animation: c-bob 2.4s ease-in-out infinite;
}

.c-letter {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e3d5;
  color: var(--ink);
  padding: calc(clamp(5rem, 12vh, 9rem) + 80px) 5% clamp(5rem, 12vh, 9rem);
  min-height: 110vh;
}

.c-flip {
  position: relative;
  color: var(--ink);
  width: min(430px, 100%);
  margin: 0 auto;
  aspect-ratio: 851 / 1200;
  perspective: 1400px;
}

.c-flip.is-traveling {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 6;
  margin: 0;
  pointer-events: none;
  will-change: transform;
}

.c-flip-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

.c-flip-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fffdf7;
  border: 1px solid rgba(48,61,53,.18);
  border-radius: 5px;
  box-shadow: 0 26px 60px rgba(16,28,24,.22);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.c-flip-face::before {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: 2;
  border: 1px solid rgba(48,61,53,.08);
  border-radius: 2px;
  pointer-events: none;
}

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

.c-flip::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  z-index: 7;
  width: 68px;
  height: 22px;
  transform: translateX(-50%) rotate(-5deg);
  background: rgba(201,168,106,.34);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  opacity: var(--tape-opacity, 1);
}

.c-flip-front span {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1;
  padding: .3rem 0;
  background: rgba(255,253,247,.88);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  text-align: center;
}

.c-flip-back {
  transform: rotateY(180deg);
  padding: clamp(1rem, 2.8vw, 1.8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.c-flip-back p {
  font-family: var(--body-serif);
  font-size: .78rem;
  line-height: 1.45;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
  margin-bottom: .5rem;
}

.c-flip-back p:first-child {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.2;
  margin-bottom: .6rem;
}

.c-flip-back p:not(:last-child)::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  margin: .6rem auto 0;
  border: 1px solid rgba(48,61,53,.35);
  transform: rotate(45deg);
}

.c-flip-back p:last-child { margin-bottom: 0; }

.c-signature {
  display: flex;
  flex: none;
  justify-content: flex-end;
  align-items: flex-start;
  height: 100px;
  margin-top: .2rem;
  overflow: hidden;
}

.c-signature img {
  flex: none;
  width: 146px;
  max-width: none;
  transform: translate(0px, 16px) rotate(-6deg);
  height: auto;
}

.no-gsap .c-flip-card { transform: rotateY(180deg); }
.no-gsap .c-flip-front span { opacity: 0; }

.c-marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(201,168,106,.2);
  border-bottom: 1px solid rgba(201,168,106,.2);
  background: var(--night-2);
}

.c-marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--gold);
  white-space: nowrap;
}

.c-marquee-track i {
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.c-gallery {
  position: relative;
  z-index: 3;
  padding: clamp(6rem, 16vh, 11rem) 5%;
}

.c-gallery-head {
  max-width: 1200px;
  margin: 0 auto 4rem;
}

.c-gallery-head h2 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -.03em;
}

.c-gallery-head p { color: rgba(248,245,237,.65); margin-top: 1rem; }

.c-grid {
  max-width: 1200px;
  margin: 0 auto;
  columns: 3;
  column-gap: 28px;
}

.c-postal {
  position: relative;
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 32px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  transition: box-shadow .35s ease;
}

.c-postal.is-selected {
  box-shadow: 0 0 0 3px var(--red), 0 0 0 7px rgba(163,79,69,.2), 0 14px 34px rgba(163,79,69,.32);
  animation: c-selected-pulse 2.4s ease-in-out infinite;
}

.c-postal.is-selected::after {
  content: "✦ SELECCIONADA";
  position: absolute;
  top: 18px;
  right: -42px;
  z-index: 2;
  width: 170px;
  padding: .32rem 0;
  background: linear-gradient(135deg, #c05a4d, var(--red));
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.35);
  border-bottom: 1px solid rgba(201,168,106,.7);
  box-shadow: 0 6px 16px rgba(0,0,0,.3);
  transform: rotate(45deg);
  animation: c-ribbon-in .35s ease-out both;
}

@keyframes c-selected-pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--red), 0 0 0 7px rgba(163,79,69,.2), 0 14px 34px rgba(163,79,69,.32); }
  50% { box-shadow: 0 0 0 3px var(--red), 0 0 0 10px rgba(163,79,69,.34), 0 22px 52px rgba(163,79,69,.55); }
}

@keyframes c-ribbon-in {
  from { opacity: 0; transform: rotate(45deg) scale(.85); }
  to { opacity: 1; transform: rotate(45deg) scale(1); }
}

.c-image { display: block; width: 100%; height: auto; }
.c-card-info { padding: 1rem 1.1rem 1.2rem; }
.c-card-info > span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--red);
}
.c-card-info h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.1;
  font-weight: 400;
}

.c-like {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .9rem;
  padding: .45rem .8rem;
  border: 1px solid rgba(163,79,69,.45);
  border-radius: 999px;
  background: transparent;
  color: var(--red);
  font: inherit;
  font-size: .8rem;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.c-like svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.c-like:hover { background: rgba(163,79,69,.08); border-color: var(--red); }
.c-like:focus-visible, .c-submit:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.c-like[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.c-like[aria-pressed="true"] svg { fill: currentColor; }

.c-signup {
  position: relative;
  z-index: 3;
  padding: clamp(4rem, 10vh, 7rem) 5%;
  background: var(--night-2);
  border-top: 1px solid rgba(201,168,106,.2);
}

.c-signup-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.c-signup h2 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; font-weight: 400; }
.c-signup-inner > p { margin: 1rem 0 2rem; color: rgba(248,245,237,.7); }
.c-signup-form { display: grid; gap: 1.1rem; text-align: left; }
.c-signup-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; align-items: start; }
.c-field { display: grid; gap: .4rem; align-content: start; }

.c-field label {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}

.c-field input {
  width: 100%;
  padding: .9rem 1rem;
  border: 1px solid rgba(201,168,106,.45);
  border-radius: 4px;
  background: rgba(248,245,237,.06);
  color: var(--paper);
  font: inherit;
}

.c-field input::placeholder { color: rgba(248,245,237,.4); }
.c-field input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.c-field input:disabled { opacity: .4; }
.c-field input[aria-invalid="true"] { border-color: #e8a99f; }
.c-field small { font-size: .78rem; color: rgba(248,245,237,.5); }

.c-signup-check {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .85rem;
  color: rgba(248,245,237,.75);
  cursor: pointer;
}

.c-signup-check input { margin-top: .3rem; accent-color: var(--red); }

.c-seleccion {
  margin-bottom: 1.4rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(201,168,106,.25);
  border-radius: 4px;
  background: rgba(248,245,237,.04);
}

.c-seleccion h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; color: var(--gold); margin-bottom: .5rem; }
.c-seleccion ul { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; }

.c-seleccion li {
  position: relative;
  flex: 0 0 calc(50% - .6rem);
  padding-left: 1.1rem;
  font-size: .85rem;
  color: rgba(248,245,237,.8);
}

.c-seleccion li::before { content: "♥"; position: absolute; left: 0; color: var(--red); }
.c-signup-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }

.c-submit {
  padding: .85rem 1.6rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: var(--night);
  font: inherit;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.c-submit:hover { background: transparent; color: var(--gold); }
.c-submit:disabled { opacity: .6; cursor: wait; }
.c-signup-status { min-height: 1.5rem; font-size: .9rem; color: var(--gold); text-align: center; }
.c-signup-status.is-error { color: #e8a99f; }

.c-outro {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 18vh 5%;
  background: radial-gradient(circle at 50% 60%, rgba(201,168,106,.14), transparent 55%);
}

.c-outro h2 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1;
  font-weight: 400;
  color: var(--gold);
}

.c-outro p { margin-top: 1.2rem; color: rgba(248,245,237,.7); }

.c-footer {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 3rem 5%;
  border-top: 1px solid rgba(201,168,106,.18);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(248,245,237,.55);
}
.c-footer span:first-child { color: var(--gold); }
.c-footer a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(201,168,106,.45); }
.c-footer a:hover { border-bottom-color: var(--gold); }

.c-reminder {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  z-index: 30;
  max-width: calc(100% - 2rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.7,.2,1), visibility .35s;
}

.c-reminder.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }

.c-reminder-link {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem 1.4rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(0,0,0,.38), 0 0 0 4px rgba(201,168,106,.12);
}

.c-reminder-link:hover { box-shadow: 0 14px 38px rgba(0,0,0,.42), 0 0 0 5px rgba(201,168,106,.22); }
.c-reminder-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.c-reminder-heart { flex: none; color: var(--red); font-size: 1.3rem; line-height: 1; animation: c-heart-pulse 2.4s ease-in-out infinite; }
.c-reminder-text { font-size: .9rem; white-space: nowrap; }
.c-reminder-text strong { color: var(--red); }
.c-reminder-text em { font-family: var(--serif); font-size: 1.15rem; font-style: italic; }
.c-reminder-arrow { flex: none; width: 17px; height: 17px; color: var(--red); }

@keyframes c-heart-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

@media (max-width: 900px) {
  .c-hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 7rem;
  }
  .c-fan { min-height: clamp(260px, 62vw, 440px); }
  .c-card { width: clamp(140px, 27vw, 220px); }
  .c-card--front { margin-left: calc(clamp(140px, 27vw, 220px) * -0.5); }
  .c-letter { padding: clamp(5rem, 12vh, 9rem) 2%; }
  .c-flip { width: min(92vw, 360px); aspect-ratio: auto; height: min(78vh, 540px); }
  .c-flip-front img { object-fit: contain; background: #fffdf7; padding: 12px; }
  .c-flip-back { padding: .85rem; }
  .c-flip-back p { font-size: .72rem; line-height: 1.38; margin-bottom: .25rem; }
  .c-flip-back p:first-child { font-size: 1rem; margin-bottom: .35rem; }
  .c-flip-back p:not(:last-child)::after { margin: .35rem auto 0; width: 3px; height: 3px; }
  .c-signature { height: 100px; margin-top: .2rem; }
  .c-grid { columns: 2; }
}

@media (max-width: 560px) {
  .c-masthead { padding: .55rem 5%; }
  .c-brand { font-size: 1.15rem; }
  .c-brand small { font-size: 8px; letter-spacing: .1em; }
  .c-masthead nav a { font-size: 9px; letter-spacing: .08em; padding-bottom: .15rem; }
  .c-hero { padding: 4.5rem 5% 4rem; }
  .c-title { font-size: clamp(3rem, 13vw, 4.5rem); }
  .c-fan { min-height: clamp(230px, 68vw, 330px); }
  .c-card { width: clamp(112px, 33vw, 160px); padding: 5px 5px 0; }
  .c-card--front { margin-left: calc(clamp(112px, 33vw, 160px) * -0.5); }
  .c-card figcaption { font-size: .8rem; }
  .c-grid { columns: 1; }
  .c-seleccion li { flex-basis: 100%; }
  .c-footer { flex-direction: column; }
  .c-reminder-link { gap: .5rem; padding: .55rem 1.1rem .55rem .85rem; }
  .c-reminder-text { white-space: normal; font-size: .82rem; }
  .c-reminder-text em { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .c-snow { display: none; }
  .c-down { animation: none; }
  .c-flip-card { transform: rotateY(180deg); }
  .c-flip-front span { opacity: 0; }
  .c-postal.is-selected, .c-postal.is-selected::after { animation: none; }
  .c-reminder-heart { animation: none; }
}
