@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&family=Press+Start+2P&display=swap');

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html,
body{
  width:100%;
  overflow-x:hidden;
}

body{
  min-height:100vh;
  font-family:'Inter',sans-serif;
  color:white;
  background:
    radial-gradient(circle at top left, rgba(0,229,255,.18), transparent 30%),
    radial-gradient(circle at top right, rgba(255,46,166,.16), transparent 30%),
    linear-gradient(180deg,#24114d 0%,#1b1b55 45%,#101840 100%);
  position:relative;
}

body.modal-abierto{
  overflow:hidden;
}

body.modo-mantenimiento .banner,
body.modo-mantenimiento .categorias,
body.modo-mantenimiento .orden-box,
body.modo-mantenimiento .destacados-home,
body.modo-mantenimiento .footer-catalogo,
body.modo-mantenimiento .pacman-runner{
  display:none;
}

.mantenimiento{
  min-height:100vh;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.mantenimiento:not([hidden]){
  display:flex;
}

.mantenimiento-caja{
  width:min(520px,100%);
  padding:40px 32px;
  text-align:center;
  border-radius:26px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(0,229,255,.18);
  box-shadow:0 0 30px rgba(0,229,255,.12);
}

.mantenimiento-icono{
  font-size:48px;
  display:block;
  margin-bottom:18px;
}

.mantenimiento-caja h1{
  font-size:22px;
  margin-bottom:14px;
  color:#fff;
}

.mantenimiento-caja p{
  color:#e8e8ff;
  line-height:1.5;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  background:linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
  background-size:100% 4px;
  pointer-events:none;
  z-index:9999;
}

/* PACMAN */

.pacman-runner{
  position:fixed;
  bottom:25px;
  left:-300px;
  display:flex;
  align-items:center;
  gap:15px;
  z-index:999;
  font-size:32px;
  pointer-events:none;
  animation:pacmanMove 120s linear infinite;
}

.pacman{
  color:#ffe600;
  text-shadow:0 0 15px rgba(255,230,0,.8);
}

.dot{
  color:#ffe600;
  font-size:20px;
}

.ghost{
  filter:drop-shadow(0 0 10px rgba(0,229,255,.7));
}

@keyframes pacmanMove{
  0%{ transform:translateX(0); opacity:0; }
  2%{ opacity:1; }
  18%{ transform:translateX(calc(100% + 2000px)); opacity:1; }
  20%{ opacity:0; }
  100%{ transform:translateX(calc(100% + 2000px)); opacity:0; }
}

/* BANNER */

.banner{
  width:100%;
  min-height:360px;
  overflow:hidden;
  position:relative;
  border-bottom:2px solid rgba(0,229,255,.8);
  background:#151944;
}

.hero{
  width:100%;
  height:360px;
  position:relative;
}

.slider{
  width:100%;
  height:100%;
  position:relative;
  overflow:hidden;
}

.slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity .8s ease;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.slide.activo{
  opacity:1;
  z-index:2;
}

.banner-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:blur(20px) brightness(.75);
  transform:scale(1.1);
}

.banner-img{
  position:relative;
  z-index:2;
  max-width:100%;
  height:100%;
  object-fit:contain;
  filter:drop-shadow(0 0 25px rgba(0,229,255,.25));
}

.overlay{
  position:absolute;
  inset:0;
  z-index:3;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:40px;
}

.overlay h1{
  font-family:'Press Start 2P',cursive;
  color:#00e5ff;
  font-size:52px;
  line-height:1.3;
  margin-bottom:20px;
  text-shadow:
    0 0 10px #00e5ff,
    0 0 25px rgba(0,229,255,.8),
    4px 4px 0 rgba(255,46,166,.6);
}

.overlay p{
  font-size:22px;
  max-width:850px;
  font-weight:800;
  text-shadow:0 0 12px rgba(0,0,0,.85);
}

/* CATEGORÍAS */

.categorias{
  max-width:1080px;
  margin:38px auto 50px;
  padding:32px 28px;
  border-radius:28px;
  background:linear-gradient(135deg,rgba(70,55,120,.88),rgba(45,25,90,.78));
  border:1px solid rgba(0,229,255,.22);
  box-shadow:0 0 35px rgba(0,229,255,.08);
}

.fila-categorias{
  display:grid;
  grid-template-columns:286px 156px 132px 132px 162px;
  justify-content:center;
  align-items:center;
  gap:14px;
}

.fila-1{
  margin-bottom:16px;
}

.fila-2{
  justify-content:center;
  margin-bottom:0;
}

.fila-2 .filtro:first-child{
  grid-column:2;
}

.fila-2 .filtro:nth-child(2){
  grid-column:3;
}

.fila-2 .filtro:nth-child(3){
  grid-column:4;
}

.fila-2 .seguir-instagram{
  grid-column:5;
}

.buscador{
  width:100%;
  max-width:286px;
  height:58px;
  padding:0 20px;
  border:none;
  outline:none;
  border-radius:20px;
  background:rgba(255,255,255,.08);
  color:white;
  font-size:15px;
  border:1px solid rgba(0,229,255,.25);
}

.buscador::placeholder{
  color:#d7d7f2;
}

.buscador:focus{
  border-color:#00e5ff;
  box-shadow:0 0 25px rgba(0,229,255,.25);
}

/* BOTONES */

.filtro,
.seguir-instagram{
  width:100%;
  min-width:0;
  padding:0 18px;
  height:58px;
  border:none;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight:900;
  font-size:15px;
  cursor:pointer;
  transition:.25s;
  color:white;
  background:#282461;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 0 14px rgba(0,0,0,.2);
}

.filtro:hover,
.seguir-instagram:hover{
  transform:translateY(-3px);
  border-color:#00e5ff;
  box-shadow:0 0 20px rgba(0,229,255,.22);
}

.filtro.activo{
  background:linear-gradient(135deg,#ff2ea6,#7c3cff);
  border-color:#ff2ea6;
}

.seguir-instagram{
  background:linear-gradient(135deg,#00e5ff,#00bcd4)!important;
  color:#111!important;
  border:1px solid #00e5ff!important;
}

/* ORDENAR */

.orden-box{
  width:100%;
  max-width:980px;
  margin:-25px auto 35px;
  display:flex;
  justify-content:flex-end;
  align-items:center;
}

.ordenar{
  width:220px;
  height:54px;
  padding:0 18px;
  border:none;
  outline:none;
  border-radius:18px;
  background:linear-gradient(135deg,#2f2a70,#1b1b55);
  color:white;
  font-size:15px;
  font-weight:900;
  font-family:'Inter',sans-serif;
  border:1px solid rgba(0,229,255,.25);
  box-shadow:0 0 18px rgba(0,229,255,.08);
  cursor:pointer;
  transition:.25s;
}

.ordenar:hover{
  border-color:#00e5ff;
  box-shadow:0 0 22px rgba(0,229,255,.22);
}

.ordenar option{
  background:#1b1b55;
  color:white;
}

/* GRID */

.grid{
  max-width:1200px;
  margin:auto;
  padding:20px 20px 90px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,320px));
  justify-content:center;
  gap:32px;
}

.estado-catalogo{
  grid-column:1 / -1;
  width:min(520px,100%);
  margin:20px auto 70px;
  padding:26px 28px;
  text-align:center;
  color:#e8e8ff;
  font-weight:900;
  border-radius:22px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(0,229,255,.18);
  box-shadow:0 0 24px rgba(0,229,255,.08);
}

.skeleton-card{
  cursor:default;
  pointer-events:none;
}

.skeleton{
  position:relative;
  overflow:hidden;
  background:rgba(255,255,255,.08);
}

.skeleton::after{
  content:"";
  position:absolute;
  inset:0;
  transform:translateX(-100%);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.12),transparent);
  animation:skeletonMove 1.3s infinite;
}

