/* =============================== */
/* ESTILOS GENERALES DE LA SECCIÓN */
/* =============================== */
/* Estilos Generales */





  /* Encabezado */
  header {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  /* Contenido del encabezado */
  .header-content {
    text-align: center;
    margin-top: 0;
  }
  
  .header-content h1 {
    white-space: nowrap;
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    font-weight: bold;

    /* Gradiente de fuego: amarillo arriba, naranja en el medio, rojo abajo */
    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: 0rem;      /* añade un poco de espacio encima */
    margin-bottom: 0.5rem;  /* “sube” el h1 medio rem */
    font-size: clamp(2rem, calc(100vw / 9), 3rem);
}


  /* Subtítulo */
/* Subtítulo */
.header-content p {
  font-size: 1.4rem;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(254, 253, 253, 0.8);
  margin: 0 0 20px 0;
  font-weight: bold;
}
  
  /* Botón "Inicio" */
  .home-container {
    margin-top: 10px;
  }
  
  .home-container .footer-link {
    display: inline-block;  /* Agregado para que el elemento se comporte como bloque */
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 20px;
    border: 2.5px solid #f39c12;
    border-radius: 5px;
    transition: color 0.3s ease, background-color 0.3s ease;
  }
  
  .home-container .footer-link:hover {
    color: #f39c12;
    background-color: rgb(255, 255, 255);
  }


  .brand-name {
    position: absolute !important;   /* lo saca del flujo visual */
    width: 1px !important;           /* tamaño mínimo */
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;         /* elimina márgenes */
    overflow: hidden !important;     /* oculta cualquier contenido sobrante */
    clip: rect(1px, 1px, 1px, 1px) !important; /* recorta todo el elemento */
    white-space: nowrap !important;  /* evita saltos de línea */
    border: 0 !important;
  }
  
  /* Estilo base para el logo en escritorio */
  .brand-logo {
    width: 240px;      /* ajusta este valor al tamaño “ideal” en desktop */
    height: auto;      /* mantiene la proporción original */
  }
  
  /* Si quieres forzar un máximo de altura */
  .brand-logo {
    max-height: 120px;  /* para que no sea excesivamente alto */
  }
  
  
  /* =============================== */
  /* FORMULARIO DE REGISTRO */
  /* =============================== */
  .registro-container {
    flex: 1;
    padding: 2rem;
    margin: 10rem auto;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 15px rgba(255, 136, 0, 0.7);
    top: 50%;
    
  }
  
  .registro-titulo {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffd700;
    text-shadow: 0 0 6px #000;
    
  }
  
  .registro-formulario label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #FFFF00;
    
  }


  .remember-label {
    color: #FFD700 !important;             /* mismo que tu .forgot-link */
    font-weight: bold !important;    /* mismo peso que el enlace */
    text-decoration: none !important;  /* quita el subrayado */
    cursor: pointer !important;        
    -webkit-text-stroke: 0 !important; /* quita cualquier trazo */
  }
  

  .registro-formulario input:focus,
  .registro-formulario textarea:focus {
    outline: 4px solid #ff8800;  /* Contorno de 2px sólido en naranja */
}

  
  .btn-unete {
    margin-top: 15px;
    padding: 12px;
    width: 100%;
    background-color: #000;
    color: #fff;
    border: 3px solid #ffd700;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  
  .btn-unete:hover {
    background-color: #ff4800 !important;  /* DeepSkyBlue */
    border-color:     #fffb00 !important;
    color:            #fffb00 !important;  /* texto oscuro para contraste */
    transform: scale(1.05);
  }



  /* =============================== */
  /* BOTON DE GOOGLE*/
  /* =============================== */

  .google-login-container {
    text-align: center;
    margin-top: 1.5rem;
  }
  
  .btn-google {
    background: #fff;
    color: #757575;
    border: 2px solid #fffb00;
    border-radius: 400px;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    cursor: pointer;
  }
  
  .btn-google:hover {
    background-color: #f5f5f5;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    transform: scale(1.05);
  }
  
  .google-icon {
    width: 20px;
    height: 20px;
  }
  
  .separador-social {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #fffb00;
    font-size: 14px;
    font-weight: 500;
  }
  
  .separador-social hr {
    flex: 1;
    border: none;
    border-top: 1px solid #fffb00;
    margin: 0 10px;
  }
  


    /* =============================== */
  /* MENSAJES DE ERROR */
  /* =============================== */

  .error-message {
    background-color: #fdc3bd;  /* Un fondo ligeramente rosado */
    color: #ff0000;             /* Texto en rojo oscuro */
    padding: 0.75rem;           /* Espaciado interno */
    border: 1px solid #ff0019;  /* Borde sutil que armoniza con el fondo */
    border-radius: 4px;         /* Bordes redondeados */
    margin-bottom: 1rem;        /* Separación inferior para distanciar del formulario */
    font-size: 1rem;         /* Tamaño de fuente adecuado */
    text-align: center;         /* Centrar el texto */
    font-weight: 700; /* Puedes probar con 700 o 'bold' */
  }
  
  
  /* =============================== */
  /* PIE DE PÁGINA */
  /* =============================== */
  /* 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;
  }
  
/*------------------------------------------------------------------------------------------------
ESTILOS PARA LOS BOTONES FLOTANTES (COPIAR ESTE FRAGMENTO EN LOS DEMÁS CSS)
------------------------------------------------------------------------------------------------*/

/* Aseguramos que el header permita posicionar hijos de forma absoluta */
header {
    position: relative;
  }


  /* Añade a css_pagina_login.css */
.privacy-note {
  color: #FFD700;          /* Amarillo */
  font-weight: bold;       /* Texto en negrita */
  margin-top: 1rem;
  font-size: 1.1rem;
}

.privacy-note a {
  color: #FFA500;          /* Naranja */
  font-weight: bold;       /* Enlace en negrita */
  text-decoration: none;   /* Opcional: sin subrayado */
}

.privacy-note a:hover {
  text-decoration: underline;
}


  /* 🔮 Mensaje de error en login */
#mensajeLogin {
  display: none; /* Oculto por defecto */
  background: linear-gradient(90deg, #5c0101, #7a0f0f, #5c0101);
  color: #ffd1a4;
  border: 2px solid #ff4d4d;
  border-radius: 10px;
  padding: 1rem;
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.7);
  animation: destelloError 0.8s ease-in-out;
}

