/* =========================================================
   NAYA INVESTMENTS · AGENDA MOD
   /home/agenda_mod/css/naya-agenda.css
========================================================= */

.naya-agenda {
  --agenda-ivory: #f5f1ec;
  --agenda-ivory-soft: #faf7f3;
  --agenda-white: #ffffff;
  --agenda-graphite: #333333;
  --agenda-graphite-soft: rgba(51, 51, 51, 0.70);
  --agenda-terracotta: #c77b5b;
  --agenda-terracotta-dark: #a95f42;
  --agenda-line: rgba(51, 51, 51, 0.12);
  --agenda-line-accent: rgba(199, 123, 91, 0.28);
  --agenda-serif: "Cormorant Garamond", Georgia, serif;
  --agenda-sans: "Inter", "Avenir Next", Arial, sans-serif;

  position: fixed;
  inset: 0;
  z-index: 999999;

  display: none;

  font-family: var(--agenda-sans);
  color: var(--agenda-graphite);
}

.naya-agenda.is-open {
  display: block;
}

html.naya-agenda-lock,
body.naya-agenda-lock {
  overflow: hidden !important;
}

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

.naya-agenda__backdrop {
  position: absolute;
  inset: 0;

  background: rgba(28, 22, 18, 0.56);
  backdrop-filter: blur(8px);

  opacity: 0;

  transition: opacity 0.28s ease;
}

.naya-agenda.is-visible .naya-agenda__backdrop {
  opacity: 1;
}

.naya-agenda__dialog {
  width: min(calc(100% - 48px), 1180px);
  max-height: min(88vh, 820px);

  position: absolute;
  left: 50%;
  top: 50%;

  overflow: hidden;

  border: 1px solid rgba(255,255,255,.32);
  border-radius: 12px;

  background: var(--agenda-ivory-soft);

  box-shadow:
    0 40px 100px rgba(15, 10, 8, 0.28);

  transform:
    translate(-50%, calc(-50% + 24px))
    scale(.985);

  opacity: 0;

  transition:
    opacity 0.32s cubic-bezier(.2,.65,.25,1),
    transform 0.32s cubic-bezier(.2,.65,.25,1);
}

.naya-agenda.is-visible .naya-agenda__dialog {
  transform:
    translate(-50%, -50%)
    scale(1);

  opacity: 1;
}

.naya-agenda__close {
  width: 42px;
  height: 42px;

  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;

  display: grid;
  place-items: center;

  border: 1px solid rgba(51,51,51,.10);
  border-radius: 50%;

  background: rgba(250,247,243,.90);

  color: var(--agenda-graphite);

  font-size: 28px;
  line-height: 1;

  cursor: pointer;

  transition:
    transform .22s ease,
    background-color .22s ease;
}

.naya-agenda__close:hover {
  transform: rotate(7deg);
  background: #fff;
}

.naya-agenda__layout {
  min-height: 690px;

  display: grid;
  grid-template-columns:
    minmax(290px, .72fr)
    minmax(0, 1.28fr);
}


/* =========================================================
   LEFT
========================================================= */

.naya-agenda__intro {
  padding: 58px 44px;

  position: relative;
  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(142,77,48,.98),
      rgba(199,123,91,.96)
    );

  color: #fff;
}

.naya-agenda__intro::before {
  content: "";

  width: 420px;
  height: 420px;

  position: absolute;
  left: -235px;
  bottom: -235px;

  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50%;
}

.naya-agenda__intro::after {
  content: "";

  width: 240px;
  height: 240px;

  position: absolute;
  right: -150px;
  top: -130px;

  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
}

.naya-agenda__eyebrow {
  margin: 0 0 24px;

  position: relative;
  z-index: 1;

  font-size: 10px;
  line-height: 1.3;
  font-weight: 800;

  letter-spacing: .16em;
  text-transform: uppercase;

  opacity: .82;
}

.naya-agenda__title {
  margin: 0;

  position: relative;
  z-index: 1;

  font-family: var(--agenda-serif);

  font-size: clamp(42px, 4vw, 62px);
  line-height: .96;
  font-weight: 500;

  letter-spacing: -.035em;
}

.naya-agenda__copy {
  max-width: 350px;

  margin: 28px 0 0;

  position: relative;
  z-index: 1;

  font-size: 14px;
  line-height: 1.75;

  color: rgba(255,255,255,.84);
}

