/* Invitación playera — San Carlos. Fuentes locales (ver fonts/OFL.txt). */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("fonts/CormorantGaramond.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/CormorantGaramond-Italic.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/Jost.woff2") format("woff2");
}
@font-face {
  font-family: "Parisienne";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Parisienne.woff2") format("woff2");
}

:root {
  /* Color principal: cambia aquí para personalizar (alternativas del diseño:
     #3C7A8C, #B0644A, #6E5A8E). */
  --accent: #2f6e73;
  --ink: #2d4f53;
  --ink-soft: #3a5a5e;
  --ink-muted: #4f6b6e;
  --teal-muted: #3e6468;
  --sand-ink: #6a5a48;
  --terracotta: #b0644a;
  --error: #a8432b;
  --peach: #f8dcc8;
  --peach-light: #fcebdf;
  --sand: #f6e7d3;
  --seafoam: #e2f2ee;
  --cream: #fbf6ee;
  --card: #fffdf9;
  --deep: #2f5b60;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Parisienne", cursive;
  --sans: "Jost", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

a {
  color: var(--accent);
}

input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid #7fc4b8;
  outline-offset: 2px;
}

section,
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-left: 24px;
  padding-right: 24px;
}

.kicker {
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal-muted);
}

.kicker-sand {
  color: var(--sand-ink);
}

h2 {
  margin-top: 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 48px;
  line-height: 1.15;
  color: var(--ink);
}

.wave {
  display: block;
  width: calc(100% + 48px);
  height: 48px;
  margin: 0 -24px 40px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-solid {
  background: var(--accent);
  color: #fff;
  border: none;
}

.btn-solid:hover {
  color: #fff;
  filter: brightness(0.92);
}

.btn-outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: var(--peach-light);
}

/* ---------- Portada ---------- */
.hero {
  position: relative;
  background: var(--peach);
  padding-top: 72px;
}

.hero-ornament {
  margin-bottom: 20px;
}

.eyebrow {
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.names {
  margin: 18px 0 8px;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 120px);
  line-height: 1.1;
  color: var(--accent);
}

.hero-date {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 26px;
  font-style: italic;
  font-weight: 500;
}

.hero-place {
  margin-top: 6px;
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero-sub {
  margin-top: 24px;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.hero-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}

.hero-landscape {
  display: block;
  width: calc(100% + 48px);
  height: 340px;
  margin: 24px -24px 0;
}

/* ---------- Cuenta regresiva ---------- */
.countdown-band {
  background: var(--sand);
  padding-top: 64px;
  padding-bottom: 80px;
}

.countdown-band .kicker {
  color: var(--sand-ink);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 620px;
  margin-top: 28px;
}

.unit {
  background: #fffbf5;
  border: 1px solid #ead6be;
  border-radius: 18px;
  padding: 22px 6px;
}

.num {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.label {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand-ink);
}

.countdown-note {
  margin-top: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
}

/* ---------- Detalles ---------- */
.details {
  background: var(--seafoam);
  padding-bottom: 88px;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  width: 100%;
  max-width: 960px;
  margin-top: 40px;
}

.card {
  flex: 1 1 340px;
  max-width: 460px;
  background: var(--card);
  border-radius: 24px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.card-kicker {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal-muted);
}

.card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.2;
}

.card-time {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--terracotta);
}

.card-place {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.map-link {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--seafoam);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.map-link:hover {
  background: #cfe8e2;
}

.dress-code {
  margin-top: 36px;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--teal-muted);
}

/* ---------- RSVP ---------- */
.rsvp {
  background: var(--cream);
  padding-bottom: 96px;
  scroll-margin-top: 0;
}

.rsvp-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-top: 36px;
  background: #fff;
  border: 1px solid #ebdcc9;
  border-radius: 28px;
  padding: 40px 32px;
  text-align: left;
}

