@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Poppins:wght@400;500;600&family=Nunito+Sans:wght@400;500;600&display=swap');

/* ═══════════════════════════════════════════════════════════════════
   AUTENTICACIÓN — splash/login y modales de cuenta (Admin y Barbero)
   Archivo: src/css/autenticacion.css

   CÓMO USARLO
   1. Cárgalo al final de las hojas de estilo de admin.html y barbero.html:
        <link rel="stylesheet" href="/src/css/autenticacion.css">
   2. Logo: src/images/logobookcr.jpg  (la ruta se resuelve desde este archivo: ../images/logobookcr.jpg)
   3. Solo cambia la apariencia. No toca formularios, IDs ni manejadores de authenticacion.js.
   4. Incluye los estilos .rpm-* de cambiar contraseña y correo para ambos paneles.

   Sustituye visualmente al splash .lxp de admin.css (poste + ola + texto) sin editar ese archivo:
   authenticacion.js sigue creando el mismo marcado y este CSS lo redibuja.

   LÍNEA DE TIEMPO DEL SPLASH (desde que arranca, clase .is-go)
     0.00 – 0.80 s  el logo aparece con reveal suave (scale + blur → nítido)
     0.85 – 1.85 s  brillo diagonal + resplandor que recorren el logo (de izquierda a derecha)
     1.85 – 2.30 s  el logo se desliza hacia abajo
     2.25 – 3.15 s  barra de carga blanca fina que se llena
     3.30 – 4.20 s  el splash sube y sale por arriba; el formulario sube desde abajo al mismo ritmo
   El logo se muestra SIN contenedor: solo la imagen (se asume con fondo transparente).
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --bk-splash-bg: #000000; /* igual al fondo de logobookcr.jpg */
  --bk-navy: #0b1220;
  --bk-navy-2: #16264a;
  --bk-blue: #1a56db;
  --bk-blue-deep: #1e3a8a;
  --bk-red: #c41e3a;
  --bk-logo: url("../images/logobookcr.jpg");
  --bk-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Curva de "empuje": arranque con un instante de resistencia y luego un impulso fuerte que frena suave.
     La usan el splash y el formulario juntos para que sigan en contacto todo el recorrido. */
  --bk-push: cubic-bezier(0.62, 0, 0.12, 1);
}

/* ═══════════════════════════════════════════════════════════════════
   1) SPLASH
   ═══════════════════════════════════════════════════════════════════ */

/* Se oculta todo lo del splash anterior: bandas, olas, burbujas, estelas, texto y porcentaje */
.lxp-root .lxp-trail,
.lxp-root .lxp__band,
.lxp-root .lxp__sea,
.lxp-root .lxp__ring,
.lxp-root .lxp__spark,
.lxp-root .lxp__brand,
.lxp-root .lxp__pct { display: none !important; }

/* Negro dominante con un halo gris casi imperceptible en las cuatro esquinas. */
.lxp-root .lxp {
  -webkit-mask-image: none;
  mask-image: none;
  background:
    radial-gradient(ellipse 44vmax 38vmax at 0% 0%,     rgba(226, 230, 238, 0.11), transparent 75%),
    radial-gradient(ellipse 44vmax 38vmax at 100% 0%,   rgba(226, 230, 238, 0.11), transparent 75%),
    radial-gradient(ellipse 44vmax 38vmax at 0% 100%,   rgba(226, 230, 238, 0.11), transparent 75%),
    radial-gradient(ellipse 44vmax 38vmax at 100% 100%, rgba(226, 230, 238, 0.11), transparent 75%),
    #000000;
  animation: bkSplashOut 0.9s var(--bk-push) 3.3s forwards;
}

/* La capa raíz deja de bloquear toques en cuanto termina (el JS la elimina más tarde) */
.lxp-root.is-go { animation: bkRootOff 0s linear 4.25s forwards; }

/* Escenario centrado de verdad (el CSS viejo lo subía con margin-top: -3vh) */
.lxp-root .lxp__stage {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
}

/* Contenedor del logo: mide lo mismo que el logo (antes tenía 104×104 fijos y la barra se montaba encima).
   Aquí vive el deslizamiento hacia abajo. Sin halo azul. */
.lxp-root .lxp__mark {
  position: relative;
  display: block;
  width: auto;
  height: auto;
  flex: none;
  animation:
    bkSlide 0.45s var(--bk-ease) 1.85s forwards,
    bkGlow 1s ease-in-out 0.85s both;
}
.lxp-root .lxp__mark::before { display: none; }

/* Logo: SOLO la imagen. Sin fondo, sin borde, sin sombra, sin esquinas, centrada */
.lxp-root .lxp__tile {
  position: relative;
  display: block;
  flex: none;
  width: clamp(150px, 38vmin, 240px);
  height: clamp(150px, 38vmin, 240px);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: var(--bk-logo) center / contain no-repeat;
  box-shadow: none;
  opacity: 0;
  animation: bkLogo 1.35s var(--bk-ease) both;
}
.lxp-root .lxp__tile > * { display: none !important; } /* oculta el poste SVG anterior */

/* BRILLO (reescrito). El ::after pinta EL MISMO logo, más claro, y solo se ve dentro de una banda diagonal
   que cruza de izquierda a derecha. Se fija la caja completa (100% × 100%) porque el CSS viejo del splash
   dejaba width: 45% y top/bottom: -20% en este ::after, y eso dibujaba el logo chico y corrido. */
