/* reserva.express staff door (La agenda). Tokens from reserva_landing, scoped to the body class. */

.sd-door--reserva {
  --sd-ink: var(--theme-ink);
  --sd-muted: var(--theme-muted);
  --sd-accent: var(--theme-primary-dark);
  --sd-error: var(--theme-error);
  --sd-radius: 16px;
  --sd-ok: #1f7a3d;
  --sd-ok-bg: #e4f6e8;
  --theme-primary: #9330e0;
  --theme-primary-dark: #7a1fc4;
  --theme-primary-soft: #ebddfb;
  --theme-deep: #2a1052;
  --theme-accent: #f28634;
  --theme-cream: #ffefd0;
  --theme-cream-soft: #fff7e6;
  --theme-ink: #17121f;
  --theme-muted: #6b6178;
  --theme-sister: #f5b82e;
  --theme-error-bg: #ffe4de;
  --theme-error: #b42318;
  --theme-error-ink: #7a1a10;
  --display: "Fredoka", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;

  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  color: var(--theme-ink);
  background: var(--theme-cream);
  line-height: 1.55;
  overflow-x: clip;
  background-color: var(--theme-primary);
  background-image:
    radial-gradient(circle at 12% 30%, #fff5 0 3px, transparent 4px),
    radial-gradient(circle at 88% 18%, #fff6 0 4px, transparent 5px),
    radial-gradient(circle at 70% 82%, #fff4 0 3px, transparent 4px),
    radial-gradient(circle at 40% 12%, #fff4 0 2px, transparent 3px);
}

/* ── The form, shared by both variants ─────────────────────── */
.sd-door--reserva .sd-form {
  display: grid;
  gap: 18px;
}

.sd-door--reserva .sd-host {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 4px 0 0;
  font: 700 14px/1.3 var(--body);
  color: var(--theme-muted);
  overflow-wrap: anywhere;
}

.sd-door--reserva .sd-host i {
  color: var(--theme-primary-dark);
  font-size: 12px;
}

.sd-door--reserva .sd-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.sd-door--reserva .sd-label {
  font: 600 17px/1.2 var(--display);
}

.sd-door--reserva .sd-input {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 12px 16px;
  font: 700 17px/1.3 var(--body);
  color: var(--theme-ink);
  background: var(--theme-cream);
  border: 3px solid var(--theme-ink);
  border-radius: 16px;
}

.sd-door--reserva .sd-input:focus-visible {
  outline: 3px solid var(--theme-accent);
  outline-offset: 2px;
  background: #fff;
}

.sd-door--reserva .sd-help {
  margin: 0;
  font: 600 14px/1.4 var(--body);
  color: var(--theme-muted);
}

.sd-door--reserva .sd-pass {
  display: flex;
  gap: 8px;
}

.sd-door--reserva .sd-pass .sd-input {
  flex: 1 1 auto;
}

.sd-door--reserva .sd-eye {
  flex: 0 0 54px;
  border: 3px solid var(--theme-ink);
  border-radius: 16px;
  background: #fff;
  color: var(--theme-ink);
  font-size: 17px;
  cursor: pointer;
}

.sd-door--reserva .sd-eye:focus-visible {
  outline: 3px solid var(--theme-accent);
  outline-offset: 2px;
}

.sd-door--reserva .sd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
  padding: 18px 24px;
  font: 700 19px/1 var(--display);
  color: #fff;
  background: var(--theme-primary);
  border: 3px solid var(--theme-ink);
  border-radius: 20px;
  box-shadow: 0 5px 0 var(--theme-ink);
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.sd-door--reserva .sd-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--theme-ink);
}

.sd-door--reserva .sd-btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--theme-ink);
}

.sd-door--reserva .sd-btn:focus-visible {
  outline: 3px solid var(--theme-accent);
  outline-offset: 3px;
}

.sd-door--reserva .sd-alt {
  margin: 0;
  text-align: center;
}

