*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body{
    background: linear-gradient(90deg, #000000, #ffffff);
}
h2{
    color: white;
    font-size: 25px;
}

/*BARRA DE NAVEGACION*/
li{
    list-style: none;
}
a{
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-size: 1rem;
}
a:hover{
    color: orange;
}
header{
    background-color: white;
    position: relative;
    padding: 0 2rem;
}
.navbar{
    width: 100%;
    height: 100px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar .logo a{
    font-size: 1.5rem;
    font-weight: bold;

}
.navbar .links{
    display: flex;
    gap: 2rem;
}
.navbar .toggle-btn{
    color: rgb(0, 0, 0);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}
.action-btn{
    background-color: orange;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    outline: none;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: scale 0.2 ease;
}
.action-btn:hover{
    scale: 1.05;
    color: white;
}
.action-btn:active{
    scale: 0.95;
}
.dropdown-menu{
    display: none;
    position: absolute;
    right: 2rem;
    top: 60px;
    width: 300px;
    height: 0;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    overflow: hidden;
    transition: height 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
}
.dropdown-menu.open{
    height: 280px;
}
.dropdown-menu li{
    padding: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dropdown-menu .action-btn{
    width: 100%;
    display: flex;
    justify-content: center;
}
@media(max-width:768px){
    .navbar .links,
    .navbar .action-btn{
        display: none;
    }
    .navbar .toggle-btn{
        display: block;
    }
    .dropdown-menu{
        display: block;
        left: 2rem;
        width: unset;
    }
    .jr, .ji, .off, .jm{
        width: 50%;
        flex: 0 0 auto; 
        scroll-snap-align: start; 
    }
    .prev, .next, .prev1, .next1, .prev2, .next2,.prev3, .next3{ 
    display: none;
    }
    .ca1, .ca2, .ca3, .ca4{ 
        padding: 0 40px; 
        box-sizing: border-box; 
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .slider-box{
        width: 100%;
        height: 500px;
    }
    .texto{
        top: 50px;
        padding: 0 25px;
    }
    .texto h2{
        font-size: 35px;
        margin-bottom: 15px;
    }
    .texto p{
        font-size: 15px;
    }
}
/*JUEGOS*/
.juegos{
    margin: 0 10px;
}
.flechas{
    position: relative;
}
.ca1, .ca2, .ca3, .ca4{
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;    
    overflow: auto;
    max-width: 1400px;
    margin: auto;
}
.ca1::-webkit-scrollbar, .ca2::-webkit-scrollbar, .ca3::-webkit-scrollbar, .ca4::-webkit-scrollbar{
    display: none;
}
.prev, .next, .prev1, .next1, .prev2, .next2, .prev3, .next3{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(145deg, #1e1e1e, #2c2c2c);
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  z-index: 10;
  font-size: 22px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
}
.prev:hover, .next:hover,
.prev1:hover, .next1:hover,
.prev2:hover, .next2:hover,
.prev3:hover, .next3:hover,
.prev4:hover, .next4:hover {
  background: #00c853;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.5);
}
.prev, .prev1, .prev2, .prev3{
  left: 10px;
}
.next, .next1, .next2, .next3{
  right: 10px;
}
.contenedor{
    position: relative;
    width: 200px;
    height: 300px;
    margin: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0, 0, 0.2);
    transition: transform 0.5 ease;
    scroll-snap-align: start;
    flex-shrink: 0;
}
.contenedor img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.info1{
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: #fff;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);

}
.contenedor:hover .hover{
    top: 0;
    transition-delay: 1.0s;
}
.info1 h3{
    margin: 0;
    font-size: 16px;
}
.info1 .prec{
    font-weight: bold;
    font-size: 14px;
}
.hover {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 20px;
  box-sizing: border-box;
  transition: top 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
}
.contenedor:hover .hover {
  top: 0;
}
.contenedor p {
  font-size: 14px;
  text-align: center;
  margin-bottom: 15px;
}
.hover button {
  padding: 8px 16px;
  background: #00c853;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.contenedor button:hover {
  background: #009624;
}

/*TIENDA*/
.tienda{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px,1fr));
    gap: 20px;
    margin: 20px;
    justify-content: center;
    align-items: center;
}   
.producto{
  width: 100%;
  max-width: 340px;
  background: white;
  border: 1px solid white;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}
.tienda img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.info{
  padding: 14px;
  display: grid;
  gap: 10px;
  font-family: 'Franklin Gothic Medium';
}
.nombre{
  margin: 0;
  font-size: 1.1rem;
  color: #1f2937;
}
.desc{
  margin: 0;
  color: #6b7280;
  font-size: .92rem;
  line-height: 1.45;
}
.precio{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.precio{
  font-weight: 700;
  color: #1f2937;
}
.tienda button{
  padding: 10px 14px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .2s ease;
}
.tienda button:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(37,99,235,.25);
  background: #1e4fd4;
}

/*NOTICIAS*/
.noticias{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Franklin Gothic Medium';
}
.titulo{
    text-align: center;
    font-size: 40px;
    padding-top: 50px;
}
.slider-box{
    width: 100%;
    max-width: 800px;
    height: 500px;
    margin: 50px auto 0;
    overflow: hidden;
    
}
.slider-box ul{
    display: flex;
    padding: 0;
    width: 400%;
    animation: slide 10s infinite alternate ease-in-out;
}
.slider-box li{
    width: 100%;
    list-style: none;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.slider-box img{
    width: 100%;
    max-width: 800px;
    height: 500px;
    opacity: 1px;
}
.slider-box ul{
    display: flex;
    padding: 0;
    width: 400%;
    animation: slide 20s infinite alternate ease-in-out;
}
.slider-box li{
    width: 100%;
    list-style: none;
    position: relative;
}
.texto{
    position: absolute;
    text-align: start;
    padding: 0 50px;
    top: 70%;
    color: white ;
}
.texto h2{
    font-size: 45px;
    margin-bottom: 35px;
}
@keyframes slide{
    0%{ margin-left: 0;}
 20%{ margin-left: 0;}

 25%{ margin-left: -100%;}
 45%{ margin-left: -100%;}

 50%{ margin-left: -200%;}
 70%{ margin-left: -200%}

 75%{ margin-left: -300%;}
 100%{ margin-left: -300%;}
}
/*footer*/
.footer {
  width: 100%;
  background-image: url(images/footer.jpg);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  padding: 40px 0 20px;
  color: rgb(200, 150, 41);
  font-family: 'Franklin Gothic Medium';
  text-shadow: 0 0 2px #fff, 0 0 1px #fff, 0 0 2px #fff, 0 0 5px #fff;
}

.fconte {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  background-color: rgba(173, 255, 47, 0.65);
  margin: 0 auto 30px;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
}

.seccions {
  flex: 1 1 200px;
  margin: 15px;
}

.seccions h2 {
  font-size: 22px;
  color:rgb(200, 150, 41) ;
  margin-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,0.4);
  padding-bottom: 5px;
}

.seccions ul {
  list-style: none;
  padding: 0;
}

.seccions li {
  margin-bottom: 10px;
  font-size: 18px;
}

.social-icons i {
  margin-right: 10px;
  font-size: 20px;
  cursor: pointer;
}

.email-input {
  width: 100%;
  padding: 8px;
  margin-top: 10px;
  border-radius: 8px;
  border: none;
}

.subscribe-btn {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: rgb(200, 150, 41);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
}

.footer-bottom {
  text-align: center;
  font-size: 14px;
}

.payment-icons img {
  height: 30px;
  margin: 0 5px;
}

.legal-links a {
  color: rgb(200, 150, 41);
  text-decoration: none;
  margin: 0 5px;
}

.rating-icons span {
  margin: 0 10px;
  font-weight: bold;
}