.skeleton-img{
  height:260px;
  border-radius:22px;
}

.skeleton-line{
  height:18px;
  margin-top:16px;
  border-radius:999px;
}

.skeleton-line.corta{
  width:42%;
}

.skeleton-line.media{
  width:70%;
}

@keyframes skeletonMove{
  100%{
    transform:translateX(100%);
  }
}

/* PRODUCTO */

.producto{
  background:linear-gradient(180deg,rgba(50,45,95,.96),rgba(25,25,60,.96));
  border:1px solid rgba(0,229,255,.14);
  border-radius:30px;
  padding:18px;
  transition:.25s;
  overflow:hidden;
  cursor:pointer;
  box-shadow:0 12px 35px rgba(0,0,0,.22);
}

.producto:hover{
  transform:translateY(-8px);
  border-color:#00e5ff;
  box-shadow:0 0 30px rgba(0,229,255,.2);
}

.slider-card{
  position:relative;
  height:260px;
  overflow:hidden;
  border-radius:22px;
  margin-bottom:18px;
  background:#1a1f45;
}

.slider-card-track{
  display:flex;
  width:100%;
  height:100%;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  scroll-behavior:smooth;
}

.slider-card-track::-webkit-scrollbar{
  display:none;
}

.slide-producto{
  flex:0 0 100%;
  width:100%;
  height:100%;
}

