/* Pantallas de entrada (lista de condominios, inicio de sesión y sus pasos, plataforma): el mismo cuarto oscuro
   de la página de Olmos. Las páginas llevan <html class="dark entrada">; aquí se ajustan las piezas de Tailwind
   (campos, botones, avisos) a la paleta y se dibuja el armazón propio (.e-*). */
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("fuentes/unbounded.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fuentes/onest.woff2") format("woff2"); }

.entrada {
  --bg: #03101f; --surface: #0a1c30; --field-1: #0d2742; --field-2: #12355a;
  --ink: #e8f2f8; --muted: #a3b6c6; --accent: #61d6ed; --accent-ink: #03101f; --claro: #e8f2f8;
  --display: "Unbounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --texto: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --margen: clamp(16px, 2.2vw, 32px);
  --curva: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}
.entrada body { background: var(--bg); color: var(--ink); font-family: var(--texto); font-size: 17px; line-height: 1.55; }
.entrada ::selection { background: var(--accent); color: var(--accent-ink); }

/* ------------------------------------------------------------------ Piezas del formulario (macros de _componentes) */
.entrada h2 { font: 800 clamp(1.25rem, 1.1rem + .6vw, 1.5rem)/1.15 var(--display); letter-spacing: -0.02em; text-transform: uppercase; }
.entrada label { color: var(--muted); font-weight: 500; }
.entrada input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  min-height: 52px; border: 0; border-radius: 0; background: var(--field-1); color: var(--ink); font-size: 17px; }
.entrada input::placeholder { color: #7f95a8; }
.entrada input:focus { outline: 3px solid var(--accent); outline-offset: 0; box-shadow: none; }   /* taste-skill-ignore: quita el anillo de Tailwind */
.entrada button[type="submit"] { min-height: 52px; border-radius: 0; background: var(--accent); color: var(--accent-ink);
  font-size: 17px; font-weight: 500; transition: background-color .2s, transform .2s var(--curva); }
.entrada button[type="submit"]:hover:not(:disabled) { background: #8ae3f4; transform: translateY(-2px); }
.entrada button[type="submit"]:active:not(:disabled) { transform: none; }
.entrada [data-ver-password] { color: var(--muted); }
.entrada [role="alert"], .entrada [role="status"], .entrada .rounded-lg { border-radius: 0; }
.entrada p, .entrada li { color: inherit; }
.entrada .text-zinc-500, .entrada .text-zinc-600, .entrada .dark\:text-zinc-400 { color: var(--muted); }
.entrada a { color: var(--accent); text-underline-offset: 4px; }
.entrada :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ------------------------------------------------------------------ Inicio de sesión: foto a la izquierda, formulario a la derecha */
.e-sala { display: grid; grid-template-columns: 7fr 5fr; min-height: 100dvh; }
.e-foto { position: sticky; top: 0; height: 100dvh; overflow: hidden; background: var(--surface); }
.e-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; filter: brightness(.62) contrast(1.05);
  animation: e-deriva 26s ease-in-out infinite alternate; }
@keyframes e-deriva { from { transform: scale(1.08); } to { transform: scale(1); } }
.e-sello { position: absolute; left: var(--margen); bottom: var(--margen); display: flex; align-items: center; gap: 14px;
  padding: 14px 18px 14px 14px; background: rgba(3, 16, 31, .88); }
.e-sello img { width: 48px; height: 48px; padding: 4px; border-radius: 50%; background: var(--claro); filter: none; animation: none; }
.e-sello p { font: 500 17px/1.3 var(--texto); }
.e-sello span { display: block; font-size: 14px; color: var(--muted); }
.e-panel { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 4vw, 64px); background: var(--bg); }
.e-cabeza { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; }
.e-cabeza img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.e-titulo { font: 800 clamp(2rem, 1.1rem + 1.8vw, 2.5rem)/1.02 var(--display); letter-spacing: -0.03em; text-transform: uppercase;
  overflow-wrap: anywhere; }
.e-tarjeta { width: 100%; max-width: 440px; padding: 28px; background: var(--surface); }
.e-enlaces { max-width: 440px; margin-top: 18px; font-size: 15px; }
.e-panel footer { max-width: 440px; margin-top: 40px; border: 0; justify-content: flex-start; text-align: left; color: var(--muted); font-size: 14px; }
.entrada .text-xs, .entrada .text-sm { font-size: 15px; line-height: 1.5; }
.e-tarjeta p, .e-aviso p, .e-panel footer { max-width: 62ch; }
.e-panel footer img { background: var(--claro); }
.e-panel footer a { color: var(--muted); }

