/* body {
  margin: 0;
  font-family: sans-serif;
  background: #f5f5f5;
  padding: 10px;
} */
html,body{height:100%}
    body{
      margin:0;
      font-family:var(--body-font);
      color:var(--text);
      background:
        radial-gradient(1200px 600px at 50% -10%, #1a2a44 0%, transparent 60%),
        #0b1323;
    }
.logo {
  width: 80%;
  max-width: 200px;
  display: block;
  margin: 0 auto 20px;
}
.sucursal-titulo {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #ffffff; /* Color del texto del botón */
    background-color: #7b00ff; /* Un color morado brillante para los botones */
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(123, 0, 255, 0.4);
}
/* Slider de sucursales (tipo Instagram Stories) */
.sucursales-slider {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding: 10px 0;
  white-space: nowrap;
}
.sucursal-item {
  text-decoration: none;
  color: #000;
}
.sucursal-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Miniaturas */
/* === CUADRÍCULA DE MINIATURAS (FOTOS PRINCIPALES) === */
.miniaturas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  padding: 0 12px 20px;
}

.miniatura-item {
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}
.miniatura-item:hover {
  transform: scale(1.03);
}

.miniatura-item img {
  width: 100%;
  height: 100px; /* Altura fija */
  object-fit: cover; /* Recorta y llena sin deformar */
  display: block;
}

.miniatura-desc {
  padding: 6px 4px;
  font-size: 0.75rem;
  text-align: center;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stories-slider .story-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
}
.modal-contenido {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  width: 90%;
}
.modal-contenido img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 10px;
}
.modal-contenido p {
  margin-top: 15px;
  font-size: 1.1rem;
}

/* ================================== */
/* Contenedor circular (el "círculo") */
.sucursal-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;               /* ¡Importante! Recorta la imagen */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;               /* Fondo por si la imagen falla */
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  flex-shrink: 0;                 /* Evita que se encoja en el slider */
}

/* Imagen dentro del círculo */
.sucursal-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;              /* ¡Clave! Recorta y cubre el círculo */
  display: block;
}

/* Nombre debajo del círculo */
.sucursal-nombre {
  font-size: 0.8rem;
  text-align: center;
  margin-top: 6px;
  white-space: nowrap;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Slider de sucursales (Stories-style) */
.sucursales-slider {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 15px 0 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.sucursales-slider .sucursal-item {
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px; /* Evita colapso */
}

/* ================================ */

/* === CONTENEDOR PRINCIPAL DEL SLIDER === */
.sucursales-slider {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px 15px 25px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Oculta scrollbar en Firefox */
}
.sucursales-slider::-webkit-scrollbar {
  display: none; /* Oculta scrollbar en Chrome/Safari */
}

/* === CADA ÍTEM (SUCURSAL) === */
.sucursal-item {
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto; /* Evita que se encoja */
  width: 88px;    /* Ancho fijo para alinear con Instagram */
}

/* === CONTENEDOR CIRCULAR DE LA IMAGEN === */
.sucursal-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: relative;
}

/* === IMAGEN DENTRO DEL CÍRCULO === */
.sucursal-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ¡Esta es la clave! */
  display: block;
}

/* === NOMBRE DEBAJO === */
.sucursal-nombre {
  font-size: 0.8rem;
  text-align: center;
  margin-top: 8px;
  white-space: nowrap;
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #333;
} 

/* ================================= */
/* === SLIDER DE USUARIOS === */
.stories-slider {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 12px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 20px;
}
.stories-slider::-webkit-scrollbar {
  display: none;
}

.story-item {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  width: 64px;
  text-decoration: none;
  color: inherit;
}

.story-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.story-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.story-avatar-contenido {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: #555;
}
.story-nombre {
  font-size: 0.7rem;
  text-align: center;
  margin-top: 6px;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #333;
}

/* Avatar destacado (usuario activo) */
.story-avatar.destacado {
  background: linear-gradient(45deg, #4facfe, #00f2fe);
}
.story-avatar.destacado .story-avatar-contenido {
  color: white;
}
/* ================================== */
/* Contenedor del slider con flechas */
.stories-slider-container {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  padding: 0 10px;
}

/* Flechas del slider */
.flecha-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 64px; /* igual que .story-item */
  background: rgba(0,0,0,0.5);
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  border-radius: 8px;
  z-index: 10;
  flex-shrink: 0;
}
.flecha-slider:hover {
  background: rgba(0,0,0,0.8);
}

/* El slider principal (sin scrollbars) */
.stories-slider {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 6px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
}
.stories-slider::-webkit-scrollbar {
  display: none;
}

/* Asegurar que .story-item tenga tamaño fijo */
.story-item {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  width: 64px;
  text-decoration: none;
  color: inherit;
}

.story-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.story-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.story-avatar-contenido {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}
.story-nombre {
  font-size: 0.7rem;
  text-align: center;
  margin-top: 6px;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #333;
}
/* ============================================ */
/* === CONTENEDOR DEL SLIDER CON FLECHAS === */
.stories-slider-container {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  padding: 0 10px;
  margin: 15px 0;
}

/* === FLECHAS: ocultas en móviles, visibles en desktop === */
.flecha-slider {
  display: none; /* Ocultas por defecto (móvil primero) */
}

/* Mostrar flechas solo en pantallas grandes (desktop) */
@media (min-width: 768px) {
  .flecha-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 64px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    border-radius: 8px;
    z-index: 10;
    flex-shrink: 0;
    transition: background 0.2s;
  }
  .flecha-slider:hover {
    background: rgba(0, 0, 0, 0.8);
  }
}

/* === SLIDER PRINCIPAL === */
.stories-slider {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 6px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  flex: 1;
}
.stories-slider::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* === ITEMS DEL SLIDER === */
.story-item {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  width: 64px;
  text-decoration: none;
  color: inherit;
}

.story-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.story-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.story-avatar-contenido {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}
.story-nombre {
  font-size: 0.7rem;
  text-align: center;
  margin-top: 6px;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f8f5f5;
}
