@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;900&display=swap');

html{
    scroll-behavior:smooth;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Montserrat', sans-serif;
    font-weight:300;
    background:white;
    color:#111;
}

/* Barra superior */

.navbar{
    position:sticky;
    top:0;
    background:#000;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 8%;
    z-index:1000;
}

.logo{
    font-size:1.6rem;
    font-weight:900;
    letter-spacing:4px;
    color:white;
    opacity:0;
    animation:fadeIn 1.2s ease forwards;
    text-decoration:none;
}

nav a{
    color:white;
    text-decoration:none;
    margin-left:25px;
    font-weight:400;
    transition:0.3s;
}

nav a:hover{
    opacity:0.7;
}

/* Hero */

.hero{
    min-height:80vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:40px;
}

.hero h1{
    font-size:4rem;
    font-weight:900;
    max-width:900px;
    margin-bottom:20px;
}

.hero p{
    max-width:700px;
    color:#666;
    margin-bottom:30px;
    line-height:1.6;
}

.hero button{
    background:black;
    color:white;
    border:none;
    padding:14px 30px;
    border-radius:30px;
    cursor:pointer;
    transition:0.4s;
}

.hero button:hover{
    transform:scale(1.05);
}

/* Animación de entrada */

.hero h1,
.hero p,
.hero button{
    opacity:0;
    animation:fadeUp 1.5s ease forwards;
}

.hero p{
    animation-delay:0.4s;
}

.hero button{
    animation-delay:0.8s;
}

/* Secciones */

.categorias,
.productos,
.beneficios{
    padding:60px 8%;
}

h2{
    text-align:center;
    margin-bottom:40px;
    font-weight:900;
}

/* Grids */

.grid-categorias,
.grid-productos,
.beneficios-grid{
    display:grid;
    gap:20px;
}

.grid-categorias{
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
}

.grid-productos{
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
}

.beneficios-grid{
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
}

/* Categorías */

.categoria{
    background:#fafafa;
    border:1px solid #eee;
    border-radius:20px;
    padding:30px;
    text-align:center;
    cursor:pointer;

    transition:
        transform 0.8s ease,
        box-shadow 0.8s ease;
}

.categoria:hover{
    transform:scale(1.12);
    box-shadow:0 15px 35px rgba(0,0,0,0.12);
}

/* Productos */

.producto{
    background:#fafafa;
    border:1px solid #eee;
    border-radius:20px;
    padding:25px;
    transition:0.3s;
}

.producto:hover{
    transform:translateY(-8px);
}

.img-placeholder{
    height:220px;
    background:#e5e5e5;
    border-radius:15px;
    margin-bottom:15px;
}

/* Beneficios */

.beneficios-grid div{
    background:#fafafa;
    border:1px solid #eee;
    border-radius:20px;
    padding:25px;
    text-align:center;
}

/* Footer */

footer{
    text-align:center;
    padding:40px;
    border-top:1px solid #eee;
}

/* Scroll reveal */

.reveal{
    opacity:0;
    transform:translateY(40px);
    transition:0.8s;
}

.reveal.active{
    opacity:1;
    transform:translateY(0);
}

/* Animaciones */

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(30px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

@keyframes fadeIn{

    from{
        opacity:0;
    }

    to{
        opacity:1;
    }

}

/* Celulares */

@media(max-width:768px){

    .navbar{
        flex-direction:column;
        gap:15px;
    }

    .hero h1{
        font-size:2.5rem;
    }

}

.hero-image{
    width:100%;
    border-radius:30px;
    display:block;
    box-shadow:0 20px 50px rgba(0,0,0,0.12);
    transition:transform 0.8s ease;
}

.hero-image:hover{
    transform:scale(1.01);
}

.producto-link{
    text-decoration:none;
    color:inherit;
    display:block;
}

.producto-link:hover{
    text-decoration:none;
}

.producto img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    border-radius:15px;
    margin-bottom:15px;
}