/* ===== Estilo D · rojo teja sobre crema, bola de discoteca a línea ===== */
:root {
  --cream: #fbf3e9;
  --red: #b4493a;         /* rojo teja: titulares y dibujos */
  --red-soft: rgba(180, 73, 58, .45);
  --ink: #1f1a17;         /* etiquetas pequeñas en negro */
  --wrap: 1120px;
  --display: "Libre Caslon Condensed", "Playfair Display", Georgia, serif;
  --label: "Oswald", "Arial Narrow", sans-serif;
  --wide: "Jost", "Futura", sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--red);
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--red); color: var(--cream); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

main, .top, .end { max-width: var(--wrap); margin: 0 auto; padding-inline: 48px; }
@media (max-width: 700px) { main, .top, .end { padding-inline: 20px; } }

/* ---------- tipografía ---------- */
.label {
  font-family: var(--label);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
}
.title {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(34px, 5vw, 56px);
  line-height: .98;
  letter-spacing: .005em;
}

/* letras con sombra rayada, como un grabado */
.shade {
  position: relative;
  display: block;
  font-family: var(--display);
  font-weight: 700;
  line-height: .86;
  white-space: nowrap;
  isolation: isolate;
}
.shade::before {
  content: attr(data-text);
  position: absolute;
  left: .05em; top: .055em;
  width: 100%;
  z-index: -1;
  color: transparent;
  background: repeating-linear-gradient(-45deg, var(--red) 0 1px, transparent 1px 3px);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: .7;
}

/* ---------- dibujos ---------- */
svg { overflow: visible; }
.disco, .heart { fill: none; stroke: var(--red); stroke-linecap: round; stroke-linejoin: round; }
.disco { stroke-width: 1.3; }
.disco .ball { stroke-width: 1.1; }
.heart { stroke-width: 3; }
.heart .hatch { stroke-width: 1.6; }

/* ---------- cabecera ---------- */
.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 36px;
}
.logo { text-decoration: none; display: inline-block; text-align: center; }
.logo .shade { font-size: clamp(40px, 6vw, 68px); }
.logo-date {
  display: block;
  margin-top: 14px;
  font-family: var(--wide);
  font-size: clamp(15px, 1.8vw, 21px);
  letter-spacing: .2em;
}
.nav { display: flex; gap: 18px; margin-top: 54px; }
.nav a {
  font-family: var(--label);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav a:hover, .nav a[aria-current] { border-color: var(--ink); }
@media (max-width: 700px) {
  .top { flex-direction: column; align-items: center; gap: 0; }
  .nav { margin-top: 26px; gap: 14px; }
}

/* ---------- 1. portada ---------- */
.hero {
  display: grid;
  grid-template-columns: auto minmax(0, 560px);
  justify-content: center;
  align-items: center;
  gap: 0 4px;
  padding: 70px 0 90px;
}
.disco-hero { width: 270px; height: 270px; }
.headline {
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  font-size: clamp(38px, 5.6vw, 70px);
  line-height: 1.12;
}
.headline span { display: block; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; justify-items: center; padding: 30px 0 60px; }
  .disco-hero { width: 210px; height: 210px; margin-bottom: -10px; }
}

