/* =============================================================
   estilos.css — Estilos extra que Tailwind no cubre fácilmente
   ============================================================= */

/* Tipografía principal (se carga desde Google Fonts en el HTML) */
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Desplazamiento suave al usar enlaces internos (#registro, #seccion-urgencias) */
html {
  scroll-behavior: smooth;
}

/* Botones fáciles de tocar: mínimo 44 px de alto (recomendación de accesibilidad) */
.boton-tactil {
  min-height: 44px;
}

/* Filas con scroll horizontal (categorías, filtros, carruseles): ocultamos la barra */
.sin-scrollbar {
  scrollbar-width: none;
}
.sin-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Carruseles: al deslizar, cada tarjeta "se acomoda" en su lugar */
.carrusel {
  scroll-snap-type: x mandatory;
  scroll-padding-left: 1rem;
}
.carrusel > * {
  scroll-snap-align: start;
}
@media (min-width: 768px) {
  .carrusel {
    scroll-padding-left: 0;
  }
}

/* Flechas de los carruseles (solo se ven en pantallas medianas o grandes) */
.flecha {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: #f5f5f4;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #1c1917;
  transition: background 0.15s ease;
}
.flecha:hover {
  background: #e7e5e4;
}

/* Foto de un negocio cerrado: un poco apagada */
.foto-cerrado {
  filter: grayscale(35%) brightness(0.92);
}

/* Banners: pequeño "levantón" al pasar el mouse */
.banner {
  transition: transform 0.15s ease;
}
@media (hover: hover) {
  .banner:hover {
    transform: translateY(-2px);
  }
}

/* Anillo de foco visible para quien navega con teclado */
a:focus-visible,
button:focus-visible {
  outline: 3px solid #15803d;
  outline-offset: 2px;
}

/* Galería de fotos en negocio.html: deslizar foto por foto */
.galeria {
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.galeria::-webkit-scrollbar {
  display: none;
}
.galeria > * {
  scroll-snap-align: center;
}

/* El mapa necesita una altura fija para mostrarse */
#mapa {
  height: 240px;
  z-index: 0; /* para que no tape el encabezado fijo */
}

/* Respeta a quien prefiere menos animaciones */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
