/* =========================================
   FOTOGRAFÍAS - MIEMBROS VITALICIOS
   ========================================= */

.mv-avatar {
    width: 110px;
    height: 110px;
    overflow: hidden;
    background: #eef2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    border-radius: 8px;
    position: relative;
}

.mv-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    cursor: zoom-in;
}

.mv-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left;
    display: block;
}

.mv-avatar span {
    display: flex;
    align-items: left;
    justify-content: left;
    width: 100%;
    height: 100%;
}

/* Insignia exclusiva superpuesta en la esquina de cada foto */
.mv-avatar img.mv-boton {
    position: absolute;
    right: 3px;
    bottom: 3px;
    width: 34px;
    height: 34px;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .28);
    z-index: 2;
    cursor: default;
}

/* =========================================
   SECCIÓN MIEMBROS VITALICIOS
   ========================================= */
.mv-section {
    padding: 58px 0;
}

.mv-section h2 {
    color: var(--azul);
    font-size: 2rem;
    margin: 0 0 8px;
}

.mv-intro {
    color: #607485;
    margin: 0 0 28px;
    max-width: 800px;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 26px;
}

.mv-card {
    border: 1px solid var(--borde);
    background: #fff;
    border-radius: 10px;
    padding: 24px 20px;
    box-shadow: 0 5px 18px #1730420c;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mv-card h3 {
    color: var(--azul);
    font-size: 1.05rem;
    line-height: 1.3;
    margin: 6px 0 4px;
}

.mv-profesion {
    color: var(--azul2);
    font-weight: 700;
    font-size: 0.86rem;
    margin: 0 0 8px;
}

.mv-resolucion {
    font-size: 0.82rem;
    color: #607485;
    font-weight: 600;
    margin: 0 0 10px;
}

.mv-card p {
    font-size: 0.86rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.mv-btn {
    margin-top: auto;
    align-self: flex-start;
    background: var(--rojo);
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease;
}

.mv-btn:hover {
    background: #b31218;
}

.mv-error {
    color: var(--rojo);
}

/* Modal de reconocimiento */
.mv-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 43, 76, 0.62);
}

.mv-modal.is-open {
    display: flex;
}

.mv-modal-panel {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: min(620px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    padding: 30px 28px 24px;
    box-shadow: 0 22px 55px rgba(4, 20, 35, 0.28);
}

.mv-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--gris);
    color: var(--azul);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease;
}

.mv-close:hover {
    background: #e2ebf1;
}

#mv-modal-content .mv-kicker {
    letter-spacing: 0.1em;
}

#mv-modal-content h2 {
    color: var(--azul);
    margin: 8px 0 2px;
}

.mv-dl {
    margin: 18px 0;
    border: 1px solid var(--borde);
    border-radius: 8px;
    overflow: hidden;
}

.mv-dl > div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 10px;
    padding: 10px 14px;
}

.mv-dl > div:nth-child(odd) {
    background: var(--gris);
}

.mv-dl dt {
    font-weight: 800;
    color: var(--azul);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mv-dl dd {
    margin: 0;
    font-size: 0.92rem;
}

.mv-resolucion-btn {
    display: inline-block;
    margin-top: 6px;
    background: var(--azul2);
    color: #fff;
    padding: 11px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background .18s ease;
}

.mv-resolucion-btn:hover {
    background: var(--azul);
}

.mv-nota {
    font-size: 0.78rem;
    color: #607485;
    margin-top: 16px;
}

@media (max-width: 900px) {
    .mv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .mv-grid {
        grid-template-columns: 1fr;
    }
    .mv-dl > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

/* =========================================
   MEMORIA INSTITUCIONAL (bloque 5.3B)
   ========================================= */
.memoria-wrap {
    padding: 58px 0;
    background: var(--gris);
}

.memoria-wrap h2 {
    color: var(--azul);
    font-size: 2rem;
    margin: 0 0 8px;
}

.memoria-list {
    display: grid;
    gap: 14px;
    margin-top: 26px;
}

.memoria-item {
    border: 1px solid var(--borde);
    background: #fff;
    border-radius: 8px;
    padding: 16px 18px;
    box-shadow: 0 4px 14px #1730420a;
}

.memoria-fecha {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rojo);
    margin-bottom: 4px;
}

.memoria-item h3 {
    color: var(--azul);
    font-size: 1.02rem;
    margin: 0 0 4px;
}

.memoria-item p {
    font-size: 0.86rem;
    line-height: 1.45;
    margin: 0;
    overflow-wrap: anywhere;
}