.naya-agenda__summary {
  margin-top: 56px;

  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: 1fr;

  border-top: 1px solid rgba(255,255,255,.18);
}

.naya-agenda__summary > div {
  padding: 18px 0;

  border-bottom: 1px solid rgba(255,255,255,.18);
}

.naya-agenda__summary span {
  display: block;

  margin-bottom: 6px;

  font-size: 9px;
  line-height: 1.3;
  font-weight: 700;

  letter-spacing: .12em;
  text-transform: uppercase;

  opacity: .70;
}

.naya-agenda__summary strong {
  font-family: var(--agenda-serif);

  font-size: 23px;
  line-height: 1;

  font-weight: 500;
}


/* =========================================================
   RIGHT
========================================================= */

.naya-agenda__content {
  min-width: 0;

  padding: 56px 54px 38px;

  overflow-y: auto;

  background:
    radial-gradient(
      circle at 94% 4%,
      rgba(199,123,91,.08),
      transparent 28%
    ),
    var(--agenda-ivory-soft);
}

.naya-agenda__form {
  min-height: 580px;

  display: flex;
  flex-direction: column;
}

.naya-agenda__step {
  display: none;
}

.naya-agenda__step.is-active {
  display: block;

  animation:
    nayaAgendaStepIn
    .35s
    cubic-bezier(.2,.65,.25,1)
    both;
}

@keyframes nayaAgendaStepIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.naya-agenda__step-head {
  display: grid;
  grid-template-columns: 46px 1fr;

  gap: 18px;

  align-items: start;

  margin-bottom: 34px;
}

.naya-agenda__step-head > span {
  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  border: 1px solid var(--agenda-line-accent);
  border-radius: 50%;

  color: var(--agenda-terracotta-dark);

  font-family: var(--agenda-serif);

  font-size: 17px;
}

.naya-agenda__step-head h3 {
  margin: 0;

  font-family: var(--agenda-serif);

  font-size: 35px;
  line-height: 1;

  font-weight: 600;

  letter-spacing: -.02em;
}

.naya-agenda__step-head p {
  margin: 9px 0 0;

  color: var(--agenda-graphite-soft);

  font-size: 13px;
  line-height: 1.55;
}


/* =========================================================
   CHOICES
========================================================= */

.naya-agenda__choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 14px;
}

.naya-agenda-choice {
  min-height: 190px;

  padding: 24px 20px;

  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  border: 1px solid var(--agenda-line);
  border-radius: 8px;

  background: rgba(255,255,255,.44);

  cursor: pointer;

  transition:
    transform .24s ease,
    border-color .24s ease,
    background-color .24s ease,
    box-shadow .24s ease;
}

.naya-agenda-choice:hover {
  transform: translateY(-3px);

  border-color: var(--agenda-line-accent);

  background: rgba(255,255,255,.72);

  box-shadow:
    0 15px 30px rgba(40,30,22,.05);
}

.naya-agenda-choice input {
  position: absolute;

  opacity: 0;
  pointer-events: none;
}

.naya-agenda-choice:has(input:checked) {
  border-color: var(--agenda-terracotta);

  background: rgba(199,123,91,.07);
}

.naya-agenda-choice__mark {
  width: 42px;
  height: 42px;

  position: absolute;
  left: 20px;
  top: 20px;

  display: grid;
  place-items: center;

  border: 1px solid var(--agenda-line-accent);
  border-radius: 50%;

  color: var(--agenda-terracotta-dark);

  font-family: var(--agenda-serif);
  font-size: 16px;
}

.naya-agenda-choice strong {
  display: block;

  margin-bottom: 9px;

  font-family: var(--agenda-serif);

  font-size: 25px;
  line-height: 1;

  font-weight: 600;
}

.naya-agenda-choice small {
  color: var(--agenda-graphite-soft);

  font-size: 11px;
  line-height: 1.55;
}


/* =========================================================
   DATE / SLOTS
========================================================= */

.naya-agenda__date-grid {
  display: grid;
  grid-template-columns: minmax(190px, .7fr) 1.3fr;

  gap: 26px;
}

.naya-agenda-field {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 8px;
}

.naya-agenda-field > span {
  color: var(--agenda-graphite);

  font-size: 11px;
  line-height: 1.4;

  font-weight: 700;
}

