:root {
  --fondo: #1e1858;
  --fondo-medio: #2a2470;
  --fondo-claro: #322b88;
  --acento: #5750ad;
  --acento-claro: #7773eb;
  --blanco: #ffffff;
  --celeste: #dfe7f4;
  --texto-principal: #ffffff;
  --texto-suave: #c3c0e8;
  --texto-tenue: #8f8cc4;
  --borde: #4a44b8;
  --borde-claro: #4f4ab0;
  --error: #ff6b6b;
  --chico: 0.25rem;
  --pequeno: 0.5rem;
  --normal: 1rem;
  --grande: 1.5rem;
  --mayor: 2rem;
  --enorme: 3rem;
  --margen: 24px;
  --radio: 0.25rem;
  --radio-md: 0.5rem;
  --radio-lg: 0.75rem;
  --fuente: 'DM Sans', sans-serif;
  --fuente-titulo: 'Syne', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--fuente);
  background-color: #1e1858;
  background-image: var(--luz-fondo, none),
    radial-gradient(ellipse at top left, #2a2470 0%, #1e1858 60%);
  color: var(--texto-principal);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input {
  font-family: inherit;
}

.logo {
  height: 35px;
  width: 45px;
}

.titulo-grande {
  font-family: var(--fuente-titulo);
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.titulo-medio {
  font-family: var(--fuente-titulo);
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}


.encabezado {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--margen);
  border-bottom: 1px solid rgba(74, 68, 184, 0.35);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(30, 24, 88, 0.7);
}

.marca {
  display: flex;
  align-items: center;
  gap: 10px;
}

.marca-nombre {
  font-family: var(--fuente-titulo);
  font-size: 18px;
  font-weight: 700;
  color: var(--blanco);
}

.marca-nombre span {
  color: var(--acento-claro);
}

.nav-enlaces {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-enlaces a {
  font-size: 14px;
  color: var(--texto-suave);
  transition: color 0.2s;
}

.nav-enlaces a:hover {
  color: var(--blanco);
}


main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px var(--margen);
}

.contenedor-central {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  width: 100%;
  max-width: 960px;
}


.lado-info {
  flex: 1;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lado-info .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(87, 80, 173, 0.25);
  border: 1px solid rgba(119, 115, 235, 0.4);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--acento-claro);
  width: fit-content;
}

.lado-info h1 {
  font-family: var(--fuente-titulo);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
}

.lado-info h1 span {
  color: var(--acento-claro);
}

.lado-info p {
  font-size: 14px;
  color: var(--texto-suave);
  line-height: 1.65;
}

.beneficios {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.beneficio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--texto-suave);
}

.beneficio .material-symbols-outlined {
  font-size: 18px;
  color: var(--acento-claro);
}


.tarjeta-envuelta {
  flex-shrink: 0;
  width: 100%;
  max-width: 400px;
}

.tarjeta {
  background: linear-gradient(145deg, rgba(50, 43, 136, 0.55), rgba(42, 36, 112, 0.45));
  border: 1px solid rgba(74, 68, 184, 0.5);
  border-radius: 16px;
  padding: 36px 32px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tarjeta-cabecera {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  text-align: center;
}

.icono-escudo {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #5750ad, #7773eb);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icono-escudo .material-symbols-outlined {
  font-size: 28px;
  color: #fff;
}


.alerta-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.4);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--error);
  margin-bottom: 18px;
}

.alerta-error .material-symbols-outlined {
  font-size: 18px;
  flex-shrink: 0;
}


.formulario {
  display: flex;
  flex-direction: column;
  gap: var(--normal);
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.etiqueta-campo {
  font-size: 13px;
  font-weight: 600;
  color: var(--texto-suave);
}

.fila-campo {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.enlace-olvide {
  font-size: 12px;
  color: var(--acento-claro);
  transition: opacity 0.2s;
}

.enlace-olvide:hover {
  opacity: 0.75;
}

.caja-entrada {
  position: relative;
}

.icono-entrada {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--texto-tenue);
  pointer-events: none;
}

.entrada {
  width: 100%;
  background: rgba(15, 12, 54, 0.6);
  border: 1px solid var(--borde);
  border-radius: var(--radio-md);
  color: var(--blanco);
  padding: 11px 14px 11px 40px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.entrada::placeholder {
  color: var(--texto-tenue);
}

.entrada:focus {
  border-color: var(--acento-claro);
  box-shadow: 0 0 0 3px rgba(119, 115, 235, 0.2);
}

.entrada-con-boton {
  padding-right: 44px;
}

.boton-mostrar {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--texto-tenue);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.boton-mostrar:hover {
  color: var(--blanco);
}

.boton-ingresar {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #5750ad, #7773eb);
  color: #fff;
  border-radius: 8px;
  font-family: var(--fuente-titulo);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(87, 80, 173, 0.4);
  margin-top: 4px;
}

.boton-ingresar:hover {
  opacity: 0.88;
  box-shadow: 0 6px 20px rgba(87, 80, 173, 0.5);
}

.boton-ingresar:active {
  transform: scale(0.98);
}

@keyframes girar {
  to {
    transform: rotate(360deg);
  }
}

.girando .material-symbols-outlined {
  animation: girar 0.8s linear infinite;
  display: inline-block;
}

.separador {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
}

.separador-linea {
  flex: 1;
  height: 1px;
  background: rgba(74, 68, 184, 0.4);
}

.texto-registro {
  font-size: 13px;
  color: var(--texto-tenue);
  text-align: center;
}

.texto-registro a {
  color: var(--acento-claro);
  font-weight: 600;
}

.texto-registro a:hover {
  text-decoration: underline;
}


.pie {
  border-top: 1px solid rgba(74, 68, 184, 0.35);
  padding: 18px var(--margen);
}

.pie-interior {
  max-width: 960px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.pie-marca {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pie-nombre {
  font-family: var(--fuente-titulo);
  font-size: 13px;
  font-weight: 700;
  color: var(--acento-claro);
}

.pie-derechos {
  font-size: 11px;
  color: var(--texto-tenue);
}

.pie-nav {
  display: flex;
  gap: 20px;
}

.pie-nav a {
  font-size: 12px;
  color: var(--texto-tenue);
  transition: color 0.2s;
}

.pie-nav a:hover {
  color: var(--blanco);
}

@media (max-width: 700px) {
  .contenedor-central {
    flex-direction: column;
    gap: 32px;
  }

  .lado-info {
    display: none;
  }

  .tarjeta-envuelta {
    max-width: 100%;
  }
}