/* =============================== */
/* ESTILOS GENERALES DE LA SECCIÓN */
/* =============================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  overflow-x: hidden !important;
}
/* =============================== */
/* ENCABEZADO */
/* =============================== */
header {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo y marca */
.header-brand {
  position: relative;
}
.brand-logo {
  width: 240px;
  height: auto;
  max-height: 120px;
  margin-bottom: 1rem;
}
.brand-name {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Contenido del encabezado: Título + subtítulo */
.header-content {
  text-align: center;
  margin-top: 0;
}
.header-content h1 {
  white-space: nowrap;
  font-family: 'Georgia', serif;
  text-transform: uppercase;
  font-weight: bold;
  background: linear-gradient(to bottom, #ffff00 0%, #ffa500 50%, #ff0000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: -1rem;
  margin-bottom: 0rem;
  font-size: clamp(2rem, calc(100vw / 9), 3rem);
}
.header-content p {
  font-size: 1.5rem;
  text-shadow: 1px 1px 4px rgba(254, 253, 253, 0.8);
  margin: 0 0 10px 0;
  color: white;
}

/* =============================== */
/* FORMULARIO DE RESTABLECIMIENTO */
/* =============================== */
.registro-container {
  flex: 1;
  padding: 2rem;
  margin: 8rem auto;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 0 15px rgba(250, 192, 1, 0.7);
  margin-top: 12rem;
}
.registro-titulo {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #ffd700;
  text-shadow: 0 0 6px #000;
  
}

.registro-titulo {
  margin-top: 0rem;      /* añade un poco de espacio arriba o incluso 0 */
  margin-bottom: 1rem;     /* deja el espacio de siempre abajo */
}

.registro-formulario label {
  display: block;
  margin-top: 40px;
  font-weight: bold;
  color: #FFFF00;
  -webkit-text-stroke: 0.8px #ff0000;
  font-size: 1.5rem;
  letter-spacing: 1.5px; /* ← ajusta el valor según lo que necesites */
}

.registro-formulario input {
  width: 100%;
  padding: 10px;
  margin-top: 15px;
  background-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 15px rgba(250, 192, 1, 0.7);
  border-radius: 6px;
  border: 2px solid #ff8800;
  font-size: 1rem;
  box-sizing: border-box;
    color: #ffffff;             /* ← texto en blanco */
  caret-color: #ffffff;       /* ← cursor también en blanco */
  font-weight: bold;
}
.registro-formulario input:focus {
  outline: 4px solid #ff8800;
}

/* Botón de envío */
.btn-unete {
  margin-top: 15px;
  padding: 12px;
  width: 75%;
  background-color: #000;
  color: #fff;
  border: 3px solid #ffd700 !important;
  border-radius: 250px !important;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-unete:hover {
  background-color: #fffb00;
  border-color: #000000 !important;
  color: #000;
  transform: scale(1.07);
}

/* =============================== */
/* MENSAJES DE ESTADO */
/* =============================== */
.error-message {
  background-color: #fdc3bd;
  color: #ff0000;
  padding: 0.75rem;
  border: 1px solid #ff0019;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 1rem;
  text-align: center;
  font-weight: 700;
}

.info-message {
  background-color: #ffffff;
  color: #00ff2a;
  padding: 0.75rem;
  border: 3px solid #00ff0d;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 1rem;
  text-align: center;
  font-weight: 700;
}
/* =============================== */
/* ANIMACION MIENTRAS SE MANDA EL CORREO DE RESTABLECIMIENTO */
/* =============================== */


.btn-unete {
  position: relative;
  overflow: hidden;
  font-weight: bold;
  color: white;
  background-color: rgba(0, 0, 0, 0.8);
  border: none;
  padding: 12px 24px;
  margin-left: 55px;
  margin-top: 40px;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 0;
}

.btn-unete .fire-animation {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #ff0000, #ff6600, #ffff00);
  background-size: 100% 300%;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.btn-unete .btn-text {
  position: relative;
  z-index: 2;
}

.btn-unete.loading .fire-animation {
  animation: fuego-subiendo 1s linear infinite;
  opacity: 1;
  top: 0;
}

.btn-unete.loading .btn-text {
  color: transparent;
}

.btn-unete.loading::after {
  content: "🔥 Invocando hechizo...";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  pointer-events: none;
}

/* Partículas mágicas */
.btn-unete.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.6) 1px, transparent 1px);
  background-size: 6px 6px;
  animation: chispas 1s linear infinite;
  opacity: 0.5;
}

@keyframes fuego-subiendo {
  0% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

@keyframes chispas {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-20px);
  }
}

.btn-unete.loading {
  pointer-events: none;
  cursor: default;
  transform: none !important; /* Evita efectos hover */
  box-shadow: none !important;
}




/* =============================== */
/* PIE DE PÁGINA */
/* =============================== */
.footer {
  text-align: center;
  padding: 1rem 0;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  margin-top: auto;
  transition: background-color 0.3s ease;
}
.footer:hover {
  background-color: rgba(0, 0, 0, 0.7);
}
.footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}
.footer a:hover {
  color: #f39c12;
}

