/* =========================================================
   UFY PHONE — LOCK SCREEN
   DÍA A — HORA 2
   REFERENCIA VISUAL APROBADA
   ========================================================= */

:root {
  --ufy-white: #ffffff;
  --ufy-white-soft: rgba(255, 255, 255, 0.78);

  --ufy-purple: #9d4dff;
  --ufy-purple-glow: rgba(157, 77, 255, 0.32);

  --ufy-glass:
    linear-gradient(
      145deg,
      rgba(25, 20, 39, 0.30),
      rgba(8, 7, 15, 0.24)
    );

  --ufy-border: rgba(255, 255, 255, 0.11);
}


/* =========================================================
   LOCK SCREEN
   ========================================================= */

.ufy-phone-lock {
  position: fixed;
  inset: 0;

  z-index: 5000;

  width: 100%;
  height: 100vh;
height: 100dvh;
min-height: 100svh;

  overflow: hidden;

  background: #020207;
  color: white;

  isolation: isolate;

  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}


/* =========================================================
   WALLPAPER
   ========================================================= */

.ufy-phone-wallpaper {
  position: absolute;
  inset: -2px;

  z-index: 0;

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  transform: scale(1.01);
}


.ufy-phone-lock-overlay {
  position: absolute;
  inset: 0;

  z-index: 1;

  pointer-events: none;

  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.13) 0%,
      rgba(0, 0, 0, 0.02) 27%,
      rgba(0, 0, 0, 0.00) 48%,
      rgba(0, 0, 0, 0.12) 62%,
      rgba(2, 2, 8, 0.52) 82%,
      rgba(2, 2, 8, 0.94) 100%
    );
}


/* =========================================================
   CONTENIDO
   ========================================================= */

.ufy-phone-lock-content {
  position: relative;
  z-index: 2;

  width: 100%;
  height: 100%;

  box-sizing: border-box;

  display: flex;
  flex-direction: column;

  padding:
    max(28px, env(safe-area-inset-top))
    18px
    max(18px, env(safe-area-inset-bottom));
}


/* =========================================================
   FECHA
   ========================================================= */

.ufy-phone-lock-date {
  flex: 0 0 auto;

  width: 100%;

  margin-top: 8px;

  text-align: center;

  font-size: clamp(16px, 4.5vw, 22px);
  line-height: 1.2;

  font-weight: 450;

  color: var(--ufy-white);

  text-shadow:
    0 3px 16px rgba(0, 0, 0, 0.30);
}


/* =========================================================
   HORA
   ========================================================= */

.ufy-phone-lock-time {
  flex: 0 0 auto;

  margin-top: 12px;

  text-align: center;

  font-size: clamp(82px, 20vw, 118px);
  line-height: 0.88;

  font-weight: 200;

  letter-spacing: -5.5px;

  color: var(--ufy-white);

  text-shadow:
    0 4px 24px rgba(0, 0, 0, 0.26);
}


/* =========================================================
   RAYA + NOMBRE
   ========================================================= */

.ufy-phone-lock-name-wrap {
 width: min(38%, 170px);

  margin: 17px auto 0;

  text-align: center;
}


.ufy-phone-lock-name-line {
  width: 100%;
  height: 1px;

  background: rgba(255, 255, 255, 0.82);
}


.ufy-phone-lock-name {
  margin-top: 10px;

  font-size: clamp(16px, 4.5vw, 21px);

  line-height: 1;

  font-weight: 450;

  letter-spacing: 8px;

  color: var(--ufy-white);

  text-shadow:
    0 3px 14px rgba(0, 0, 0, 0.38);
}


/* =========================================================
   ESPACIO CENTRAL
   ========================================================= */

.ufy-phone-lock-spacer {
  flex: 1 1 auto;
  min-height: 40px;
}


/* =========================================================
   ESTADÍSTICAS
   ========================================================= */

.ufy-phone-lock-stats {
  flex: 0 0 auto;

  width: min(88%, 355px);

  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);

  overflow: hidden;

  border-radius: 20px;

  background: var(--ufy-glass);

  border: 1px solid var(--ufy-border);

  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.035),
    0 12px 28px rgba(0,0,0,0.16);
}


.ufy-phone-lock-stat {
  appearance: none;

  border: 0;

  background: transparent;

  color: white;

  min-width: 0;

  padding: 12px 4px 11px;

  display: flex;
  flex-direction: column;
  align-items: center;

  cursor: pointer;
}


