:root{
  --bg:#ffffff;
  --text:#0b0b0c;
  --muted:#5b5f66;
  --line:#e7e7ea;
  --shadow: 0 18px 50px rgba(0,0,0,.10);
  --shadow2: 0 8px 20px rgba(0,0,0,.08);
  --pink:#b0145a;
  --bottom-gap: 16px; /* aire blanco deseado (prueba 14–22px) */
  --stage-top: calc(76px + env(safe-area-inset-top) + 10px);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: var(--text);
}

/* =========================
   Topbar
   ========================= */
.topbar{
  position: fixed;
  inset: 0 0 auto 0;

  /* la altura real incluye el notch */
  height: calc(76px + env(safe-area-inset-top));

  /* el safe-area-top va ARRIBA, no abajo */
  padding-top: calc(12px + env(safe-area-inset-top));
  padding-right: calc(14px + env(safe-area-inset-right));
  padding-bottom: 12px;
  padding-left: calc(14px + env(safe-area-inset-left));

  display:flex;
  align-items:center;
  justify-content:space-between;

 background: rgba(255,255,255,.97);
  z-index: 1000;
  /* transform: translate3d(0,0,0);
  will-change: transform; */

}

/* =========================
   Main / Deck (UNIFICADO)
   ========================= */

/* Fallback si el navegador no soporta dvh */
@supports not (height: 100dvh){
  .stage{ min-height: 100vh; }
  .swipe-container{ height: calc(100vh - 90px - env(safe-area-inset-bottom) - var(--bottom-gap)); }
}

/* Base (Safari/Chrome normal + Android normal) */
.stage{
  padding-top: calc(76px + env(safe-area-inset-top) + 10px);
  padding-bottom: calc(var(--bottom-gap) + env(safe-area-inset-bottom));
  min-height: 100dvh;
  display:flex;
  justify-content:center;
}

.swipe-container{
  position: relative;
  width: min(390px, 92vw);

  /* CLAVE: dvh + safe-area + gap */
  height: calc(100dvh - 90px - env(safe-area-inset-bottom) - var(--bottom-gap));

  aspect-ratio: 2 / 3;
  max-height: none;
  margin: 0 auto;
}

.swipe-card{
  position: absolute;
  inset: 0;
  border-radius: 34px;
  overflow: hidden;
  background: #f3f3f5;
  box-shadow: var(--shadow);

  touch-action: none;
  pointer-events: none;

  opacity: 0;
  transform: scale(.985);
  transition: opacity .22s ease, transform .22s ease;

  /* composición / estabilidad */
  will-change: transform;
  contain: paint;
  isolation: isolate;
}


.swipe-card.active{
  opacity:1;
  transform: translate3d(0,0,0) rotate(0) scale(1);
  pointer-events:auto;
  z-index:10;
}

.swipe-card.peek{
  opacity:1;
  transform: translateY(10px) scale(.965);
  pointer-events:none;
  z-index:5;
}

/* Carta anterior visible debajo cuando arrastras a la derecha */
.swipe-card.peek-prev{
  opacity:1;
  transform: translateY(10px) scale(.965);
  pointer-events:none;
  z-index:5;
  transition: none !important;
}

.swipe-card img,
.swipe-card video{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: 50% 30%;
  display:block;
  user-select:none;
  -webkit-user-drag:none;
  pointer-events:none;
}

.overlay-bottom{
  position:absolute;
  left:16px;
  right:16px;
  bottom:16px;
  display:flex;
  flex-direction: column;
  align-items: stretch;
  gap:12px;
  z-index: 12;
}

/* =========================
   PWA Standalone (iOS A2HS + Android instalado)
   ========================= */
@media (display-mode: standalone) {

  .stage{
    min-height: 100dvh;
    padding-top: var(--stage-top);
    padding-bottom: calc(var(--bottom-gap) + env(safe-area-inset-bottom));
  }

  .swipe-container{
    height: calc(
      100dvh
      - var(--stage-top)
      - env(safe-area-inset-bottom)
      - var(--bottom-gap)
    );
    max-height: none;
  }

  /* sube el contenido del pie para que no pegue con el home-indicator */
  .overlay-bottom{
    bottom: calc(16px + env(safe-area-inset-bottom));
  }

  /* encuadre solo en PWA */
  .swipe-card img,
  .swipe-card video{
    object-position: 50% 20% !important;
  }
    /* Videocall sheet: evita “aire blanco” abajo en iOS PWA */
  .vc-sheet{
    padding-bottom: calc(0px + env(safe-area-inset-bottom));

  }
}

.swipe-card video{
  transform: translateZ(0);    /* fuerza composición consistente */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  opacity: 0.99999;            /* truco: evita overlay raro en algunos Chrome */
}



.topbar::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index:-1;
}
/* Android: desactiva blur (fix real) */
.is-android .topbar::before{
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background: rgba(255,255,255,.97) !important;
}
/* Chrome Android/PWA: evita bug de compositor (el ::before tapa botones) */
.is-android .topbar::before{
  content: none !important;
}

/* --- FIX Chrome Android PWA: header desaparece al volver atrás --- */
.is-android .topbar{
  transform: translateZ(0);   /* fija capa GPU estable */
  will-change: transform;     /* evita re-evaluación de capa */
  isolation: isolate;         /* stacking context propio */
}

/* stacking normal */
.right,
.icon-btn,
.icon-btn svg{
  position: relative;
  z-index: 1;
}

.left{display:flex; align-items:center; gap:10px; min-width:0;}
.right{display:flex; align-items:center; gap:8px;}

.icon-btn{
  width:44px; height:44px;
  border-radius:16px;
  border:1px solid var(--line);
  background:#fff;
  display:grid;
  place-items:center;
  cursor:pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.03);
  transition: transform .15s ease, border-color .15s ease;
}
.icon-btn:active{transform: scale(.98);}
.icon-btn svg{width:20px; height:20px; fill:#141517;}

/* FIX Chrome Android: SVGs con fill="none" se quedan invisibles al volver atrás */
.icon-btn{ color:#141517; } /* usaremos currentColor */
.icon-btn svg{ width:20px; height:20px; }


/* GPS pulse */
.gps-pulse{ animation: gpsPopGlow 1.4s ease-in-out infinite; }
@keyframes gpsPopGlow{
  0%{ transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
  50%{ transform: scale(1.15); box-shadow: 0 0 14px rgba(0,180,255,0.55); }
  100%{ transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
}

.brand{display:flex; flex-direction:column; line-height:1.1; min-width:0;}
.brand-title{font-weight:900; font-size:18px; letter-spacing:.2px;}
.brand-black{color:#000;}
.brand-pink{color:var(--pink);}
.brand-sub{
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 62vw;
}

/* =========================
   Main / Deck
   ========================= */

.deck{width: min(440px, 92vw);}
.deck-header{margin-bottom: 14px;}
.deck-kicker{font-size:12px; color:var(--muted); letter-spacing:.12em; text-transform:uppercase;}
.deck-title{font-size:20px; font-weight:900; margin-top:6px;}


/* Card overlay + gradient (keep LAST value: 55%) */
.card-fade{
  position:absolute;
  left:0; right:0; bottom:0;
  height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0));
  pointer-events:none;
  z-index: 10;
}

.card-caption{
  position:absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  color:#fff;
  display:grid;
  gap:4px;
}
.cap-title{font-weight:900; font-size:18px;}
.cap-sub{font-size:12px; opacity:.9;}

.sound-toggle{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.45);
  color: #ffffff;
  display: grid;
  place-items: center;
  z-index: 40;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.sound-toggle:active{transform: scale(.96);}

/* =========================
   Panel (perfil)
   ========================= */
.panel{
  position:fixed;
  inset:0;
  z-index: 2000;
  display:grid;
}
.panel.hidden{display:none;}

.panel-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  opacity: calc(var(--panelBackAlpha, 1) * 1);
  transition: opacity .28s ease;
}

/* Panel sheet: layout (header fijo + body scroll) */
.panel-sheet{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 100%;
  background: #fff;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  transform: translateY(100%);
  overflow: hidden;            /* el scroll NO es del sheet */
  display: flex;
  flex-direction: column;
  will-change: transform;
  touch-action: none;
  transition: transform .42s cubic-bezier(.16,1,.3,1);
}
.panel.open .panel-sheet{ transform: translateY(0); }
.panel.open .panel-backdrop{ opacity:1; }

/* Hero del perfil */
.panel-hero{
  position: sticky;
  top: 0;
  z-index: 5;
  width: 100%;
  height: 56vh;
  background: transparent;
  overflow: hidden;
  border-radius: 0 !important;
  transition: height .18s ease, transform .18s ease;
  will-change: height, transform;
}
.panel-hero img,
.panel-hero video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
}

/* Body scrolleable */
.panel-body{
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 18px 24px;
  display: grid;
  gap: 10px;
}

.panel-title{font-size:18px; font-weight:900;}
.panel-sub{font-size:14px; color:#62656d; line-height:1.35;}
.panel-close{
  margin-top: 10px;
  height:44px;
  border-radius:16px;
  border:1px solid var(--line);
  background:#111214;
  color:#fff;
  font-weight:800;
  cursor:pointer;
}

/* Shared element clone */
.hero-clone{
  position:fixed;
  z-index: 2500;
  border-radius: 34px;
  overflow:hidden;
  box-shadow: var(--shadow2);
  will-change: transform, width, height, top, left, opacity;
}
.hero-clone img,
.hero-clone video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Toast */
.toast{
  position:fixed;
  left:50%;
  bottom: 26px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.78);
  color:#fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 3000;
}
.toast.hidden{display:none;}

/* =========================
   Card overlays inside card
   ========================= */
.availability{
  position:absolute;
  top:14px;
  left:14px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.70);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
  z-index: 12;
}
.availability .avail-dot{
  width:10px;height:10px;border-radius:999px;
  background:#22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.18);
}
.availability-text{
  font-size:12px;
  font-weight:800;
  color:#111214;
  letter-spacing:.1px;
}


