.oculto {
  display: none !important;
}

.panel-section.oculto {
    display: none;
}
.panel-section.visible {
    display: block;
}

.swiper-pagination-wrapper {
  position: absolute;
  bottom: 0.5rem;
  width: 50%;
  margin-left: 25%;
  display: flex;
  justify-content: center;
  z-index: 15;
  pointer-events: none; 
}

.swiper-pagination {
  display: flex;
  gap: 0.4rem;
  max-width: 180px; 
  overflow-x: auto;
  padding: 0.6rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  scrollbar-width: none;
  pointer-events: auto; 
}
.swiper-pagination::-webkit-scrollbar {
  display: none;
}

.sw-bullet {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  transition: background-color 0.2s;
  cursor: pointer;
}
.sw-bullet-active {
  background-color: white;
}

#slide-counter {
	z-index: 20;
	color: white;
	font-weight: bold;
	font-size: 0.9em;
	position: absolute;
	right: 2rem;
	bottom: 36px !important;
	background-color: rgba(0,0,0,0.51);
	padding: 0.6rem;
	border-radius: 6px;
}

.imagen-destacada-curva {
  position: absolute;
  bottom: -1.5rem; 
  left: 0;
  width: 100%;
  height: 3rem;
  background-color: #e1e1e1; 
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
  z-index: 5;
}




html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* El viewport NO scrollea */
body {
  overflow: hidden;
  background-color: #F5F5F5;
}

/* El que scrollea es el contenido */
#appContent {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* scroll suave en iOS */
  padding: 40px 15px 100px 15px;
}

/* Menú inferior siempre pegado al viewport */
.ui.bottom.fixed.menu {
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 !important;
  z-index: 1002;

  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);

  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Barra buscador justo encima del menú */
#barraBuscador {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 52px; /* altura del menú; ajusta si cambia */
  z-index: 1003;
}

/* Paneles que deben cubrir casi toda la pantalla */
.detalle-panel,
.user-panel {
  position: fixed;          /* ya no dependen del scroll de #appContent */
  top: 0;
  left: 0;
  right: 0;
  padding-bottom: 4rem;

  /* Deja espacio para el menú inferior fijo */
  bottom: 52px; /* ajusta si tu menú mide un poco más o menos */

  background-color: #F5F5F5;
  z-index: 1001;

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Animación de paneles (detalle, oferta, usuario) */
.detalle-panel,
.user-panel {
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

/* Estado visible (fade-in) */
.detalle-panel.visible,
.user-panel.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Estado de cierre (fade-out) */
.detalle-panel.cerrando,
.user-panel.cerrando {
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
}

#panelDetalle {
  z-index: 1001;
}

#panelOferta {
  z-index: 1002; /* Oferta por encima del Detalle */
}

#panelUsuario {
  z-index: 1003; /* Usuario por encima de ambos */
}

#menuInferior.oculto {
  display: none !important;
}