.producto-img{
  width:100%;
  height:100%;
  object-fit:contain;
  background:#1a1f45;
  padding:10px;
}

.producto-placeholder{
  width:100%;
  height:100%;
  background:linear-gradient(135deg,#33306f,#1a1f45);
  border-radius:20px;
}

.flecha-card{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:42px;
  height:42px;
  border:none;
  border-radius:50%;
  background:rgba(0,0,0,.45);
  color:white;
  font-size:20px;
  cursor:pointer;
  z-index:5;
}

.flecha-card.izquierda{
  left:10px;
}

.flecha-card.derecha{
  right:10px;
}

.producto-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
}

.categoria{
  background:rgba(0,229,255,.12);
  color:#00e5ff;
  padding:8px 14px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  border:1px solid rgba(0,229,255,.18);
}

.tag-destacado{
  background:#ff2ea6;
  color:white;
  padding:8px 14px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
}

.producto h3{
  margin:20px 0 10px;
  font-size:25px;
  line-height:1.3;
}

.descripcion{
  color:#e4e4ff;
  line-height:1.7;
  font-size:15px;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.ver-detalles{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:16px;
  min-height:40px;
  padding:0 16px;
  border-radius:999px;
  color:white;
  font-weight:900;
  font-size:14px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(0,229,255,.2);
}

/* FOOTER */

.footer-catalogo{
  max-width:1080px;
  margin:0 auto 38px;
  padding:22px 26px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  border-radius:24px;
  background:rgba(18,18,44,.58);
  border:1px solid rgba(0,229,255,.16);
  box-shadow:0 0 28px rgba(0,229,255,.06);
}

.footer-logo{
  width:48px;
  height:48px;
  border-radius:14px;
  object-fit:cover;
  box-shadow:0 0 18px rgba(0,229,255,.22);
}

.footer-catalogo strong{
  display:block;
  font-size:18px;
  margin-bottom:5px;
}

.footer-catalogo p{
  margin:0;
  color:#d6d6ee;
  font-size:14px;
}

.footer-catalogo a{
  color:#00e5ff;
  text-decoration:none;
  font-weight:900;
  padding:12px 18px;
  border-radius:999px;
  border:1px solid rgba(0,229,255,.28);
}

.volver-arriba{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:900;
  min-width:86px;
  height:46px;
  border:none;
  border-radius:999px;
  background:linear-gradient(135deg,#ff2ea6,#7c3cff);
  color:white;
  font-weight:900;
  cursor:pointer;
  opacity:0;
  pointer-events:none;
  transform:translateY(10px);
  transition:.25s;
  box-shadow:0 0 24px rgba(255,46,166,.28);
}

.volver-arriba.visible{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}

/* MODAL */

.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.78);
  backdrop-filter:blur(8px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:99999;
  padding:20px;
}

.modal.activo{
  display:flex;
}

.modal-contenido{
  width:min(1100px,92vw);
  max-height:90vh;
  overflow:auto;
  background:linear-gradient(180deg,#2f2365,#1c1f4c);
  border-radius:30px;
  padding:38px;
  position:relative;
  box-shadow:0 0 45px rgba(0,229,255,.18);
}

.cerrar-modal{
  position:absolute;
  top:18px;
  right:18px;
  width:42px;
  height:42px;
  border:none;
  border-radius:50%;
  background:#ff2ea6;
  color:white;
  font-size:22px;
  cursor:pointer;
  z-index:100;
}

.modal-grid{
  display:grid;
  grid-template-columns:minmax(360px,480px) 1fr;
  gap:44px;
  align-items:center;
}

.slider-modal{
  position:relative;
  width:100%;
  min-height:520px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#151944;
  border-radius:24px;
  padding:20px;
}

.modal-img{
  width:100%;
  height:520px;
  max-width:420px;
  object-fit:contain;
  border-radius:18px;
  background:#151944;
}

.modal-info{
  width:100%;
  padding-right:8px;
}

.miniaturas-modal{
  position:absolute;
  left:18px;
  right:18px;
  bottom:18px;
  display:flex;
  justify-content:center;
  gap:10px;
  z-index:55;
}

.miniatura-modal{
  width:58px;
  height:58px;
  padding:3px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(0,0,0,.52);
  opacity:.7;
}

.miniatura-modal.activa{
  opacity:1;
  border-color:#00e5ff;
  box-shadow:0 0 14px rgba(0,229,255,.35);
}

.miniatura-modal img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:9px;
}

.modal-info h2{
  font-size:46px;
  line-height:1.1;
  margin:18px 0;
}

.modal-info p,
.modal-descripcion{
  color:#e4e4ff;
  line-height:1.8;
  font-size:19px;
  max-width:520px;
}

/* FLECHAS MODAL */

.flecha{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:46px;
  height:46px;
  border:none;
  border-radius:50%;
  background:rgba(0,0,0,.6);
  color:white;
  font-size:24px;
  cursor:pointer;
  z-index:50;
}

.flecha-izquierda{
  left:14px;
}

.flecha-derecha{
  right:14px;
}

.contador-img{
  position:absolute;
  bottom:14px;
  right:14px;
  background:rgba(0,0,0,.6);
  padding:8px 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:800;
  z-index:20;
}

/* RESPONSIVE */

@media(max-width:1200px){

  .fila-categorias,
  .fila-2{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
  }

  .fila-2 .filtro:first-child,
  .fila-2 .filtro:nth-child(2),
  .fila-2 .filtro:nth-child(3),
  .fila-2 .seguir-instagram{
    grid-column:auto;
  }

  .buscador{
    width:100%;
    max-width:100%;
  }

  .filtro,
  .seguir-instagram{
    width:auto;
    min-width:140px;
    padding:0 24px;
  }
}

@media(max-width:850px){

  .modal{
    padding:10px;
    align-items:flex-start;
    overflow-y:auto;
  }

  .modal-contenido{
    width:100%;
    max-width:430px;
    margin:20px auto;
    padding:22px;
    border-radius:24px;
  }

  .modal-grid{
    display:flex;
    flex-direction:column;
    gap:22px;
  }

  .slider-modal{
    min-height:auto;
    height:auto;
    padding:14px;
    border-radius:20px;
  }

  .modal-img{
     width:100%;
  height:340px;
  max-width:100%;
  object-fit:contain;
  }

  .modal-info h2{
    font-size:30px;
    line-height:1.2;
  }

  .modal-info p{
    font-size:16px;
    line-height:1.7;
  }

  .cerrar-modal{
    top:10px;
    right:10px;
    width:38px;
    height:38px;
    font-size:18px;
  }

  .flecha{
    width:40px;
    height:40px;
    font-size:20px;
  }
}

@media(max-width:700px){

  .banner{
    min-height:240px;
  }

  .hero{
    height:240px;
  }

  .overlay h1{
    font-size:24px;
  }

  .overlay p{
    font-size:14px;
  }

  .categorias{
    margin:22px 12px 28px;
    padding:22px 14px;
    border-radius:22px;
  }

  .fila-categorias,
  .fila-2{
    gap:10px;
  }

  .buscador{
    height:52px;
    border-radius:16px;
  }

  .filtro,
  .seguir-instagram{
    min-width:126px;
    height:50px;
    padding:0 16px;
    font-size:14px;
  }

  .grid{
    grid-template-columns:1fr;
  }

  .producto{
    width:100%;
  }

  .orden-box{
    max-width:100%;
    padding:0 18px;
    margin:-8px auto 25px;
    justify-content:center;
  }

  .ordenar{
    width:100%;
    max-width:260px;
  }

  .footer-catalogo{
    margin:0 12px 28px;
    flex-direction:column;
    text-align:center;
  }
}
