/*==================================================
                    VARIABLES
==================================================*/

:root{

--primary:#ff4d88;
--secondary:#ff8db7;
--accent:#ffbfd6;
--dark:#2b2b2b;
--light:#ffffff;

--shadow:0 15px 35px rgba(0,0,0,.15);

}

*{

margin:0;
padding:0;
box-sizing:border-box;
font-family:"Poppins",sans-serif;

}

body{

background:linear-gradient(135deg,#fff5f9,#ffe9f2,#fff8fb);

background-size:400% 400%;

animation:bgMove 18s infinite;

overflow-x:hidden;

}

/*==================================================
                    HERO
==================================================*/

.hero{

height:45vh;

background:url("../img/fondos/juegos.jpg") center/cover no-repeat;

position:relative;

display:flex;

justify-content:center;

align-items:center;

}

.overlay{

position:absolute;

inset:0;

background:rgba(0,0,0,.45);

backdrop-filter:blur(3px);

}

.hero-content{

position:relative;

z-index:10;

text-align:center;

color:white;

padding:20px;

}

.hero-content h1{

font-size:60px;

margin-bottom:20px;

}

.hero-content p{

font-size:22px;

max-width:700px;

line-height:1.8;

}

/*==================================================
                BUSCADOR
==================================================*/

.search{

width:90%;

max-width:1200px;

margin:50px auto;

}

.search input{

width:100%;

padding:18px 22px;

font-size:18px;

border:none;

outline:none;

border-radius:50px;

box-shadow:var(--shadow);

}

/*==================================================
                GRID
==================================================*/

.games{

width:92%;

max-width:1500px;

margin:auto;

display:grid;

grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

gap:35px;

padding-bottom:80px;

}

/*==================================================
                TARJETA
==================================================*/

.game{

background:white;

border-radius:30px;

overflow:hidden;

box-shadow:var(--shadow);

transition:.35s;

opacity:0;

transform:translateY(70px);

position:relative;

}

.game.show{

opacity:1;

transform:translateY(0);

}

.game:hover{

transform:translateY(-10px);

}

.game a{

display:flex;

flex-direction:column;

justify-content:center;

align-items:center;

padding:40px;

text-decoration:none;

color:inherit;

height:100%;

}

.icon{

font-size:70px;

margin-bottom:20px;

transition:.35s;

}

.game:hover .icon{

transform:scale(1.2) rotate(8deg);

}

.game h2{

color:var(--primary);

margin-bottom:15px;

font-size:28px;

text-align:center;

}

.game p{

text-align:center;

color:#666;

line-height:1.8;

}

/*==================================================
                EFECTO BRILLO
==================================================*/

.game::before{

content:"";

position:absolute;

top:-150%;

left:-50%;

width:80%;

height:300%;

background:rgba(255,255,255,.25);

transform:rotate(25deg);

transition:.8s;

}

.game:hover::before{

left:150%;

}

/*==================================================
                BOTÓN SUBIR
==================================================*/

.topBtn{

position:fixed;

right:30px;

bottom:30px;

width:55px;

height:55px;

border:none;

border-radius:50%;

background:var(--primary);

color:white;

font-size:22px;

cursor:pointer;

display:none;

box-shadow:var(--shadow);

transition:.3s;

z-index:999;

}

.topBtn:hover{

transform:scale(1.1);

}

/*==================================================
                ANIMACIONES
==================================================*/

@keyframes bgMove{

0%{

background-position:0% 50%;

}

50%{

background-position:100% 50%;

}

100%{

background-position:0% 50%;

}

}

@keyframes fadeUp{

from{

opacity:0;

transform:translateY(60px);

}

to{

opacity:1;

transform:translateY(0);

}

}

/*==================================================
                RESPONSIVE
==================================================*/

@media(max-width:900px){

.hero-content h1{

font-size:42px;

}

.hero-content p{

font-size:18px;

}

.games{

grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

}

}

@media(max-width:600px){

.hero{

height:40vh;

}

.hero-content h1{

font-size:34px;

}

.hero-content p{

font-size:16px;

}

.games{

grid-template-columns:1fr;

}

.game a{

padding:30px;

}

.icon{

font-size:55px;

}

.game h2{

font-size:24px;

}

}
/*==================================================
                EFECTO RIPPLE
==================================================*/

.game{

position:relative;
overflow:hidden;

}

.ripple{

position:absolute;

width:20px;
height:20px;

background:rgba(255,255,255,.5);

border-radius:50%;

transform:translate(-50%,-50%);

pointer-events:none;

animation:ripple .7s linear;

}

@keyframes ripple{

from{

width:20px;
height:20px;
opacity:.8;

}

to{

width:500px;
height:500px;
opacity:0;

}

}