.sd-door--reserva .sd-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 700 16px/1.2 var(--display);
  color: var(--theme-ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.sd-door--reserva .sd-error {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  padding: 14px 16px;
  font: 700 15px/1.4 var(--body);
  color: var(--theme-error-ink);
  background: var(--theme-error-bg);
  border: 3px solid var(--theme-error);
  border-radius: 18px;
}

.sd-door--reserva .sd-error i {
  margin-top: 3px;
  color: var(--theme-error);
}

@keyframes rx-wiggle {
  0%,
  100% {
    rotate: -3deg;
  }

  50% {
    rotate: 3deg;
  }
}


/* ── A · La agenda ─────────────────────────────────────────── */
.ra {
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 100vh;
  padding: 18px 16px 30px;
}

.ra-top {
  justify-self: stretch;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
}

.ra-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  background: #fff;
  border: 3px solid var(--theme-ink);
  border-radius: 18px;
  box-shadow: 0 4px 0 var(--theme-ink);
}

.ra-brand__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.ra-brand__word {
  height: 19px;
  width: auto;
}

.ra-mascot {
  position: relative;
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: 460px;
  margin: 12px 0 -18px;
  padding-top: 64px;
}

.ra-mascot__img {
  width: 148px;
  animation: rx-wiggle 3.2s ease-in-out infinite;
  transform-origin: 50% 100%;
}

.ra-bubble {
  position: absolute;
  top: 0;
  left: 50%;
  margin: 0;
  padding: 11px 16px;
  font: 600 17px/1.25 var(--display);
  white-space: nowrap;
  background: #fff;
  border: 3px solid var(--theme-ink);
  border-radius: 22px;
  box-shadow: 0 5px 0 var(--theme-ink);
  transform: translateX(-50%) rotate(-2deg);
}

.ra-bubble::after {
  content: "";
  position: absolute;
  left: 46%;
  bottom: -13px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-right: 3px solid var(--theme-ink);
  border-bottom: 3px solid var(--theme-ink);
  transform: rotate(45deg);
}

.ra-book {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 40px 22px 18px;
  background: var(--theme-cream-soft);
  border: 3px solid var(--theme-ink);
  border-radius: 28px;
  box-shadow: 0 8px 0 var(--theme-ink);
}

/* The spiral: a row of rings riding the top edge. */
.ra-rings {
  position: absolute;
  top: -16px;
  left: 26px;
  right: 26px;
  height: 34px;
  background: radial-gradient(circle at 50% 50%, transparent 0 6px, var(--theme-ink) 7px 10px, transparent 11px) 0 0 /
    32px 34px space no-repeat;
}

.ra-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px 12px;
  font: 700 13px/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--theme-primary);
  border: 2px solid var(--theme-ink);
  border-radius: 999px;
}

.ra-title {
  margin: 0;
  font: 700 clamp(30px, 8vw, 38px) / 1 var(--display);
  letter-spacing: -0.01em;
}

.ra-book .sd-host {
  margin-bottom: 22px;
}

.ra-book .sd-input {
  background: #fff;
}

.ra-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 26px;
  font: 600 15px/24px var(--display);
  color: var(--theme-cream);
}

.ra-foot b {
  color: #fff;
}

.ra-foot__icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

@media (width >= 900px) {
  .ra {
    grid-template-columns: minmax(0, 1fr) 480px;
    column-gap: 56px;
    max-width: 1040px;
    margin-inline: auto;
    padding-top: 24px;
  }

  .ra-top,
  .ra-foot {
    grid-column: 1 / -1;
  }

  .ra-foot {
    justify-self: center;
  }

  .ra-mascot {
    align-self: center;
    margin: 0;
  }

  .ra-mascot__img {
    width: 320px;
  }

  .ra-bubble {
    font-size: 21px;
  }

  .ra-book {
    max-width: none;
    margin-top: 48px;
    padding: 44px 34px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ra-mascot__img {
    animation: none;
  }
}
