/* =========================================================
   style_editores.css
   Estilos para el Comité de Editoras/Editores Asociados
   Conserva la paleta de colores verdes de la revista.
   ========================================================= */

/* ── Grid de dos columnas ── */
#editoresAsociados {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 14px;
}


#mesaDirectiva {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 14px;
}

#comitePlaneacion {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 14px;
}

/* ── Tarjeta individual ──       border: 1px solid #d4e8d0;
    border-left: 3px solid #4a8c3f;
    border-radius: 6px;  */
.ea-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #d4e8d0;
    border-left: 3px solid #4a8c3f;
    border-radius: 6px;
    padding: 8px 10px;
    transition: box-shadow 0.2s ease, border-left-color 0.2s ease, transform 0.18s ease;
    min-width: 0; /* evita desbordamiento en grid */
}

.ea-card:hover {
    box-shadow: 0 3px 12px rgba(74, 140, 63, 0.18);
    border-left-color: #2d6a26;
    transform: translateY(-1px);
}

/* ── Foto ──. border-radius: 50%; border: 2px solid #4a8c3f;  */
.ea-foto-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    
    overflow: hidden;
    
    background: #e8f5e5;
}

.ea-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Información textual ── */
.ea-info {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.ea-nombre {
    margin: 0 0 0px !important;
    font-size: 0.78rem !important;
    font-weight: 700;
    color: #1e4d1b;
    line-height: 1.2;
    word-break: break-word;
}

.ea-nombre-link {
    color: #2d6a26;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.ea-nombre-link:hover {
    color: #1a4017;
    text-decoration: none !important;
}

.ea-nombre-text {
    color: #1e4d1b;
}

.ea-area {
    margin: 0 0 0px !important;
    font-size: 11px !important;
    font-weight: 600;
    color: #4a8c3f;
    
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ea-dep {
    margin: 0;
    font-size: 12px !important;
    color: #6b7f69;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ea-categoria {
    margin: 0 0 0px !important;
    font-size: 11px !important;
    font-weight: 600;
    color: #4a8c3f;
    
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Estado de carga ── */
.ea-loading {
    grid-column: 1 / -1;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a8c3f;
    font-size: 0.8rem !important;
    padding: 10px 0;
}

.ea-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #c5dfc2;
    border-top-color: #4a8c3f;
    border-radius: 50%;
    animation: ea-spin 0.75s linear infinite;
    flex-shrink: 0;
}

@keyframes ea-spin {
    to { transform: rotate(360deg); }
}

/* ── Estado de error ── */
.ea-error {
    grid-column: 1 / -1;
    list-style: none;
    color: #b84040;
    font-size: 0.78rem !important;
    padding: 8px 0;
}

/* ── Ocultar items excedentes ── */
.ea-oculto {
    display: none !important;
}

/* ── Botón Ver más / Ver menos ── */
.ea-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.ea-btn-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid #4a8c3f;
    border-radius: 20px;
    color: #2d6a26;
    font-size: 0.75rem !important;
    font-weight: 600;
    padding: 5px 16px;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
    letter-spacing: 0.02em;
}

.ea-btn-toggle:hover {
    background: #4a8c3f;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(74, 140, 63, 0.3);
}

.ea-btn-toggle:focus-visible {
    outline: 2px solid #4a8c3f;
    outline-offset: 3px;
}

.ea-btn-icon {
    font-size: 0.65rem !important;
    transition: transform 0.25s ease;
}

/* Cuando el botón está en estado expandido */
.ea-btn-toggle--expandido .ea-btn-icon {
    transform: rotate(180deg);
}

/* ── Responsive: columna única en pantallas pequeñas ── */
@media (max-width: 600px) {
    #editoresAsociados {
        grid-template-columns: 1fr;
    }
}