.ufy-phone-lock-stat + .ufy-phone-lock-stat {
  border-left: 1px solid rgba(255,255,255,0.12);
}


.ufy-phone-lock-stat-value {
  font-size: 18px;
  line-height: 1;

  font-weight: 500;

  color: var(--ufy-white);

  text-shadow:
    0 2px 10px rgba(0,0,0,0.30);
}


.ufy-phone-lock-stat-label {
  margin-top: 7px;

  font-size: 10px;
  line-height: 1;

  font-weight: 450;

  color: var(--ufy-white);

  white-space: nowrap;
}


/* =========================================================
   NOTIFICACIONES
   ========================================================= */

.ufy-phone-lock-activity {
  flex: 0 0 auto;

  width: min(88%, 355px);

  max-height: 180px;

  margin: 12px auto 0;

  overflow-y: auto;

  scrollbar-width: none;

  overscroll-behavior: contain;
}


.ufy-phone-lock-activity::-webkit-scrollbar {
  display: none;
}


/*
  IMPORTANTE:
  SI NO HAY CONTENIDO, NO OCUPA ESPACIO.
*/

.ufy-phone-lock-activity:empty {
  display: none;
}


/* =========================================================
   FUTURAS TARJETAS DE NOTIFICACIONES
   ========================================================= */

.ufy-phone-lock-notification {
  width: 100%;

  box-sizing: border-box;

  padding: 11px 13px;

  border-radius: 18px;

  background: var(--ufy-glass);

  border: 1px solid var(--ufy-border);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  color: white;
}


.ufy-phone-lock-notification
+ .ufy-phone-lock-notification {
  margin-top: 7px;
}


/* =========================================================
   CONTROLES INFERIORES
   ========================================================= */

.ufy-phone-lock-bottom {
  flex: 0 0 auto;

  width: min(92%, 390px);

  margin: 12px auto 0;

  display: grid;

  grid-template-columns:
    50px
    minmax(0, 1fr)
    50px;

  gap: 11px;

  align-items: center;
}


/*
  SI NO HAY NOTIFICACIONES,
  estadísticas + barra inferior quedan más pegadas.
*/

.ufy-phone-lock-activity:empty
+ .ufy-phone-lock-bottom {
  margin-top: 9px;
}


/* =========================================================
   BOTONES LATERALES
   ========================================================= */

.ufy-phone-lock-shortcut {
  appearance: none;

  width: 50px;
  height: 50px;

  padding: 0;

  border-radius: 50%;

  border: 1px solid var(--ufy-border);

  background: var(--ufy-glass);

  color: white;

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  display: grid;
  place-items: center;

  font-size: 19px;

  cursor: pointer;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 10px 24px rgba(0,0,0,0.16);
}


/* =========================================================
   BARRA DEL USUARIO / DESLIZAR
   ========================================================= */

.ufy-phone-unlock {
  position: relative;

  height: 52px;

  overflow: hidden;

  border-radius: 999px;

  background:
    linear-gradient(
      145deg,
      rgba(28, 21, 45, 0.38),
      rgba(9, 7, 17, 0.28)
    );

  border: 1px solid rgba(255,255,255,0.13);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 10px 25px rgba(0,0,0,0.20);
}


.ufy-phone-unlock-text {
  position: absolute;
  inset: 0;

  display: grid;
  place-items: center;

  box-sizing: border-box;

  padding-left: 52px;
  padding-right: 48px;

  color: var(--ufy-white);

  font-size: 13px;

  font-weight: 450;

  pointer-events: none;
}


.ufy-phone-unlock-thumb {
  position: absolute;

  left: 5px;
  top: 5px;

  width: 42px;
  height: 42px;

  border-radius: 50%;

  display: grid;
  place-items: center;

  background:
    linear-gradient(
      145deg,
      #b55dff,
      #762ce8
    );

  color: white;

  font-size: 29px;

  line-height: 1;

  box-shadow:
    0 4px 17px rgba(126, 45, 230, 0.52),
    inset 0 1px 1px rgba(255,255,255,0.24);

  cursor: grab;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 430px) {

  .ufy-phone-lock-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .ufy-phone-lock-name {
    letter-spacing: 6px;
  }

}


/* =========================================================
   ALTURA PEQUEÑA
   ========================================================= */

