/**
 * Villaviudas Entidades — fichas del directorio.
 * Paleta desde las variables del tema (mismas que usa la galería).
 */

.vv-ent {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.vv-ent-ficha {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform .25s ease, box-shadow .25s ease;
}

.vv-ent-ficha:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

/* ---- Logo ---- */
.vv-ent-ficha__marca {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
}

.vv-ent-ficha__logo {
    max-width: 160px;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ---- Datos ---- */
.vv-ent-ficha__datos {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    flex: 1;
}

.vv-ent-ficha__nombre {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.3;
    color: var(--wp--preset--color--rojo, #8f1f2b);
}

.vv-ent-ficha__lista {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    font-size: .95rem;
    color: var(--wp--preset--color--tinta, #2b2b2b);
}

.vv-ent-ficha__dato {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    line-height: 1.4;
}

.vv-ent-ficha__dato::before {
    font-family: dashicons;
    font-size: 1rem;
    line-height: 1;
    color: var(--wp--preset--color--rojo, #8f1f2b);
    flex: 0 0 auto;
    position: relative;
    top: 2px;
}

.vv-ent-ficha__dato--dir::before  { content: "\f230"; } /* location */
.vv-ent-ficha__dato--tel::before  { content: "\f525"; } /* phone */
.vv-ent-ficha__dato--mail::before { content: "\f465"; } /* email */
.vv-ent-ficha__dato--web::before  { content: "\f504"; } /* admin-links / globe */

.vv-ent-ficha__dato a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(143, 31, 43, .4);
    text-underline-offset: 3px;
    word-break: break-word;
}

.vv-ent-ficha__dato a:hover {
    color: var(--wp--preset--color--rojo, #8f1f2b);
    text-decoration-color: currentColor;
}

.vv-ent-vacio {
    padding: 1.5rem;
    text-align: center;
    color: var(--wp--preset--color--tinta, #2b2b2b);
    opacity: .7;
    font-style: italic;
}

/* ---- Móvil ---- */
@media (max-width: 480px) {
    .vv-ent {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .vv-ent-ficha {
        padding: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vv-ent-ficha,
    .vv-ent-ficha:hover {
        transform: none;
        transition: none;
    }
}
