@import url('https://fonts.googleapis.com/css2?family=Pirata+One&display=swap');


body {
    background-image: url('../../images/Fondo8.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
}


/* Centrar y estilizar el título */
h1 {
    font-family: 'Pirata One', cursive; /* Fuente decorativa */
    font-size: 3.5em;
    text-align: center;
    color: #2c130d;
    margin-bottom: 50px;
    margin-top: 2% !important;
    text-transform: uppercase;
    font-family: 'Pirata One', cursive;
    letter-spacing: 3px;
    background-color: #f9f5f1;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 5px solid #2c130d;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 3px 3px 4px rgba(0, 0, 0, 0.4);
}

/* Contenedor principal de productos */
.productos-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Tres columnas */
    gap: 30px; /* Espacio entre las tarjetas */
    padding: 20px;
    max-width: 1600px; /* Ampliar el ancho máximo del contenedor */
    margin: 0 auto; /* Centrar el contenedor */
}

/* Estilo para cada producto */
.producto {
    background: linear-gradient(135deg, #f5f7fa, #dcc6a2);
    border-radius: 25px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s, box-shadow 0.4s;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.producto:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* Imagen de producto */
.producto img {
    width: 100%;
    border-radius: 25px;
    border: 5px solid #2c130d;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s;
}

.producto img:hover {
    transform: scale(1.08);
}

/* Título del producto */
.producto h2 {
    font-size: 1.6em;
    margin: 20px 0 15px;
    color: #2c130d;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Pirata One', cursive;
}

/* Descripción del producto */
.producto p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Precio del producto */
.producto .precio-anterior {
    font-size: 1.1em;
    color: #555;
    text-decoration: line-through;
    margin-right: 10px;
}

.producto .precio {
    font-size: 1.6em;
    color: #2c130d;
    margin: 15px 0;
    font-weight: bold;
}

/* Descuento */
.descuento {
    position: absolute;
    top: 15px;
    left: -45px;
    background-color: #2c130d;
    color: #fff;
    padding: 10px 60px;
    font-size: 1.1em;
    font-weight: bold;
    transform: rotate(-45deg);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Botón de compra */
.comprar {
    background-color: #2c130d;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.comprar:hover {
    background-color: #2c130d;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Ajustes para pantallas más pequeñas */
@media (max-width: 900px) {
    .productos-container {
        grid-template-columns: repeat(2, 1fr); /* Dos columnas en pantallas medianas */
    }
}

@media (max-width: 600px) {
    .productos-container {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
    }
}