.naya-agenda-field input,
.naya-agenda-field select,
.naya-agenda-field textarea {
  width: 100%;

  border: 1px solid var(--agenda-line);
  border-radius: 5px;

  outline: 0;

  background: rgba(255,255,255,.62);

  color: var(--agenda-graphite);

  font-family: var(--agenda-sans);
  font-size: 14px;

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background-color .2s ease;
}

.naya-agenda-field input,
.naya-agenda-field select {
  height: 48px;
  padding: 0 13px;
}

.naya-agenda-field textarea {
  min-height: 90px;
  padding: 12px 13px;

  resize: vertical;
}

.naya-agenda-field input:focus,
.naya-agenda-field select:focus,
.naya-agenda-field textarea:focus {
  border-color: rgba(199,123,91,.65);

  background: #fff;

  box-shadow:
    0 0 0 3px rgba(199,123,91,.08);
}

.naya-agenda-field.is-error input,
.naya-agenda-field.is-error select,
.naya-agenda-field.is-error textarea {
  border-color: #b3483f;
}

.naya-agenda__slots {
  min-height: 170px;

  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));

  gap: 9px;
}

.naya-agenda__slot {
  min-height: 46px;

  padding: 8px 10px;

  border: 1px solid var(--agenda-line);
  border-radius: 4px;

  background: rgba(255,255,255,.48);

  color: var(--agenda-graphite);

  font-family: var(--agenda-sans);

  font-size: 12px;
  font-weight: 700;

  cursor: pointer;

  transition:
    transform .2s ease,
    border-color .2s ease,
    background-color .2s ease,
    color .2s ease;
}

.naya-agenda__slot:hover {
  transform: translateY(-2px);
  border-color: var(--agenda-line-accent);
}

.naya-agenda__slot.is-selected {
  border-color: var(--agenda-terracotta);

  background: var(--agenda-terracotta);

  color: #fff;
}

.naya-agenda__slots-empty,
.naya-agenda__slots-loading {
  grid-column: 1 / -1;

  margin: 0;

  padding: 22px;

  border: 1px dashed var(--agenda-line);
  border-radius: 5px;

  color: var(--agenda-graphite-soft);

  font-size: 12px;
  line-height: 1.6;

  text-align: center;
}


/* =========================================================
   DATA FIELDS
========================================================= */

.naya-agenda__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));

  gap: 18px 16px;
}

.naya-agenda-field--wide {
  grid-column: 1 / -1;
}

.naya-agenda-consent {
  margin-top: 20px;

  display: grid;
  grid-template-columns: 18px 1fr;

  gap: 10px;

  align-items: start;

  color: var(--agenda-graphite-soft);

  font-size: 11px;
  line-height: 1.6;
}

.naya-agenda-consent input {
  margin-top: 2px;

  accent-color: var(--agenda-terracotta);
}

