/* ==========================
   RESET
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f8f8fc;
    color:#222;
    line-height:1.7;
}

img{
    max-width:100%;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

/* ==========================
   CONTENEDOR
========================== */

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/* ==========================
   HEADER
========================== */

header{

    background:#fff;

    position:sticky;

    top:0;

    z-index:999;

    box-shadow:0 3px 15px rgba(0,0,0,.08);

}

header .container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 0;

}

.logo{

    font-size:26px;

    font-weight:700;

    color:#5E17EB;

}

nav ul{

    display:flex;

    gap:30px;

}

nav a{

    color:#333;

    font-weight:500;

    transition:.3s;

}

nav a:hover{

    color:#5E17EB;

}

/* ==========================
   HERO
========================== */

.hero{

    background:linear-gradient(135deg,#5E17EB,#7A3CF3);

    color:white;

    padding:90px 0;

}

.hero-text{

    max-width:700px;

}

.badge{

    display:inline-block;

    background:white;

    color:#5E17EB;

    padding:8px 18px;

    border-radius:50px;

    font-size:14px;

    font-weight:600;

    margin-bottom:20px;

}

.hero h1{

    font-size:50px;

    line-height:1.2;

    margin-bottom:20px;

}

.hero p{

    font-size:19px;

    opacity:.95;

    margin-bottom:35px;

}

.btn{

    display:inline-block;

    background:white;

    color:#5E17EB;

    padding:15px 35px;

    border-radius:8px;

    font-weight:600;

    transition:.3s;

}

.btn:hover{

    transform:translateY(-3px);

}

/* ==========================
   SECCIONES
========================== */

section{

    padding:80px 0;

}

section h2{

    font-size:36px;

    margin-bottom:40px;

    text-align:center;

}

/* ==========================
   CATEGORÍAS
========================== */

.grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:25px;

}

.card{

    background:white;

    padding:35px;

    border-radius:16px;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    text-align:center;

    transition:.3s;

    font-size:20px;

}

.card:hover{

    transform:translateY(-8px);

}

.card h3{

    margin:18px 0 12px;

    color:#5E17EB;

}

/* ==========================
   BLOG
========================== */

.posts{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:30px;

}

.posts article{

    background:white;

    padding:30px;

    border-radius:16px;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

    transition:.3s;

}

.posts article:hover{

    transform:translateY(-8px);

}

.posts h3{

    color:#5E17EB;

    margin-bottom:15px;

}

.posts p{

    margin-bottom:20px;

}

.posts a{

    color:#5E17EB;

    font-weight:600;

}

/* ==========================
   AVISO
========================== */

.aviso{

    background:#ede3ff;

}

.aviso p{

    max-width:900px;

    margin:auto;

    text-align:center;

}

/* ==========================
   FOOTER
========================== */

footer{

    background:#1e1e1e;

    color:white;

    padding:40px 0;

    text-align:center;

}

/* ==========================
   RESPONSIVE
========================== */

@media(max-width:900px){

header .container{

flex-direction:column;

}

nav ul{

margin-top:20px;

gap:18px;

flex-wrap:wrap;

justify-content:center;

}

.hero{

text-align:center;

}

.hero h1{

font-size:38px;

}

.hero p{

font-size:18px;

}

section h2{

font-size:30px;

}

}

@media(max-width:600px){

.hero{

padding:70px 0;

}

.hero h1{

font-size:30px;

}

.btn{

display:block;

text-align:center;

}

}

/*==========================
EFECTOS
===========================*/

.header-scroll{

    box-shadow:0 10px 25px rgba(0,0,0,.12);

    transition:.3s;

}

.card,
.posts article{

    opacity:0;

    transform:translateY(30px);

    transition:.7s;

}

.card.show,
.posts article.show{

    opacity:1;

    transform:translateY(0);

}