/* Antes de entrar: entrar y crear cuenta (pantalla partida con el panel de marca), y revisa tu correo, tu
   contraseña y recuperarla (tarjeta centrada sobre el fondo de marca). Como la maqueta aprobada. */

@keyframes onda { 0% { transform: scale(.55); opacity: .75; } 100% { transform: scale(2); opacity: 0; } }
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes latido { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ── Pantalla partida ───────────────────────────────────────────────────────────────────────── */
.partida { min-height: 100vh; display: flex; flex-wrap: wrap; }
.partida > .lado-formulario { flex: 1 1 420px; padding: 28px 20px; display: flex; align-items: center; justify-content: center; }

.panel-marca {
    flex: 1 1 460px; padding: 40px 48px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
    color: #FFFFFF; background: var(--fondo-marca);
}
.panel-marca .logo { height: 36px; width: auto; align-self: flex-start; }
.panel-marca .lema { display: flex; flex-direction: column; gap: 14px; max-width: 500px; }
.panel-marca h2 { font-size: 42px; line-height: 1.08; font-weight: 800; letter-spacing: -.025em; }
.panel-marca .lema p { font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .78); }
.panel-marca .pie { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; color: rgba(255, 255, 255, .65); }
.panel-marca .pie a { color: rgba(255, 255, 255, .8); }
.panel-marca .pie a:hover { color: #FFFFFF; }

/* La escena: un lector que emite ondas y fichas de lo que pasa en un negocio. */
.escena { position: relative; height: 260px; max-width: 500px; width: 100%; }
.escena .onda {
    position: absolute; left: 50%; top: 50%; width: 170px; height: 170px; margin: -85px 0 0 -85px;
    border-radius: 50%; border: 2px solid rgba(111, 177, 252, .7); animation: onda 3.2s ease-out infinite;
}
.escena .onda:nth-child(2) { animation-delay: 1.06s; }
.escena .onda:nth-child(3) { animation-delay: 2.13s; }
.escena .lector {
    position: absolute; left: 50%; top: 50%; width: 100px; height: 136px; margin: -68px 0 0 -50px;
    border-radius: 22px; background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .24);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .40), inset 0 1px 0 rgba(255, 255, 255, .25);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #FFFFFF;
}
.escena .luz {
    width: 10px; height: 10px; border-radius: 50%; background: #34D399;
    box-shadow: 0 0 14px 4px rgba(52, 211, 153, .75); animation: latido 1.6s ease-in-out infinite;
}
.ficha {
    position: absolute; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px;
    border-radius: 14px; background: #FFFFFF; color: var(--tinta); box-shadow: 0 18px 40px rgba(0, 0, 0, .30);
    animation: flotar 6s ease-in-out infinite;
}
.ficha .simbolo { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ficha .simbolo.verde { background: #DCFCE7; color: var(--verde); }
.ficha .simbolo.azul { background: #E8EFFC; color: var(--azul); }
.ficha .simbolo.ambar { background: #FEF3C7; color: #B45309; }
.ficha .iniciales { width: 34px; height: 34px; border-radius: 50%; font-size: 12px; background: linear-gradient(135deg, #0052D4, #6FB1FC); }
.ficha .textos { display: flex; flex-direction: column; gap: 1px; }
.ficha .textos b { font-size: 13px; font-weight: 700; }
.ficha .textos span { font-size: 12px; color: var(--gris); }
.ficha.arriba-dcha { top: 0; right: 0; }
.ficha.arriba-izda { top: 0; left: 0; }
.ficha.abajo-izda { bottom: 4px; left: 0; animation-duration: 7s; animation-delay: 1.2s; }
.ficha.abajo-dcha { bottom: 14px; right: 0; animation-duration: 7s; animation-delay: 1.4s; }
.ficha.medio-dcha { bottom: 74px; right: 6px; animation-duration: 6.5s; animation-delay: 2.4s; }

@media (max-width: 900px) {
    .panel-marca { padding: 20px 24px; gap: 10px; }
    .panel-marca h2 { font-size: 24px; }
    .panel-marca .solo-ancho { display: none; }
}

/* ── La tarjeta del formulario ──────────────────────────────────────────────────────────────── */
.tarjeta {
    width: 100%; max-width: 400px; padding: 30px 30px 26px; border-radius: 20px; background: #FFFFFF;
    box-shadow: 0 30px 70px -30px rgba(6, 20, 51, .35), 0 0 0 1px rgba(6, 20, 51, .05);
    display: flex; flex-direction: column; gap: 16px;
}
.tarjeta.ancha { max-width: 420px; }
.tarjeta .titulo { display: flex; flex-direction: column; gap: 4px; }
.tarjeta h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.tarjeta .titulo p { font-size: 14px; color: var(--gris); }
.tarjeta .paso { color: var(--azul-vivo); }
.tarjeta .boton { margin-top: 4px; }
.tarjeta .al-pie { font-size: 14px; color: var(--gris); text-align: center; }
.tarjeta .al-pie a { font-weight: 700; }
.tarjeta .nota { font-size: 12px; line-height: 1.5; color: var(--gris); }

.separador { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--gris); }
.separador::before, .separador::after { content: ""; flex: 1; height: 1px; background: var(--linea); }
/* El botón lo pinta Google (su script y sus normas); aquí solo el hueco, para que la página no salte. */
.boton-google { min-height: 44px; display: flex; justify-content: center; }

/* ── Tarjeta centrada sobre el fondo de marca ───────────────────────────────────────────────── */
.centrada {
    min-height: 100vh; padding: 32px 16px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
    background: var(--fondo-marca);
}
.centrada > .logo { height: 36px; width: auto; }
.centrada .tarjeta { max-width: 420px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55); }

/* Revisa tu correo. */
@keyframes onda-sobre { 0% { transform: scale(.7); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes flotar-sobre { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.centrada .tarjeta.correo { max-width: 460px; padding: 44px 40px; border-radius: 24px; align-items: center; gap: 18px; text-align: center; }
.sobre { position: relative; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; }
.sobre .onda { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(54, 104, 255, .45); animation: onda-sobre 2.6s ease-out infinite; }
.sobre .onda + .onda { animation-delay: 1.3s; }
.sobre .circulo {
    width: 80px; height: 80px; border-radius: 50%; color: #FFFFFF;
    background: linear-gradient(135deg, #0052D4 0%, #4364F7 60%, #6FB1FC 100%); box-shadow: 0 16px 34px -10px rgba(0, 82, 212, .7);
    display: flex; align-items: center; justify-content: center; animation: flotar-sobre 4s ease-in-out infinite;
}
.tarjeta.correo h1 { margin-top: 6px; font-size: 30px; }
.tarjeta.correo .destino { font-size: 16px; line-height: 1.6; color: var(--tinta-media); }
.tarjeta.correo .destino strong { color: var(--tinta); overflow-wrap: anywhere; }
.pasos { width: 100%; margin: 0; padding: 16px 18px; list-style: none; border-radius: 16px; background: #F4F7FD; text-align: left; display: flex; flex-direction: column; gap: 10px; counter-reset: paso; }
.pasos li { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--tinta-media); counter-increment: paso; }
.pasos li::before {
    content: counter(paso); width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
    background: var(--azul-vivo); color: #FFFFFF; font-size: 12px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.tarjeta.correo .nota { font-size: 13px; line-height: 1.55; }

/* El medidor de la contraseña (lo mueve cuenta.js; sin JavaScript no sale). */
.medidor { display: flex; flex-direction: column; gap: 6px; }
.medidor .barras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.medidor .barras span { height: 6px; border-radius: 3px; background: var(--linea); transition: background .2s; }
.medidor .texto { font-size: 12px; font-weight: 600; color: var(--gris); }
.medidor[data-nivel="1"] .barras span:nth-child(-n+1) { background: #DC2626; }
.medidor[data-nivel="1"] .texto { color: var(--rojo); }
.medidor[data-nivel="2"] .barras span:nth-child(-n+2) { background: #F59E0B; }
.medidor[data-nivel="2"] .texto { color: #B45309; }
.medidor[data-nivel="3"] .barras span:nth-child(-n+3),
.medidor[data-nivel="4"] .barras span { background: #16A34A; }
.medidor[data-nivel="3"] .texto, .medidor[data-nivel="4"] .texto { color: var(--verde); }

/* En el móvil, panel y formulario uno encima de otro: el panel a su altura y el formulario justo debajo. */
@media (max-width: 900px) {
    .partida { flex-direction: column; flex-wrap: nowrap; }
    .partida > .panel-marca { flex: none; }
    .partida > .lado-formulario { flex: 1 0 auto; align-items: flex-start; }
}
