/* Modal base (si ya lo tienes, conserva y agrega solo lo del form) */
.sp-hidden { display: none !important; }

.sp-modal{ position: fixed; inset: 0; z-index: 20; }
.sp-modal__backdrop{ position: absolute; inset: 0; background: #01426a; }

.sp-modal__card{
  position: relative;
  z-index: 1;
  width: min(92vw, 460px);
  margin: 6vh auto 0;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  max-height: 88vh;
  overflow: auto;
  border: 3px solid #1565C0;
  outline: 3px solid #FEB101;
  outline-offset: 0px;
}
.logo-sp{
  display: block;
  margin: 0 auto 12px auto; /* centra horizontal */
  max-width: 180px;
  height: auto;
}

.sp-modal__close{
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px;
  border: 0; border-radius: 10px;
  background: #f3f3f3;
  font-size: 22px; cursor: pointer;
}

.sp-modal__title{ 
  margin: 0 0 10px;
  font-size: 18px;
  color: #014169;
  text-transform: uppercase;
  font-weight: bold;
  text-align: center;
}

.sp-modal__imgWrap{ width: 100%; border-radius: 12px; overflow: hidden; background: #f2f2f2; }
.sp-modal__img{ width: 100%; height: auto; display: block; }
.sp-modal__text{ margin: 10px 0 14px; font-size: 14px; color: #F9F9F9; line-height: 1.35; }

.sp-modal__btn{
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  background: #01426A;
  color: #fff;
}

.sp-modal__btn[disabled]{ opacity: .6; cursor: not-allowed; }

/* Form */
.sp-form{ margin-top: 10px; display: grid; gap: 10px; }
.sp-form__label{ display: grid; gap: 6px; font-size: 13px; color: #111; }

.sp-form__input{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  outline: none;
  font-size: 14px;
}

.sp-form__input:focus{ border-color: #111; }

.sp-form__msg{
  font-size: 13px;
  min-height: 18px;
  color: #111;
}
.sp-form__msg.is-error{ color: #b00020; }
.sp-form__msg.is-ok{ color: #0b6b2a; }

.sp-msg {
  margin-top: 10px;
  font-size: 14px;
}

.sp-msg-error {
  color: #d32f2f;
}

.sp-msg-success {
  color: #2e7d32;
}

.sp-form__check{
  display: flex;
  align-items: flex-start;
  gap: 3px;
  font-size: 13px;
  line-height: 1.4;
  color: #111;
}

.sp-form__check input{
  margin-top: 3px;
  cursor: pointer;
}

.sp-form__link{
  color: #01426A;
  font-weight: 600;
  text-decoration: underline;
}

.sp-form__link:hover{
  opacity: .8;
}


.imagen-descarga {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2147483648;
    display: none;
}

.imagen-descarga__close {
    position: absolute;
    top: -10px;
    right: 20px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 1;
}

.imagen-descarga img {
    width: 450px;
    display: block;
    animation: latido 1.2s ease-in-out infinite;
}
.imagen-descarga::before {
    content: '';
    position: fixed;
    inset: 0;
    /* background: rgba(0, 0, 0, 0.6); */
    z-index: -1;
}

@keyframes latido {
    0%   { transform: scale(1); }
    14%  { transform: scale(1.08); }
    28%  { transform: scale(1); }
    42%  { transform: scale(1.05); }
    56%  { transform: scale(1); }
    100% { transform: scale(1); }
}

.imagen-descarga-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2147483647;
}



@media (max-width: 768px) {
    .imagen-descarga img {
        width: 300px; /* ajusta el tamaño según necesites */
    }

    .imagen-descarga__close {
        top: -5px;
        right: -5px;
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
}