.meta{display:grid; gap:8px; min-width:0; width:100%;}
.meta-row{display:flex; align-items:center; gap:8px; color:#fff; min-width:0;}
.name-text{font-weight:900; font-size:18px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.loc-text{font-weight:800; font-size:13px; opacity:.95; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}

.meta-row.tagline{
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
  opacity: .92;
  color: #fff;
  min-width: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flag{
  width:22px; height:14px;
  border-radius:4px;
  overflow:hidden;
  display:inline-grid;
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
}
.verified{width:18px; height:18px; display:inline-grid; place-items:center;}

.call-btn{
  flex:0 0 auto;
  height:56px;
  padding:0 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.42);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-weight:900;
  letter-spacing:.2px;
  cursor:pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 26px rgba(0,0,0,.20);
  margin: 0 auto;             /* centra */
  width: 250px;
  margin-top: 20px;
}
.call-btn:active{transform: scale(.98);}
.call-text{font-size:14px;}
.call-ico{
  width:38px;height:38px;border-radius:14px;
  background: #22c55e;        /* verde */
  color: #ffffff;
  display:grid; place-items:center;
}

/* Asegura que el botón de sonido siempre quede visible */
.sound-toggle{
  z-index: 30;
  bottom: 86px;
}

/* =========================
   Menú hamburguesa
   ========================= */
.menu-overlay{
  position:fixed;
  inset:0;
  z-index: 2000;
}
.menu-scrim{
  position:absolute;
  inset:0;
  background: rgba(10,10,12,.35);
  backdrop-filter: blur(10px);
  opacity:0;
  transition: opacity .22s ease;
}
.menu-drawer{
  position:absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  width: min(360px, calc(100vw - 20px));
  border-radius: 26px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(231,231,234,.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transform: translate3d(14px, 0, 0) scale(.98);
  opacity:0;
  transition: transform .26s cubic-bezier(.2,.9,.2,1), opacity .18s ease;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.menu-overlay.is-open .menu-scrim{ opacity:1; }
.menu-overlay.is-open .menu-drawer{
  transform: translate3d(0,0,0) scale(1);
  opacity:1;
}
.menu-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 14px 10px 16px;
}
.menu-title{
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .2px;
}
.menu-close{
  width:40px; height:40px;
  border-radius: 14px;
}
.menu-items{
  padding: 6px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.menu-item{
  appearance:none;
  border: 1px solid rgba(231,231,234,.95);
  background: rgba(255,255,255,.85);
  border-radius: 18px;
  padding: 14px 14px;
  text-align:left;
  font-weight: 750;
  font-size: 15px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.menu-item:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0,0,0,.09);
  border-color: rgba(176,20,90,.22);
}
.menu-item:active{ transform: translateY(0); }

.menu-item--featured{
  border-color: rgba(176,20,90,.35);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(176,20,90,.14) 0%, rgba(255,255,255,.85) 55%),
    rgba(255,255,255,.9);
}
.menu-pill{
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(176,20,90,.12);
  border: 1px solid rgba(176,20,90,.26);
  color: var(--pink);
}
.menu-foot{
  margin-top:auto;
  padding: 10px 16px 14px 16px;
  font-size: 12px;
  color: var(--muted);
  opacity: .9;
}
@media (prefers-reduced-motion: reduce){
  .menu-scrim, .menu-drawer, .menu-item{ transition:none !important; }
}

/* =========================
   Perfil (bloques)
   ========================= */
.profile-head{ gap: 10px; margin-bottom: 14px; }
.profile-name{ font-size: 16px; font-weight: 600; }
.profile-loc{ margin-top: 2px; }
.profile-sections{ margin-top: 10px; gap: 12px; }
.profile-block{ padding: 14px 14px; }
.profile-label{ font-weight: 950; letter-spacing: .11em; }
.profile-text{ font-weight: 400; }
.profile-cta{ margin-top: 16px; gap: 10px; text-align: center; }

/* Perfil CTA — mismo look que carta deslizante */
.profile-cta .call-green-btn{
  width: 60%;
  height: 56px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.42);
  color: #fff;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  font-weight:900;
  letter-spacing:.2px;
  cursor:pointer;

  backdrop-filter: blur(10px);
  box-shadow: 0 12px 26px rgba(0,0,0,.20);

  margin: 0 auto;
  transition: transform .15s ease;
  
}

.profile-cta .call-green-btn:active{
  transform: scale(.98);
}

/* Icono verde como en la carta */
.profile-cta .call-green-ico{
  width:38px;
  height:38px;
  border-radius:14px;
  background:#22c55e;
  color:#fff;
  display:grid;
  place-items:center;
}

.call-green-ico{ background: rgba(34,197,94,.95); }

/* Galería (4 por fila) */
.profile-gallery{
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* Thumb (galería) — final: 2:3 */
.thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(231,231,234,.95);
  background: rgba(255,255,255,.55);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  cursor: pointer;
  padding: 0;
}
.thumb img,
.thumb video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb-badge{
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.48);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
}

/* =========================
   Media viewer PRO FINAL + Smooth Animation
   ========================= */

/* Overlay base */
.media-viewer{
  position: fixed;
  inset: 0;
  z-index: 5000;

  /* Animación fade fondo */
  opacity: 0;
  transition: opacity .35s cubic-bezier(.22,.8,.22,1);
}

.media-viewer:not(.hidden){
  opacity: 1;
}

.media-viewer.hidden{
  display: none;
}

/* Fondo negro */
.media-viewer__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Layout central */
.media-viewer__chrome{
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;

  padding:
    calc(16px + env(safe-area-inset-top))
    calc(16px + env(safe-area-inset-right))
    calc(16px + env(safe-area-inset-bottom))
    calc(16px + env(safe-area-inset-left));
}

/* Contenedor media */
.media-viewer__content{
  position: absolute;
  inset: 0;

  width: 100vw;
  height: 100vh;
  height: 100dvh;

  max-width: none;
  max-height: none;

  border-radius: 0;   /* sin esquinas */
  overflow: hidden;
  background: #000;
  box-shadow: none;   /* sin sombra */

  /* quitamos animación scale porque ya no es tarjeta */
  transform: none;
  opacity: 1;
  transition: none;
}


.media-viewer:not(.hidden) .media-viewer__content{
  transform: scale(1);
  opacity: 1;
}

/* Imagen / vídeo */
.media-viewer__content img,
.media-viewer__content video{
  width: 100%;
  height: 100%;
  object-fit: cover;   /* 👈 CAMBIO AQUÍ */
  display: block;
  background: #000;
}


/* Botón cerrar */
.media-viewer__close{
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  right: calc(14px + env(safe-area-inset-right));
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all .25s ease;
}

.media-viewer__close:hover{
  background: rgba(255,255,255,.25);
  transform: scale(1.1);
}
/* =========================
   Media viewer indicator (Instagram style)
   ========================= */
.media-viewer__indicator{
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 15;
}

.media-viewer__indicator span{
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  transition: all .3s ease;
}

.media-viewer__indicator span.active{
  background: #fff;
  transform: scaleY(1.2);
}



html.viewer-open,
body.viewer-open{ overflow: hidden; }

/* =========================
   VideoCall Sheet (NEW)
   ========================= */
.vc-overlay{
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  align-items: end;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.vc-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}
.vc-sheet{
  width: min(560px, 100%);
  margin: 0 auto;
  border-radius: 26px 26px 0 0;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transform: translateY(22px);
  transition: transform .22s ease;
  padding: 14px 16px 18px;
}
.vc-overlay.is-open .vc-sheet{ transform: translateY(0); }

/* =========================
   Permissions modal (Camera/Mic)
   ========================= */