/* -------------------------------
   Mensaje de éxito
   ------------------------------- */
#mensajeLogin.mensaje-exito {
  background: linear-gradient(90deg, #1a472a, #2d6a4f, #1a472a);
  color: #d4f8e8;
  border: 2px solid #95d5b2;
  box-shadow: 0 0 10px rgba(149, 213, 178, 0.7);
  animation: destelloExito 0.8s ease-in-out;
}

/* Animación suave para éxito */
@keyframes destelloExito {
  0%, 100% { opacity: .5; }
  50%      { opacity: 1; }
}
/* 🧾 Inputs personalizados (email, password, etc.) */
.registro-formulario input[type="text"],
.registro-formulario input[type="email"],
.registro-formulario input[type="password"] {
  width: 100%;
  padding: 0.8rem;
  margin-top: 5px;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  border: 2px solid #ffa726; /* Borde naranja */
  background-color: rgba(0, 0, 0, 0.4); /* Fondo oscuro y semitransparente */
  color: #ffffff; /* Texto blanco */
  font-size: 1rem;
  box-sizing: border-box;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}




/* ✨ Animación mágica al mostrar el error */
@keyframes destelloError {
  0% {
    transform: scale(0.95);
    opacity: 0.3;
    box-shadow: none;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
    box-shadow: 0 0 20px rgba(255, 100, 100, 0.8);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.7);
  }
}


  

  /* Alinear el checkbox y su etiqueta en la misma línea */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
  }
  
  .checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ffffff !important;
    margin-top: 8px; /* ajusta este valor hasta que quede a tu gusto */
  }

  .forgot-link {
    margin-left: auto;       /* empuja el enlace al extremo derecho */
    color: #FFD700;          /* amarillo potente */
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
  }
  .forgot-link:hover {
    text-decoration: underline;
  }
  
  
  
    /* Responsive: reducimos el logo en móvil */
@media (max-width: 768px) {
  .brand-logo {
    width: 200px;     /* más pequeño en móviles */
    max-height: 100px;
    
    
  }
  .header-brand {
    margin-top: 40px;   /* baja todo el logo + texto 20px */
  }
}

