/* --- CONFIGURACIÓN BASE --- */
body { background: #f0f2f5; font-family: sans-serif; padding: 20px; color: #333; }
h2 { border-left: 5px solid #3d7dca; padding-left: 15px; color: #2c3e50; }
a { text-decoration: none !important; }


/* --- ESCAPARATE (PÁGINA PRINCIPAL) --- */
.escaparate {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.producto-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.3s ease; /* Suaviza el cambio de sombra al pasar el ratón */
}

.producto-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.2); /* La tarjeta resalta un poco más al pasar el ratón */
}

/* Contenedor para el ZOOM en el Index */
.imagen-contenedor {
    width: 100%;
    height: 160px;
    overflow: hidden; /* IMPORTANTE: evita que la imagen tape el texto al crecer */
    border-radius: 8px;
    margin-bottom: 10px;
}

.imagen-contenedor img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease; /* Zoom suave para el index */
    cursor: pointer;
}

/* Efecto de zoom al pasar por la TARJETA */
.producto-card:hover .imagen-contenedor img {
    transform: scale(1.1); /* Zoom sutil del 10% en la página principal */
}

/* --- DETALLE DEL PRODUCTO (PÁGINA INDIVIDUAL) --- */
.contenedor-detalle { max-width: 900px; margin: 40px auto; }
.ficha-producto {
    display: flex;
    gap: 40px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.producto-visual { flex: 1; overflow: hidden; border-radius: 10px; }

.img-grande { 
    width: 100%; 
    height: auto; 
    transition: transform 0.5s ease; 
    cursor: zoom-in;
}

.img-grande:hover { transform: scale(1.2); } /* Zoom más grande para el detalle */

.producto-info { flex: 1.5; }
.precio-detalle { font-size: 2rem; color: #27ae60; font-weight: bold; }

/* --- BOTONES --- */
.btn-ver, .btn-comprar {
    background: #3d7dca;
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    display: inline-block;
    margin-top: 10px;
}
.descripcion {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    height: 40px;      /* Altura fija para que todas las cartas midan lo mismo */
    overflow: hidden;  /* Si el texto es muy largo, lo oculta */
    margin: 10px 0;
    padding: 0 10px;
}