@media (max-height: 740px) {

  .ufy-phone-lock-content {
    padding-top:
      max(
        16px,
        env(safe-area-inset-top)
      );

    padding-bottom:
      max(
        10px,
        env(safe-area-inset-bottom)
      );
  }

  .ufy-phone-lock-date {
    margin-top: 0;

    font-size: 12px;
  }

  .ufy-phone-lock-time {
    margin-top: 6px;

    font-size: 82px;
  }

  .ufy-phone-lock-name-wrap {
    margin-top: 8px;
  }

  .ufy-phone-lock-name {
    margin-top: 6px;

    font-size: 14px;
  }

 .ufy-phone-lock-spacer {
  flex: 1 1 auto;

  min-height: 10px;
}

  .ufy-phone-lock-stats {
    width: 100%;

    max-width: 330px;
  }

  .ufy-phone-lock-stat {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .ufy-phone-lock-activity {
    max-height: 76px;

    margin-top: 7px;
  }

  .ufy-phone-lock-bottom {
    width: 100%;

    max-width: 330px;

    margin-top: 6px;
  }

}

/* =========================================================
   UFY PHONE — DESLIZADOR INTERACTIVO
   ========================================================= */

.ufy-phone-unlock {
  --ufy-unlock-progress: 0;

  touch-action: pan-y;
}

.ufy-phone-unlock-thumb {
  touch-action: none;

  will-change: transform;
}

.ufy-phone-unlock::after {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: inherit;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(157, 77, 255, 0.20),
      rgba(157, 77, 255, 0)
    );

  opacity:
    calc(
      var(--ufy-unlock-progress) * 0.9
    );
}


/* respuesta corta cuando completa */

.ufy-phone-unlock.is-unlocked {
  border-color: rgba(180, 105, 255, 0.40);

  box-shadow:
    0 0 24px rgba(157, 77, 255, 0.20);
}


/*
  En Hora 2 todavía no mostramos
  las apps internas.

  Solo comprobamos que el Lock Screen
  reconoce correctamente el desbloqueo.
*/

.ufy-phone-lock.is-unlocked {
  filter: brightness(0.96);
}


/* =========================================================
   UFY PHONE — NOTIFICACIONES LOCK SCREEN
   ========================================================= */

.ufy-phone-notification-heading {
  margin: 0 4px 8px;

  font-size: 13px;
  font-weight: 600;

  color: rgba(255, 255, 255, 0.92);
}


.ufy-phone-notification-list {
  display: flex;
  flex-direction: column;

  gap: 7px;
}


.ufy-phone-notification {
  appearance: none;

  width: 100%;

  box-sizing: border-box;

  display: flex;
  align-items: center;

  gap: 10px;

  padding: 10px 12px;

  border-radius: 17px;

  border: 1px solid rgba(255, 255, 255, 0.11);

 background:
  linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.1),
    rgba(247, 247, 247, 0.01)
  );

  
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(18px);

  color: white;

  text-align: left;

  cursor: pointer;
}


.ufy-phone-notification-avatar,
.ufy-phone-notification-icon {
  flex: 0 0 auto;

  width: 38px;
  height: 38px;

  border-radius: 50%;
}


.ufy-phone-notification-avatar {
  object-fit: cover;
  display: block;
}


.ufy-phone-notification-icon {
  display: grid;
  place-items: center;

  background: rgba(255, 255, 255, 0.09);

  font-size: 17px;
}


.ufy-phone-notification-content {
  min-width: 0;
  flex: 1;
}


.ufy-phone-notification-title {
  font-size: 12px;
  line-height: 1.2;

  font-weight: 700;

  color: rgba(255, 255, 255, 0.96);
}


.ufy-phone-notification-message {
  margin-top: 2px;

  font-size: 12px;
  line-height: 1.25;

  color: rgba(255, 255, 255, 0.86);
}


.ufy-phone-notification-time {
  margin-top: 4px;

  font-size: 10px;

  color: rgba(255, 255, 255, 0.58);
}



.ufy-phone-lock-stat.is-follow-action {
  background: #000;
  border-color: rgba(255, 255, 255, 0.18);
}