/* Si el logo está demasiado pegado, añade un margen */
.header-brand .brand-logo {
  margin-right: 8px; /* separación entre logo y texto (aunque el texto esté oculto) */
}
  
  /* ========================================
     Media Query para dispositivos móviles
     ======================================== */
  /* General para móviles (max-width: 768px) */
  @media (max-width: 768px) {
    body {
      background-attachment: scroll !important;  /* Forzar scroll en lugar de fixed */
      background-size: cover !important;
      background-position: center center !important;
    }
    header {
      width: 100%;
    }
    .header-content {
      width: 100%;
      margin: 0 auto;
    }
    /* Ajustamos la fórmula en pantallas medianas */
.header-content h1 {
  font-size: clamp(1.5rem, calc(100vw / 11), 5rem);
  display: inline-block;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  text-align: center; /* opcional si quieres centrarlo */
}

    .header-content p {
      font-size: 1rem;
    }

 
  }
  
  /* Media Query para pantallas muy pequeñas (hasta 350px) */
  @media (max-width: 350px) {
    .header-content h1 {
      /* Mínimo 1.6rem, óptimo calc(100vw / 9), máximo 4rem */
      font-size: clamp(1.6rem, calc(100vw / 9), 4rem) !important;
      padding: 0 10px;
      text-align: center;
    }
    .header-content p {
      font-size: 0.9rem !important;
      text-align: center;
      margin: 0 10px;
    }
    
  }
  
  @media (max-width: 768px) {
    .registro-container {
      /* Baja solo 2rem en móvil en lugar de 6rem */
      margin: 2rem auto 1rem;
      /* O si usas translateY, redúcelo o elimínalo */
      transform: translateY(0) !important;
    }
  }
  
  @media (max-width: 768px) {
    .checkbox-wrapper {
      display: flex !important;
      align-items: center;
      width: 100%;              /* asegúrate de que ocupe todo el ancho */
    }
    .checkbox-wrapper label {
      margin-right: 8px;        /* un poquitín de espacio tras “Recuérdame” */
    }
    .checkbox-wrapper .forgot-link {
      margin-left: auto;        /* empuja el link al extremo derecho */
      text-align: right;        /* por si quieres alinear su texto */
      display: inline-block;    /* para que margin-left funcione bien */
    }

      /* Evita desbordamiento horizontal en móviles */
    body {
       overflow-x: hidden !important;
      }

    /* Asegura que nada dentro del body se desborde */
    * {
      box-sizing: border-box !important;
      max-width: 100% !important;
    }
  }

  @media (max-width: 600px) {
    /* Contenedor principal del formulario de registro */
    .registro-container {
      max-width: 92%; /* Reduce el ancho del formulario para que se vea más compacto */
      padding: 0.8rem; /* Espaciado interior más ajustado */
      margin: 5rem auto; /* Menos margen superior/inferior y centrado */
    }
  
    /* Etiquetas de los campos del formulario */
    .registro-formulario label {
      margin-bottom: 0rem; /* Menos espacio debajo de cada label */
      font-size: 1rem; /* Tamaño de letra más pequeño para móviles */
    }
  
    /* Campos de entrada y el textarea */
    .registro-formulario input,
    .registro-formulario textarea {
      margin-bottom: 0rem; /* Reduce el espacio entre los campos */
      padding: 0.5rem; /* Reduce el relleno interno de los campos */
      font-size: 0.85rem; /* Letra más pequeña para ahorrar espacio */
    }
  
    /* Botón de registro */
    .btn-unete {
      padding: 0.5rem 0.8rem; /* Menos altura y anchura del botón */
      font-size: 0.95rem; /* Tamaño de fuente reducido */
      margin-top: 0rem; /* Menos espacio arriba del botón */
    }
  
    /* Contenedor del botón de Google */
    .google-login-container {
      margin-top: 0.8rem; /* Reduce el espacio antes del botón de Google */
    }
  
    /* Separador visual entre métodos de acceso */
    .separador-social {
      margin: 0.8rem 0; /* Espacio arriba y abajo del separador */
    }
  }
  
  
  
      /* ============================
   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_invoca_tu_cuenta_2.webp') !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;
}
/* 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;
}


/* 2b) En móvil cambia la imagen */
@media (max-width: 768px) {
  .fixed-bg {
    background-image: url('assets/images/fondo_invoca_tu_cuenta_movil.webp') !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 */
}


.spinner-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.spinner {
  width: 50px; height: 50px;
  border: 5px solid #eb632d;
  border-top: 5px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}


.password-field { position: relative; }
.password-field input { padding-right: 2.5rem; }

.toggle-pass {
  position: absolute;
  right: .5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: .25rem;
  line-height: 1;
}

.toggle-pass:focus-visible {
  outline: 2px solid rgba(0,0,0,.25);
  outline-offset: 2px;
  border-radius: .375rem;
}

.caps-hint {
  margin-top: .25rem;
  font-size: .85rem;
  color: #d33; /* aviso */
}



/* Step-up modal (placeholder) */
.stepup-modal{ position:fixed; inset:0; display:none; align-items:center; justify-content:center; z-index:9999; }
.stepup-modal.is-open{ display:flex; }
.stepup-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.45); }
.stepup-dialog{
  position:relative; background:#fff; max-width:420px; width:92%;
  border-radius:12px; padding:20px 16px; box-shadow:0 10px 30px rgba(0,0,0,.2);
}
.stepup-close{ position:absolute; right:10px; top:8px; background:transparent; border:0; font-size:20px; cursor:pointer; }
.stepup-desc{ margin:.5rem 0 1rem; font-size:.95rem; color:#444; }
.stepup-actions{ display:flex; gap:.5rem; }
.btn-step{
  flex:1; padding:.6rem .8rem; border-radius:8px; border:1px solid #ddd; cursor:pointer;
  background:#111; color:#fff; font-weight:600;
}
.btn-step.btn-alt{ background:#f5f5f5; color:#111; }
.stepup-msg{ margin-top:.75rem; font-size:.9rem; color:#b00; min-height:1.2em; }
