/* Anillo de historias en la home.
   Se arrastra de costado sin barra a la vista, como cualquier carrusel de
   historias; con la barra puesta parecía una tabla desbordada. */
.anillo-historias {
  padding: 18px 0 6px;
  overflow-x: auto;
  scrollbar-width: none;              /* Firefox */
  -ms-overflow-style: none;           /* Edge viejo */
  -webkit-overflow-scrolling: touch;
}
.anillo-historias::-webkit-scrollbar { display: none; }

/* max-width 1200 centrado = el mismo contenedor que usa el resto de la home.
   Sin esto, en escritorio el anillo arrancaba pegado al borde izquierdo y
   quedaba desalineado con el título "Escorts vips". */
.anillo-historias__lista {
  display: flex; gap: 14px; list-style: none;
  max-width: 1200px; margin: 0 auto; padding: 0 14px;
}
.anillo-historias__item { flex: 0 0 auto; width: 84px; text-align: center; }

.anillo-historias__burbuja {
  width: 78px; height: 78px; padding: 3px;
  border: 0; border-radius: 50%; cursor: pointer;
  background: linear-gradient(135deg, #A87B1E, #FFD980 45%, #E8B33D);
}
/* Ya la vio: el anillo se apaga hasta que ella suba una nueva. */
.anillo-historias__burbuja.es-vista { background: #3A3A3A; }

.anillo-historias__burbuja img {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; display: block; border: 2px solid #0A0A0A;
}
.anillo-historias__nombre {
  display: block; margin-top: 6px; font-size: 12px; color: #E8D9B0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Visor a pantalla completa.
   🚨 z-index alto a propósito: el menú del sitio es fixed con z-index 99999 y
   se le montaba encima al visor, tapando la cruz de cerrar. Verificado en el
   navegador el 20/08/2026. */
.visor-historias {
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; align-items: center; justify-content: center;
  background: #000;
}
.visor-historias__medio { max-width: 100%; max-height: 100%; }
.visor-historias__medio img,
.visor-historias__medio video { max-width: 100vw; max-height: 100vh; display: block; }

/* Barritas de arriba: una por historia, la actual se va llenando sola */
.visor-historias__barras {
  position: absolute; top: 8px; left: 10px; right: 10px; z-index: 3;
  display: flex; gap: 4px;
}
.visor-historias__barra {
  flex: 1; height: 3px; border-radius: 2px;
  background: rgba(255, 255, 255, .3); overflow: hidden;
}
.visor-historias__barra i { display: block; height: 100%; width: 0; background: #FFD980; }
.visor-historias__barra.esta-llena i { width: 100%; }
.visor-historias__barra.es-actual i { animation: visor-historias-avance linear forwards; }
.visor-historias.en-pausa .visor-historias__barra.es-actual i { animation-play-state: paused; }
@keyframes visor-historias-avance { from { width: 0 } to { width: 100% } }

/* Quién la subió y hace cuánto. La foto y el nombre llevan a su ficha. */
.visor-historias__quien {
  position: absolute; top: 18px; left: 12px; right: 12px; z-index: 3;
  display: flex; align-items: center; gap: 10px;
}
.visor-historias__autora {
  display: flex; align-items: center; gap: 8px;
  color: #fff; text-decoration: none; font-size: 14px;
}
.visor-historias__autora img {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(255, 216, 128, .8);
}
.visor-historias__cuando { color: rgba(255, 255, 255, .7); font-size: 12px; }

.visor-historias__cerrar {
  margin-left: auto;
  width: 44px; height: 44px;   /* área de toque cómoda en el celular */
  background: rgba(0, 0, 0, .55); border: 0; border-radius: 50%;
  color: #FFD980; font-size: 30px; line-height: 1; cursor: pointer;
}

/* Cuando terminaron las historias la pantalla se queda quieta y el botón de
   perfil se agranda un poco: es lo único que queda por hacer. */
.visor-historias.esta-terminada .visor-historias__medio { opacity: .45; }
.visor-historias.esta-terminada .visor-historias__acciones {
  bottom: 34px;
  transform: scale(1.06);
}

/* Los botones que cierran el círculo: de la historia al contacto. */
.visor-historias__acciones {
  position: absolute; left: 0; right: 0; bottom: 24px; z-index: 3;
  display: flex; gap: 10px; justify-content: center; align-items: center;
  padding: 0 16px;
}

.visor-historias__wa,
.visor-historias__perfil {
  padding: 12px 20px; border-radius: 999px;
  font-weight: 700; font-size: 14px; text-decoration: none;
  white-space: nowrap; box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
}

/* Verde de WhatsApp: se reconoce sin leerlo, y es el que queremos que aprieten. */
.visor-historias__wa { background: #25D366; color: #052B14; }

.visor-historias__perfil {
  background: rgba(0, 0, 0, .55); color: #E8D9B0;
  border: 1px solid rgba(232, 179, 61, .55);
}
/* sin WhatsApp cargado queda solo, y ahí sí manda él */
.visor-historias__perfil--solo {
  background: linear-gradient(135deg, #A87B1E, #E8B33D);
  color: #120D02; border: 0;
}

/* Mitades invisibles para tocar, como en Instagram. La de avanzar es más ancha
   porque es el gesto que se hace el 90% de las veces.
   Terminan antes del botón de perfil para no comerse el toque. */
.visor-historias__anterior,
.visor-historias__siguiente {
  position: absolute; top: 0; bottom: 76px;
  background: none; border: 0; cursor: pointer;
}
.visor-historias__anterior { left: 0; width: 35%; }
.visor-historias__siguiente { right: 0; width: 65%; }
