/* ===== Junta de Gobierno (jg-) ===== */
.jg { box-sizing: border-box; max-width: 1200px; margin: 0 auto; padding: 8px 0 40px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #33352f; }
.jg *, .jg *::before, .jg *::after { box-sizing: border-box; }
.jg .jg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; padding: 0; }
.jg .jg-member { display: flex; flex-direction: column; align-items: center; padding: 16px 16px 20px; text-align: center; cursor: pointer; background: #ffffff; border: 1px solid #e5e9dc; border-top: 5px solid var(--cofc-verde); border-radius: 12px; box-shadow: 0 4px 16px rgba(60, 70, 40, .08); transition: transform .18s ease, box-shadow .18s ease, border-top-color .18s ease; }
.jg .jg-member:hover, .jg .jg-member:focus-visible { transform: translateY(-3px); border-top-color: var(--cofc-verde-medio); box-shadow: 0 10px 26px rgba(60, 70, 40, .16); outline: none; }
.jg .jg-member:focus-visible { box-shadow: 0 0 0 3px rgba(187, 225, 100, .6), 0 10px 26px rgba(60, 70, 40, .16); }
.jg .jg-photo { width: 100%; margin: 0 0 14px; overflow: hidden; border-radius: 8px; aspect-ratio: 4 / 5; background: #eef1e8; }
.jg .jg-photo img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; object-position: center top; border: 0; border-radius: 0; transition: transform .3s ease; }
.jg .jg-member:hover .jg-photo img { transform: scale(1.05); }
.jg .jg-name { margin: 0 0 4px; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--cofc-verde-texto); }
.jg .jg-role { margin: 0; font-size: 13px; line-height: 1.45; color: #5b6150; }

.jg .jg-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(20, 26, 10, .7); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.jg .jg-modal[hidden] { display: none; }
.jg .jg-modal-card { position: relative; width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto; padding: 40px 32px 32px; text-align: center; background: #ffffff; border-top: 6px solid var(--cofc-verde); border-radius: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); animation: jg-pop .2s ease; }
@keyframes jg-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.jg .jg-modal-close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; padding: 0; font-family: inherit; font-size: 26px; line-height: 1; color: var(--cofc-tinta); cursor: pointer; background: var(--cofc-verde-suave); border: 0; border-radius: 50%; transition: background .15s ease; }
.jg .jg-modal-close:hover, .jg .jg-modal-close:focus-visible { background: var(--cofc-verde); outline: none; }
.jg .jg-modal-img { display: block; width: 100%; max-width: 260px; height: auto; max-height: 46vh; margin: 0 auto 24px; object-fit: cover; object-position: center top; border: 0; border-radius: 16px; box-shadow: 0 6px 20px rgba(60, 70, 40, .18); }
.jg .jg-modal-info { padding-top: 22px; border-top: 2px solid var(--cofc-verde); }
.jg .jg-modal-name { margin: 0 0 10px; font-size: 24px; font-weight: 700; line-height: 1.25; text-transform: uppercase; color: var(--cofc-tinta); }
.jg .jg-modal-role { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; line-height: 1.6; text-transform: uppercase; color: var(--cofc-verde-texto); }
.jg .jg-modal-btn, .jg .jg-modal-btn:link, .jg .jg-modal-btn:visited { display: inline-block; margin-top: 22px; padding: 12px 26px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: #2b3018; background: var(--cofc-verde); border-radius: 6px; transition: background .15s ease, color .15s ease, transform .15s ease; }
.jg .jg-modal-btn:hover, .jg .jg-modal-btn:focus-visible { color: #ffffff; background: var(--cofc-verde-medio); transform: translateY(-1px); outline: none; }
.jg .jg-modal-btn[hidden] { display: none; }

@media (max-width: 900px) { .jg .jg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .jg .jg-grid { grid-template-columns: 1fr; }
  .jg .jg-photo { max-width: 260px; }
  .jg .jg-modal-card { padding: 36px 20px 26px; }
  .jg .jg-modal-name { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .jg .jg-member, .jg .jg-photo img, .jg .jg-modal-card { transition: none; animation: none; } }
