@font-face {
  font-family: "Maratre";
  src: url("fonts/Maratre.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #e2141b;
  --ink: #111111;
  --paper: #f3efe8;
  --font-display: "Maratre", Georgia, "Times New Roman", serif;
  --font-body: "Baskervville", Georgia, "Times New Roman", serif;
  /* Tipografía para cifras (teléfonos, contadores): figuras alineadas y
     tabulares. El serif usa figuras de estilo antiguo que se ven "caídas". */
  --font-num: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

.invite {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: #0d0d0d;
}

.invite__frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  line-height: 0;
}

.invite__img {
  width: 100%;
  height: auto;
  display: block;
}

/* Zonas clicables superpuestas (mapa de enlaces) */
.hotspot {
  position: absolute;
  display: block;
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
  /* reset para cuando el hotspot es <button> */
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  appearance: none;
  outline: none;
}
.hotspot:disabled {
  cursor: progress;
}
/* Solo un leve resaltado con el mouse; sin sombra ni marca al presionar. */
@media (hover: hover) {
  .hotspot:hover {
    background: rgba(255, 255, 255, 0.18);
  }
}
/* El botón oculto de admin no se resalta nunca. */
.hotspot--admin,
.hotspot--admin:hover {
  background: transparent;
}

@media (min-width: 540px) {
  .invite {
    padding: 24px 0;
  }
  .invite__img {
    border-radius: 4px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.55);
  }
}

/* ============================================================
   Modal de confirmación (RSVP) — EDITORIAL: full rojo, letra negra
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.5);
  animation: modal-fade 0.2s ease;
}
@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal__card {
  position: relative;
  width: 100%;
  max-width: 358px;
  background: var(--red);
  color: #000;
  border: 2px solid #000;
  border-radius: 0;
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.92);
  padding: 32px 30px 30px;
  text-align: center;
  font-family: var(--font-body);
  max-height: 88vh;
  overflow-y: auto;
  animation: modal-up 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes modal-up {
  from { transform: translate(-6px, 12px); box-shadow: 4px 4px 0 rgba(0,0,0,0.92); }
  to { transform: translate(0, 0); }
}

/* Botón de cerrar (X) */
.modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: #000;
  font-family: var(--font-body);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.15s;
}
.modal__close:hover { opacity: 1; }

/* Eyebrow con filetes a los lados */
.modal__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.66rem;
  color: #000;
  margin-bottom: 16px;
}
.modal__brand::before,
.modal__brand::after {
  content: "";
  height: 1.5px;
  width: 26px;
  background: #000;
}

/* Encabezado en Maratre + filete inferior */
.modal__hello {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 12vw, 3rem);
  line-height: 0.95;
  color: #000;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1.5px solid #000;
}

.modal__q,
.modal__msg {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.5;
  color: #000;
  margin-bottom: 22px;
}
.modal__msg { font-style: italic; }
.modal__mail {
  margin-top: 16px;
  font-size: 0.82rem;
  color: rgba(0, 0, 0, 0.62);
  letter-spacing: 0.02em;
  word-break: break-all;
}
.modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Botones rectangulares */
.btn {
  padding: 0.85em 1.2em;
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  border: 1.5px solid #000;
  border-radius: 0;
  background: transparent;
  color: #000;
  transition: background 0.15s, color 0.15s;
}
/* Primario: relleno negro con texto rojo (sigue siendo rojo+negro) */
.btn--yes {
  background: #000;
  border-color: #000;
  color: var(--red);
}
.btn--yes:hover { background: #171717; }
.btn--no:hover { background: rgba(0, 0, 0, 0.09); }

/* Spinner */
.modal__spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  border: 2px solid rgba(0, 0, 0, 0.28);
  border-top-color: #000;
  border-radius: 50%;
  animation: modal-spin 0.8s linear infinite;
}
@keyframes modal-spin {
  to { transform: rotate(360deg); }
}

/* ---------- Formulario del modal: inputs con línea (no cajas) ---------- */
.field {
  text-align: left;
  margin-bottom: 18px;
}
.field__label {
  display: block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  color: #000;
  margin-bottom: 4px;
}
.field__input,
.phone__num,
.phone__cc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #000;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid #000;
  border-radius: 0;
  padding: 0.45em 0.1em;
  width: 100%;
  outline: none;
}
.field__input::placeholder,
.phone__num::placeholder {
  color: rgba(0, 0, 0, 0.42);
}
/* El teléfono (lada + número) con figuras alineadas para que no se vean caídos. */
.phone__num,
.phone__cc {
  font-family: var(--font-num);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.01em;
}
.field__input:focus,
.phone__num:focus,
.phone__cc:focus {
  box-shadow: 0 1.5px 0 #000;
}
.phone {
  display: flex;
  gap: 10px;
}
.phone__cc {
  width: auto;
  flex: 0 0 auto;
  cursor: pointer;
}
.phone__num { flex: 1 1 auto; }
.form__error {
  color: #000;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  margin: -2px 0 14px;
  text-align: left;
  border-left: 3px solid #000;
  padding-left: 8px;
}

/* ---------- Paso de acompañantes ---------- */
.modal__sub {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.45;
  color: #000;
  margin: -8px 0 18px;
}
.acomp {
  text-align: left;
  border-top: 1.5px solid #000;
  padding-top: 12px;
  margin-bottom: 14px;
}
.acomp__num {
  display: block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.66rem;
  color: #000;
  margin-bottom: 8px;
}
.acomp .field__input {
  margin-bottom: 10px;
}
.acomp .field__input:last-child {
  margin-bottom: 0;
}
