.cd-contenedor {
    width: 100%;
    height: 325px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    border-radius: 25px;
    color: white;
    font-family: sans-serif;
}

.cd-contenedor::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    z-index: 0;
    transition: filter 0.3s ease;
}

.cd-contenedor:hover::before {
    background: #ffffff;
    /*filter: grayscale(100%);*/
}

.cd-conos-texto {
    text-align: center;
    font-size: 48px;
    line-height: 48px;
    font-weight: bold;
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    /* ✅ sombra al texto */
}

.cd-detalles {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: absolute;
    z-index: 1;
    font-size: 16px;
    font-weight: 600;
}
.cd-detalles > div{
text-align: center;
}
.cd-detalles a {
    color: white;
    /* ✅ color blanco por defecto */
    text-decoration: none;
    transition: color 0.3s ease;
    text-align: center;
}

.cd-contenedor:hover .cd-conos-texto {
    opacity: 0;
}

.cd-contenedor:hover .cd-detalles {
    display: flex;
}

.cd-contenedor:hover .cd-detalles a {
    color: #000000;
    /* ✅ aseguramos blanco al hacer hover */
    font-weight: 500;
}

.cd-contenedor:hover .cd-detalles a:hover {

    text-decoration: underline;
}

.cd-titulo-categoria {
    margin-top: 20px;
    color: #9C1916;
    font-size: 20px;
    text-align: center;
}

.cd-titulo-categoria h2>a {
    color: #9C1916;

}