* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    background-color: #d5d8e2;
}

header {
    background-color: #1ab8e8;
    color: white;
    padding: 20px;
    text-align: center;
}

nav {
    margin-top: 10px;
}

nav a {
    margin: 0 10px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: red;
}

.seccion {
    padding: 40px 20px;
}

.seccion h2 {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease;
}

.contenedor-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.producto {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    background: #f9f9f9;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1s ease;
}

.producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.producto img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.producto h3 {
    margin: 10px 0;
}

.producto p {
    color: #555;
    margin-bottom: 10px;
}

.boton-comprar {
    background: red;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s;
}

.boton-comprar:hover {
    background: blue;
}

footer {
    background-color:  #1ab8e8;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.boton-arriba {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #004aad;
    color: white;
    padding: 10px 15px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 24px;
    display: none;
    z-index: 1000;
}

.boton-arriba.show {
    display: block;
}

  /* Animaciones */
@keyframes fadeInUp {
    from {
    opacity: 0;
    transform: translateY(20px);
    }
    to {
    opacity: 1;
    transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
    opacity: 0;
    transform: translateY(-20px);
    }
    to {
    opacity: 1;
    transform: translateY(0);
    }
}


.redes_f {
    text-decoration: none;
    color: #f9f9f9;
}

.redes_f:hover {
    background: red;
}