/* Yami & Rodri — sitio de boda
   Paleta y tipografías fieles al diseño original.
   ------------------------------------------------------------------ */
:root {
  --ink:        #5f4128; /* texto base */
  --brown:      #6f4a2c; /* títulos / acentos fuertes */
  --brown-dk:   #5f4128; /* hover fuerte */
  --brown-lk:   #7a5230; /* links */
  --taupe:      #8a6a4e; /* texto secundario */
  --sand:       #a1815f; /* texto terciario / footer */
  --line:       #b99a7c; /* líneas finas */
  --border:     #cdb394; /* bordes de tarjetas / inputs */
  --dash:       #c4a988; /* divisores punteados */
  --cream:      #f4eee1; /* texto sobre marrón */
  --accent-req: #b3541e; /* asterisco / errores */
  --bg:         #ece5d6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg) url('assets/paper.jpg');
  background-size: 900px;
  color: var(--ink);
  font-family: 'Karla', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brown-lk);
  text-decoration-color: var(--line);
}
a:hover { color: var(--brown-dk); }

input, textarea, button { font-family: 'Karla', sans-serif; }

/* Layout base ------------------------------------------------------- */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 80px;
}

.divider {
  width: min(280px, 60%);
  border-top: 2px dashed var(--dash);
  margin: 72px 0;
}

/* Hero -------------------------------------------------------------- */
.hero {
  max-width: 760px;
  width: 100%;
  text-align: center;
  padding-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.names {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(64px, 12vw, 120px);
  line-height: 0.95;
  margin: 8px 0 0;
  color: var(--brown);
}

.date {
  /* 3 columnas: los laterales (1fr) quedan iguales, así el "12" del medio
     cae en el centro exacto (alineado con el título y la portada). */
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 20px;
  margin-top: 18px;
  color: var(--brown);
  /* Ancho definido → las columnas laterales (1fr) son siempre iguales y el
     "12" queda centrado en cualquier pantalla, no solo en escritorio. */
  width: 100%;
  max-width: 420px;
}
.date__word {
  font-size: 16px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
  padding: 10px 0 10px 0.3em;
  text-align: center;
}
/* Cada palabra se pega al 12 (borde interno de su columna) para que lo
   flanqueen de forma simétrica. */
.date__word:first-of-type  { justify-self: end; }
.date__word:last-of-type   { justify-self: start; }
.date__day { justify-self: center; }
.date__day {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(56px, 9vw, 84px);
  line-height: 1;
  display: flex;
  align-items: center;
  transform: translateY(-5px);
}
/* En pantallas angostas, la palabra más ancha ("DICIEMBRE 2026") no entra en
   su columna y se recortaba. Achico un poco texto, espaciado y gap para que
   entre sin recorte; el "12" sigue centrado. */
@media (max-width: 430px) {
  .date { column-gap: 14px; }
  .date__word {
    font-size: 13px;
    letter-spacing: 0.18em;
    padding-left: 0.18em;
  }
}

.tagline {
  font-family: 'Caveat', cursive;
  font-size: clamp(28px, 5vw, 40px);
  color: var(--brown-lk);
  margin: 4px 0 0;
}

.couple {
  width: min(420px, 80%);
  height: auto;
  margin-top: 20px;
}

.savethedate {
  font-size: 17px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--taupe);
  margin: 8px 0 0;
}

.countdown {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-top: 28px;
}
.countdown[hidden] { display: none; }
.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
}
.countdown__value {
  font-family: 'Caveat', cursive;
  font-size: 44px;
  font-weight: 700;
  color: var(--brown);
  line-height: 1;
}
.countdown__label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
}

/* Botones ----------------------------------------------------------- */
.btn {
  cursor: pointer;
  border: none;
  background: var(--brown);
  color: var(--cream);
  border-radius: 999px;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.18s ease;
}
.btn:hover { background: var(--brown-dk); }

.cta {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 36px;
  text-decoration: none;
  color: var(--cream);
}
.cta:hover { color: var(--cream); }

.submit {
  padding: 16px 36px;
  margin-top: 4px;
}
.submit:disabled { opacity: 0.7; cursor: default; }

/* Detalles ---------------------------------------------------------- */
.details {
  max-width: 760px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.card {
  flex: 1 1 280px;
  background: rgba(255, 252, 244, 0.55);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  text-align: center;
}
.card__title {
  font-family: 'Caveat', cursive;
  font-size: 36px;
  font-weight: 600;
  color: var(--brown);
}
.card__primary {
  font-size: 19px;
  font-weight: 700;
  margin-top: 10px;
}
.card__secondary {
  font-size: 16px;
  color: var(--taupe);
  margin-top: 4px;
}
.card__link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  letter-spacing: 0.08em;
}

/* Mensaje ----------------------------------------------------------- */
.message {
  max-width: 560px;
  width: 100%;
  text-align: center;
  margin-top: 72px;
}
.message__text {
  font-family: 'Caveat', cursive;
  font-size: clamp(28px, 4.5vw, 36px);
  line-height: 1.35;
  color: var(--brown);
  margin: 0;
}
.message__kicker {
  font-size: 15px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sand);
  margin-top: 20px;
}

/* RSVP -------------------------------------------------------------- */
.rsvp {
  max-width: 620px;
  width: 100%;
  background: rgba(255, 252, 244, 0.65);
  border: 1.5px solid var(--border);
  border-radius: 22px;
  padding: clamp(28px, 5vw, 48px);
}

.rsvp__header { text-align: center; }
.rsvp__title {
  font-family: 'Caveat', cursive;
  font-size: 44px;
  font-weight: 700;
  color: var(--brown);
}
.rsvp__intro {
  font-size: 16px;
  color: var(--taupe);
  margin: 10px 0 0;
  line-height: 1.6;
}

.fields {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 32px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field--group { gap: 10px; }
.field.field--group { border: none; margin: 0; padding: 0; min-width: 0; }
.field__label {
  font-weight: 700;
  font-size: 16px;
  padding: 0;
}
.req { color: var(--accent-req); }

.input {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}
.input:focus { outline: none; border-color: var(--brown-lk); }
.textarea { resize: vertical; }

.input--other {
  border-radius: 999px;
  padding: 11px 16px;
  width: 110px;
  flex: 0 0 auto;
}
.input--other[hidden] { display: none; }

/* Chips ------------------------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips--inline { align-items: center; }

.chip {
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 16px;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.chips--inline .chip { padding: 11px 20px; min-width: 48px; }
.chip:hover { border-color: var(--brown-lk); }
.chip[aria-pressed="true"] {
  border-color: var(--brown);
  background: var(--brown);
  color: var(--cream);
}

/* Error / Done ------------------------------------------------------ */
.error {
  color: var(--accent-req);
  font-size: 15px;
  text-align: center;
}
.error[hidden] { display: none; }

.rsvp__done {
  text-align: center;
  padding: 24px 0;
}
.rsvp__done[hidden] { display: none; }
.rsvp__thanks {
  font-family: 'Caveat', cursive;
  font-size: 52px;
  font-weight: 700;
  color: var(--brown);
}
.rsvp__doneText {
  font-size: 17px;
  color: var(--taupe);
  margin: 8px 0 0;
  line-height: 1.6;
}

/* Footer ------------------------------------------------------------ */
.footer {
  font-family: 'Caveat', cursive;
  font-size: 30px;
  color: var(--sand);
  margin-top: 64px;
}