.perm-overlay{
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.perm-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}
.perm-sheet{
  width: min(560px, 100%);
  border-radius: 26px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 16px 16px;
}
.perm-header{ display:flex; align-items:center; justify-content: space-between; padding: 2px 2px 10px; }
.perm-title{ margin:0; font: 800 18px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif; color:#0b0f14; letter-spacing: -.02em; }
.perm-close{
  width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.75);
  display:grid; place-items:center;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease;
}
.perm-close:active{ transform: scale(.96); background: rgba(255,255,255,.9); }
.perm-body{ display:grid; gap: 10px; padding: 2px 6px 10px; }
.perm-lead{ font: 700 14px/1.35 system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif; color:#0b0f14; }
.perm-sub{ font: 600 13px/1.35 system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif; color: rgba(11,15,20,.75); }
.perm-steps{ margin: 0; padding-left: 18px; display:grid; gap: 8px; }
.perm-steps li{ font: 600 13px/1.35 system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif; color: rgba(11,15,20,.86); }
.perm-note{ font: 600 12px/1.35 system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif; color: rgba(11,15,20,.66); }
.perm-actions{ display:flex; gap: 10px; padding: 10px 6px 2px; }
.perm-primary{
  flex: 1;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  background: #0b0f14;
  color: #fff;
  font: 800 14px/1 system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
  cursor: pointer;
}
.perm-primary:active{ transform: translateY(1px); }
.perm-secondary{
  flex: 1;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.7);
  color: #0b0f14;
  font: 800 14px/1 system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
  cursor: pointer;
}
.perm-secondary:active{ transform: translateY(1px); }

.vc-header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 2px 2px 10px;
}
.vc-title{
  margin: 0;
  font: 800 18px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
  color: #0b0f14;
  letter-spacing: -.02em;
}
.vc-close{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.75);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease;
}
.vc-close:active{ transform: scale(.96); background: rgba(255,255,255,.9); }

.vc-profile{
  padding: 4px 6px 8px;
  display:grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.vc-avatarWrap{
  width: 108px; height: 108px;
  border-radius: 999px;
  padding: 4px;
  position: relative;
  background: conic-gradient(from 180deg, rgba(34,197,94,.9), rgba(16,185,129,.9), rgba(34,197,94,.9));
  box-shadow: 0 10px 30px rgba(34,197,94,.18);
}
.vc-avatarWrap[data-status="busy"]{
  background: conic-gradient(from 180deg, rgba(245,158,11,.9), rgba(251,191,36,.9), rgba(245,158,11,.9));
  box-shadow: 0 10px 30px rgba(245,158,11,.18);
}
.vc-avatarWrap[data-status="offline"]{
  background: conic-gradient(from 180deg, rgba(148,163,184,.95), rgba(226,232,240,.95), rgba(148,163,184,.95));
  box-shadow: 0 10px 30px rgba(148,163,184,.16);
}
.vc-avatarWrap[data-status="unavailable"]{
  background: conic-gradient(from 180deg, rgba(239,68,68,.95), rgba(248,113,113,.95), rgba(239,68,68,.95));
  box-shadow: 0 10px 30px rgba(239,68,68,.18);
}
.vc-avatarWrap.is-calling{
  animation: vcPulse 1.25s ease-in-out infinite;
}
@keyframes vcPulse{
  0%{ transform: scale(1); filter: saturate(1); }
  50%{ transform: scale(1.02); filter: saturate(1.1); }
  100%{ transform: scale(1); filter: saturate(1); }
}
.vc-avatar{
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.95);
  display:block;
}

.vc-nameRow{ display:grid; gap: 6px; justify-items:center; }
.vc-name{
  font: 900 22px/1.15 system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
  color: #0b0f14;
  letter-spacing: -.03em;
}
.vc-pill{
  font: 750 12px/1 system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.07);
  background: rgba(34,197,94,.10);
  color: rgba(6,95,70,.95);
}

/* 🔴 Estado no disponible en modal (texto + pill en rojo) */
.vc-pill.is-unavailable{
  background: rgba(239,68,68,.10);
  border-color: rgba(239,68,68,.25);
  color: rgba(153,27,27,.95);
}

.vc-copy{ display:grid; gap: 6px; padding: 0 10px; }
.vc-headline{
  font: 900 16px/1.25 system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
  color: #0b0f14;
  letter-spacing: -.02em;
}
.vc-sub{
  font: 550 13.5px/1.35 system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
  color: rgba(11,15,20,.64);
}

.vc-actions{ display:grid; gap: 12px; padding-top: 8px; }
.vc-primary{
  font-size: 16px;
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  color: #fff;
  font-weight: 900;
  letter-spacing: .2px;
  background: linear-gradient(135deg, rgba(34,197,94,.95), rgba(16,185,129,.95));
  box-shadow: 0 18px 40px rgba(34,197,94,.18);
  transition: transform .12s ease, filter .12s ease;
}

/* 🔴 Botón principal rojo cuando el anuncio NO está disponible (usuario logueado) */
.vc-primary.is-unavailable{
  background: linear-gradient(135deg, rgba(239,68,68,.95), rgba(248,113,113,.95));
  box-shadow: 0 18px 40px rgba(239,68,68,.18);
  cursor: not-allowed;
}
.vc-primary.is-unavailable:active{
  transform: none;
}
.vc-primary.is-disabled{
  background: rgba(180,180,180,.55) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  filter: grayscale(1) saturate(.2);
  opacity: .9;
}
.vc-primary.is-disabled:active{
  transform: none !important;
  filter: grayscale(1) saturate(.2) !important;
}

.vc-primary:active{ transform: scale(.985); filter: brightness(0.98); }

.vc-secondaryRow{ display:flex; gap: 10px; }
.vc-secondary{
    flex: 1 1 auto;
    height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, .08);
    background: #df3588;
    font-weight: 850;
    cursor: pointer;
    color: #fff;
}
.vc-secondary:active{ transform: scale(.99); }

.vc-foot{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.65);
  color: rgba(11,15,20,.7);
  font-size: 12.5px;
  line-height: 1.25;
}

/* reutiliza tu callRoot existente */
#callRoot[hidden]{ display:none !important; }






.call-start-btn{
  pointer-events: auto;
  display:flex;
  align-items:center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: rgba(180,180,180,.32);
  color: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
}
.call-start-btn.is-on{
  background: rgba(21, 182, 95, .85);
  border-color: rgba(21,182,95,.85);
}
.call-start-btn__ico{ display:grid; place-items:center; }
.call-start-btn__text{ font-weight: 800; }

.call-root{
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background:#000;
}
.call-remote{ position:absolute; inset:0; }
.call-local{
  position:absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: calc(12px + env(safe-area-inset-right));
  width: 30vw;
  max-width: 220px;
  min-width: 120px;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.call-controls{
  position:absolute;
  left:0; right:0;
  bottom: calc(14px + env(safe-area-inset-bottom));
  display:flex;
  justify-content:center;
  gap: 12px;
  padding: 0 16px;
}

body.call-active .call-controls{
  bottom: calc(62px + env(safe-area-inset-bottom));
}

.call-control{
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255,255,255,.14);
  color: #fff;
  backdrop-filter: blur(8px);
}
.call-hangup{ background: rgba(230, 58, 58, .85); }

.no-scroll{ overflow:hidden; }
#callModal[hidden], #callRoot[hidden]{ display:none !important; }

/* =========================
   Fullscreen Call Mode
   ========================= */

body.call-active {
	overflow: hidden;
}

body.call-active .vc-overlay {
	align-items: stretch;
}

body.call-active .vc-sheet {
	width: 100%;
	height: 100vh;
	height: 100dvh;
	max-width: 100%;
	border-radius: 0;
	padding: 0;
}


body.call-active .vc-header,
body.call-active .vc-profile,
body.call-active .vc-actions {
	display: none;
}

body.call-active #callRoot {
	position: relative;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	display: block;
}

/* =========================
   Phone Auth Fullscreen Modal
   ========================= */
:root{
  --authPink: #C2185B;
  --authLine: rgba(231,231,234,.95);
  --authGlass: rgba(255,255,255,.92);
}

.auth-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: grid;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.auth-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}

.auth-sheet{
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--authGlass);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 22px 80px rgba(0,0,0,.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;

  display: flex;
  flex-direction: column;
}

.auth-header{
  position: sticky;
  top: 0;
  z-index: 5;
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) 12px calc(16px + env(safe-area-inset-left));
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(14px);
}

.auth-brand{
  font-weight: 950;
  letter-spacing: -.02em;
  font-size: 16px;
}
.auth-brand-black{ color:#000; }
.auth-brand-pink{ color: var(--authPink); }

.auth-close{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.78);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease;
}
.auth-close:active{ transform: scale(.96); background: rgba(255,255,255,.92); }

.auth-body{
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 16px 22px;
  display: flex;
  justify-content: center;
}

.auth-step{
  width: min(520px, 94vw);
  display:flex;
  flex-direction:column;
  gap:16px;
}