.naya-agenda-consent a {
  color: var(--agenda-terracotta-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.naya-agenda-honeypot {
  width: 1px !important;
  height: 1px !important;

  position: absolute !important;
  left: -99999px !important;

  overflow: hidden !important;
}


/* =========================================================
   NAV
========================================================= */

.naya-agenda__nav {
  margin-top: auto;
  padding-top: 30px;

  display: flex;
  justify-content: flex-end;

  gap: 10px;
}

.naya-agenda__button {
  min-height: 50px;

  padding: 0 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 3px;

  font-family: var(--agenda-sans);

  font-size: 12px;
  line-height: 1.3;

  font-weight: 700;

  cursor: pointer;

  transition:
    transform .22s ease,
    border-color .22s ease,
    background-color .22s ease,
    color .22s ease;
}

.naya-agenda__button:hover {
  transform: translateY(-2px);
}

.naya-agenda__button--back {
  border: 1px solid var(--agenda-line);

  background: transparent;

  color: var(--agenda-graphite);
}

.naya-agenda__button--next,
.naya-agenda__button--submit {
  border: 1px solid var(--agenda-terracotta);

  background: var(--agenda-terracotta);

  color: #fff;
}

.naya-agenda__button[disabled] {
  opacity: .5;
  cursor: wait;
  transform: none;
}

.naya-agenda__button--submit {
  display: none;
}

.naya-agenda[data-current-step="3"]
.naya-agenda__button--next {
  display: none;
}

.naya-agenda[data-current-step="3"]
.naya-agenda__button--submit {
  display: inline-flex;
}

.naya-agenda[data-current-step="1"]
.naya-agenda__button--back {
  visibility: hidden;
}


/* =========================================================
   MESSAGES / SUCCESS
========================================================= */

.naya-agenda__message {
  min-height: 22px;

  margin-top: 16px;

  color: #9f3f37;

  font-size: 11px;
  line-height: 1.5;
}

.naya-agenda__message.is-success {
  color: #47765d;
}

.naya-agenda-success {
  min-height: 560px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.naya-agenda-success[hidden] {
  display: none !important;
}

.naya-agenda-success__mark {
  width: 74px;
  height: 74px;

  display: grid;
  place-items: center;

  border: 1px solid var(--agenda-terracotta);
  border-radius: 50%;

  color: var(--agenda-terracotta-dark);

  font-family: var(--agenda-serif);

  font-size: 34px;
}

.naya-agenda-success h3 {
  margin: 26px 0 12px;

  font-family: var(--agenda-serif);

  font-size: 42px;
  line-height: 1;

  font-weight: 600;
}

.naya-agenda-success > p {
  max-width: 430px;

  margin: 0;

  color: var(--agenda-graphite-soft);

  font-size: 14px;
  line-height: 1.7;
}

.naya-agenda-success__folio {
  margin: 28px 0;

  padding: 18px 26px;

  border-top: 1px solid var(--agenda-line-accent);
  border-bottom: 1px solid var(--agenda-line-accent);
}

.naya-agenda-success__folio span {
  display: block;

  margin-bottom: 6px;

  color: var(--agenda-terracotta-dark);

  font-size: 9px;
  font-weight: 800;

  letter-spacing: .13em;
  text-transform: uppercase;
}

.naya-agenda-success__folio strong {
  font-family: var(--agenda-serif);

  font-size: 24px;
  font-weight: 500;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 960px) {

  .naya-agenda__dialog {
    width: min(calc(100% - 28px), 760px);
    max-height: 94vh;
  }

  .naya-agenda__layout {
    min-height: 0;

    grid-template-columns: 1fr;
  }

  .naya-agenda__intro {
    padding: 34px 70px 30px 32px;
  }

  .naya-agenda__title {
    max-width: 560px;

    font-size: 40px;
  }

  .naya-agenda__copy {
    margin-top: 17px;
  }

  .naya-agenda__summary {
    margin-top: 25px;

    grid-template-columns: repeat(2,1fr);
  }

  .naya-agenda__summary > div {
    padding: 13px 0;
  }

  .naya-agenda__content {
    max-height: 62vh;

    padding: 34px 32px 28px;
  }

  .naya-agenda__form {
    min-height: 460px;
  }
}


@media (max-width: 680px) {

  .naya-agenda__dialog {
    width: 100%;
    height: 100%;
    max-height: none;

    border: 0;
    border-radius: 0;
  }

  .naya-agenda__layout {
    height: 100%;

    display: flex;
    flex-direction: column;
  }

  .naya-agenda__intro {
    flex: 0 0 auto;

    padding: 28px 60px 24px 22px;
  }

  .naya-agenda__eyebrow {
    margin-bottom: 13px;
  }

  .naya-agenda__title {
    font-size: 34px;
  }

  .naya-agenda__copy {
    display: none;
  }

  .naya-agenda__summary {
    margin-top: 20px;
  }

  .naya-agenda__summary strong {
    font-size: 18px;
  }

  .naya-agenda__content {
    min-height: 0;
    max-height: none;

    flex: 1 1 auto;

    padding: 28px 20px 22px;

    overflow-y: auto;
  }

  .naya-agenda__form {
    min-height: 100%;
  }

  .naya-agenda__step-head {
    grid-template-columns: 38px 1fr;

    gap: 13px;

    margin-bottom: 25px;
  }

  .naya-agenda__step-head > span {
    width: 36px;
    height: 36px;

    font-size: 14px;
  }

  .naya-agenda__step-head h3 {
    font-size: 29px;
  }

  .naya-agenda__choices {
    grid-template-columns: 1fr;
  }

  .naya-agenda-choice {
    min-height: 112px;

    padding: 22px 18px 20px 78px;

    justify-content: center;
  }

  .naya-agenda-choice__mark {
    left: 18px;
    top: 50%;

    transform: translateY(-50%);
  }

  .naya-agenda-choice strong {
    font-size: 22px;
  }

  .naya-agenda__date-grid {
    grid-template-columns: 1fr;
  }

  .naya-agenda__slots {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }

  .naya-agenda__fields {
    grid-template-columns: 1fr;
  }

  .naya-agenda-field--wide {
    grid-column: auto;
  }

  .naya-agenda__nav {
    position: sticky;
    bottom: -1px;

    padding: 16px 0 0;

    background:
      linear-gradient(
        180deg,
        rgba(250,247,243,0),
        var(--agenda-ivory-soft) 28%
      );
  }

  .naya-agenda__button {
    flex: 1 1 auto;
  }

  .naya-agenda-success {
    min-height: 480px;
  }
}


@media (max-width: 420px) {

  .naya-agenda__slots {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .naya-agenda__summary {
    grid-template-columns: 1fr;
  }

  .naya-agenda__summary > div:last-child {
    display: none;
  }
}


@media (prefers-reduced-motion: reduce) {

  .naya-agenda__backdrop,
  .naya-agenda__dialog,
  .naya-agenda__step,
  .naya-agenda-choice,
  .naya-agenda__slot,
  .naya-agenda__button,
  .naya-agenda__close {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   AGENDA MOD v3 · CONFIRMACIÓN / VALIDACIÓN / TIMEZONE
========================================================= */

/* ---------------------------------------------------------
   Cierre corregido
--------------------------------------------------------- */

.naya-agenda__close {
  width: 42px;
  height: 42px;

  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(51, 51, 51, 0.12);

  background: rgba(250, 247, 243, 0.96);

  color: var(--agenda-graphite);
}

.naya-agenda__close span {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  color: currentColor;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 27px;
  line-height: 1;
  font-weight: 300;

  transform: translateY(-1px);
}

.naya-agenda__close:hover {
  transform: rotate(7deg);

  border-color: var(--agenda-terracotta);
  background: var(--agenda-terracotta);

  color: #ffffff;
}

.naya-agenda__close:focus-visible {
  outline: 2px solid var(--agenda-terracotta);
  outline-offset: 3px;
}


/* ---------------------------------------------------------
   Mensaje general de error
--------------------------------------------------------- */

.naya-agenda__message {
  min-height: 0;
}

.naya-agenda__message:empty {
  display: none;
}

.naya-agenda__message.is-error {
  display: block;

  margin-top: 20px;
  padding: 12px 14px;

  border: 1px solid rgba(159, 63, 55, 0.24);
  border-radius: 5px;

  background: rgba(159, 63, 55, 0.06);

  color: #8f3731;

  font-size: 11px;
  line-height: 1.55;
}

.naya-agenda__message.is-success {
  display: block;

  margin-top: 20px;
  padding: 12px 14px;

  border: 1px solid rgba(71, 118, 93, 0.22);
  border-radius: 5px;

  background: rgba(71, 118, 93, 0.06);

  color: #47765d;
}


/* ---------------------------------------------------------
   Errores por campo
--------------------------------------------------------- */

.naya-agenda-field.is-error > span {
  color: #9f3f37;
}

.naya-agenda-field.is-error input,
.naya-agenda-field.is-error select,
.naya-agenda-field.is-error textarea {
  border-color: #b3483f;

  background: rgba(179, 72, 63, 0.035);

  box-shadow:
    0 0 0 3px rgba(179, 72, 63, 0.07);
}

.naya-agenda-inline-error {
  display: block;

  margin-top: 2px;

  color: #9f3f37;

  font-size: 10px;
  line-height: 1.45;
  font-weight: 600;
}

.naya-agenda__choices.has-error {
  padding: 8px;

  border: 1px solid rgba(179, 72, 63, 0.45);
  border-radius: 10px;

  background: rgba(179, 72, 63, 0.025);
}

.naya-agenda__choices.has-error
.naya-agenda-choice {
  border-color: rgba(179, 72, 63, 0.24);
}

.naya-agenda__slots.has-error {
  padding: 8px;

  border: 1px solid rgba(179, 72, 63, 0.45);
  border-radius: 7px;

  background: rgba(179, 72, 63, 0.025);
}

.naya-agenda-consent.is-error {
  padding: 12px;

  border: 1px solid rgba(179, 72, 63, 0.35);
  border-radius: 5px;

  background: rgba(179, 72, 63, 0.035);
}


/* ---------------------------------------------------------
   Slots · horario CDMX + hora local
--------------------------------------------------------- */

.naya-agenda__slot {
  min-height: 58px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 3px;
}

.naya-agenda__slot strong {
  color: currentColor;

  font-size: 12px;
  line-height: 1.1;
}

.naya-agenda__slot small {
  color: rgba(51, 51, 51, 0.52);

  font-size: 8px;
  line-height: 1.2;
  font-weight: 600;
}

.naya-agenda__slot.is-selected small {
  color: rgba(255, 255, 255, 0.78);
}


/* ---------------------------------------------------------
   Información de zona horaria
--------------------------------------------------------- */

.naya-agenda-timezone {
  margin-top: 24px;

  padding: 18px 20px;

  border: 1px solid var(--agenda-line-accent);
  border-radius: 7px;

  background:
    linear-gradient(
      135deg,
      rgba(199, 123, 91, 0.055),
      rgba(255, 255, 255, 0.32)
    );
}

.naya-agenda-timezone__head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 18px;
}

.naya-agenda-timezone__head > div {
  min-width: 0;
}

.naya-agenda-timezone__head span,
.naya-agenda-timezone__selected > span {
  display: block;

  margin-bottom: 6px;

  color: var(--agenda-terracotta-dark);

  font-size: 8px;
  line-height: 1.35;
  font-weight: 800;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.naya-agenda-timezone__head strong {
  display: block;

  color: var(--agenda-graphite);

  font-family: var(--agenda-serif);
  font-size: 18px;
  line-height: 1.1;
  font-weight: 600;

  overflow-wrap: anywhere;
}

.naya-agenda-timezone > p {
  margin: 14px 0 0;
  padding-top: 13px;

  border-top: 1px solid var(--agenda-line);

  color: var(--agenda-graphite-soft);

  font-size: 10px;
  line-height: 1.55;
}

.naya-agenda-timezone__selected {
  margin-top: 14px;
  padding: 13px 14px;

  border-radius: 5px;

  background: rgba(255, 255, 255, 0.55);
}

.naya-agenda-timezone__selected strong {
  display: block;

  color: var(--agenda-graphite);

  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}


/* ---------------------------------------------------------
   Confirmación profesional NAYA
--------------------------------------------------------- */

.naya-agenda-confirmation {
  position: absolute;
  inset: 0;
  z-index: 30;

  display: grid;
  place-items: center;

  padding: 32px;

  overflow-y: auto;
}

.naya-agenda-confirmation[hidden] {
  display: none !important;
}

.naya-agenda-confirmation__veil {
  position: absolute;
  inset: 0;

  background: rgba(245, 241, 236, 0.95);
  backdrop-filter: blur(14px);

  opacity: 0;

  transition: opacity 0.28s ease;
}

.naya-agenda-confirmation__card {
  width: min(100%, 620px);

  position: relative;
  z-index: 2;

  padding: 42px 44px 38px;

  border: 1px solid rgba(51, 51, 51, 0.10);
  border-radius: 12px;

  background: #fff;

  box-shadow:
    0 30px 80px rgba(28, 22, 18, 0.16);

  text-align: center;

  opacity: 0;

  transform:
    translateY(18px)
    scale(0.985);

  transition:
    opacity 0.34s cubic-bezier(.2, .65, .25, 1),
    transform 0.34s cubic-bezier(.2, .65, .25, 1);
}

.naya-agenda-confirmation.is-visible
.naya-agenda-confirmation__veil {
  opacity: 1;
}

.naya-agenda-confirmation.is-visible
.naya-agenda-confirmation__card {
  opacity: 1;

  transform:
    translateY(0)
    scale(1);
}

.naya-agenda-confirmation__check {
  width: 76px;
  height: 76px;

  margin: 0 auto 20px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(199, 123, 91, 0.48);
  border-radius: 50%;

  background: rgba(199, 123, 91, 0.08);

  color: var(--agenda-terracotta-dark);

  font-family: var(--agenda-serif);
  font-size: 34px;
  line-height: 1;
}

.naya-agenda-confirmation__eyebrow {
  margin: 0 0 11px;

  color: var(--agenda-terracotta-dark);

  font-size: 9px;
  line-height: 1.3;
  font-weight: 800;

  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.naya-agenda-confirmation__card h3 {
  max-width: 500px;

  margin: 0 auto;

  color: var(--agenda-graphite);

  font-family: var(--agenda-serif);
  font-size: clamp(34px, 4vw, 45px);
  line-height: 0.98;
  font-weight: 600;

  letter-spacing: -0.025em;
}

.naya-agenda-confirmation__copy {
  max-width: 500px;

  margin: 17px auto 0;

  color: var(--agenda-graphite-soft);

  font-size: 12px;
  line-height: 1.7;
}

.naya-agenda-confirmation__details {
  margin-top: 27px;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  border-top: 1px solid var(--agenda-line);
  border-left: 1px solid var(--agenda-line);
}

.naya-agenda-confirmation__details > div {
  min-height: 82px;

  padding: 15px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  border-right: 1px solid var(--agenda-line);
  border-bottom: 1px solid var(--agenda-line);

  text-align: left;
}

.naya-agenda-confirmation__details span,
.naya-agenda-confirmation__folio span {
  display: block;

  margin-bottom: 5px;

  color: var(--agenda-terracotta-dark);

  font-size: 8px;
  line-height: 1.3;
  font-weight: 800;

  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.naya-agenda-confirmation__details strong {
  color: var(--agenda-graphite);

  font-family: var(--agenda-serif);
  font-size: 19px;
  line-height: 1.15;
  font-weight: 600;

  overflow-wrap: anywhere;
}

.naya-agenda-confirmation__email {
  margin: 18px 0 0;

  color: var(--agenda-graphite-soft);

  font-size: 10px;
  line-height: 1.5;
}

.naya-agenda-confirmation__email strong {
  color: var(--agenda-graphite);
}

.naya-agenda-confirmation__folio {
  margin: 20px auto 0;

  padding: 14px 18px;

  display: inline-block;

  border-top: 1px solid var(--agenda-line-accent);
  border-bottom: 1px solid var(--agenda-line-accent);
}

.naya-agenda-confirmation__folio strong {
  color: var(--agenda-graphite);

  font-family: var(--agenda-serif);
  font-size: 22px;
  font-weight: 500;
}

.naya-agenda-confirmation__actions {
  margin-top: 26px;

  display: flex;
  justify-content: center;

  gap: 10px;
}

/*
 * El botón submit normal está oculto en pasos 1-2.
 * Este modificador permite mostrar el botón "Cerrar"
 * dentro de la confirmación.
 */
.naya-agenda-confirmation
.naya-agenda__button--submit.is-visible {
  display: inline-flex !important;
}


/* ---------------------------------------------------------
   Responsive v3
--------------------------------------------------------- */

@media (max-width: 680px) {

  .naya-agenda-timezone__head {
    grid-template-columns: 1fr;
  }

  .naya-agenda__slot {
    min-height: 62px;
  }

  .naya-agenda-confirmation {
    padding: 18px;
  }

  .naya-agenda-confirmation__card {
    padding: 34px 22px 28px;
  }

  .naya-agenda-confirmation__details {
    grid-template-columns: 1fr;
  }

  .naya-agenda-confirmation__details > div {
    min-height: 68px;
  }

  .naya-agenda-confirmation__actions {
    flex-direction: column-reverse;
  }

  .naya-agenda-confirmation__actions
  .naya-agenda__button {
    width: 100%;
  }

  .naya-agenda__close {
    width: 40px;
    height: 40px;

    top: 14px;
    right: 14px;
  }

  .naya-agenda__close span {
    font-size: 26px;
  }
}


@media (prefers-reduced-motion: reduce) {

  .naya-agenda-confirmation__veil,
  .naya-agenda-confirmation__card {
    transition: none !important;
  }
}

/* =========================================================
   AGENDA MOD · FIX SCROLL / NAVEGACIÓN VISIBLE
========================================================= */

/*
 * El modal tendrá una altura real limitada por el viewport.
 * Antes sólo teníamos max-height, por lo que el grid podía
 * crecer más que el espacio visible.
 */
.naya-agenda__dialog {
  height: min(88vh, 820px);
  max-height: min(88vh, 820px);

  overflow: hidden;
}


/*
 * El grid ocupa exactamente la altura disponible
 * dentro del diálogo.
 */
.naya-agenda__layout {
  height: 100%;
  min-height: 0;
}


/*
 * La columna izquierda permanece fija.
 */
.naya-agenda__intro {
  height: 100%;
  min-height: 0;

  overflow: hidden;
}


/*
 * La columna derecha es ahora la zona que puede desplazarse.
 *
 * min-height: 0 es MUY importante cuando un elemento
 * scrollable vive dentro de CSS Grid.
 */
.naya-agenda__content {
  height: 100%;
  min-height: 0;

  padding:
    56px
    54px
    0;

  overflow-x: hidden;
  overflow-y: auto;

  overscroll-behavior: contain;

  scrollbar-gutter: stable;
}


/*
 * Scrollbar discreto y consistente con NAYA.
 */
.naya-agenda__content {
  scrollbar-width: thin;
  scrollbar-color:
    rgba(199, 123, 91, 0.45)
    transparent;
}

.naya-agenda__content::-webkit-scrollbar {
  width: 7px;
}

.naya-agenda__content::-webkit-scrollbar-track {
  background: transparent;
}

.naya-agenda__content::-webkit-scrollbar-thumb {
  background:
    rgba(199, 123, 91, 0.38);

  border-radius: 20px;
}

.naya-agenda__content::-webkit-scrollbar-thumb:hover {
  background:
    rgba(169, 95, 66, 0.58);
}


/*
 * El formulario ya no obliga al contenido a crecer
 * fuera de los límites del modal.
 */
.naya-agenda__form {
  min-height: 100%;

  display: flex;
  flex-direction: column;
}


/*
 * Damos espacio suficiente abajo para que el último
 * contenido nunca quede oculto debajo de la navegación.
 */
.naya-agenda__step {
  padding-bottom: 22px;
}


/* =========================================================
   NAVEGACIÓN STICKY
========================================================= */

.naya-agenda__nav {
  position: sticky;

  left: 0;
  right: 0;
  bottom: 0;

  z-index: 12;

  margin-top: auto;

  padding:
    22px
    0
    24px;

  display: flex;
  justify-content: flex-end;

  gap: 10px;

  background:
    linear-gradient(
      180deg,
      rgba(250, 247, 243, 0) 0%,
      rgba(250, 247, 243, 0.96) 24%,
      var(--agenda-ivory-soft) 48%,
      var(--agenda-ivory-soft) 100%
    );
}


/*
 * Una pequeña separación visual evita que el botón
 * parezca pegado al contenido.
 */
.naya-agenda__nav::before {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(51, 51, 51, 0.07),
      transparent
    );

  opacity: 0;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 960px) {

  .naya-agenda__dialog {
    height: 94vh;
    max-height: 94vh;
  }

  .naya-agenda__layout {
    height: 100%;
    min-height: 0;
  }

  .naya-agenda__intro {
    height: auto;

    flex: 0 0 auto;

    overflow: visible;
  }

  .naya-agenda__content {
    height: auto;
    min-height: 0;

    flex: 1 1 auto;

    max-height: none;

    padding:
      34px
      32px
      0;

    overflow-y: auto;
  }

  .naya-agenda__nav {
    padding-bottom: 24px;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 680px) {

  .naya-agenda__dialog {
    width: 100%;
    height: 100%;
    max-height: 100%;

    border-radius: 0;
  }

  .naya-agenda__layout {
    height: 100%;
    min-height: 0;
  }

  .naya-agenda__intro {
    height: auto;

    flex: 0 0 auto;

    overflow: visible;
  }

  .naya-agenda__content {
    height: auto;
    min-height: 0;

    flex: 1 1 0;

    padding:
      28px
      20px
      0;

    overflow-x: hidden;
    overflow-y: auto;

    -webkit-overflow-scrolling: touch;
  }

  .naya-agenda__form {
    min-height: 100%;
  }

  .naya-agenda__nav {
    bottom: 0;

    padding:
      18px
      0
      max(22px, env(safe-area-inset-bottom));

    background:
      linear-gradient(
        180deg,
        rgba(250, 247, 243, 0) 0%,
        rgba(250, 247, 243, 0.97) 28%,
        var(--agenda-ivory-soft) 52%
      );
  }
}
