html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #f0f0f0;
  font-family: sans-serif;
  overflow-x: hidden; /* se permite scroll vertical */
}

/* Estructura principal del swiper */
.swiper {
  width: 100%;
  height: 100vh;
  position: relative;
  z-index: 2;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 450px;
}

.image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80%;
  max-width: 450px;
  perspective: 800px;
  transform-style: preserve-3d;
  margin-bottom: 60px;
}

.image-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  transform: rotateX(7deg) scale(1.05);
  transition: transform 0.3s, filter 0.3s;
  z-index: 2;
}

/* Hover PC */
.image-container:hover img {
  transform: rotateX(7deg) scale(1.02);
  filter: brightness(0.6);
}

/* Botones superpuestos */
.overlay-buttons {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.overlay-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
  min-width: 140px;
  text-align: center;
}

.overlay-buttons a:hover {
  background: #f0c000;
}

.image-container:hover .overlay-buttons {
  opacity: 1;
}

/* Mostrar botones en pantallas táctiles */
@media (hover: none) and (pointer: coarse) {
  .overlay-buttons {
    opacity: 1 !important;
  }
  .image-container img {
    filter: brightness(0.7);
  }
}

/* --- Estilo del Kiosko --- */
#kiosko-fondo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #eae3d2;
  z-index: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  grid-auto-rows: 160px;
  gap: 10px;
  padding: 20px;
  filter: blur(5px) brightness(0.9);
  opacity: 0.3;
  pointer-events: none;
  animation: desplazarFondo 120s linear infinite;
}

#kiosko-fondo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

@keyframes desplazarFondo {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10%); }
}

/* --- Techo y toldo --- */
.techo-realista {
  width: 100%;
  height: 90px;
  background: linear-gradient(to bottom, #333, #111);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  z-index: 100;
  position: relative;
}

.toldo-franjas {
  position: absolute;
  bottom: -25px;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  animation: toldo-viento 2s ease-in-out infinite;
}

.franja {
  flex: 1;
  height: 100%;
  border-radius: 0 0 50% 50%;
  margin: 0 1px;
  background: linear-gradient(to bottom, #c6bcbc, #111);
}

.logo-toldo {
  max-height: 70%;
  max-width: 80%;
  object-fit: contain;
  z-index: 2;
}

/* Animación de movimiento del toldo */
@keyframes toldo-viento {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* --- Mesa y pilares --- */
.mesa-realista {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 160%;
  height: 250px;
  z-index: 1;
  pointer-events: none;
}

.mesa-textura {
  background: url('portadas/madera.jpg');
  background-size: cover;
  width: 100%;
  height: 100%;
  border-top-left-radius: 100% 200px;
  border-top-right-radius: 100% 200px;
  box-shadow: inset 0 10px 40px rgba(0,0,0,0.3), 0 -5px 30px rgba(0,0,0,0.4);
  opacity: 0.95;
}

.mesa-pata {
  position: absolute;
  width: 60px;
  height: 120px;
  background: linear-gradient(to bottom, #5a2e0c, #3a1f0c);
  border-radius: 8px;
  bottom: -110px;
}

.mesa-pata.izquierda { left: 15%; }
.mesa-pata.derecha { right: 15%; }

.kiosko-pilar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to bottom, #333, #111);
  border-radius: 8px;
  z-index: 3;
}

.kiosko-pilar.izquierda { left: 0; }
.kiosko-pilar.derecha { right: 0; }

/* --- Breakpoints Responsivos --- */

/* 📱 Móviles */
@media (max-width: 480px) {
  .swiper-slide {
    max-width: 250px;
  }
  .image-container {
    width: 90%;
    margin-bottom: 40px;
  }
  .techo-realista { height: 60px; }
  .toldo-franjas { height: 50px; }
  .mesa-realista { height: 160px; width: 200%; }
  .mesa-pata { width: 40px; height: 80px; }
  .overlay-buttons a {
    font-size: 14px;
    padding: 8px 14px;
  }
}

/* 💻 Tablets verticales / horizontales */
@media (max-width: 768px) {
  .swiper-slide {
    max-width: 320px;
  }
  .image-container {
    width: 85%;
  }
  .mesa-realista { width: 180%; height: 200px; }
}

/* 🧳 Notebooks */
@media (max-width: 1024px) {
  .swiper-slide {
    max-width: 380px;
  }
  .mesa-realista { width: 150%; height: 230px; }
  .techo-realista { height: 80px; }
}

/* 🖥️ Monitores grandes */
@media (min-width: 1400px) {
  .swiper-slide {
    max-width: 550px;
  }
  .mesa-realista { width: 130%; height: 280px; }
}