.auth-title{
  margin: 6px 0 0;
  font: 950 26px/1.12 system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
  letter-spacing: -.03em;
  color: #0b0b0c;
}
@media (min-width: 420px){
  .auth-title{ font-size: 30px; }
}

.auth-pink{ color: var(--authPink); }

.auth-select,
.auth-input{
  height: 56px;
  border-radius: 18px;
  border: 1px solid var(--authLine);
  background: rgba(255,255,255,.86);
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .2px;
  outline: none;
}

.auth-select{
  padding: 0 12px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(0,0,0,.65) 50%),
    linear-gradient(135deg, rgba(0,0,0,.65) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 24px,
    calc(100% - 13px) 24px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.auth-input::placeholder{
  color: rgba(11,11,12,.35);
  font-weight: 800;
}

.auth-help{
  font-size: 13.5px;
  line-height: 1.35;
  color: rgba(11,11,12,.62);
}

.auth-error{
  min-height: 18px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(194,24,91,.95);
}

.auth-primary{
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 950;
  letter-spacing: .6px;
  color: #fff;
  background: linear-gradient(135deg, rgba(194,24,91,.98), rgba(176,20,90,.98));
  box-shadow: 0 18px 40px rgba(194,24,91,.22);
  transition: transform .12s ease, filter .12s ease, opacity .12s ease;
}
.auth-primary:active{ transform: scale(.985); filter: brightness(.98); }
.auth-primary:disabled{
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}

.auth-footnote{
  font-size: 12px;
  color: rgba(11,11,12,.55);
}

.auth-sub{
  margin-top: 2px;
  text-align: center;
  font-size: 13.5px;
  color: rgba(11,11,12,.62);
}

/* Contenedor de los 6 dígitos */
.auth-otp{
  display: flex;
  justify-content: space-between;
  gap: 8px;              /* controla separación */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Cada input */
.auth-otp .otp{
  flex: 1;               /* todos ocupan mismo espacio */
  aspect-ratio: 1 / 1;   /* cuadrados perfectos */
  max-width: calc((100% - 40px) / 6); /* evita overflow en Android */
  text-align: center;
  font-size: 22px;
  box-sizing: border-box;
}

.otp{
  height: 56px;
  width: 56px;;
  border-radius: 16px;
  border: 1px solid var(--authLine);
  background: rgba(255,255,255,.86);
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
  text-align: center;
  font-size: 20px;
  font-weight: 950;
  outline: none;
}

.otp:focus{
  border-color: rgba(194,24,91,.35);
  box-shadow: 0 18px 40px rgba(194,24,91,.12);
}

.auth-timer{
  text-align:center;
  font-weight: 950;
  letter-spacing: .2px;
  color: rgba(11,11,12,.70);
  margin-top: 2px;
}

.auth-phonePreview{
  text-align:center;
  font-weight: 950;
  font-size: 14px;
  letter-spacing: .2px;
  color: rgba(11,11,12,.82);
}

.auth-secondary{
  width: 100%;
  height: 50px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.75);
  font-weight: 900;
  cursor: pointer;
}

.auth-secondary:active{ transform: scale(.99); }

html.auth-open,
body.auth-open{
  overflow: hidden;
}

/* --- Utilities --- */
[hidden] {
  display: none !important;
}
/* Oculta labels accesibles (si no existe ya) */
.sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

/* Row: prefijo + teléfono SIEMPRE en la misma línea */
.auth-row{
  display:flex;
  align-items:center;
  gap:12px;
}

.auth-select{
  width: 112px;
  flex: 0 0 112px;
  text-align: left;
  font-weight: 900;
}

.auth-phoneWrap{
  flex: 1 1 auto;
  width: 100%;
}

.auth-input{
  width: 100%;
  min-width: 0;
}



/* =========================
   Header dropdown (Menu)
   ========================= */
.hdr-menu{ position: relative; display:flex; align-items:center; }
.hdr-menu-panel{
  position:absolute;
  top: calc(44px + 10px);
  right: 0;
  display:grid;
  gap:10px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(231,231,234,.95);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  transform: translateY(-8px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: transform .18s ease, opacity .18s ease;
  z-index: 2200;
}
.hdr-menu.is-open .hdr-menu-panel{
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.hdr-menu-item{ width:44px; height:44px; border-radius:16px; }
.hdr-menu button svg{ width:20px; height:20px; }

/* Políticas content (scoped) */
.policies-content{
  font-size: 14px;
  line-height: 1.45;
  color: rgba(11,11,12,.78);
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 14px 14px;
  max-height: 84vh;
  overflow: auto;
}
/* =========================
   Listados Modal
   ========================= */
.listados-overlay{
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.listados-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}


/* =========================
   Dynamic Ads: availability CTA styling (non-breaking)
   ========================= */
.call-btn.is-unavailable{
  background: rgba(239,68,68,.18);
  border-color: rgba(239,68,68,.35);
}
.call-btn.is-unavailable .call-ico{
  background: rgba(239,68,68,.95);
}
.call-btn.is-unavailable[aria-disabled="true"]{
  filter: saturate(.9);
}
.call-btn.is-unavailable[aria-disabled="true"]:active{
  transform:none;
}

/* Perfil CTA rojo (cuando no disponible) */
.call-red-btn{
  border: 1px solid rgba(239,68,68,.42) !important;
  background: rgba(239,68,68,.14) !important;
  box-shadow: 0 18px 40px rgba(239,68,68,.14) !important;
}
.call-red-btn .call-green-ico{
  background: rgba(239,68,68,.95) !important;
}
/* =========================
   LISTADOS MODAL (fix)
   ========================= */

.listados-overlay[hidden] { display: none !important; }

.listados-sheet{
  place-self: center;
  width: min(920px, 94vw);
  height: min(92vh, 720px);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 80px rgba(0,0,0,.25);
}

.listados-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.listados-brand{
  font-weight: 800;
  letter-spacing: .2px;
}

.listados-brand-black{ color:#111; }
.listados-brand-pink{ color:#ff2d86; }

.listados-close{
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(0,0,0,.06);
  display:flex;
  align-items:center;
  justify-content:center;
}

.listados-tabs{
  display:flex;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.listados-tab{
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
}

.listados-tab.is-active{
  border-color: rgba(255,45,134,.45);
  background: rgba(255,45,134,.08);
}

.listados-body{
  padding: 14px 16px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

.listados-list{ display:flex; flex-direction:column; gap: 10px; }

.listados-day{
  margin-top: 6px;
}
.listados-day-sep{
  font-weight: 800;
  color: rgba(0,0,0,.55);
  font-size: 13px;
}

.listados-item{
  display:flex;
  align-items:center;
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 16px;
  padding: 10px 12px;
}

.listados-avatar{
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  flex: 0 0 auto;
}

.listados-meta{ flex: 1; min-width: 0; }
.listados-type{ font-weight: 900; }
.listados-sub{ color: rgba(0,0,0,.55); font-size: 13px; margin-top: 2px; }

.listados-right{
  display:flex;
  align-items:center;
  gap: 10px;
}

.listados-badge{
  font-weight: 900;
  font-size: 12px;
  background: rgba(0,0,0,.06);
  padding: 6px 10px;
  border-radius: 999px;
}

.listados-del{
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: rgba(0,0,0,.06);
  display:flex;
  align-items:center;
  justify-content:center;
}

.listados-empty{
  text-align:center;
  padding: 32px 10px;
  color: rgba(0,0,0,.6);
}

@media (max-width: 520px){
  .listados-sheet{
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
}

/* ===== Listados: swipe-to-delete (DEJAR SOLO ESTE BLOQUE) ===== */

.listados-row{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

/* Fondo completo detrás */
.listados-row__bg{
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Acción (OnLine/OffLine) anclada a la derecha y con TODO el alto */
.listados-row__action{
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;

  width: 112px;
  border: 0;
  color: #fff;
  font-weight: 900;

  display: flex;
  align-items: center;
  justify-content: center;
}

.listados-row__action.is-online{ background: #22c55e; }
.listados-row__action.is-offline{ background: #ef4444; }
/* Acción única para Listados: Eliminar (siempre rojo) */
.listados-row__action.is-delete{ background: #ef4444; }

/* Parte frontal (lo que arrastras) */
.listados-row__fg{
  position: relative;
  z-index: 1;

  will-change: transform;
  transform: translateX(0);
  transition: transform 180ms ease;
  touch-action: pan-y;
}

.listados-row.is-open .listados-row__fg{
  transform: translateX(-112px);
}

/* =========================
   Cookie consent (UE) — discreto + bonito
   ========================= */
.cookie-consent{
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 9999998;
  width: min(520px, calc(100vw - 24px));
}

.cookie-consent[hidden]{ display:none !important; }

.cookie-consent__card{
  border-radius: 18px;
  padding: 12px 12px 10px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);

  display: grid;
  gap: 10px;

  animation: cookieIn .28s cubic-bezier(.16,1,.3,1) both;
}

@keyframes cookieIn{
  from{ transform: translateY(10px); opacity: 0; }
  to{ transform: translateY(0); opacity: 1; }
}

.cookie-consent__text{
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  line-height: 1.25;
  color: rgba(11,11,12,.80);
}

.cookie-consent__text strong{
  font-size: 14px;
  font-weight: 950;
  color: rgba(11,11,12,.92);
}

.cookie-consent__link{
  justify-self: start;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 2px 0 0;
  font-weight: 900;
  color: rgba(176,20,90,.95);
  cursor: pointer;
}

.cookie-consent__actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cookie-consent__btn{
  height: 44px;
  border-radius: 14px;
  font-weight: 950;
  letter-spacing: .2px;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
}

.cookie-consent__btn:active{ transform: scale(.985); }

.cookie-consent__btn--ghost{
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.72);
  color: rgba(11,11,12,.86);
}

.cookie-consent__btn--primary{
  border: 0;
  background: linear-gradient(135deg, rgba(194,24,91,.98), rgba(176,20,90,.98));
  color: #fff;
  box-shadow: 0 14px 30px rgba(176,20,90,.22);
}

/* =========================
   PWA Nudge (iOS + Android) — bonito y discreto
   ========================= */
.pwa-nudge{ position:fixed; inset:0; z-index: 9999999; }
.pwa-nudge[hidden]{ display:none !important; }

.pwa-nudge__backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.pwa-nudge__card{
  position:absolute;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(520px, calc(100vw - 24px));
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 26px 80px rgba(0,0,0,.22);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: 14px;
  display:grid;
  gap: 12px;
  animation: pwaIn .28s cubic-bezier(.16,1,.3,1) both;
}

@keyframes pwaIn{
  from{ transform: translateX(-50%) translateY(10px); opacity: 0; }
  to{ transform: translateX(-50%) translateY(0); opacity: 1; }
}

.pwa-nudge__close{
  position:absolute;
  top: 10px; right: 10px;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.75);
  cursor:pointer;
  font-size: 18px;
}

.pwa-nudge__top{ display:grid; gap: 6px; padding-right: 52px; }
.pwa-nudge__icon{
  width: 44px;
  height: 44px;

  border-radius: 12px;   /* iOS-style */
  overflow: hidden;      /* recorta el icono a las esquinas */
  position: relative;    /* para el brillo */

  display: grid;
  place-items: stretch;  /* el hijo ocupa todo */

  background: #111;      /* fallback si la imagen tarda */
  box-shadow:
    0 6px 14px rgba(0,0,0,.18),
    0 2px 4px rgba(0,0,0,.12);
}

.pwa-nudge__icon img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;     /* llena el cuadro */
  border-radius: inherit; /* por si iOS no respeta overflow en algún caso */
}

/* brillo sutil tipo iOS (opcional pero queda pro) */
.pwa-nudge__icon::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  background: linear-gradient(to bottom, rgba(255,255,255,.22), transparent 45%);
  pointer-events:none;
}
/* Iconitos iOS inline */
.ios-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  vertical-align: -3px;
  color: rgba(0,0,0,.85);
}

.ios-icon svg{
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

/* Si quieres el de compartir ligeramente más grande (se ve más iOS) */
.ios-icon--share{ width: 19px; height: 19px; }

/* Botón Entendido: más abajo, más ancho y centrado */
.pwa-nudge__btn{
  display: block;
  width: min(320px, 100%);
  margin: 16px auto 0;   /* baja respecto al paso 2 */
  padding: 14px 18px;
  border-radius: 14px;
  text-align: center;
}

/* Si tu botón usa otra clase, dime cuál, pero normalmente es esta o similar */



.pwa-nudge__title{ font-weight: 950; font-size: 16px; color: rgba(11,11,12,.92); }
.pwa-nudge__sub{ font-size: 13.5px; line-height: 1.25; color: rgba(11,11,12,.74); }

.pwa-nudge__actions{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pwa-nudge__btn{
  height: 46px;
  border-radius: 16px;
  font-weight: 950;
  letter-spacing: .2px;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.pwa-nudge__btn:active{ transform: scale(.985); }

.pwa-nudge__btn--ghost{
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.72);
  color: rgba(11,11,12,.86);
}
.pwa-nudge__btn--primary{
  border: 0;
  background: linear-gradient(135deg, rgba(194,24,91,.98), rgba(176,20,90,.98));
  color: #fff;
  box-shadow: 0 14px 30px rgba(176,20,90,.22);
}

.pwa-nudge__ios .pwa-nudge__steps{ display:grid; gap: 10px; margin-top: 6px; }
.pwa-step{ display:flex; gap: 10px; align-items:flex-start; color: rgba(11,11,12,.82); font-size: 13.5px; }
.pwa-step__num{
  width: 24px; height: 24px; border-radius: 999px;
  display:grid; place-items:center;
  background: rgba(0,0,0,.08);
  font-weight: 950;
}
.pwa-share{
  display:inline-grid; place-items:center;
  width: 22px; height: 22px;
  border-radius: 8px;
  background: rgba(0,0,0,.08);
  font-size: 14px;
  margin-left: 4px;
}

.pwa-nudge__foot{
  font-size: 12.5px;
  color: rgba(11,11,12,.62);
}

/* iOS Safari detect (cuando no aplica display-mode) */
@supports (-webkit-touch-callout: none) {
  html, body { height: 100%; }
}

/* =========================
   Perfil Anónimo (fullscreen)
   ========================= */
.profile-step{
  width: min(520px, 94vw);
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap: 14px;
  padding: 6px 0 10px;
}

.profile-title{
  margin: 6px 0 0;
  font: 950 30px/1.12 system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
  letter-spacing: -.03em;
  color: #0b0b0c;
}

.profile-codeLine{
  display:flex;
  gap: 10px;
  align-items: baseline;
  justify-content:center;
  font-weight: 900;
  letter-spacing: -.01em;
  color: rgba(11,11,12,.82);
}
.profile-code{
  color: rgba(194,24,91,.98);
  font-weight: 950;
}

.profile-avatar{
  width: 100px;
  height: 100px;
  border-radius: 999px;
  border: 3px solid rgba(194,24,91,.55);
  background: rgba(255,255,255,.75);
  display:grid;
  place-items:center;
  box-shadow: 0 18px 50px rgba(0,0,0,.10);
}
.profile-avatarMark{
  font: 950 96px/1 system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
  color: rgba(11,11,12,.40);
}

.profile-phoneMask{
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(11,11,12,.55);
}

.profile-headline{
  font: 600 18px/1.25 system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
  letter-spacing: -.02em;
  color: rgba(11,11,12,.86);
  margin-top: 2px;
}

.profile-tokensRow{
  width: 100%;
  display:flex;
  flex-direction: column;      /* 👈 ahora apila */
  align-items:center;
  justify-content:center;
  gap: 14px;
  margin-top: 8px;
}

.profile-tokenIco,
.profile-tokenCount{
  display:inline-flex;
  align-items:center;
}

.profile-tokenIco{
  width: 40px;
  height: 40px;
  display:grid;
  place-items:center;
  color: rgba(11,11,12,.92);
}
.profile-tokenIco svg{ width: 40px; height: 40px; }

.profile-tokenCount{
  font: 950 34px/1 system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
  letter-spacing: -.02em;
  color: rgba(11,11,12,.92);
}

.profile-storeBtn{
  width:100%;               /* 👈 ancho completo */
  height: 56px;

  border: 0;
  border-radius: 18px;
  cursor: pointer;

  display:flex;
  align-items:center;
  justify-content:center;

  font-weight: 900;
  font-size: 18px;          /* 👈 texto más grande */

  letter-spacing: .2px;
  color: #fff;

  background: linear-gradient(135deg, rgba(34,197,94,.95), rgba(16,185,129,.95));
  box-shadow: 0 18px 40px rgba(34,197,94,.18);

  transition: transform .12s ease, filter .12s ease;
}
.profile-storeBtn:active{ transform: scale(.985); filter: brightness(.98); }

.profile-legal{
  width: 100%;
  display:grid;
  gap: 10px;
  margin-top: 4px;
}

.profile-legalLink{
  text-align:left;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 2px 2px;
  font-weight: 900;
  color: rgba(11,11,12,.86);
  cursor:pointer;
}
.profile-legalLink:active{ transform: translateY(1px); }

.profile-logout{
  margin-top: 6px;
  width: 100%;
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.72);
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  font-weight: 950;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease;
}
.profile-logout:active{ transform: scale(.985); background: rgba(255,255,255,.9); }

.profile-logoutIco{
  width: 22px;
  height: 22px;
  display:grid;
  place-items:center;
  color: rgba(11,11,12,.75);
}
.profile-logoutIco svg{ width: 22px; height: 22px; }

/* =========================
   Coins loading (spinner)
   ========================= */
.coins-loading{
  display:inline-flex;
  align-items:center;
  gap:10px;
}

.coins-spinner{
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,.18);
  border-top-color: rgba(0,0,0,.65);
  animation: coinsSpin .75s linear infinite;
  flex: 0 0 16px;
}

@keyframes coinsSpin{
  to { transform: rotate(360deg); }
}

/* Ya no usamos el botón gris de borrar dentro del item (solo el rojo a la derecha) */
.listados-del{ display:none; }

.listados-loading{
  padding: 14px 10px 22px;
  display:flex;
  justify-content:center;
}



/* ========== Bottom Nav (solo visual) ========== */
:root{
  --bottom-nav-h: 70px;
}

/* Para que no tape el contenido: añade espacio abajo */
body{
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
}

.bottom-nav{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  height: var(--bottom-nav-h);
  z-index: 9999;

  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;

  padding: 10px 10px;
  border-radius: 18px;

  /* look “bonito” */
  background: rgba(20, 20, 24, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);

  /* ayuda a Chrome a mantener capa */
  transform: translateZ(0);
  will-change: transform;
}

.bottom-nav__btn{
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.92);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 6px;
  padding: 8px 6px;
  border-radius: 14px;

  /* NO hacen nada; pero que se note “tocable” */
  cursor: default;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav__btn svg{
  width: 22px;
  height: 22px;
  fill: currentColor;
  opacity: 0.95;
}

.bottom-nav__btn span{
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.2px;
  opacity: 0.9;
}

/* estado visual al pulsar (solo feedback, sin acción) */
.bottom-nav__btn:active{
  background: rgba(255,255,255,0.08);
}

/* igual idea que gps-pulse pero aún más sutil */
.hdr-alive {
  animation: hdrAlive 2.4s ease-in-out infinite;
}

@keyframes hdrAlive {
  0%, 100% { transform: translateZ(0) scale(1); opacity: 1; }
  50% { transform: translateZ(0) scale(1.01); opacity: 0.999; }
}

/* --- FIX REAL: el texto de #geoLine no debe empujar los botones de la derecha --- */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

.left{
  flex: 1 1 auto;     /* la izquierda puede encoger */
  min-width: 0;       /* IMPORTANTE para que el ellipsis funcione */
}

.right{
  flex: 0 0 auto;     /* la derecha NO encoge */
  margin-left: 8px;
}

.right .icon-btn{
  flex: 0 0 auto;     /* cada botón mantiene su tamaño */
}

/* #geoLine: más agresivo en móvil para que SIEMPRE quepan 3 botones a la derecha */
.brand-sub{
  max-width: 40vw;    /* en móvil 62vw es demasiado */
}

/* En pantallas un poco mayores, podemos permitir algo más */
@media (min-width: 420px){
  .brand-sub{ max-width: 52vw; }
}


/* ===== Menú colapsado desde GPS (solo visual) ===== */
.hdr-collapsed{
  position: relative;
}

.hdr-collapsed > summary{
  list-style: none;
}
.hdr-collapsed > summary::-webkit-details-marker{
  display:none;
}

/* Asegura que summary se vea como botón (ya usa icon-btn) */
.hdr-collapsed > summary{
  cursor: pointer;
}

/* Panel flotante */
.hdr-collapsed__panel{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 9999;

  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.98);
  box-shadow: 0 16px 40px rgba(0,0,0,.18);

  display: none;
  transform-origin: top left;
}

/* Cuando está abierto */
.hdr-collapsed[open] .hdr-collapsed__panel{
  display: block;
  animation: hdrMenuPop .14s ease-out both;
}

@keyframes hdrMenuPop{
  from{ transform: translateY(-4px) scale(.98); opacity: 0; }
  to  { transform: translateY(0)  scale(1);    opacity: 1; }
}

/* Grid de botones */
.hdr-collapsed__group{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 44px;
  gap: 8px;
}

/* Botón interno (hereda .icon-btn) */
.hdr-collapsed__item{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
}

/* Iconos placeholder */
.hdr-collapsed__ico{
  font-size: 18px;
  line-height: 1;
}

/* ===== Mostrar guest vs logged (solo visual) ===== */
.hdr-collapsed__group--logged{ display:none; }

/* Cuando quieras ver el modo logueado: añade class="is-logged" a <html> o <body> */
.is-logged .hdr-collapsed__group--guest{ display:none; }
.is-logged .hdr-collapsed__group--logged{ display:grid; }


/* ===== Gesture Coach (solo 1 vez) ===== */
.gesture-coach{
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none; /* no bloquea la app */
}

.gesture-coach__scrim{
  position:absolute;
  inset:0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.22) 0%, rgba(0,0,0,.42) 55%, rgba(0,0,0,.55) 100%);
}

.gesture-coach__hud{
  position:absolute;
  left: 16px;
  right: 16px;
  top: 74px; /* debajo de tu topbar */
  margin: 0 auto;
  max-width: 420px;

  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(20,20,24,.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.95);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

.gesture-coach__title{
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 14px;
  line-height: 1.1;
}
.gesture-coach__sub{
  margin-top: 4px;
  opacity: .85;
  font-size: 12px;
}

.gesture-coach__rows{
  display:flex;
  gap: 10px;
  margin-top: 10px;
  justify-content: space-between;
}

.gesture-coach__row{
  flex: 1 1 0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
}

.gesture-coach__arrow{
  font-size: 16px;
  line-height: 1;
}
.gesture-coach__label{
  font-size: 12px;
  opacity: .92;
}

/* Mano fantasma */
.gesture-coach__hand{
  position: absolute;
  width: 46px;
  height: 46px;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255,255,255,.90);
  box-shadow: 0 14px 38px rgba(0,0,0,.35);
  opacity: .85;
  filter: blur(.2px);
  animation: coachHand 3.8s ease-in-out infinite;
}

/* Estela */
.gesture-coach__trail{
  position:absolute;
  left: 50%;
  top: 58%;
  width: 140px;
  height: 6px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.75), rgba(255,255,255,0));
  opacity: .0;
  animation: coachTrail 3.8s ease-in-out infinite;
}

/* Secuencia: izquierda -> derecha -> arriba */
@keyframes coachHand{
  0%   { transform: translate(-50%,-50%) scale(1); opacity:.0; }
  6%   { opacity:.85; }
  20%  { transform: translate(calc(-50% - 110px), -50%) scale(.98); }
  30%  { transform: translate(-50%,-50%) scale(1); }
  52%  { transform: translate(calc(-50% + 110px), -50%) scale(.98); }
  62%  { transform: translate(-50%,-50%) scale(1); }
  82%  { transform: translate(-50%, calc(-50% - 110px)) scale(.98); }
  92%  { transform: translate(-50%,-50%) scale(1); opacity:.85; }
  100% { opacity:.0; }
}

@keyframes coachTrail{
  0%, 8%  { opacity:0; transform: translate(-50%,-50%) scaleX(.7); }
  18%     { opacity:.45; transform: translate(calc(-50% - 55px), -50%) scaleX(1); }
  30%     { opacity:0; }
  40%     { opacity:0; transform: translate(-50%,-50%) scaleX(.7); }
  50%     { opacity:.45; transform: translate(calc(-50% + 55px), -50%) scaleX(1); }
  62%     { opacity:0; }
  72%     { opacity:0; transform: translate(-50%,-50%) rotate(-90deg) scaleX(.7); }
  82%     { opacity:.45; transform: translate(-50%, calc(-50% - 55px)) rotate(-90deg) scaleX(1); }
  92%,100%{ opacity:0; }
}


/* ===== Overlay Conectando ===== */
.connect-ov{
  position: fixed;
  inset: 0;
  z-index: 1000000; /* por encima de vcOverlay y modales */
  display: grid;
  place-items: center;
}

.connect-ov[hidden]{ display:none; }

.connect-ov__scrim{
  position:absolute;
  inset:0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.18) 0%, rgba(0,0,0,.52) 65%, rgba(0,0,0,.66) 100%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.connect-ov__card{
  position: relative;
  width: min(360px, 88vw);
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(20, 20, 24, .62);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 22px 70px rgba(0,0,0,.45);
  text-align: center;
  color: rgba(255,255,255,.95);
  transform: translateZ(0);
}

.connect-ov__title{
  margin-top: 12px;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 14px;
}

.connect-ov__sub{
  margin-top: 6px;
  font-size: 12px;
  opacity: .88;
  line-height: 1.35;
}

.connect-ov__actions{
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.connect-ov__btn{
  height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.95);
  font-weight: 900;
  cursor: pointer;
}

.connect-ov__btn:active{
  transform: translateY(1px);
}

.connect-ov__spinner{
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.18);
  border-top-color: rgba(255,255,255,.92);
  animation: connectSpin .9s linear infinite;
}

@keyframes connectSpin{
  to { transform: rotate(360deg); }
}
/* Botones de llamada: iconos */
.call-icon{
  width: 54px;
  height: 54px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.call-icon-img{
  width: 22px;
  height: 22px;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 1px 1px rgba(0,0,0,.35));
}

/* Colgar más grande, rojo, centro */
.call-hangup-big{
  width: 64px;
  height: 64px;
  background: rgba(230, 58, 58, .92);
}
.call-hangup-big .call-icon-img{
  width: 30px;
  height: 30px;
}

/* Estado OFF para mic/altavoz */
.call-control.is-off{
  background: rgba(255,255,255,.10);
  opacity: .85;
}
/* =========================
   Orientation lock (mobile only)
   ========================= */
.rotate-overlay{
  position: fixed;
  inset: 0;
  z-index: 99999999;
  display: none;
  place-items: center;
  padding: 24px;
  background: #000;
  color: #fff;
  text-align: center;
}
.rotate-box{
  width: min(420px, 92vw);
  padding: 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.rotate-title{ font-weight: 950; font-size: 18px; margin-bottom: 8px; letter-spacing: -.02em; }
.rotate-text{ font-size: 14px; line-height: 1.35; opacity: .92; }

/* Solo móviles / tablets táctiles (no escritorio) */
@media (orientation: landscape) and (pointer: coarse) and (max-width: 1024px){
  .rotate-overlay{ display: grid; }
  html, body{ overflow: hidden; }
}
#btnChangeNumber{
  display: none;
}

/* =========================================
   DESKTOP MODE + FIX (NO AFECTA MÓVIL)
   - Marco tipo móvil centrado
   - Columna derecha con hero
   - TODO el UI (fixed/overlays) queda dentro del marco
   - Carta ocupa casi todo el alto (mismo aire laterales/pie)
   - Quita notch/cámara
   - + Controles escritorio debajo de la carta
   - NO mostrar coach "Cómo moverte" en escritorio
========================================= */

@media (min-width: 1024px){

  /* Fondo desktop */
@media (min-width: 1024px){
  body{
    background-image: url("/img/fondo01.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* opcional: “parallax” suave en desktop */
    padding-bottom: 0 !important;
  }
}

  /* Layout general */
  .desktop-layout{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 60px;
  }

  /* ===== Marco tipo móvil ===== */
  .desktop-phone{
    flex: 0 0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
  }

  .desktop-phone__frame{
    width: 390px;
    height: 800px;
    border-radius: 42px;
    padding: 14px;
    background: #111;
    box-shadow:
      0 40px 120px rgba(0,0,0,.25),
      0 10px 30px rgba(0,0,0,.15);
    position: relative;
  }

  /* ❌ Quitar notch/cámara */
  .desktop-phone__frame::before{
    content:none !important;
    display:none !important;
  }

  .desktop-phone__screen{
    width:100%;
    height:100%;
    border-radius:32px;
    overflow:hidden;
    background:#fff;

    /* CLAVE: ancla todo al marco */
    position: relative;
    transform: translateZ(0);
    will-change: transform;
    contain: layout paint;
  }

/* Nada se escapa por ancho, pero NO limites videos (Agora/WebRTC) */
.desktop-phone__screen :where(*:not(video)){
  max-width: 100%;
}

/* ===== Agora Call dentro del marco: igual que responsive ===== */

/* Remote (cliente) debe rellenar todo el marco */
.desktop-phone__screen #remoteVideo,
.desktop-phone__screen #remoteVideo > div,
.desktop-phone__screen #remoteVideo video{
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;          /* igual que la mayoría de móviles */
  object-position: center center !important;
}

/* Local (tú) NO puede depender de vw del monitor */
.desktop-phone__screen .call-local{
  width: 30% !important;                 /* 30% del marco (≈ como 30vw en móvil) */
  max-width: 160px !important;
  min-width: 120px !important;
}

/* Controles visibles dentro del marco */
.desktop-phone__screen .call-controls{
  z-index: 5;
}
.desktop-phone__screen .call-local{ z-index: 4; }
.desktop-phone__screen .call-remote{ z-index: 1; }


  /* =========================
     1) ENCERRAR TODO LO "fixed"
     ========================= */

  /* Topbar dentro del marco */
  .desktop-phone__screen .topbar{
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
  }

  /* Bottom nav dentro del marco (si lo quieres visible) */
  .desktop-phone__screen .bottom-nav{
    position: absolute !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
  }

  /* Overlays/modales dentro del marco */
  .desktop-phone__screen .panel,
  .desktop-phone__screen .auth-overlay,
  .desktop-phone__screen .vc-overlay,
  .desktop-phone__screen .perm-overlay,
  .desktop-phone__screen .menu-overlay,
  .desktop-phone__screen .media-viewer,
  .desktop-phone__screen #callRoot,
  .desktop-phone__screen .call-root,
  .desktop-phone__screen .connect-ov,
  .desktop-phone__screen .toast,
  .desktop-phone__screen .hero-clone{
    position: absolute !important;
    inset: 0 !important;
  }

  /* =========================================
     2) ALTURAS DESKTOP CORREGIDAS (LA CLAVE)
     - Deck en columna (carta arriba, controles debajo)
     - Swipe-shell estira (para dar altura a la carta)
     - Swipe-container a 100% del swipe-shell (SIN cálculos raros)
  ========================================= */

  /* Oculta el coach "Cómo moverte" SOLO en escritorio */
  .desktop-phone__screen #gestureCoach{
    display: none !important;
    pointer-events: none !important;
  }

  /* Stage ocupa exactamente el alto del marco */
  .desktop-phone__screen .stage{
    height: 100% !important;
    min-height: 100% !important;

    padding-top: 90px !important;    /* espacio topbar */
    padding-bottom: 18px !important; /* aire inferior */

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 0 !important;
  }

  /* ✅ Deck en COLUMNA (esto evita botones a la derecha) */
  .desktop-phone__screen .deck{
    width: 100% !important;
    flex: 1 1 auto !important;

    display: flex !important;
    flex-direction: column !important;  /* ✅ CLAVE */
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 12px !important;
    min-height: 0 !important;
  }

  /* ✅ Swipe-shell ocupa el espacio vertical disponible */
  .desktop-phone__screen .swipe-shell{
    width: 100% !important;
    flex: 1 1 auto !important;          /* ✅ estira en vertical */
    min-height: 0 !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }

  /* ✅ La carta llena el swipe-shell */
  .desktop-phone__screen .swipe-container{
    width: calc(100% - 36px) !important; /* aire lateral */
    height: 100% !important;             /* ✅ ahora sí funciona */
    min-height: 0 !important;

    max-height: none !important;
    margin: 0 auto !important;
  }

  /* Quita el texto "Marco 1 / Arrastra..." (solo escritorio) */
  .desktop-phone__screen .card-caption{
    display:none !important;
  }

  /* =========================
     3) CONTROLES ESCRITORIO (debajo de la carta)
     ========================= */

  /* Si en tu HTML viene con hidden, lo forzamos a mostrar en escritorio */
  .desktop-phone__screen .desktop-swipe-controls[hidden]{
    display: flex !important;
  }

  .desktop-phone__screen .desktop-swipe-controls{
    width: calc(100% - 36px) !important;
    flex: 0 0 auto !important;

    display: flex !important;
    gap: 12px !important;
    justify-content: center !important;
    align-items: center !important;

    margin: 0 auto !important;
    padding: 0 0 2px 0 !important;
  }

  .desktop-phone__screen .desk-swipe-btn{
    appearance: none;
    border: 1px solid rgba(0,0,0,.10);
    background: rgba(255,255,255,.92);
    color: #0b0b0c;
    height: 44px;
    border-radius: 999px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    backdrop-filter: blur(10px);
    user-select: none;
  }

  .desktop-phone__screen .desk-swipe-btn:active{
    transform: scale(.98);
  }

  .desktop-phone__screen .desk-swipe-btn--primary{
    background: linear-gradient(135deg, #C2185B, #ff2d86);
    color: #fff;
    border-color: rgba(255,255,255,.15);
    box-shadow: 0 18px 45px rgba(194,24,91,.28);
  }

  .desktop-phone__screen .desk-swipe-ic{
    display: grid;
    place-items: center;
  }

  .desktop-phone__screen .desk-swipe-btn svg{
    display:block;
  }

  /* Perfil hero proporcional al marco (si aplica) */
  .desktop-phone__screen .panel-hero{
    height: 56% !important;
  }

  /* Media viewer y llamadas dentro del marco */
  .desktop-phone__screen .media-viewer__content{
    width: 100% !important;
    height: 100% !important;
  }

  .desktop-phone__screen body.call-active .vc-sheet,
  .desktop-phone__screen body.call-active #callRoot{
    height: 100% !important;
    max-width: 100% !important;
  }

  /* ===== LADO DERECHO (hero) ===== */
  .desktop-hero{
    flex: 1;
    max-width: 520px;
    position: relative;
  }

  .desktop-hero::before{
    content:"";
    position:absolute;
    inset:-40px;
    background:
      linear-gradient(135deg, rgba(194,24,91,.12), rgba(255,45,134,.08)),
      url('https://images.unsplash.com/photo-1529626455594-4ff0802cfb7e?q=80&w=1200&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    border-radius: 40px;
    filter: blur(40px);
    opacity:.35;
    z-index:-1;
  }

  .desktop-hero__content{
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(20px);
    padding: 3px 33px 19px; 
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(0,0,0,.15);
  }

  .desktop-hero h1{
    font-size: 42px;
    line-height: 1.1;
    font-weight: 950;
    margin-bottom: 20px;
    letter-spacing: -.02em;
  }

  .desktop-hero p{
    font-size: 17px;
    line-height: 1.6;
    color: rgba(0,0,0,.75);
    margin-bottom: 30px;
  }

  .desktop-hero__badge{
    display:inline-block;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 900;
    background: linear-gradient(135deg, #C2185B, #ff2d86);
    color:#fff;
    box-shadow: 0 20px 40px rgba(194,24,91,.35);
  }

    /* ===== FIX menú hamburguesa SOLO en escritorio ===== */
.desktop-phone__screen .hdr-collapsed__panel{
  right: 0;
  left: auto;
  transform-origin: top right;
}
}


/* =========================================
   MOBILE: NO mostrar hero de escritorio
   y no usar marco
========================================= */
@media (max-width: 1023px){

  .desktop-hero{
    display: none !important;
  }

  .desktop-layout{
    display: block !important;
    padding: 0 !important;
    gap: 0 !important;
    min-height: unset !important;
  }

  .desktop-phone{
    display: block !important;
  }

  .desktop-phone__frame{
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .desktop-phone__screen{
    height: 100dvh !important;
    border-radius: 0 !important;
  }
}
/* ===== Panel: botón X solo escritorio ===== */
.panel-desktop-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.45);
  color: #fff;
  display: none;              /* por defecto oculto */
  place-items: center;
  z-index: 60;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.panel-desktop-close span{
  font-size: 28px;
  line-height: 1;
  transform: translateY(-1px);
}
.panel-desktop-close:active{ transform: scale(.96); }

/* Solo “escritorio real”: ratón/trackpad */
@media (hover: hover) and (pointer: fine){
  .panel-desktop-close{ display: grid; }
}

/* ===== Gesture Coach: mano blanca girada 90° izquierda ===== */

.gesture-coach__hand{
  width: 60px !important;
  height: 60px !important;

  border-radius: 0 !important;
  background: none !important;

  background-image: url("/img/mano.svg") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;

  /* 🔄 Giro 90 grados a la izquierda */
  transform: translate(-50%, -50%) rotate(-90deg);

  filter: drop-shadow(0 18px 45px rgba(0,0,0,.35)) !important;
  opacity: .95 !important;
}

/* ===== Degradado inferior hero perfil ===== */

.panel-hero{
  position: relative;
  overflow: hidden;
}

.panel-hero::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 140px; /* ajustable */

  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.4) 45%,
    rgba(255,255,255,0.85) 75%,
    rgba(255,255,255,1) 100%
  );

  pointer-events: none;
}
/* El degradado lo pintaremos en el background, no con ::after */
.panel-hero::after{ content: none !important; }

