* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--blanco);
  background:
    linear-gradient(rgba(4, 18, 35, 0.45), rgba(4, 18, 35, 0.82)),
    url("../img/fondo-industrial/fondo-principal.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* ENCABEZADO */

.header {
  width: 100%;
  min-height: 88px;
  padding: 18px 6%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: rgba(3, 14, 28, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  color: var(--blanco);
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  padding: 12px 24px;
  border: 1px solid var(--dorado);
  border-radius: 50px;
  background: rgba(6, 26, 47, 0.5);
  transition: 0.25s ease;
}

.nav a:hover {
  background: var(--dorado);
  color: var(--azul-oscuro);
  transform: translateY(-2px);
}

/* CONTENEDOR GENERAL */

.pagina {
  width: 100%;
  padding: 42px 6% 120px;
}

/* HERO */

.hero {
  max-width: 760px;
  margin: 0 auto 38px;
  padding: 0;
  text-align: center;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  animation: entradaSuave 0.8s ease;
}

.hero-logo img {
  width: min(380px, 72vw);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
}

.hero-subtitulo {
  margin-top: 16px;
  font-size: 1.22rem;
  font-weight: 900;
  color: var(--dorado);
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.75);
}

/* TARJETAS */

.modulos {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: stretch;
}

.modulo {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--sombra);
  border: 1px solid rgba(255, 255, 255, 0.36);
  animation: entradaSuave 0.9s ease;
}

.modulo-publico {
  background: rgba(255, 255, 255, 0.95);
  color: var(--azul-oscuro);
}

.modulo-privado {
  background: rgba(4, 19, 37, 0.95);
  color: var(--blanco);
}

.modulo-imagen {
  width: 100%;
  background: #ffffff;
  padding: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.modulo-imagen img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  display: block;
  border-radius: 18px;
}

.modulo-contenido {
  padding: 28px 30px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.modulo-contenido h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1.15;
}

.modulo-contenido p {
  font-size: 1.04rem;
  line-height: 1.6;
  margin-bottom: 22px;
}

.boton {
  width: 100%;
  min-height: 54px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: none;
  border-radius: 16px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  transition: 0.25s ease;
}

.boton:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.boton-publico {
  margin-top: auto;
  color: var(--blanco);
  background: linear-gradient(135deg, #006ecb, #004d99);
}

.boton-privado {
  color: var(--azul-oscuro);
  background: linear-gradient(135deg, var(--dorado), #f3c85e);
}

/* LOGIN */

.login {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.login input {
  width: 100%;
  min-height: 50px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  outline: none;
  font-size: 1rem;
  color: var(--azul-oscuro);
  background: rgba(255, 255, 255, 0.96);
}

.login input:focus {
  border-color: var(--dorado);
  box-shadow: 0 0 0 3px rgba(214, 165, 54, 0.25);
}

#mensajeLogin {
  min-height: 22px;
  font-size: 0.95rem;
  font-weight: 800;
}

/* QUIÉNES SOMOS */

.quienes-somos {
  max-width: 1120px;
  margin: 58px auto 0;
  padding: 38px;
  background: rgba(4, 19, 37, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 26px;
  box-shadow: var(--sombra);
  animation: entradaSuave 1s ease;
}

.quienes-somos h2 {
  color: var(--dorado);
  font-size: 2.15rem;
  margin-bottom: 20px;
}

.quienes-somos p {
  color: var(--texto-suave);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.quienes-somos strong {
  color: var(--dorado);
}

/* LOGO FLOTANTE */

.footer-flotante {
  position: fixed;
  right: 22px;
  bottom: 18px;
  z-index: 120;
  width: 145px;
  padding: 12px;
  background: rgba(3, 14, 28, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: 0.25s ease;
}

.footer-flotante:hover {
  transform: translateY(-3px);
}

.footer-flotante img {
  width: 98px;
  height: auto;
  display: block;
}

.footer-flotante a {
  color: var(--blanco);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-flotante a:hover {
  color: var(--dorado);
}

/* RESPONSIVE */

@media (max-width: 1050px) {
  .modulos {
    grid-template-columns: 1fr;
    max-width: 760px;
  }

  .modulo-imagen img {
    max-height: none;
  }
}

@media (max-width: 720px) {
  .header {
    justify-content: center;
    padding: 16px 4%;
  }

  .nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav a {
    padding: 10px 18px;
    font-size: 0.95rem;
  }

  .pagina {
    padding: 30px 4% 80px;
  }

  .hero {
    margin-bottom: 30px;
  }

  .hero-logo img {
    width: min(300px, 78vw);
  }

  .hero-subtitulo {
    font-size: 1rem;
  }

  .modulo-contenido {
    padding: 24px 22px 28px;
  }

  .modulo-contenido h2 {
    font-size: 1.65rem;
  }

  .footer-flotante {
    position: static;
    margin: 36px auto 0;
  }
}
.estado-scanner {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb000, #ff6a00);
  color: #07111f;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
}

.login-scanner {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.login-scanner input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 200, 255, 0.35);
  background: rgba(255,255,255,0.92);
  color: #07111f;
  font-weight: 700;
}

#mensajeScanner {
  color: #ffb000;
  font-weight: 800;
  margin-top: 6px;
}
/*==========================================
  BETA PUBLICA
==========================================*/

.banner-beta{

    max-width:900px;
    margin:35px auto 60px;

    padding:30px;

    background:rgba(8,18,32,.88);

    border:1px solid rgba(255,190,0,.35);

    border-radius:18px;

    box-shadow:0 0 30px rgba(255,190,0,.12);

    text-align:center;

}

.banner-beta h3{

    color:#ffbe00;

    margin-bottom:18px;

    font-size:1.5rem;

}

.banner-beta p{

    color:#e7edf4;

    line-height:1.8;

    margin-bottom:15px;

}

.beta-final{

    font-weight:bold;

    color:#7dd3fc;

}
/* ==========================================
   AJUSTE FINAL PORTADA BETA
========================================== */

.hero-logo img {
  max-width: 360px;
  width: 100%;
}

.banner-beta {
  margin-top: 25px;
  margin-bottom: 45px;
}

.modulos {
  align-items: stretch;
  gap: 36px;
}

.modulo {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.modulo:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.estado-scanner {
  display: block;
  width: 100%;
  text-align: center;
  border-radius: 14px;
  background: linear-gradient(90deg, #ffb000, #ff7a00);
  color: #06111f;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 12px 18px;
  margin-bottom: 18px;
  box-shadow: 0 0 18px rgba(255, 176, 0, 0.35);
}

.footer-flotante {
  max-width: 150px;
  text-align: center;
  padding: 18px 14px;
}

.footer-flotante img {
  max-width: 95px;
  margin-bottom: 10px;
}

.footer-flotante a {
  font-weight: 800;
  font-size: 0.85rem;
}

.footer-version {
  margin-top: 14px;
  color: #ffffff;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 700;
}

.footer-version2 {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 190, 0, 0.35);
  color: #cbd5e1;
  font-size: 0.72rem;
  line-height: 1.35;
}