/* ------------------------------------------------------------------ Acceso a clientes */
.e-barra { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; padding-inline: var(--margen); }
.e-marca { display: flex; align-items: center; gap: 12px; color: var(--ink) !important; text-decoration: none; white-space: nowrap; }
.e-marca img { width: 44px; height: 44px; }
.e-marca b { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; color: var(--accent); margin-right: .2em; }
.e-acceso { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding: clamp(32px, 6vw, 96px) var(--margen) 64px; }
.e-acceso-texto { grid-column: 1 / 8; }
.e-acceso-texto h1 { font: 800 clamp(2rem, 1.2rem + 3vw, 3.75rem)/1.02 var(--display); letter-spacing: -0.03em; text-transform: uppercase; }
.e-acceso-texto > p { margin-top: 20px; max-width: 46ch; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); }
.e-buscar { margin-top: 36px; width: 100%; }
.e-lista { margin-top: 28px; display: grid; gap: 4px; }
.e-lista a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; min-height: 84px; padding: 16px 20px;
  background: var(--surface); color: var(--ink); text-decoration: none; transition: background-color .2s; }
.e-lista a:hover { background: var(--field-1); }
.e-lista b { font-size: clamp(1.125rem, 1rem + .5vw, 1.5rem); font-weight: 500; }
.e-lista small { grid-column: 1; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.e-lista svg { grid-column: 2; grid-row: 1 / span 2; color: var(--accent); transition: transform .25s var(--curva); }
.e-lista a:hover svg { transform: translateX(4px); }
.e-vacio { margin-top: 28px; padding: 24px; background: var(--surface); }
.e-acceso-foto { grid-column: 9 / 13; align-self: start; position: sticky; top: 24px; }
.e-acceso-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: brightness(.86) contrast(1.06); }
.e-acceso-foto figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.e-legal { padding: 0 var(--margen) 32px; font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------------------ Entrada de la plataforma: el emblema iluminado */
.e-foto-emblema { display: grid; place-items: center; background: var(--bg); }
.e-foto-emblema img { width: min(70%, 560px); height: auto; aspect-ratio: 1; object-fit: contain; filter: none;
  animation: e-respira 7s ease-in-out infinite alternate; }
@keyframes e-respira { from { transform: scale(1); } to { transform: scale(1.035); } }

/* ------------------------------------------------------------------ Aviso de la plataforma (condominio que no existe o suspendido) */
.e-aviso { min-height: 100dvh; max-width: 40rem; margin: 0 auto; display: flex; flex-direction: column; justify-content: center;
  gap: 20px; padding: 48px var(--margen); }
.e-aviso-marca { color: var(--accent); font-weight: 500; }
.e-aviso p:last-child { margin-top: 12px; }

/* ------------------------------------------------------------------ Entradas */
.e-tarjeta, .e-cabeza, .e-lista li, .e-acceso-texto > h1, .e-acceso-texto > p { animation: e-entra .6s var(--curva) both; }
.e-tarjeta { animation-delay: .08s; }
.e-lista li:nth-child(2) { animation-delay: .06s; } .e-lista li:nth-child(3) { animation-delay: .12s; } .e-lista li:nth-child(n+4) { animation-delay: .18s; }
@keyframes e-entra { from { transform: translateY(18px); } }   /* sin opacidad: el formulario siempre se ve */

/* ------------------------------------------------------------------ Teléfono */
@media (max-width: 860px) {
  .e-sala { grid-template-columns: 1fr; }
  .e-foto { position: relative; height: 30svh; }
  .e-sello { left: 12px; bottom: 12px; gap: 10px; padding: 8px 14px 8px 8px; }
  .e-sello img { width: 36px; height: 36px; }
  .e-sello span { display: none; }
  .e-foto-emblema { height: 34svh; }
  .e-foto-emblema img { width: auto; height: 90%; }
  .e-panel { justify-content: flex-start; padding: 28px 16px 40px; }
  .e-tarjeta { padding: 22px 18px; }
  .e-tarjeta, .e-enlaces, .e-panel footer { max-width: none; }
  .e-acceso { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .e-acceso-texto { grid-column: 1; }
  .e-acceso-foto { display: none; }
  .e-marca span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .e-foto img, .e-foto-emblema img, .e-tarjeta, .e-cabeza, .e-lista li, .e-acceso-texto > h1, .e-acceso-texto > p { animation: none; }
  .entrada button[type="submit"], .e-lista a, .e-lista svg { transition: none; }
}
