/* ============================================================
   MODAL HUB DIGITAL DE SEGUROS — Squad
   /modal/modal.css
   ============================================================ */

/* Overlay */
#modal-hub {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(5px);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#modal-hub.is-visible {
  opacity: 1;
  visibility: visible;
}
/* Contenedor interno */
.modal-hub__inner {
  position: relative;
  width: 100%;
  max-width: 960px;
  min-height: 420px;
  margin: 16px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  /* Imagen de fondo — la podés cambiar por la tuya */
  background-image: url('../modal/bg-modal-hub.jpg?v=1');
  background-size: cover;
  background-position: center;

  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s ease;
}

#modal-hub.is-visible .modal-hub__inner {
  transform: translateY(0) scale(1);
}

/* Capa oscura sobre la imagen */
.modal-hub__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
}

/* Todo el contenido por encima del overlay */
.modal-hub__inner > * {
  position: relative;
  z-index: 1;
}

/* Botón cerrar */
.modal-hub__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.modal-hub__close:hover {
  opacity: 1;
  transform: scale(1.12);
}

.modal-hub__close img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

/* Área central */
.modal-hub__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 32px 32px;
  gap: 0;
}

/* Título con glassmorphism */
.modal-hub__title-box {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  padding: 25px 40px;
  text-align: center;
}

.modal-hub__title-box h2 {
  margin: 0;
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 300;
  color: #ffffff;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.modal-hub__title-box h2 strong {
  font-weight: 700;
}

.modal-hub__title-box h2 .hash {
  font-weight: 300;
  opacity: 0.9;
}

/* Botón principal */
.modal-hub__cta {
  display: inline-block;
  background: #ffffff;
  color: #111111;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 40px;
  margin-top: -10px;
  position: relative;
  border-radius: 10px;
  letter-spacing: 0.1px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.modal-hub__cta:hover {
  background: #f0f0f0;
  transform: scale(1.03);
}

.modal-hub__cta:active {
  transform: scale(0.98);
}

/* Footer del modal */
.modal-hub__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 24px 32px 28px;
  gap: 16px;
}

/* Logo Squad */
.modal-hub__logo img {
  height: 44px;
  width: auto;
  display: block;
}

/* Descripción */
.modal-hub__desc {
  text-align: right;
  color: #ffffff;
  font-size: clamp(13px, 2vw, 16px);
  line-height: 1.55;
  opacity: 0.92;
  max-width: 340px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .modal-hub__inner {
    min-height: 360px;
    border-radius: 16px;
    margin: 12px;
  }
  .modal-hub__footer {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 20px 24px;
    align-items: center;
  }

  .modal-hub__desc {
    text-align: center;
  }

  .modal-hub__logo img {
    height: 36px;
  }
}
