:root {
    --acento: #563d63;
    --texto-claro: #ffffff;
    --hover-acento: #54276d;
}



.uno {
    font-size: 24px;
    text-align: center;
    margin-bottom: 30px;
}

.productos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10%;
}

.producto-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    width: 250px;
    display: flex;
    flex-direction: column;
}

.producto-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.producto-card h2 {
    font-size: 18px;
    margin: 10px 0;
    color: #000000;
}

.producto-card p {
    font-size: 14px;
    color: #000000;
    flex-grow: 1;
    text-align: justify;
}

.precio {
    font-weight: bold;
    color: #000000;
    margin: 15px;
    text-align: center;
}

.producto-card form {
    margin-top: auto;
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    background-color: var(--acento);
    color: var(--texto-claro);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--hover-acento);
    transform: scale(1.05);
}

.btn:active {
    transform: scale(0.98);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .productos-container {
        gap: 15px;
    }

    .producto-card {
        width: calc(50% - 15px);
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .producto-card {
        width: 100%;
        max-width: none;
    }
}

h3{
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: #ffffff;
    font-size: 2.3rem;
    text-align: center;
    margin-bottom: 3%;
}

.messages {
    margin-top: 8%;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 300px;
}

.alert {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.alert.fadeOut {
    opacity: 0;
}

/* Estilos para diferentes tipos de alertas */
.alert-success {
    background-color:  #54276d;
    color: white;
}

.alert-info {
    background-color: #2196F3;
    color: white;
}

.alert-warning {
    background-color: #FF9800;
    color: white;
}

.alert-error, .alert-danger {
    background-color: #f44336;
    color: white;
}




@media (max-width: 1200px) {
    .productos-container {
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .productos-container {
        gap: 15px;
    }
    
    .producto-card {
        width: calc(33.33% - 10px);
        max-width: 230px;
    }
}

@media (max-width: 768px) {
    .productos-container {
        gap: 15px;
    }
    
    .producto-card {
        width: calc(50% - 10px);
        max-width: 220px;
    }
}

@media (max-width: 576px) {
    .producto-card {
        width: calc(50% - 8px);
        max-width: none;
        padding: 15px;
    }
    
    .producto-card img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .producto-card {
        width: 100%;
        max-width: 300px;
    }
    
    .messages {
        width: calc(100% - 30px);
        right: 15px;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 320px) {
    .productos-container {
        gap: 10px;
    }
    
    .producto-card {
        padding: 12px;
    }
    
    .producto-card img {
        height: 130px;
    }
}