.ufy-phone-lock-stat.is-following {
  background: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   UFY PHONE — ICONO HOME CON GAFAS CREADAS EN CSS
   ========================================================= */

.ufy-phone-home-shortcut {
  position: relative;
}









/* =========================================================
   UFY PHONE — GAFAS V2 / DOS X
   ========================================================= */

.ufy-code-glasses-v2 {
  position: relative;

  width: 36px;
  height: 18px;

  display: block;
}


.ufy-code-lens-v2 {
  position: absolute;

  top: 2px;

  width: 15px;
  height: 12px;

  border: 1.8px solid rgba(255,255,255,0.96);

  border-radius: 7px 7px 8px 8px;

  box-sizing: border-box;
}


.ufy-code-lens-left-v2 {
  left: 0;

  transform: rotate(-2deg);
}


.ufy-code-lens-right-v2 {
  right: 0;

  transform: rotate(2deg);
}


.ufy-code-bridge-v2 {
  position: absolute;

  top: 6px;
  left: 50%;

  width: 8px;
  height: 1.8px;

  background: rgba(255,255,255,0.96);

  border-radius: 999px;

  transform: translateX(-50%);
}


.ufy-code-x-v2 {
  position: absolute;
  inset: 0;
}


.ufy-code-x-v2::before,
.ufy-code-x-v2::after {
  content: "";

  position: absolute;

  top: 50%;
  left: 50%;

  width: 7px;
  height: 1.5px;

  background: rgba(255,255,255,0.98);

  border-radius: 999px;

  transform-origin: center;
}


.ufy-code-x-v2::before {
  transform:
    translate(-50%, -50%)
    rotate(45deg);
}


.ufy-code-x-v2::after {
  transform:
    translate(-50%, -50%)
    rotate(-45deg);
}


/* Glow tipo linterna */
.ufy-phone-home-shortcut:hover .ufy-code-glasses-v2,
.ufy-phone-home-shortcut:active .ufy-code-glasses-v2 {
  filter:
    drop-shadow(0 0 5px rgba(255,255,255,0.95))
    drop-shadow(0 0 12px rgba(255,255,255,0.55));
}








/* =========================================================
   UFY PHONE — LINTERNA CENTRAL ESTILO IPHONE
   Luz en abanico + cuerpo largo
   ========================================================= */

.ufy-code-flashlight-v2 {
  position: absolute;

  left: 50%;
  top: -12px;

  width: 15px;
  height: 44px;

  transform: translateX(-50%);

  z-index: 6;

  display: flex;
  flex-direction: column;
  align-items: center;

  pointer-events: none;
}


/* =========================================================
   HAZ DE LUZ — ABANICO
   ========================================================= */

.ufy-code-flashlight-beam-v2 {
  position: absolute;

  left: 50%;
  bottom: 100%;

  width: 38px;
  height: 24px;

  transform: translateX(-50%);

  clip-path: polygon(
    38% 100%,
    62% 100%,
    100% 0,
    0 0
  );

  background:
    linear-gradient(
      to top,
      rgba(255,255,255,0.88),
      rgba(255,255,255,0.28) 45%,
      rgba(255,255,255,0)
    );

  filter: blur(1.2px);

  opacity: 0.72;
}


/* =========================================================
   CABEZA ANCHA DE LA LINTERNA
   ========================================================= */

.ufy-code-flashlight-head-v2 {
  position: relative;

  width: 15px;
  height: 8px;

  box-sizing: border-box;

  border:
    1.6px solid
    rgba(255,255,255,0.98);

  background:
    rgba(255,255,255,0.08);

  border-radius:
    3px 3px 1px 1px;

  box-shadow:
    0 0 5px
    rgba(255,255,255,0.42);
}


/* Línea interna de la cabeza */
.ufy-code-flashlight-head-v2::after {
  content: "";

  position: absolute;

  left: 2px;
  right: 2px;
  bottom: 1px;

  height: 1px;

  background:
    rgba(255,255,255,0.72);
}


/* =========================================================
   CUELLO EN FORMA DE CONO
   ========================================================= */

.ufy-code-flashlight-neck-v2 {
  width: 11px;
  height: 7px;

  box-sizing: border-box;

  border-left:
    1.5px solid
    rgba(255,255,255,0.96);

  border-right:
    1.5px solid
    rgba(255,255,255,0.96);

  border-bottom:
    1.5px solid
    rgba(255,255,255,0.96);

  clip-path: polygon(
    0 0,
    100% 0,
    78% 100%,
    22% 100%
  );

  background:
    rgba(255,255,255,0.04);
}


/* =========================================================
   CUERPO LARGO
   ========================================================= */

.ufy-code-flashlight-body-v2 {
  position: relative;

  width: 9px;
  height: 20px;

  box-sizing: border-box;

  border:
    1.5px solid
    rgba(255,255,255,0.96);

  border-top: 0;

  border-radius:
    0 0 2px 2px;

  background:
    rgba(255,255,255,0.025);
}


/* =========================================================
   BOTÓN DE LA LINTERNA
   ========================================================= */

.ufy-code-flashlight-switch-v2 {
  position: absolute;

  top: 4px;
  left: 50%;

  width: 3px;
  height: 6px;

  transform: translateX(-50%);

  border:
    1px solid
    rgba(255,255,255,0.95);

  border-radius: 999px;

  box-sizing: border-box;
}


/* =========================================================
   AGARRE INFERIOR
   ========================================================= */

.ufy-code-flashlight-grip-v2 {
  position: absolute;

  left: 1px;
  right: 1px;
  bottom: 2px;

  height: 11px;

  display: flex;
  justify-content: space-evenly;
  align-items: stretch;
}


.ufy-code-flashlight-grip-v2 i {
  display: block;

  width: 1px;

  background:
    rgba(255,255,255,0.80);

  border-radius: 999px;
}


/* =========================================================
   ESTADO ACTIVO — MÁS LUZ
   ========================================================= */

.ufy-phone-home-shortcut:hover
.ufy-code-flashlight-beam-v2,

.ufy-phone-home-shortcut:active
.ufy-code-flashlight-beam-v2 {
  opacity: 1;

  filter:
    blur(1px)
    drop-shadow(
      0 0 7px
      rgba(255,255,255,0.90)
    );
}


.ufy-phone-home-shortcut:hover
.ufy-code-flashlight-head-v2,

.ufy-phone-home-shortcut:active
.ufy-code-flashlight-head-v2 {
  background:
    rgba(255,255,255,0.22);

  box-shadow:
    0 0 6px rgba(255,255,255,1),
    0 0 15px rgba(255,255,255,0.72);
}



/* =========================================================
   UFY PHONE — MUÑECO DEL ACCESO A CONTACTOS
   Reutiliza el diseño aprobado de Contactos
   ========================================================= */

.ufy-person-icon {
  position: relative;
  display: block;

  width: 48px;
  height: 52px;

  margin: 0 auto 3px;
}


/* CABEZA */

.ufy-person-head {
  position: absolute;

  top: 8px;
  left: 50%;

  width: 28px;
  height: 31px;

  transform: translateX(-50%);

  border-left: 2px solid rgba(255,255,255,.92);
  border-right: 2px solid rgba(255,255,255,.92);
  border-bottom: 2px solid rgba(255,255,255,.92);

  border-radius: 10px 10px 14px 14px;

  box-sizing: border-box;
}


/* GORRA */

.ufy-person-cap {
  position: absolute;

  left: 50%;
  top: -8px;

  width: 31px;
  height: 15px;

  transform: translateX(-50%);
}


.ufy-person-cap-top {
  position: absolute;

  left: 2px;
  top: 0;

  width: 27px;
  height: 13px;

  border: 2px solid rgba(255,255,255,.96);
  border-bottom: 0;

  border-radius: 14px 14px 3px 3px;

  box-sizing: border-box;
}


.ufy-person-cap-brim {
  position: absolute;

  right: -3px;
  bottom: 0;

  width: 18px;
  height: 5px;

  border-top: 2px solid rgba(255,255,255,.96);

  border-radius: 50%;

  transform: rotate(5deg);
}


.ufy-person-cap-logo {
  position: absolute;

  left: 50%;
  top: 4px;

  transform: translateX(-50%);

  color: rgba(255,255,255,.98);

  font-size: 6px;
  font-weight: 900;

  line-height: 1;
  letter-spacing: .1px;
}


/* GAFAS UFY */

.ufy-person-glasses {
  position: absolute;

  top: 9px;
  left: 50%;

  width: 31px;
  height: 13px;

  transform: translateX(-50%);

  z-index: 3;
}


.ufy-person-lens {
  position: absolute;

  top: 0;

  width: 15px;
  height: 12px;

  border: 2px solid currentColor;

  border-radius: 7px 7px 8px 8px;

  box-sizing: border-box;

  color: rgba(255,255,255,.96);
}


.ufy-person-lens-left {
  left: 0;

  transform: rotate(-2deg);
}


.ufy-person-lens-right {
  right: 0;

  transform: rotate(2deg);
}


.ufy-person-glasses-bridge {
  position: absolute;

  left: 50%;
  top: 5px;

  width: 7px;
  height: 2px;

  transform: translateX(-50%);

  background: currentColor;
  color: rgba(255,255,255,.96);

  border-radius: 999px;
}


/* DOS X */

.ufy-person-x {
  position: absolute;

  inset: 0;
}


.ufy-person-x::before,
.ufy-person-x::after {
  content: "";

  position: absolute;

  left: 50%;
  top: 50%;

  width: 8px;
  height: 1.7px;

  background: rgba(255,255,255,.98);

  border-radius: 999px;

  transform-origin: center;
}


.ufy-person-x::before {
  transform:
    translate(-50%, -50%)
    rotate(45deg);
}


.ufy-person-x::after {
  transform:
    translate(-50%, -50%)
    rotate(-45deg);
}


/* BARBILLA */

.ufy-person-chin {
  position: absolute;

  left: 50%;
  bottom: -1px;

  width: 10px;
  height: 5px;

  transform: translateX(-50%);

  border-bottom:
    1.5px solid
    rgba(255,255,255,.65);

  border-radius: 50%;
}


/* CUELLO */

.ufy-person-neck {
  position: absolute;

  left: 50%;
  top: 37px;

  width: 10px;
  height: 7px;

  transform: translateX(-50%);

  border-left:
    2px solid
    rgba(255,255,255,.90);

  border-right:
    2px solid
    rgba(255,255,255,.90);
}


/* HOMBROS */

.ufy-person-shoulders {
  position: absolute;

  left: 50%;
  bottom: 0;

  width: 43px;
  height: 14px;

  transform: translateX(-50%);

  border-top:
    2px solid
    rgba(255,255,255,.92);

  border-left:
    2px solid
    rgba(255,255,255,.92);

  border-right:
    2px solid
    rgba(255,255,255,.92);

  border-radius:
    22px 22px 0 0;

  box-sizing: border-box;
}


/* AJUSTE EXCLUSIVO DENTRO DEL CÍRCULO DEL LOCK SCREEN */

.ufy-phone-search-person {
  margin: 0;

  transform: scale(.72);
  transform-origin: center;

  pointer-events: none;
}


/* =========================================================
   UFY PHONE — BLOQUEO DEL DOCUMENTO INFERIOR
   La página no se desplaza ni rebota detrás del teléfono.
   ========================================================= */

html.ufy-phone-active,
html.ufy-phone-active body {
  width: 100%;
  height: 100%;

  overflow: hidden;

  overscroll-behavior: none;
}


/* =========================================================
   UFY PHONE — PANTALLA DESBLOQUEADA
   DÍA B — HORA 1
   ========================================================= */

.ufy-phone-home-screen {
  position: fixed;
  inset: 0;

  z-index: 5000;


 width: 100%;

 height: 100vh;
height: 100dvh;
min-height: 100svh;

  overflow: hidden;

  background: #020207;
  color: #fff;

  isolation: isolate;

  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}


.ufy-phone-home-screen[hidden] {
  display: none;
}


/* MISMO WALLPAPER DEL LOCK SCREEN */

.ufy-phone-home-wallpaper {
  position: absolute;
  inset: -2px;

  z-index: 0;

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  transform: scale(1.01);
}


/* CONTENIDO */

.ufy-phone-home-content {
  position: relative;
  z-index: 1;

  width: 100%;
  height: 100%;

  box-sizing: border-box;

  display: flex;
  flex-direction: column;

  padding:
    max(13px, env(safe-area-inset-top))
    18px
    max(15px, env(safe-area-inset-bottom));
}


/* =========================================================
   PÁGINAS DE APLICACIONES
   ========================================================= */

.ufy-phone-app-pages {
  flex: 1 1 auto;

  width: 100%;
  min-height: 0;

  margin-top: 12px;

  overflow: hidden;

  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}


.ufy-phone-app-track {
  display: flex;

  width: 100%;
  height: 100%;

  transform: translateX(0);

  transition:
    transform 220ms
    cubic-bezier(0.22, 0.72, 0.24, 1);

  will-change: transform;
}


.ufy-phone-app-page {
  flex: 0 0 100%;

  width: 100%;
  height: 100%;

  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  align-content: start;

  column-gap: 14px;
  row-gap: 20px;
}


/* =========================================================
   INDICADOR DE PÁGINAS
   ========================================================= */

.ufy-phone-page-dots {
  flex: 0 0 18px;

  min-height: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 6px;
}


.ufy-phone-page-dot {
  display: block;

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background:
    rgba(255, 255, 255, 0.42);

  transition:
    transform 160ms ease,
    background-color 160ms ease;
}


.ufy-phone-page-dot.is-active {
  transform: scale(1.25);

  background:
    rgba(255, 255, 255, 0.98);
}


/* =========================================================
   INDICADOR DE PÁGINAS
   ========================================================= */

.ufy-phone-page-dots {
  flex: 0 0 18px;

  min-height: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 6px;
}