/* === Igualar degradado del CLON al del HERO final (sin salto) === */
.hero-clone{ position: fixed; } /* ya lo tienes, por si acaso */

.hero-clone::after{
  content:"";
  position:absolute;
  inset:0;                 /* ⬅️ ocupa toda la altura (NO 140px) */
  pointer-events:none;
  z-index: 2;

  /* MISMO degradado que usas en buildPanelHero() */
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.35) 55%,
    rgba(255,255,255,0.85) 80%,
    rgba(255,255,255,1) 100%
  );
}

/* Asegura que el media queda debajo del overlay */
.hero-clone img,
.hero-clone video{
  position: relative;
  z-index: 1;
}
.hero-clone{ box-shadow: none !important; }

.panel.closing .panel-hero{
  transition: none !important;
}
.panel.closing .panel-sheet{
  transition: none !important; /* opcional: evita doble animación con el clone */
}

/* Evitar salto de altura del hero durante el cierre */
.panel.closing .panel-hero{
  transition: none !important;
}

/* =========================
   SEO Profile Link (NEW)
   - Mantener apariencia de texto, pero link real rastreable.
   ========================= */
a.name-text.seo-profile-link{
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.name-text.seo-profile-link:focus{
  outline: 2px solid rgba(10,132,255,.55);
  outline-offset: 2px;
  border-radius: 10px;
}

a.name-text.seo-profile-link:hover{
  text-decoration: none;
}
/* =========================
   Call Waiting UI
   ========================= */
.call-wait{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  z-index: 6;
  pointer-events:none;
}
.call-wait.hidden{ display:none; }

.call-wait__card{
  width: min(520px, calc(100vw - 36px));
  border-radius: 22px;
  padding: 18px 18px 16px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 70px rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color:#fff;
  text-align:center;
  display:grid;
  gap:10px;
}

.call-wait__spinner{
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.22);
  border-top-color: rgba(255,255,255,.92);
  margin: 2px auto 0;
  animation: callSpin .9s linear infinite;
}
@keyframes callSpin{ to { transform: rotate(360deg); } }

