/* INICIO pop-up Interject (temporal) — borrar este archivo al retirar el pop-up */

.ij-modal {
  --ij-ink:     #003147;  /* navy — títulos */
  --ij-muted:   #4d6878;  /* navy desaturado — texto secundario */
  --ij-accent:  #EB493E;  /* coral — barra de acento y foco */
  --ij-bg:      #ffffff;
  --ij-overlay: rgba(0, 49, 71, .72);
  --ij-radius:  16px;

  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.ij-modal[hidden] { display: none; }

.ij-modal__overlay {
  position: absolute;
  inset: 0;
  background: var(--ij-overlay);
  animation: ij-fade .2s ease;
}

.ij-modal__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  background: var(--ij-bg);
  border-radius: var(--ij-radius);
  border-top: 5px solid var(--ij-accent);
  box-shadow: 0 20px 60px rgba(0, 20, 30, .35);
  padding-bottom: 1.5rem;
  animation: ij-rise .24s ease;
}

@media (prefers-reduced-motion: reduce) {
  .ij-modal__overlay,
  .ij-modal__box {
    animation: none;
  }
}

@keyframes ij-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes ij-rise {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ij-modal__close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 2;
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 1px 6px rgba(0, 20, 30, .2);
  color: var(--ij-ink);
  font-size: 1.6rem;
  line-height: 1;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.ij-modal__close:hover { background: #fff; }
.ij-modal__close:focus-visible {
  outline: 2px solid var(--ij-accent);
  outline-offset: 2px;
}

/* Paso 1: imagen + título + texto + CTA */
.ij-modal__hero {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 11px 11px 0 0;
}

.ij-modal__body {
  padding: 1.5rem 1.75rem 0;
}

.ij-modal__title {
  margin: 0 0 .6rem;
  font-family: 'UniNeue_Bold', sans-serif;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--ij-ink);
}

.ij-modal__desc {
  margin: 0;
  font-family: 'UniNeue_Regular', sans-serif;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--ij-muted);
}

.ij-modal__cta {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.4rem;
  appearance: none;
  border: 0;
  background: var(--ij-accent);
  color: #fff;
  font-family: 'UniNeue_Bold', sans-serif;
  font-size: .9rem;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity .15s ease;
}
.ij-modal__cta:hover { opacity: .9; }
.ij-modal__cta:focus-visible {
  outline: 2px solid var(--ij-ink);
  outline-offset: 2px;
}
.ij-modal__cta i { font-size: .8rem; }

.ij-modal__note {
  margin: 1.4rem 0 0;
  font-family: 'UniNeue_Regular', sans-serif;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--ij-muted);
}
.ij-modal__note a {
  color: var(--ij-accent);
  text-decoration: underline;
}
.ij-modal__note a:focus-visible {
  outline: 2px solid var(--ij-accent);
  outline-offset: 2px;
}

/* Paso 2: solo el formulario, sin imagen ni título */
.ij-modal__step[data-ij-step="form"] {
  padding: 2.75rem 1.75rem 0;
}

.ij-modal__frame-wrap {
  border-radius: 10px;
  overflow: hidden;
  background: #f4f1ec;
}

.ij-modal__frame {
  display: block;
  width: 100%;
  height: 688px;
  border: 0;
}

/* Móvil: casi pantalla completa, iframe con scroll interno */
@media (max-width: 640px) {
  .ij-modal { padding: .75rem; }

  .ij-modal__box {
    max-height: calc(100vh - 1.5rem);
    border-radius: 12px;
  }

  .ij-modal__body {
    padding: 1.25rem 1.1rem 0;
  }

  .ij-modal__title {
    font-size: 1.25rem;
  }

  .ij-modal__cta {
    width: 100%;
    justify-content: center;
  }

  .ij-modal__note {
    text-align: center;
  }

  .ij-modal__step[data-ij-step="form"] {
    padding: 2.75rem 1.1rem 0;
  }

  .ij-modal__frame {
    height: 85vh;
  }
}

/* FIN pop-up Interject (temporal) */