/* ---------- 2. dónde y foto ---------- */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: start;
}
.venues { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.venue .label { margin-bottom: 36px; }
.venue-name { font-size: 24px; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.venue-addr, .venue-time { font-style: italic; font-size: 22px; line-height: 1.3; margin-top: 28px; }
.venue-time { margin-top: 10px; }

.rsvp-box {
  display: block;
  margin-top: 70px;
  border: 1px solid var(--red);
  padding: 30px 20px;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.rsvp-box:hover { background: var(--red); color: var(--cream); }
.disco-small { display: block; width: 280px; height: 280px; margin: 10px auto 0; }

.photo { position: relative; }
.photo img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: 60% 40%;
  filter: grayscale(1) contrast(1.08);
}
.heart {
  position: absolute;
  width: 190px; height: 170px;
  left: 26%; bottom: -96px;
}
@media (max-width: 860px) {
  .intro { grid-template-columns: 1fr; }
  .photo { order: -1; margin-bottom: 70px; }
  .disco-small { width: 220px; height: 220px; margin-top: 0; }
}
@media (max-width: 420px) {
  .venues { grid-template-columns: 1fr; }
  .venue .label { margin-bottom: 14px; }
  .venue-addr { margin-top: 10px; }
  .heart { width: 140px; height: 126px; bottom: -70px; }
}

/* ---------- enlaces grandes ---------- */
.big-links {
  display: flex;
  gap: 90px;
  border-top: 1px solid var(--red-soft);
  border-bottom: 1px solid var(--red-soft);
  padding: 24px 0 36px;
  margin-top: 6px;
}
.big-links a {
  font-weight: 700;
  font-size: clamp(32px, 4vw, 42px);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.arrow { display: inline-block; font-weight: 400; margin-left: 12px; text-decoration: none; transition: transform .35s var(--ease); }
.big-links a:hover .arrow { transform: translateX(8px); }
@media (max-width: 520px) { .big-links { gap: 34px; } .arrow { margin-left: 6px; } }

/* ---------- bloques ---------- */
.block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 40px 60px;
  padding: 90px 0;
  border-bottom: 1px solid var(--red-soft);
}
.block-head .label { margin-bottom: 24px; }
.lede { font-style: italic; font-size: 21px; margin-top: 24px; }
@media (max-width: 860px) {
  .block { grid-template-columns: 1fr; padding: 70px 0; }
  .lede br { display: none; }
}

/* ---------- 3. confirma ---------- */
.rsvp-form { display: grid; gap: 22px; }
.choice { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: block;
  border: 1px solid var(--red);
  padding: 16px 10px;
  text-align: center;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .3s, color .3s;
}
.choice input:checked + span { background: var(--red); color: var(--cream); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.field { display: grid; gap: 8px; }
.field input, .field select {
  font: italic 21px var(--display);
  color: var(--red);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--red);
  border-radius: 0;
  padding: 6px 0 8px;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23b4493a' stroke-width='1.4'/%3E%3C/svg%3E") right 4px center no-repeat;
}
.field input::placeholder { color: var(--red-soft); }
.field input:focus, .field select:focus { outline: none; border-bottom-width: 2px; }
.btn {
  justify-self: start;
  font: 700 22px var(--display);
  text-transform: uppercase;
  color: var(--cream);
  background: var(--red);
  border: 0;
  padding: 16px 34px 14px;
  cursor: pointer;
  transition: transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.form-status { font-style: italic; min-height: 1.4em; }

/* ---------- 4. detalles ---------- */
.schedule { list-style: none; border-top: 1px solid var(--red-soft); }
.schedule li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--red-soft);
}
.time { grid-row: span 2; font-family: var(--wide); font-size: 18px; letter-spacing: .12em; padding-top: 4px; }
.what { font-weight: 700; text-transform: uppercase; font-size: 26px; line-height: 1.05; }
.where { font-style: italic; font-size: 19px; }
.info {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 20px;
}
.info dt { margin-bottom: 14px; }
.info dd { font-style: italic; font-size: 20px; line-height: 1.35; }
@media (max-width: 860px) { .info { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- 5. regalos ---------- */
.gifts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 260px; align-items: start; }
.gift-body p { font-style: italic; font-size: 21px; }
.iban { margin-top: 22px; font-style: normal !important; font-family: var(--wide); font-size: 15px !important; letter-spacing: .04em; white-space: nowrap; }
.iban .label { margin-right: 8px; }
.link-btn {
  margin-top: 12px;
  font: italic 19px var(--display);
  color: var(--red);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.gift-photo img { aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.05); }
@media (max-width: 860px) {
  .gifts { grid-template-columns: 1fr; }
  .gift-photo { max-width: 300px; }
}

/* ---------- cierre ---------- */
.end { text-align: center; padding-top: 60px; padding-bottom: 90px; }
.disco-end { width: 170px; height: 170px; }
.end-names .shade { font-size: clamp(42px, 7vw, 80px); margin-top: 10px; }
.end-note { font-style: italic; font-size: 22px; margin-top: 18px; }

/* ---------- animaciones ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.disco .rays { transform-origin: 100px 100px; animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .55; transform: rotate(4deg) scale(.97); } }
@media (prefers-reduced-motion: reduce) {
  .disco .rays { animation: none; }
  html { scroll-behavior: auto; }
}