.call-wait__title{ font-weight: 950; font-size: 18px; letter-spacing: -.02em; }
.call-wait__sub{ font-size: 13.5px; line-height: 1.25; color: rgba(255,255,255,.82); }

.call-wait__timer{
  margin-top: 4px;
  display:flex;
  align-items: baseline;
  justify-content:center;
  gap: 8px;
}
.call-wait__secs{ font-size: 28px; font-weight: 950; letter-spacing: -.03em; }
.call-wait__pill{ font-size: 12px; font-weight: 900; opacity: .88; }

.listados-row {
  position: relative;
  overflow: hidden;
  contain: layout paint; /* 🔥 evita repaints externos */
}

.listados-row__fg {
  position: relative;
  z-index: 2;
  background: #fff;

  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;

  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
}

.listados-row__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* =========================
   LISTADOS: status + icono + name/age (NEW)
   ========================= */

.listados-avatarWrap{
  position: relative;
  flex: 0 0 auto; /* respeta el layout existente */
}

/* Punto de estado (verde/rojo) arriba derecha del avatar */
.listados-status{
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid #fff; /* borde blanco encima de la foto */
  z-index: 2;
}
.listados-status.is-online{ background: #22c55e; }
.listados-status.is-offline{ background: #ef4444; }

/* Fila: icono + nombre/edad */
.listados-typeRow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Icono llamada/videollamada */
.listados-callIcon{
  width: 16px;
  height: 16px;
  display: block;
}

/* Nombre + edad */
.listados-nameAge{
  font-weight: 900; /* igual que listados-type */
}




/* ===== Listados: avatar + estado ===== */
.listados-avatarWrap{
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
}

.listados-avatarWrap .listados-avatar{
  width: 100%;
  height: 100%;
}

.listados-status{
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
}

.listados-status.is-online{ background: #22c55e; }
.listados-status.is-offline{ background: #ef4444; }

/* ===== Listados: línea superior (icono + nombre edad) ===== */
.listados-typeRow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.listados-callIcon{
  width: 16px;
  height: 16px;
  display: inline-block;
}

.listados-nameAge{
  font-weight: 900;
  line-height: 1.1;
}

/* Listados: avatar is tappable (opens profile) */
.listados-avatarWrap, .listados-avatar { cursor: default; }

/* =========================
   DESKTOP FOOTER (solo escritorio)
========================= */
.desktop-footer{
  display:none;
}

@media (min-width: 1024px){

  /* Deja espacio para que el footer fijo no tape el contenido */
  .desktop-layout{
    padding-bottom: calc(60px + 64px);
  }

  .desktop-footer{
    display:block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;

    background: rgba(255,255,255,.92);
    border-top: 1px solid rgba(0,0,0,.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .desktop-footer__inner{
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 24px;

    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 18px;
  }

  .desktop-footer__copy{
    font-size: 13px;
    color: rgba(11,11,12,.72);
    font-weight: 700;
    letter-spacing: .1px;
    white-space: nowrap;
  }

  .desktop-footer__links{
    display:flex;
    align-items:center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .desktop-footer__link{
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;

    font-size: 13px;
    color: rgba(11,11,12,.72);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .desktop-footer__link:hover{
    color: rgba(11,11,12,.92);
  }
}
@media (min-width: 1024px){
  .desktop-hero__badge--pwa{
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .desktop-hero__badgeIcon{
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex: 0 0 auto;
  }
}

/* ===== FORZAR FOOTER SOLO EN ESCRITORIO ===== */

/* Oculto por defecto (móvil incluido) */
.desktop-footer{
  display: none !important;
}

/* Solo visible en escritorio */
@media (min-width: 1024px){
  .desktop-footer{
    display: block !important;
  }
}