/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  min-height: 100dvh; /* para móviles y modo fullscreen */
  margin: 0;
  padding: 0;
  background-color: #11151C; /* mismo color que tu bloque azul/oscuro */
}

.modal-content {
  max-height: 90vh;
  overflow-y: auto;
}

.brand {
  position: fixed;
  top: 20px;
  left: 30px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #212D40;
  letter-spacing: 0.05em;
  user-select: none;
  z-index: 10;
  text-transform: none;
  text-shadow: none;
}

.container {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  flex-wrap: nowrap;
}

.block {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.block-1 {
  width: 62%;
  flex-direction: column;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background-color: transparent;
}

/* Fondo animado estilo CodePen */
.block-1.animated-gradient::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  background: linear-gradient(270deg, #ff6ec4, #7873f5, #4ADEDE, #C850C0, #4158D0);
  background-size: 1000% 1000%;
  animation: gradientShift 30s ease infinite;
  border-radius: inherit;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.card {
  width: 500px;
  max-width: 90%;
  min-height: 400px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  padding: 24px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto al pasar el mouse (más "3D") */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}

/* Aplicar fuente Inter a todo el card */
#card {
  position: relative;
  font-family: 'Inter', sans-serif;
  color: #222; /* texto oscuro para legibilidad */
  line-height: 1.5;
  padding: 24px;
  background-color: #fff; /* fondo blanco para contraste */
  border-radius: 12px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.1);
  overflow: hidden;
}
/* Pseudo-elemento para imagen PNG centrada */
#card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;           /* tamaño imagen, ajusta a tu gusto */
  height: 150px;
  background-image: url('../img/logo.png'); /* cambia por la ruta real */
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  opacity: 0.5;           /* transparencia para que no distraiga */
  transform: translate(-50%, -50%);
  pointer-events: none;   /* para que no interfiera con clicks */
  z-index: 0;
}




/* Título principal */
#card h1 {
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: #1a1a1a;
}

/* Párrafo descriptivo */
#card p {
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 16px;
  color: #444;
}

/* Lista de beneficios */
#card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

#card ul li {
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 8px;
  position: relative;
  padding-left: 24px;
  color: #333;
}

/* Icono ✔ antes de cada li */
#card ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #28a745; /* verde para icono de check */
  font-weight: 700;
}

/* Estilo para el botón */
#card .btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: #2a9df4;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

#card .btn:hover {
  background-color: #1c7ed6;
  cursor: pointer;
}
/* From Uiverse.io by gharsh11032000 */ 
.button-masinfo {
  position: relative;
  width: 180px;
  height: 40px;
  background-color: #000;
  display: flex;
  align-items: center;
  color: white;
  flex-direction: column;
  justify-content: center;
  border: none;
  padding: 12px;
  gap: 12px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;

}