.lxp-root .lxp__tile::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 100%;
  background: var(--bk-logo) center / contain no-repeat;
  filter: brightness(2.6) saturate(0.5);
  -webkit-mask-image: linear-gradient(105deg, transparent 32%, #000 50%, transparent 68%);
  mask-image: linear-gradient(105deg, transparent 32%, #000 50%, transparent 68%);
  -webkit-mask-size: 300% 100%;
  mask-size: 300% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  transform: none;
  opacity: 0;
  animation: bkShine 1s cubic-bezier(0.4, 0, 0.2, 1) 0.85s forwards;
  pointer-events: none;
}

/* Barra de carga blanca, debajo del logo (el margen cubre los 30 px que baja el logo) */
.lxp-root .lxp__bar {
  position: relative;
  flex: none;
  width: clamp(120px, 34vmin, 168px);
  height: 2px;
  margin-top: 70px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  opacity: 0;
  animation: bkBarIn 0.25s ease 2.2s forwards;
}
.lxp-root .lxp__bar i {
  position: absolute;
  inset: 0;
  width: 100%;
  border-radius: inherit;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left center;
  animation: bkBarFill 0.9s cubic-bezier(0.65, 0, 0.35, 1) 2.25s forwards;
}

@keyframes bkLogo {
  0%   { opacity: 0; transform: scale(0.84) translateY(14px); filter: blur(6px); }
  55%  { opacity: 1; transform: scale(1.03) translateY(0);    filter: blur(0); }
  100% { opacity: 1; transform: scale(1)    translateY(0);    filter: blur(0); }
}
@keyframes bkShine {
  0%   { opacity: 1; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  99%  { opacity: 1; -webkit-mask-position: 0% 0;   mask-position: 0% 0; }
  100% { opacity: 0; -webkit-mask-position: 0% 0;   mask-position: 0% 0; }
}
/* Resplandor que recorre la forma del logo mientras pasa el brillo (se nota aunque el logo sea claro) */
@keyframes bkGlow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); }
  50%      { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.55)) brightness(1.25); }
}
@keyframes bkSlide   { to { transform: translateY(30px); } }
@keyframes bkBarIn   { to { opacity: 1; } }
@keyframes bkBarFill { to { transform: scaleX(1); } }
@keyframes bkSplashOut { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes bkRootOff { to { visibility: hidden; } }

/* TRANSICIÓN FINAL — el formulario EMPUJA al splash.
   Antes dependía de la clase .lx-enter (que el JS puede agregar tarde) y por eso no se sincronizaba.
   Ahora todo cuelga de .lxp-root, que es el propio splash: mientras exista, el formulario espera
   fuera de pantalla (una altura de pantalla más abajo); en cuanto el splash arranca (.is-go) y
   llega su momento (3.3 s), splash y formulario recorren la MISMA distancia, con la MISMA curva,
   duración y retraso: el borde inferior del splash y el borde superior del formulario van pegados,
   así que el formulario empuja al splash hacia arriba sin taparlo ni quedar debajo. */

/* 1) Formulario aparcado abajo mientras el splash exista. Sin !important para que la animación mande. */
body:has(.lxp-root) { overflow: hidden; }
body:has(.lxp-root) :is(#adminAuthGate, #barberoAuthGate) .login-card.lx {
  transform: translate3d(0, 100vh, 0);
  transform: translate3d(0, 100dvh, 0);
  will-change: transform;
}

/* 2) Empuje: arranca junto con el splash. `both` lo mantiene abajo hasta el retraso y arriba al final. */
body:has(.lxp-root.is-go) :is(#adminAuthGate, #barberoAuthGate) .login-card.lx {
  animation: bkFormUp 0.9s var(--bk-push) 3.3s both !important;
}
@keyframes bkFormUp {
  from { transform: translate3d(0, 100vh, 0); }
  from { transform: translate3d(0, 100dvh, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

/* Splash: sube y se oscurece mientras lo empujan. */
.lxp-root .lxp { animation-name: bkSplashOut; }
@keyframes bkSplashOut {
  0%   { transform: translateY(0);     filter: brightness(1); }
  100% { transform: translateY(-100%); filter: brightness(0.55); visibility: hidden; }
}

/* Profundidad: la foto llega con zoom que se asienta y el contenido con un pequeño peso. */
.lx-carousel .lx-slide { transform-origin: 50% 100%; }
body:has(.lxp-root.is-go) :is(#adminAuthGate, #barberoAuthGate) .login-card.lx .lx-carousel {
  animation: bkHeroSettle 1.25s cubic-bezier(0.16, 1, 0.3, 1) 3.3s both;
}
body:has(.lxp-root.is-go) :is(#adminAuthGate, #barberoAuthGate) .login-card.lx .lx-body {
  animation: bkBodySettle 0.75s cubic-bezier(0.2, 0.9, 0.25, 1.15) 3.75s both;
}
@keyframes bkHeroSettle { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes bkBodySettle { from { transform: translateY(26px); } to { transform: translateY(0); } }
@media (min-width: 1024px) {
  body:has(.lxp-root.is-go) :is(#adminAuthGate, #barberoAuthGate) .login-card.lx .lx-body { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   2) LOGIN — rediseño visual (mismo marcado, mismos IDs)
   Mantiene el layout actual (foto + diagonal en móvil, dos columnas en ≥1024px)
   y renueva logo, campos, botón y detalles. Los tamaños responsivos del logo
   siguen viniendo de admin.css; aquí solo cambia su aspecto.
   ═══════════════════════════════════════════════════════════════════ */

/* Sin raya entre la foto y el formulario: la foto mide un alto fraccionario y en su última fila de píxeles
   se mezclaba un hilo gris que ahora cruza el logo (más grande). Una franja del color del fondo la tapa. */
.lx-hero::after,
.lx-side__photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #ffffff;
  z-index: 4;
  pointer-events: none;
}
.lx-side__photo::after { background: #f7f9fc; }

/* Logo = SOLO la imagen logobookcr.jpg: sin caja, sin fondo, sin sombra, centrada (el SVG del poste queda oculto) */
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx-logo {
  position: relative;
  overflow: visible;
  border-radius: 0;
  background: var(--bk-logo) center / contain no-repeat;
  box-shadow: none;
}
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx-logo svg { display: none; }

/* Logo en el formulario: el logo es blanco, así que sobre la página blanca se invierte a oscuro
   (invert + hue-rotate mantiene el celeste). Más grande (80px → 160px en celular) y con el margen
   inferior negativo para que "Agenda al instante" quede pegado debajo del logo. */
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx-logo {
  width: 160px;
  height: 160px;
  margin-bottom: -14px;
  filter: invert(1) hue-rotate(180deg);
}
@media (max-height: 720px) {
  body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx-logo { width: 136px; height: 136px; margin-bottom: -12px; }
}
@media (max-height: 620px) {
  body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx-logo { width: 112px; height: 112px; margin-bottom: -10px; }
}
@media (min-width: 1024px) {
  body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx-logo { width: clamp(150px, 22dvh, 220px); height: clamp(150px, 22dvh, 220px); margin-bottom: clamp(-18px, -2dvh, -8px); }
}

/* El nombre "Book cr" ya viene dentro de la imagen del logo: el texto del formulario se oculta
   (si el JS aún lo trae, no se ve). En el panel izquierdo de laptop (.lx-side__name) SÍ se mantiene. */
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx .lx-name { display: none !important; }
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx .login-title { margin-top: 0 !important; }
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx .login-title .lx-sub { margin-top: 0; }

/* Título "Book cr": Book en degradado grueso, cr en celeste y más liviano (tipografía tipo Montserrat) */
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx .lx-name,
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx .lx-side__name {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.16em;
  font-family: "Montserrat", "Poppins", "Inter", system-ui, sans-serif !important;
  letter-spacing: 0;
  text-transform: none;
}
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx .lx-name b,
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx .lx-side__name b {
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #0f172a 0%, #475569 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx .lx-name i,
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx .lx-side__name i {
  font-style: normal;
  font-weight: 400;
  font-size: 0.9em;
  letter-spacing: -0.02em;
  color: #1fb4f2;
}

/* Subtítulo "Agenda al instante" */
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx .lx-sub,
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx .lx-side__sub {
  font-family: "Montserrat", "Inter", system-ui, sans-serif !important;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
  color: #64748b;
}
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx-sub::before,
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx-sub::after {
  background: #1fb4f2;
  opacity: 0.5;
}

/* Título (color base) */
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx .login-title { color: var(--bk-navy) !important; }

/* Campos: relleno suave, sin borde hasta que se enfocan */
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx .login-input-group input {
  border: 1.5px solid transparent !important;
  border-radius: 14px !important;
  background: #f1f4f9 !important;
  color: var(--bk-navy) !important;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx .login-input-group input:hover {
  border-color: #d5deeb !important;
}
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx .login-input-group input:focus {
  border-color: var(--bk-blue) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.14) !important;
}
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx .login-input-group:focus-within > svg { stroke: var(--bk-blue); }

/* Casilla "Recordarme" */
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx .lx-check {
  border-radius: 6px;
  border-color: #b8c4d6;
}
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx .login-remember input:checked + .lx-check {
  border-color: var(--bk-blue);
  background: var(--bk-blue);
}

/* Botón principal: negro */
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx .login-btn {
  border-radius: 14px !important;
  background: linear-gradient(135deg, #1c1c20 0%, #000000 100%) !important;
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.55) !important;
  letter-spacing: 0.1em !important;
  transition: transform 0.18s var(--bk-ease), box-shadow 0.18s ease, background 0.18s ease;
}
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx .login-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #2e2e34 0%, #0a0a0c 100%) !important;
  box-shadow: 0 16px 28px -10px rgba(0, 0, 0, 0.65) !important;
  transform: translateY(-1px);
}
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx .login-btn:active:not(:disabled) {
  transform: scale(0.982);
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.6) !important;
}
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx .login-btn:disabled {
  background: #cbd5e1 !important;
  box-shadow: none !important;
}
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx .login-btn:focus-visible,
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx .login-forgot:focus-visible,
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx .login-link-btn:focus-visible {
  outline: 3px solid rgba(15, 23, 42, 0.45);
  outline-offset: 3px;
}

/* Pie */
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx .login-note { border-top-color: #e6ebf3; }

/* ═══════════════════════════════════════════════════════════════════
   2.1) CARRUSEL de la foto (3 imágenes, crossfade infinito)
   Las imágenes siguen siendo .lx-hero__img → conservan el recorte/formato del CSS actual.
   El contenedor solo las apila ocupando el mismo espacio que ocupaba la foto única.
   ═══════════════════════════════════════════════════════════════════ */
.lx-carousel { position: absolute; inset: 0; overflow: hidden; }
.lx-carousel .lx-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  will-change: opacity;
}
.lx-carousel .lx-slide.is-active { opacity: 1; }
.lx-carousel .lx-slide[data-broken] { display: none; }

/* ═══════════════════════════════════════════════════════════════════
   2.2) TECLADO / RAYA en celular
   - El JS evita que el teclado cambie el alto de la página (nada se encoge).
   - --lx-kb = alto del teclado: da espacio extra abajo para poder desplazar el formulario
     y que el campo enfocado nunca quede tapado.
   - Fondo blanco bajo la foto: si queda un hilo de subpíxel, se mezcla con blanco y no se ve gris.
   ═══════════════════════════════════════════════════════════════════ */
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx-body::after {
  content: "";
  display: block;
  height: var(--lx-kb, 0px);
  transition: height 0.2s ease;
}
@media (max-width: 1023.98px) {
  body[data-page] :is(#adminAuthGate, #barberoAuthGate) .login-card.lx { background-color: #ffffff; }
  .lx-hero { transform: translateZ(0); }
}

/* ═══════════════════════════════════════════════════════════════════
   2.3) RECUPERAR CONTRASEÑA — título y botón más discretos
   ═══════════════════════════════════════════════════════════════════ */
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx .login-title .lx-plain {
  font-family: "Montserrat", "Inter", system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--bk-navy);
}
body[data-page] :is(#adminAuthGate, #barberoAuthGate) .lx .login-forgot-form .login-btn {
  height: 46px !important;
  min-height: 0 !important;
  padding: 0 22px !important;
  border-radius: 12px !important;
  font-family: "Montserrat", "Inter", system-ui, sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.005em !important;
  text-transform: none !important;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.45) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   2.4) PANTALLA DE CARGA al iniciar / cerrar sesión (la crea authenticacion.js: .lxl)
   Fondo blanco + aro que gira; aparece rápido y se desvanece al abrir el panel.
   ═══════════════════════════════════════════════════════════════════ */
.lxl {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lxl.is-in { opacity: 1; }
.lxl.is-out { opacity: 0; transition: opacity 0.45s ease; pointer-events: none; }
.lxl__ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(31, 180, 242, 0) 0%, #1fb4f2 55%, var(--bk-blue) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  animation: lxlSpin 0.85s linear infinite;
}
@keyframes lxlSpin { to { transform: rotate(360deg); } }

/* Pantalla de carga desde el primer pintado (refrescar la página en admin / barbero):
   tapa la página con el mismo aro hasta que authenticacion.js agrega .lx-ready al <body>.
   Si el JS nunca llegara, se quita sola a los 6 s para no dejar la página bloqueada. */
body:is([data-page="admin"], [data-page="barbero"]):not(.lx-ready)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #ffffff;
  animation: lxBootOff 0s linear 6s forwards;
}
body:is([data-page="admin"], [data-page="barbero"]):not(.lx-ready)::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  z-index: 100001;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(31, 180, 242, 0) 0%, #1fb4f2 55%, var(--bk-blue) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  animation: lxlSpin 0.85s linear infinite, lxBootOff 0s linear 6s forwards;
}
@keyframes lxBootOff { to { visibility: hidden; } }
.lxl--instant { transition: none; }

/* ═══════════════════════════════════════════════════════════════════
   2.5) MODALES "CAMBIAR CONTRASEÑA" y "CAMBIAR CORREO" (clases .rpm-*)
   Estilo compartido para Admin y Barbero: blanco, azul marino y azul del panel.
   Mismas clases y mismo marcado en ambos dashboards.
   ═══════════════════════════════════════════════════════════════════ */
body .rpm-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  height: 100dvh !important;
  z-index: 30000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  padding: 16px !important;
  overflow: hidden !important;
  touch-action: pan-y !important;
  overscroll-behavior: none !important;
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}
body .rpm-card {
  position: relative !important;
  flex: 0 1 440px !important;
  width: min(440px, calc(100vw - 24px)) !important;
  max-width: 440px !important;
  max-height: min(92vh, 640px) !important;
  margin: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  border: 1px solid #dbe3ef !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  font-family: "Inter", system-ui, sans-serif !important;
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.06),
    0 24px 60px -12px rgba(15, 23, 42, 0.36),
    0 0 0 1px rgba(26, 86, 219, 0.06) !important;
}
@supports (height: 100dvh) {
  body .rpm-card { max-height: min(92dvh, 640px) !important; }
}

/* Cabecera moderna, limpia y minimalista para los modales de cuenta */
body .rpm-header {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 18px 20px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #edf2f7 !important;
  overflow: hidden !important;
}
body .rpm-header__pattern {
  display: none !important;
}
body .rpm-header__icon,
body .rpm-header__brand,
body .rpm-close { position: relative !important; z-index: 1 !important; }
body .rpm-header__icon {
  flex: 0 0 auto !important;
  width: 40px !important;
  height: 40px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 11px !important;
  background: #eff6ff !important;
  border: 1px solid #dbeafe !important;
  box-shadow: none !important;
  color: #2563eb !important;
}
body .rpm-header__icon svg {
  width: 20px !important;
  height: 20px !important;
  fill: none !important;
  stroke: #2563eb !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
body .rpm-header__icon--mail svg { stroke: #2563eb !important; }
body .rpm-header__brand { display: flex !important; flex-direction: column !important; gap: 1px !important; min-width: 0 !important; }
body .rpm-header__name {
  display: none !important;
}
body .rpm-header__sub {
  font-family: "Inter", system-ui, sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  color: #0f172a !important;
}
body .rpm-close {
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px !important;
  border-radius: 8px !important;
  border: 0 !important;
  background: transparent !important;
  color: #94a3b8 !important;
  margin-left: auto !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}
body .rpm-close:hover { background: #f1f5f9 !important; color: #0f172a !important; transform: none !important; }
body .rpm-close svg { width: 16px !important; height: 16px !important; }

/* Cuerpo */
body .rpm-body { padding: 20px 20px 22px !important; gap: 16px !important; background: #ffffff !important; }
body .rpm-lock-icon { display: none !important; }
body .rpm-title-wrap { margin: 0 !important; }
body .rpm-title { display: none !important; }
body .rpm-subtitle { font-size: 0.82rem !important; color: #64748b !important; line-height: 1.5 !important; margin: 0 !important; }

/* Campos: limpios, modernos con focus ring sutil */
body .rpm-label {
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  color: #475569 !important;
}
body .rpm-input-wrap {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  min-height: 44px !important;
  padding: 0 11px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease !important;
}
body .rpm-input-wrap:hover { border-color: #cbd5e1 !important; }
body .rpm-input-wrap:focus-within {
  background: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}
body .rpm-input-icon { color: #94a3b8 !important; width: 17px !important; height: 17px !important; flex: 0 0 17px !important; }
body .rpm-input-wrap:focus-within .rpm-input-icon { color: #2563eb !important; }
body .rpm-input { padding: 10px 4px !important; font-size: 16px !important; color: #0f172a !important; border: 0 !important; outline: 0 !important; background: transparent !important; width: 100% !important; font-family: "Inter", system-ui, sans-serif !important; }
body .rpm-eye {
  color: #94a3b8 !important;
  border-radius: 0 !important;
  border: 0 !important;
  background: transparent !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  padding: 4px !important;
  box-shadow: none !important;
  transition: color 0.15s ease, transform 0.15s ease !important;
}
body .rpm-eye:hover { color: #0f172a !important; background: transparent !important; transform: scale(1.15) !important; }
body .rpm-eye svg { width: 20px !important; height: 20px !important; stroke: currentColor !important; pointer-events: none !important; }
body .rpm-strength__seg { background: #e2e8f0 !important; }
body .rpm-email-note { color: #94a3b8 !important; }

/* Acciones: diseño elegante, ligero y equilibrado */
body .rpm-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin-top: 6px !important;
}
body .rpm-btn {
  padding: 11px 16px !important;
  border-radius: 11px !important;
  color: #ffffff !important;
  font-family: "Inter", system-ui, sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  background: #2563eb !important;
  border: 0 !important;
  min-height: 42px !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2) !important;
  cursor: pointer !important;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease !important;
}
body .rpm-btn:hover:not(:disabled) {
  background: #1d4ed8 !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}
body .rpm-btn--secondary {
  color: #475569 !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
}
body .rpm-btn--secondary:hover:not(:disabled) {
  color: #0f172a !important;
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  box-shadow: none !important;
}
body .rpm-btn:focus-visible,
body .rpm-close:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.35) !important; outline-offset: 2px !important; }

/* Estados */
body .rpm-status { border-radius: 10px !important; font-size: 0.82rem !important; }
body .rpm-status--info { background: #eff6ff !important; color: #1e40af !important; border-color: #bfdbfe !important; }

/* Pie */
body .rpm-footer {
  background: #fafbfc !important;
  border-top: 1px solid #edf2f7 !important;
  color: #94a3b8 !important;
}
body .rpm-footer svg { color: #64748b !important; }

@media (max-width: 480px) {
  body .rpm-card { width: min(100%, calc(100vw - 20px)) !important; border-radius: 16px !important; }
  body .rpm-header { padding: 14px 16px !important; }
  body .rpm-body { padding: 18px 16px 18px !important; gap: 14px !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   3) Movimiento reducido: sin splash ni animaciones de entrada
   ═══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .lx-carousel .lx-slide { transition: none; }
  .lxl, .lxl.is-out { transition: none; }
  .lxp-root { display: none; }
  body:has(.lxp-root) :is(#adminAuthGate, #barberoAuthGate) .login-card.lx { transform: none; animation: none !important; }
  .login-card.lx.lx-enter,
  .login-card.lx.lx-enter * { animation: none !important; }
}

/* Modales de cuenta (Cambiar Contraseña y Cambiar Correo): fijos, centrados y con diseño limpio y minimalista */
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal).rpm-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100500 !important;
  display: grid !important;
  place-items: center !important;
  box-sizing: border-box !important;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  background: rgba(15, 23, 42, .52) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-card {
  display: flex !important;
  flex-direction: column !important;
  width: min(420px, calc(100vw - 32px)) !important;
  max-width: 420px !important;
  max-height: calc(100vh - 32px) !important;
  margin: auto !important;
  overflow: hidden auto !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .18), 0 0 0 1px rgba(15, 23, 42, .04) !important;
  color: #172033 !important;
  font-family: "Inter", system-ui, sans-serif !important;
  animation: rpmPasswordIn .2s cubic-bezier(.2, .8, .2, 1) both;
}
@supports (height: 100dvh) {
  body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-card { max-height: calc(100dvh - 32px) !important; }
}

/* ── Header: limpio, sin gradiente pesado ── */
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-header {
  position: relative !important;
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: auto !important;
  padding: 16px 18px !important;
  border: 0 !important;
  border-bottom: 1px solid #edf2f7 !important;
  background: #fafbfc !important;
}
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-header__pattern {
  display: none !important;
}
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-header__icon {
  display: grid !important;
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px !important;
  place-items: center !important;
  border: 1px solid #dbeafe !important;
  border-radius: 10px !important;
  background: #eff6ff !important;
  color: #2563eb !important;
  box-shadow: none !important;
}
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-header__icon svg {
  width: 18px !important;
  height: 18px !important;
  fill: none !important;
  stroke: #2563eb !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-header__brand { display: grid !important; gap: 2px !important; min-width: 0 !important; }
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-header__name {
  display: none !important;
}
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-header__sub {
  color: #0f172a !important;
  font: 700 .95rem/1.3 "Inter", system-ui, sans-serif !important;
  letter-spacing: -.01em !important;
  text-transform: none !important;
}

/* ── Botón cerrar: simple y limpio ── */
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-close {
  display: grid !important;
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px !important;
  place-items: center !important;
  margin-left: auto !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: background .15s, color .15s !important;
}
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-close:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-close svg { width: 16px !important; height: 16px !important; }

/* ── Body ── */
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-body {
  display: grid !important;
  gap: 16px !important;
  padding: 20px 18px 18px !important;
  background: #fff !important;
}
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-title-wrap {
  margin: 0 !important;
}
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-title {
  display: none !important;
}
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-subtitle { margin: 0 !important; color: #64748b !important; font-size: .82rem !important; line-height: 1.5 !important; }
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-field { display: grid !important; gap: 6px !important; min-width: 0 !important; }
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-label {
  color: #475569 !important;
  font: 600 .74rem/1.35 "Inter", system-ui, sans-serif !important;
  letter-spacing: .01em !important;
  text-transform: none !important;
}

/* ── Inputs ── */
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-input-wrap {
  display: flex !important;
  min-height: 44px !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 10px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background: #fafbfc !important;
  box-shadow: none !important;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-input-wrap:focus-within {
  border-color: #2563eb !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12) !important;
}
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-input-icon { width: 16px !important; height: 16px !important; flex: 0 0 16px !important; color: #94a3b8 !important; }
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-input {
  width: 100% !important;
  min-width: 0 !important;
  padding: 10px 4px !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #172033 !important;
  font-family: "Inter", system-ui, sans-serif !important;
  font-size: 16px !important; /* Mínimo 16px para evitar auto-zoom de iOS Safari y Android Chrome */
  font-weight: 500 !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
}
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-input::placeholder { color: #94a3b8 !important; }
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-eye {
  display: inline-flex !important;
  width: auto !important;
  height: auto !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: color 0.15s ease, transform 0.15s ease !important;
}
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-eye:hover {
  color: #0f172a !important;
  background: transparent !important;
  transform: scale(1.15) !important;
}
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-eye svg {
  width: 20px !important;
  height: 20px !important;
  stroke: currentColor !important;
  pointer-events: none !important;
}

/* ── Botones de acción ── */
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin-top: 4px !important;
}
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-actions .rpm-btn {
  min-width: 0 !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  font: 600 .82rem/1.2 "Inter", system-ui, sans-serif !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: background .15s, border-color .15s;
}
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-actions .rpm-btn:not(.rpm-btn--secondary) {
  border-color: transparent !important;
  background: #1d4ed8 !important;
  color: #fff !important;
}
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-actions .rpm-btn:not(.rpm-btn--secondary):hover:not(:disabled) { background: #1e40af !important; }
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-btn--secondary { background: #f8fafc !important; color: #475569 !important; border-color: #e2e8f0 !important; }
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-btn--secondary:hover:not(:disabled) { background: #f1f5f9 !important; border-color: #cbd5e1 !important; }
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-status-slot { min-height: 0 !important; margin: 0 !important; }
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-status { padding: 10px 12px !important; border-radius: 10px !important; font-size: .8rem !important; line-height: 1.45 !important; }
body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) :is(.rpm-close, .rpm-eye, .rpm-btn):focus-visible { outline: 3px solid rgba(59, 130, 246, .35) !important; outline-offset: 2px !important; }
@keyframes rpmPasswordIn { from { opacity: 0; transform: translateY(6px) scale(.995); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 520px) {
  body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal).rpm-overlay { padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)) !important; }
  body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-card { width: min(100%, calc(100vw - 20px)) !important; border-radius: 16px !important; }
  body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-header { padding: 14px 16px !important; }
  body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-body { gap: 14px !important; padding: 18px 16px 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body:is([data-page="admin"], [data-page="barbero"]) :is(#profileChangePasswordModal, #profileChangeEmailModal) .rpm-card { animation: none !important; }
}

/* Ajustes finales del login Admin: paleta Book cr y sin franja roja/azul en la foto. */
body[data-page="admin"] #adminAuthGate :is(.lx-hero, .lx-side__photo) .lx-hero__accent {
  display: none !important;
}
body[data-page="admin"] #adminAuthGate .lx .login-forgot,
body[data-page="admin"] #adminAuthGate .lx .login-forgot:focus-visible {
  color: #1fb4f2 !important;
}
body[data-page="admin"] #adminAuthGate .lx .login-forgot:hover {
  color: #168eae !important;
}
body[data-page="admin"] #adminAuthGate .lx-bars span:nth-child(1) {
  background: #1fb4f2 !important;
}
body[data-page="admin"] #adminAuthGate .lx-bars span:nth-child(2),
body[data-page="admin"] #adminAuthGate .lx-bars span:nth-child(3) {
  background: #cbd5e1 !important;
}

/* ═══════════════════════════════════════════════════════════════════
   3) ONBOARDING — bienvenida para quien nunca ha entrado (la crea authenticacion.js: .obd)
   4 pantallas: Comenzar · Escanea citas con QR · Perfil de los barberos · Administra tus reservas.
   Imágenes en src/images/: comenzar.jpg (opcional), qrcitas.jpg, perfilbarberos.jpg, administra.jpg.

   TODO cuelga de .obd (nada global) y está BLINDADO contra los estilos globales de admin.css
   (button, h2, p, etc.): por eso lleva `body .obd …` y !important en tipografía y botones.
   Tipografía (se importa arriba): títulos y botones en Poppins 500 (suave); subtítulos en Nunito Sans 400.
   Para cambiar de fuente basta con editar --obd-font-title / --obd-font-text aquí abajo.
   Botones negros como el del login; azul apagado de la app, no el azul vivo de la referencia.
   Entra después del splash: espera aparcado abajo y sube JUNTO con el formulario (mismo bkFormUp/--bk-push).
   ═══════════════════════════════════════════════════════════════════ */

.obd {
  --obd-font-title: "Poppins", "Montserrat", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;   /* títulos, botones */
  --obd-font-text: "Nunito Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;               /* subtítulos */
  --obd-ease: cubic-bezier(0.45, 0.05, 0.2, 1);
  --obd-ink: #0f1b3d;     /* títulos: azul marino profundo */
  --obd-muted: #5f6f8c;   /* descripciones */
  --obd-blue: #1a56db;    /* azul de la app (apagado) */
  --obd-dot: #c9d4e8;
  --obd-bg:
    radial-gradient(120% 55% at 90% -8%, rgba(26, 86, 219, 0.12), transparent 62%),
    radial-gradient(100% 50% at -12% 108%, rgba(31, 180, 242, 0.12), transparent 62%),
    linear-gradient(180deg, #f8fafd 0%, #eef3fb 100%);
  --obd-ok: 1;            /* marca para que el JS sepa que este bloque de CSS sí está cargado */

  position: fixed;
  inset: 0;
  z-index: 2147483000;    /* por encima de cualquier contenedor del login/panel */
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  color: var(--obd-ink);
  font-family: var(--obd-font-text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  background: var(--obd-bg);
}
.obd *, .obd *::before, .obd *::after { box-sizing: border-box; }

/* Blindaje tipográfico: ningún estilo global (Oswald, mayúsculas, espaciado, sombras…) entra aquí */
body .obd :is(h2, p, span, em, button, section, div) {
  font-family: inherit !important;
  text-transform: none !important;
  text-shadow: none !important;
  font-style: normal;
}

/* Sin franja negra: lo que asoma bajo el onboarding (barra del navegador, zona del indicador de inicio, rebote)
   es el fondo de la página. Se pinta del mismo color mientras el onboarding está visible. */
html:has(.obd) { color-scheme: light; }
html:has(.obd):not(:has(.lxp-root)):not(:has(.obd.is-out)),
html:has(.obd):not(:has(.lxp-root)):not(:has(.obd.is-out)) body { background: #eef3fb !important; }
html:has(.lxp-root.is-go):has(.obd),
html:has(.lxp-root.is-go):has(.obd) body { animation: obdHtmlBg 0s linear 3.6s forwards; }
@keyframes obdHtmlBg { to { background: #eef3fb; } }

/* El splash siempre por encima mientras exista */
body:has(.obd) .lxp-root { z-index: 2147483600; }
body:has(.obd) { overflow: hidden; }

/* Aparcado abajo mientras el splash exista; al arrancar el splash sube con el formulario */
body:has(.lxp-root) .obd {
  transform: translate3d(0, 100vh, 0);
  transform: translate3d(0, 100dvh, 0);
  will-change: transform;
}
body:has(.lxp-root.is-go) .obd { animation: bkFormUp 0.9s var(--bk-push, cubic-bezier(0.62, 0, 0.12, 1)) 3.3s both !important; }

/* Sin splash (movimiento reducido, etc.): aparece con un fundido */
.obd--fade { animation: obdFade 0.5s ease backwards; }   /* backwards: si fuera `both`, bloquearía la opacidad y cortaría la salida suave */
@keyframes obdFade { from { opacity: 0; } to { opacity: 1; } }

/* Salida hacia el login */
.obd__stage { transition: transform 0.8s var(--obd-ease), opacity 0.6s ease; }
.obd.is-out { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.65s ease 0.12s, visibility 0s linear 0.8s; }
.obd.is-out .obd__stage { transform: translate3d(0, -26px, 0) scale(0.97); opacity: 0; }
body:has(.obd.is-out) :is(#adminAuthGate, #barberoAuthGate) .login-card.lx { animation: obdLoginIn 0.85s var(--obd-ease) 0.1s both; }
@keyframes obdLoginIn { from { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.985); } to { opacity: 1; transform: none; } }

/* Escenario: pantalla completa en celular; tarjeta centrada en tablet/laptop */
.obd__stage { position: relative; width: 100%; max-width: 480px; height: 100%; overflow: hidden; }
@media (min-width: 720px) and (min-height: 600px) {
  .obd { align-items: center; }
  .obd__stage {
    height: min(820px, calc(100dvh - 48px));
    border-radius: 36px;
    box-shadow: 0 30px 70px -28px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.05);
  }
}

.obd__track {
  display: flex;
  height: 100%;
  transition: transform 0.85s var(--obd-ease);
  will-change: transform;
}

.obd__slide {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 26px calc(env(safe-area-inset-bottom, 0px) + 24px);
  /* El degradado se pinta DENTRO de cada pantalla: el carrusel (transform) aísla la mezcla y, sin esto,
     el "multiply" de las imágenes no tendría fondo contra el cual fundirse. */
  background: var(--obd-bg);
}

/* ── Fila superior: "Skip" es solo texto negro, SIN contenedor ── */
.obd__top { flex: none; height: 44px; display: flex; align-items: center; justify-content: flex-end; }
body .obd button { all: unset; box-sizing: border-box; cursor: pointer; -webkit-tap-highlight-color: transparent; }
body .obd .obd__skip {
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 8px 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: #0b0b0f !important;
  font-family: var(--obd-font-title) !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  transition: opacity 0.18s ease;
}
body .obd .obd__skip:hover { opacity: 0.7; }
body .obd .obd__skip:focus-visible { outline: 2px solid rgba(15, 27, 61, 0.45); outline-offset: 3px; }

/* ── Pantalla 1: logo + frase ── */
.obd__brand { flex: none; display: flex; flex-direction: column; align-items: center; text-align: center; }
.obd__logo {
  display: block;
  width: clamp(130px, 24dvh, 196px);
  aspect-ratio: 1;
  background: var(--bk-logo) center / contain no-repeat;
  /* El logo es blanco: se invierte a oscuro (igual que en el login) y "multiply" funde su fondo con el degradado */
  filter: invert(1) hue-rotate(180deg);
  mix-blend-mode: multiply;
}
body .obd .obd__tag {
  margin: -6px 0 0 !important;
  font-family: var(--obd-font-title) !important;
  font-size: clamp(1rem, 4.2vw, 1.14rem) !important;
  font-weight: 500 !important;
  line-height: 1.32 !important;
  letter-spacing: 0 !important;
  color: #4b5b7c !important;
}

/* ── Imagen central: un poco arriba del centro, el texto va debajo ── */
.obd__media {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0 10px;
}
.obd__media[hidden] { display: none; }
/* Mancha suave detrás de la imagen (la "nube" azul del diseño, apagada) */
.obd__media::before {
  content: "";
  position: absolute;
  width: min(70%, 270px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(26, 86, 219, 0.13), rgba(26, 86, 219, 0) 70%);
  pointer-events: none;
}
.obd__img {
  position: relative;
  display: block;
  width: auto;
  height: auto;
  max-width: min(76%, 290px);   /* un pelín más pequeñas */
  max-height: 82%;
  object-fit: contain;
  /* Los JPG traen fondo: multiply + bordes difuminados para que se fundan con el degradado */
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  user-select: none;
  -webkit-user-drag: none;
}
/* Pantalla 1: comenzar.jpg a PANTALLA COMPLETA (cover) como fondo; logo, frase y botón van encima. */
.obd__slide:first-child { position: relative; overflow: hidden; }
.obd__slide:first-child .obd__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
.obd__slide:first-child .obd__media::before { display: none; }
.obd__slide:first-child .obd__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(248, 250, 253, 0.9) 0%, rgba(248, 250, 253, 0.55) 9%, rgba(248, 250, 253, 0) 22%, rgba(248, 250, 253, 0) 66%, rgba(244, 248, 253, 0.6) 77%, rgba(240, 245, 252, 0.92) 90%, rgba(238, 243, 251, 0.97) 100%);
}
.obd__slide:first-child .obd__img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: 50% 100%;
  transform: translateY(-7%);   /* la imagen sube un poco */
  mix-blend-mode: normal;
  -webkit-mask-image: none;
  mask-image: none;
}
.obd__slide:first-child :is(.obd__top, .obd__brand, .obd__foot) { position: relative; z-index: 1; }

/* ── Texto debajo de la imagen: título semibold (600), descripción regular (400) ── */
.obd__copy { flex: none; margin-top: auto; text-align: center; padding: 0 2px; }
body .obd .obd__title {
  margin: 0 0 12px !important;
  padding: 0 !important;
  font-family: var(--obd-font-title) !important;
  font-size: clamp(1.32rem, 5.7vw, 1.65rem) !important;
  font-weight: 600 !important;   /* semibold */
  line-height: 1.26 !important;
  letter-spacing: -0.01em !important;
  color: var(--obd-ink) !important;
  text-wrap: balance;
}
body .obd .obd__title em { color: var(--obd-blue) !important; font-weight: 600 !important; }
body .obd .obd__text {
  margin: 0 auto !important;
  padding: 0 !important;
  max-width: 28ch;
  font-family: var(--obd-font-text) !important;
  font-size: clamp(0.95rem, 4vw, 1.06rem) !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
  color: var(--obd-muted) !important;
  text-wrap: balance;
}

/* ── Pie: puntos + botón negro ── */
.obd__foot { flex: none; margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 22px; padding-top: 22px; }
.obd__copy + .obd__foot { margin-top: 0; }
.obd__foot--welcome { gap: 14px; padding-top: 8px; }
/* Pantalla 1: título en dos líneas (negro azulado + azul) y subtítulo, justo arriba del botón */
.obd__wcopy { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 8px; }
body .obd .obd__wtitle {
  margin: 0 !important;
  font-family: var(--obd-font-title) !important;
  font-size: clamp(1.9rem, 8.6vw, 2.6rem) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em !important;
  color: var(--obd-ink) !important;
  text-wrap: balance;
}
body .obd .obd__wtitle span { color: var(--obd-blue); font-weight: 800; }
body .obd .obd__wtext {
  margin: 12px 0 0 !important;
  max-width: 30ch;
  font-family: var(--obd-font-text) !important;
  font-size: clamp(0.95rem, 4.1vw, 1.08rem) !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  color: #4b5b7c !important;
  text-wrap: balance;
}
body .obd .obd__cap { margin: 0 !important; font-family: var(--obd-font-text) !important; font-size: 0.84rem !important; font-weight: 400 !important; letter-spacing: 0 !important; color: #3a4a6b !important; text-align: center; }

.obd__dots { display: flex; align-items: center; justify-content: center; gap: 9px; }
body .obd .obd__dot {
  position: relative;
  display: block !important;
  width: 8px !important;
  height: 8px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--obd-dot) !important;
  box-shadow: none !important;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
body .obd .obd__dot::after { content: ""; position: absolute; inset: -9px; }   /* zona de toque más grande */
body .obd .obd__dot.is-on { background: var(--obd-ink) !important; transform: scale(1.2); }
body .obd .obd__dot:focus-visible { outline: 2px solid rgba(15, 27, 61, 0.45); outline-offset: 4px; }

body .obd .obd__btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100% !important;
  height: 54px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-family: var(--obd-font-title) !important;
  font-size: 0.98rem !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #1c1c20 0%, #000000 100%) !important;
  box-shadow: 0 14px 26px -12px rgba(0, 0, 0, 0.6) !important;
  transition: transform 0.18s var(--bk-ease, ease), box-shadow 0.18s ease, background 0.18s ease;
}
body .obd .obd__btn svg { width: 19px; height: 19px; flex: none; stroke-width: 2; transition: transform 0.2s var(--bk-ease, ease); }
body .obd .obd__btn:hover { background: linear-gradient(135deg, #2e2e34 0%, #0a0a0c 100%) !important; box-shadow: 0 16px 28px -10px rgba(0, 0, 0, 0.65) !important; transform: translateY(-1px); }
body .obd .obd__btn:hover svg { transform: translateX(3px); }
body .obd .obd__btn:active { transform: scale(0.982); box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.6) !important; }
body .obd .obd__btn:focus-visible { outline: 3px solid rgba(15, 27, 61, 0.45); outline-offset: 3px; }

/* Entrada del contenido al cambiar de pantalla: cada pieza llega escalonada, suave */
/* OJO: `backwards` (no `both`): al terminar no queda un contexto aislado y el "multiply" de las imágenes sigue fundiéndose con el fondo */
.obd__slide.is-enter :is(.obd__brand, .obd__img) { animation: obdRise 0.9s var(--obd-ease) 0.05s backwards; }
/* Pantalla 1: la imagen solo hace fundido (sin desplazarse ni escalar), así siempre queda en la misma posición al volver */
.obd__slide:first-child.is-enter .obd__img { animation: obdFade 0.9s ease backwards; }
.obd__slide.is-enter .obd__title { animation: obdRise 0.9s var(--obd-ease) 0.16s backwards; }
.obd__slide.is-enter .obd__text { animation: obdRise 0.9s var(--obd-ease) 0.26s backwards; }
.obd__slide.is-enter .obd__foot { animation: obdRise 0.9s var(--obd-ease) 0.36s backwards; }
@keyframes obdRise { from { opacity: 0; transform: translate3d(0, 22px, 0) scale(0.985); } to { opacity: 1; transform: none; } }

/* Celular (no laptop): logo de la pantalla 1 más arriba y un poco más pequeño */
@media not all and (min-width: 1024px) and (min-height: 560px) {
  .obd__slide:first-child .obd__top { height: 0; }
  .obd__slide:first-child .obd__logo { width: clamp(92px, 17dvh, 140px); margin-top: -8px; }
}
@media not all and (min-width: 1024px) and (min-height: 560px) and (max-height: 720px) {
  .obd__slide:first-child .obd__logo { width: 88px; }
}

/* Celulares bajitos: todo más compacto (la imagen cede espacio, el texto nunca se corta) */
@media (max-height: 720px) {
  .obd__top { height: 40px; }
  .obd__logo { width: 120px; }
  body .obd .obd__wtitle { font-size: clamp(1.6rem, 7.4vw, 2rem) !important; }
  body .obd .obd__wtext { margin-top: 8px !important; font-size: 0.9rem !important; }
  body .obd .obd__title { margin-bottom: 8px !important; font-size: clamp(1.28rem, 5.6vw, 1.5rem) !important; }
  .obd__foot { gap: 16px; padding-top: 14px; }
  body .obd .obd__btn { height: 50px !important; }
}
@media (max-height: 600px) {
  .obd__slide { padding-left: 20px; padding-right: 20px; }
  .obd__logo { width: 96px; }
  body .obd .obd__text { font-size: 0.88rem !important; }
  body .obd .obd__btn { height: 46px !important; }
}

/* ═══ LAPTOP / ESCRITORIO (≥1024px): tarjeta ancha de dos columnas — imagen a la izquierda, texto y botón a la derecha ═══ */
@media (min-width: 1024px) and (min-height: 560px) {
  .obd__stage { max-width: 1080px; height: min(660px, calc(100dvh - 64px)); border-radius: 34px; box-shadow: 0 40px 90px -34px rgba(15, 23, 42, 0.32), 0 0 0 1px rgba(15, 23, 42, 0.05); }
  .obd__slide {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "media top" "media main" "media foot";
    column-gap: 44px;
    padding: 26px 56px 44px 26px;
  }
  .obd__top { grid-area: top; height: 40px; }
  .obd__media,
  .obd__slide:first-child .obd__media {
    grid-area: media;
    margin: 0;
    padding: 20px;
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(26, 86, 219, 0.10) 0%, rgba(31, 180, 242, 0.05) 55%, rgba(255, 255, 255, 0.35) 100%);
  }
  .obd__media::before { width: min(78%, 400px); }
  .obd__img { max-width: min(88%, 440px); max-height: 88%; }
  /* Pantalla 1 en laptop: la imagen llena el panel izquierdo completo */
  .obd__slide:first-child .obd__media { position: relative; inset: auto; z-index: auto; padding: 0; pointer-events: auto; }
  .obd__slide:first-child .obd__media::after { display: none; }
  .obd__slide:first-child .obd__img { object-position: 50% 65%; transform: none; }

  .obd__copy, .obd__brand { grid-area: main; align-self: center; align-items: flex-start; margin: 0; padding: 0; text-align: left; }
  .obd__logo { width: clamp(150px, 26dvh, 230px); margin-left: -14px; }
  body .obd .obd__tag { margin: -4px 0 0 !important; font-size: 1.4rem !important; text-align: left; }
  body .obd .obd__title { margin: 0 0 16px !important; font-size: clamp(2rem, 2.7vw, 2.5rem) !important; text-align: left; text-wrap: pretty; }
  body .obd .obd__text { max-width: 34ch; margin: 0 !important; font-size: 1.12rem !important; text-align: left; text-wrap: pretty; }

  .obd__foot, .obd__foot--welcome { grid-area: foot; align-items: flex-start; gap: 22px; margin: 0; padding-top: 0; }
  body .obd .obd__btn { width: min(100%, 340px) !important; height: 56px !important; }
  body .obd .obd__cap { text-align: left; font-size: 0.9rem !important; }
  .obd__wcopy { align-items: flex-start; text-align: left; margin-bottom: 4px; }
  body .obd .obd__wtitle { font-size: clamp(2.2rem, 3.2vw, 3rem) !important; }
  body .obd .obd__wtext { max-width: 34ch; }
  .obd__dots { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .obd--fade, .obd__slide.is-enter :is(.obd__brand, .obd__img, .obd__title, .obd__text, .obd__foot), body:has(.obd.is-out) :is(#adminAuthGate, #barberoAuthGate) .login-card.lx { animation: none !important; }
  .obd__track, .obd__stage, .obd.is-out, .obd__dot, .obd__btn, .obd__btn svg { transition: none; }
}