/* =============================== */
/* Responsive - móviles */
/* =============================== */
@media (max-width: 768px) {
  .brand-logo {
    width: 200px;
    max-height: 100px;
    margin-bottom: 0rem; /* antes tenía 1rem */
  }
  .registro-container {
    margin: 10rem auto 1rem;
  }
  .header-content h1 {
    font-size: clamp(1rem, calc(100vw / 11), 2rem);
  }
  .header-content p {
    font-size: 0.9rem;
  }
  
}

@media (max-width: 768px) {
  .registro-titulo {
    /* reduce el tamaño para móvil */
    font-size: 1.5rem !important;
    /* evita que salte línea */
    white-space: nowrap !important;
    /* opcional: ajusta el interlineado para ahorrar espacio */
    line-height: 1.1 !important;
    /* opcional: si aún sobrepasa, puedes usar vw para escalar */
    /* font-size: clamp(1rem, 5vw, 1.6rem) !important; */
    
  }
}

@media (max-width: 350px) {
  /* Título del header */
  .header-content h1 {
    font-size: 1.7rem;      /* prueba bajándolo hasta que entre bien */
    white-space: normal;    /* deja que haga wrap si hace falta */
  }

  /* Texto “Olvidaste tu contraseña?” */
  .registro-titulo {
    font-size: 1.4rem !important;        /* reduce el tamaño para que quepa */
    white-space: normal !important;    /* permite que salte línea en vez de cortarse */
    line-height: 1.2 !important;       /* ajusta el interlineado para que no quede muy “rápido” */
  }
}


@media (max-width: 300px) {
  /* Título del header */
  .header-content h1 {
    font-size: 1.5rem;      /* prueba bajándolo hasta que entre bien */
    white-space: normal;    /* deja que haga wrap si hace falta */
  }

  /* Texto “Olvidaste tu contraseña?” */
  .registro-titulo {
    font-size: 1.2rem !important;        /* reduce el tamaño para que quepa */
    white-space: normal !important;    /* permite que salte línea en vez de cortarse */
    line-height: 1.2 !important;       /* ajusta el interlineado para que no quede muy “rápido” */
  }
}

  /* ============================
   Fondo “fijo” + footer pegado
   ============================ */

/* 1) html/body llenan la ventana, permiten pull-to-refresh */
html,
body {
    
  min-height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;            /* deja que la página siga scrollando */
  overscroll-behavior-y: auto !important; /* permite pull-to-refresh en iOS/Android */
}

/* 2) Fondo fijo en su propio elemento */
.fixed-bg {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-image: url('assets/images/fondo_forgot_1.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  pointer-events: none !important; /* no interfiere con el scroll */
  z-index: -1 !important;
  background-color: #eb632d !important;
}

/* 2b) En móvil cambia la imagen */
@media (max-width: 768px) {
  .fixed-bg {
    background-image: url('assets/images/fondo_forgot_1.png') !important;
  }
}

/* 3) Empuja el footer al fondo */
.page-content {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
}

/* 4) Mantén el footer siempre abajo */
.footer {
  margin-top: auto !important;
}
/* ─────────────────────────────────────────────
   Desactivar auto-enlaces telefónicos en iOS
   ───────────────────────────────────────────── */
a[x-apple-data-detectors],
a[href^="tel:"] {
  color: inherit !important;         /* mantiene el color original */
  text-decoration: none !important;  /* quita cualquier subrayado */
  pointer-events: none !important;   /* desactiva el clic */
  cursor: default !important;        /* cursor normal */
}

@media (max-width: 768px) {
  .registro-container {
    margin-top: 8rem !important;
    padding: 1rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .registro-formulario label {
    margin-top: 0.5rem !important;
    font-size: 1.1rem !important;
  }

  .registro-formulario input {
    padding: 8px !important;
    font-size: 0.95rem !important;
  }

  .btn-unete {
    font-size: 1rem;       /* Puedes modificar este valor libremente */
    padding: 5px;         /* Y este también */
    margin-top: 1rem;
  }
  .footer {
      font-size: 0.8rem !important;}
}
@media (max-width: 768px) {
  .btn-unete {
    display: block;
    margin: 1rem auto 0 auto; /* arriba 1rem, abajo 0, centrado horizontal */
    width: 90%;              /* ajusta el ancho según lo que necesites */
    max-width: 300px;        /* tope de tamaño para evitar que crezca demasiado */
    font-size: 1rem;
    padding: 10px;
  }
  .header-content h1 {
      margin-top: 0rem !important;
  }
  .header-content h1 {
  font-size: clamp(1.9rem, 2vw, 2.8rem); /* ajusta según tamaño de pantalla */
  white-space: normal;                   /* permite salto de línea */
  word-break: break-word;                /* rompe palabras si es necesario */
  line-height: 1.2;
  text-align: center;
}

}