.button-masinfo::before {
  content: '';
  position: absolute;
  inset: 0;
  left: -4px;
  top: -1px;
  margin: auto;
  width: 188px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(-45deg, #e81cff 0%, #40c9ff 100% );
  z-index: -10;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.button-masinfo::after {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg, #fc00ff 0%, #00dbde 100% );
  transform: translate3d(0, 0, 0) scale(0.95);
  filter: blur(20px);
}

.button-masinfo:hover::after {
  filter: blur(30px);
}

.button-masinfo:hover::before {
  transform: rotate(-180deg);
}

.button-masinfo:active::before {
  scale: 0.7;
}



.block-2 {
  width: 38%;
  background-color: #11151C;
  flex-direction: column;
  gap: 30px;
  color: white;
  justify-content: center;
  align-items: center;
  position: relative; /* contenedor relativo para la imagen absoluta */
  padding: 20px 20px 40px;
}

/* Estado oculto por defecto (ordenadores) */
/* Estado inicial para ordenadores: oculto */
.logo-img {
  display: none;
}

/* En pantallas pequeñas, mostrar y animar */
@media (max-width: 1024px) {
  .logo-img {
    display: block;
    position: absolute;
    top: 25%;
    left: 50%;
    width: 100px;
    height: 100px;
    object-fit: contain;
    z-index: 5;
    transform: translateX(-50%) translateY(-20px);
    opacity: 0;
    animation: logoFadeIn 0.8s ease forwards;
  }

  @keyframes logoFadeIn {
    0% {
      opacity: 0;
      transform: translateX(-50%) translateY(-20px);
    }
    100% {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
  }
}

.text-rotator {
  font-size: 2.8rem;
  font-weight: 500;
  color: #212D40;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #b0b0b0;
  animation: blinkCursor 0.8s steps(2, start) infinite;
}

@keyframes blinkCursor {
  0%, 49% { border-color: #212D40; }
  50%, 100% { border-color: transparent; }
}

.block-2 h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #ffffff;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0px;
  animation: fadeInDown 1s ease-out;
}

.block-2 h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #ffffff;;
  margin: 10px auto 0;
  border-radius: 50px;
  animation: expandBar 1s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandBar {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 60px;
    opacity: 1;
  }
}

.buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.buttons button {
  width: 180px;
  height: 38px;
  background-color: #0476D9;
  color: white;
  border: none;
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
  padding: 0;
  line-height: 38px;
}

.buttons button:hover {
  background-color: #035cb2;
}

button:hover {
  background-color: white;
  color: #121212;
  transform: translateY(-2px);
}

.bottom-footer {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
}

.terms-btn {
  background: transparent;
  border: none;
  color: rgb(214, 214, 214);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  text-decoration: underline;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  padding: 0;
  margin-bottom: 5px;
}

.terms-btn:hover {
  background-color: transparent !important;
  color: rgb(211, 211, 211);
  text-decoration: underline;
}

.block-2 p.copyright {
  font-size: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: #888;
  user-select: none;
  margin: 0;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(0,0,0,0.7);
  position: relative;
  width: 320px;
  font-family: 'Inter', sans-serif;
  background-color: #11151C;
  color: white;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #888;
  cursor: pointer;
}

.close:hover {
  color: #bbb;
}

.modal-content h2 {
  margin-bottom: 20px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: white;
}

.modal-content input {
  width: 100%;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #ccc;
  color: #121212;
  border-radius: 8px;
  margin-bottom: 15px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

.modal-content button {
  background-color: #0476D9;
  color: white;
  border: none;
  padding: 10px 0;
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
}

.modal-content button:hover {
  background-color: #035cb2;
}

/* SweetAlert2 estilos sobrios para alertas toast */
.swal2-toast {
  background-color: #f5f5f5 !important;
  color: #121212 !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  border-radius: 8px !important;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
}

.swal2-toast .swal2-title {
  color: #121212 !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

.swal2-icon {
  filter: brightness(1.3);
}

/* Para que los íconos de éxito y error no sean muy chillones */
.swal2-icon-success {
  color: #7cd992 !important;  /* verde suave */
  filter: none !important;
}

.swal2-icon-error {
  color: #ef7a7a !important;  /* rojo suave */
  filter: none !important;
}

  #forgotPasswordLink {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #007BFF;
    cursor: pointer;
    text-decoration: underline;
  }

  #forgotPasswordLink:hover {
    color: #0056b3;
  }
  /* Si la altura de la pantalla es menor a 600px, se oculta */
@media (max-height: 600px) {
  .logo-img {
    display: none;
  }
}
/* Media queries */
@media (max-width: 1100px) {

  .block-1 {
    display: none;
  }

  .block-2 {
    width: 100% !important;
    height: auto !important;
    padding: 40px 20px;
  }

  .bottom-footer .terms-btn {
    font-size: 0.65rem;
  }

  .bottom-footer p.copyright {
    font-size: 0.65rem !important;
  }

  .brand {
    color: #BF8DF2 !important;
    font-size: 1rem;
    left: 15px;
    top: 10px;
  }

  .swal2-toast .swal2-title {
    font-size: 0.68rem !important;
    max-width: 220px;
  }
 .brand {
    color: #ffffff !important;
    font-size: 0.9rem;
  }
  
}

.loader-wrapper {
  position: fixed;
  inset: 0;
  background: #11151C;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column; /* loader arriba, texto abajo */
  z-index: 9999;
  backdrop-filter: blur(5px);
  color: rgb(119, 122, 147);
  font-family: 'Inter', sans-serif; /* 👈 estilo Inter */
}

.loader-text {
  margin-top: 2.5rem;   /* 👈 más espacio debajo del loader */
  font-size: 1.3rem;
  font-weight: 500;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards; /* 👈 animación */
}

/* Animación suave */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Estilos optimizados para móviles y tablets */
@media (max-width: 1024px) {

  .modal-content input {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px; /* evita zoom automático en iOS */
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #121212;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }

  .modal-content input:focus {
    outline: none;
    border-color: #0476D9;
    box-shadow: 0 0 5px rgba(4, 118, 217, 0.5);
  }

  .modal-content button {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    background-color: #0476D9;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }

  .modal-content button:hover {
    background-color: #035cb2;
    transform: translateY(-1px);
  }

  .modal-content button:active {
    transform: translateY(0);
  }
}
/* Honeycomb Animation */
@-webkit-keyframes honeycomb {
  0%, 20%, 80%, 100% {
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  30%, 70% {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}
@keyframes honeycomb {
  0%, 20%, 80%, 100% {
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  30%, 70% {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

.honeycomb {
  position: relative;
  width: 24px;
  height: 24px;
}

.honeycomb div {
  position: absolute;
  width: 24px;
  height: 12px;
  margin-top: 6px;
  background: #364156; /* azul de tu paleta */
  -webkit-animation: honeycomb 2.1s infinite backwards;
  animation: honeycomb 2.1s infinite backwards;
}

.honeycomb div:after,
.honeycomb div:before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
}

.honeycomb div:after {
  top: -6px;
  border-bottom: 6px solid #364156; /* mismo azul */
}

.honeycomb div:before {
  bottom: -6px;
  border-top: 6px solid #364156;
}

/* Position and animation delays for each hexagon */
.honeycomb div:nth-child(1) {
  left: -28px;
  top: 0;
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
}
.honeycomb div:nth-child(2) {
  left: -14px;
  top: 22px;
  -webkit-animation-delay: 0.1s;
  animation-delay: 0.1s;
}
.honeycomb div:nth-child(3) {
  left: 14px;
  top: 22px;
  -webkit-animation-delay: 0.2s;
  animation-delay: 0.2s;
}
.honeycomb div:nth-child(4) {
  left: 28px;
  top: 0;
  -webkit-animation-delay: 0.3s;
  animation-delay: 0.3s;
}
.honeycomb div:nth-child(5) {
  left: 14px;
  top: -22px;
  -webkit-animation-delay: 0.4s;
  animation-delay: 0.4s;
}
.honeycomb div:nth-child(6) {
  left: -14px;
  top: -22px;
  -webkit-animation-delay: 0.5s;
  animation-delay: 0.5s;
}
.honeycomb div:nth-child(7) {
  left: 0;
  top: 0;
  -webkit-animation-delay: 0.6s;
  animation-delay: 0.6s;
}