.rsvp-star {
  position: absolute;
  top: -22px;
  right: 28px;
  transform: rotate(14deg);
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rsvp-form[hidden],
.field[hidden] {
  display: none;
}

.field-label {
  font-size: 15px;
  font-weight: 500;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.choice {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  background: #fff;
  color: var(--ink);
  border: 1.5px solid #cfe3de;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.choices input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.choices input:focus-visible + .choice {
  outline: 2px solid #7fc4b8;
  outline-offset: 2px;
}

.choices input:checked + .choice {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.rsvp input[type="text"],
.rsvp input[type="tel"],
.rsvp select,
.rsvp textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #d6cdbf;
  border-radius: 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--card);
}

.rsvp textarea {
  min-height: 96px;
  padding: 12px 16px;
  resize: vertical;
  line-height: 1.5;
}

.hint {
  font-size: 13px;
  color: var(--teal-muted);
}

.opcional {
  font-weight: 400;
  color: var(--teal-muted);
}

.solo-si,
.acompanantes {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.acompanante[hidden],
.acompanantes[hidden],
.solo-si[hidden] {
  display: none;
}

.rsvp-limite {
  margin-top: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  color: var(--terracotta);
}

.rsvp-aviso {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0;
}

.rsvp-aviso h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
}

.rsvp-aviso p {
  line-height: 1.7;
  color: var(--ink-soft);
}

.saludo {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--terracotta);
}

.card-icon {
  color: var(--accent);
  display: inline-flex;
}

.dress-code strong {
  font-weight: 500;
}

.btn-submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.error {
  font-size: 13px;
  color: var(--error);
}

.btn-submit {
  margin-top: 6px;
  min-height: 52px;
  font-size: 16px;
}

.rsvp-thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 12px 0;
}

.rsvp-thanks[hidden] {
  display: none;
}

.rsvp-thanks h3 {
  font-family: var(--script);
  font-weight: 400;
  font-size: 52px;
  line-height: 1.1;
  color: var(--accent);
}

.rsvp-thanks p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.btn-small {
  margin-top: 8px;
  min-height: 44px;
  padding: 0 22px;
  font-size: 14px;
  background: #fff;
}

/* ---------- Pie ---------- */
.footer {
  background: var(--deep);
  color: #f6ede1;
  padding-bottom: 56px;
}

.footer-landscape {
  display: block;
  width: calc(100% + 48px);
  height: 110px;
  margin: 0 -24px;
  background: var(--cream);
}

.footer-heart {
  margin-top: 20px;
}

.footer-names {
  margin-top: 12px;
  font-family: var(--script);
  font-size: 44px;
  line-height: 1.1;
}

.footer-text {
  margin-top: 14px;
  max-width: 460px;
  font-size: 15px;
  line-height: 1.7;
  color: #e3eeea;
}

.footer-date {
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #c9dcd7;
}

/* ---------- Móvil ---------- */
@media (max-width: 560px) {
  .hero {
    padding-top: 56px;
  }
  .hero-landscape {
    height: 240px;
  }
  h2 {
    font-size: 38px;
  }
  .countdown {
    gap: 8px;
  }
  .unit {
    padding: 16px 2px;
    border-radius: 14px;
  }
  .num {
    font-size: 34px;
  }
  .label {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
  .card {
    padding: 30px 22px;
  }
  .rsvp-card {
    padding: 34px 20px;
  }
  .choice {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .choice {
    transition: none;
  }
}

/* ---------- Páginas simples (no encontrada, panel temporal) ---------- */
.pagina-simple {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--peach);
  padding: 24px;
}

.pagina-simple main {
  max-width: 460px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.pagina-simple h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 42px;
  line-height: 1.15;
}

.pagina-simple p {
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------- Álbum de fotos ---------- */
.fotos {
  background: var(--cream);
  padding-top: 8px;
  padding-bottom: 72px;
}

.fotos-txt {
  max-width: 460px;
  margin: 14px 0 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--teal-muted);
}
