/* Contenedor de la caja */
.producto-box {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); /* Sombra llamativa */
    border: 1px solid #999; /* Contorno más delgado y gris */
    transition: all 0.3s ease;
    max-width: 350px; /* Caja más grande */
    text-align: center;
    position: relative;
    min-height: 400px; /* Aumenta la altura total de la caja */
}

/* Efecto al pasar el cursor */
.producto-box:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.5); /* Sombra más oscura */
}

/* Imagen con efecto de zoom e inclinación, todas del mismo tamaño */
.imagen-box {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
    height: 250px; /* Imagen más grande y uniforme */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Coloca la imagen detrás de la caja de puntuación */
}

.imagen-box img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ahora la imagen se verá completa sin recortes */
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1; /* Imagen detrás de la caja de puntuación */
}

.imagen-box:hover img {
    transform: scale(1.1) rotate(-2deg);
}

/* Efecto de rombo creciente detrás de la imagen */
.imagen-box::before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    background: linear-gradient(45deg, rgba(245, 206, 0, 0.5) 0%, rgba(144, 238, 144, 0.5) 100%);
    transform: rotate(45deg); /* Forma de rombo */
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1; /* Asegura que el rombo esté detrás de la imagen */
}

.imagen-box:hover::before {
    width: 70%;
    height: 70%;
}

/* Caja de puntuación (solo número, sin texto adicional) */
.puntuacion {
    position: absolute;
    top: 10px; /* Ajustado para mejor alineación */
    right: 10px; /* Ajustado para mejor alineación */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Sombra */
    width: 70px; /* Ajustado a 70px */
    height: 65px; /* Ajustado a 70px */
    background: rgba(245, 206, 0, 0.8); /* Fondo amarillo translúcido */
    font-size: 1.5em;
    font-weight: bold;
    color: black;
    z-index: 2; /* Asegura que la puntuación esté sobre la imagen */
}

/* Título */
h4 {
    font-size: 1.1em;
    font-weight: bold;
    margin: 10px 0;
    line-height: 1.1; /* Ajusta el interlineado */
}

/* Botón */
.boton-producto {
    display: inline-block;
    background: #F5CE00; /* Color base */
    color: black !important;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: all 0.2s ease;
    font-weight: bold;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* Sombra */
}

.boton-producto:hover {
    background: #FFE300; /* Cambio de color al pasar el cursor */
    transform: scale(1.1);
    box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.3); /* Sombra más intensa */
}
