/* Estilos para la tienda */

.tienda-descripcion {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 3rem;
}

.productos {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 480px) {
    .productos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .productos {
        grid-template-columns: repeat(3, 1fr);
    }
}

.producto {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.producto-imagen {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.producto-contenido {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.producto-nombre {
    font-size: 1.8rem;
    color: var(--rosac);
    margin: 0 0 1rem 0;
}

.producto-descripcion {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.producto-precio {
    font-size: 2rem;
    font-weight: bold;
    color: var(--azulc);
    margin-bottom: 1.5rem;
}

.producto-botones {
    display: flex;
    gap: 1rem;
}

.boton-comprar {
    background-color: var(--rosac);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background-color 0.3s;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.boton-comprar:hover {
    background-color: #d8538c;
}

.boton-detalles {
    background-color: var(--azulc);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background-color 0.3s;
    flex: 1;
}

.boton-detalles:hover {
    background-color: #41b7cc;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.modal-contenido {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 700px;
    width: 90%;
    position: relative;
    animation: modalAparece 0.4s ease-out;
}

@keyframes modalAparece {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cerrar-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2.5rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.cerrar-modal:hover {
    color: #333;
}

.detalle-producto {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .detalle-producto {
        flex-direction: row;
    }
}

.detalle-imagen {
    flex: 1;
}

.detalle-imagen img {
    width: 100%;
    border-radius: 0.5rem;
}

.detalle-info {
    flex: 1;
}

.detalle-nombre {
    font-size: 2.5rem;
    color: var(--rosac);
    margin: 0 0 1.5rem 0;
}

.detalle-descripcion {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.detalle-precio {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--azulc);
    margin-bottom: 2rem;
}

.detalle-categoria {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 2rem;
}

.detalle-disponible {
    font-size: 1.4rem;
    color: #22aa33;
    margin-bottom: 2rem;
}

.detalle-boton {
    background-color: var(--rosac);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.6rem;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.detalle-boton:hover {
    background-color: #d8538c;
}