/* ==========================================================================
   ASCA — Círculo de Egresados
   page-egresados.php  |  prefijo: asca-egr-
   ========================================================================== */

/* ── Wrapper principal ───────────────────────────────────────────── */
.asca-egr-wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter) 60px;
}

/* ── Botones globales usados en esta sección ─────────────────────── */
.asca-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    border: 2px solid transparent;
}
.asca-btn--primary {
    background: var(--asca-navy);
    color: #fff;
    border-color: var(--asca-navy);
}
.asca-btn--primary:hover {
    background: var(--asca-dark);
    border-color: var(--asca-dark);
    color: #fff;
}
.asca-btn--outline {
    background: transparent;
    color: var(--asca-navy);
    border-color: var(--asca-navy);
}
.asca-btn--outline:hover {
    background: var(--asca-navy);
    color: #fff;
}
.asca-btn--lg { padding: 13px 30px; font-size: 16px; }
.asca-btn--sm { padding: 7px 14px; font-size: 13px; }
.asca-btn--ig {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    border-color: transparent;
    font-size: 16px;
    padding: 13px 30px;
}
.asca-btn--ig:hover {
    opacity: .88;
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════
   TABS NAV
═══════════════════════════════════════════════════════════════════ */
.asca-egr-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 3px solid var(--asca-gray-mid);
    margin: 32px 0 0;
    background: var(--asca-white);
    position: sticky;
    top: calc(var(--header-height) + var(--nav-height));
    z-index: 100;
}

.asca-egr-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1 1 auto;
    padding: 14px 16px 12px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    cursor: pointer;
    color: var(--asca-text-light);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: color var(--transition), border-color var(--transition);
    white-space: nowrap;
}
.asca-egr-tab i {
    font-size: 18px;
    transition: color var(--transition);
}
.asca-egr-tab:hover {
    color: var(--asca-navy);
}
.asca-egr-tab.is-active {
    color: var(--asca-navy);
    border-bottom-color: var(--asca-red);
}
.asca-egr-tab.is-active i {
    color: var(--asca-red);
}

/* ═══════════════════════════════════════════════════════════════════
   PANELES
═══════════════════════════════════════════════════════════════════ */
.asca-egr-panel {
    display: none;
    padding: 40px 0;
    animation: egrFadeIn .25s ease;
}
.asca-egr-panel.is-active {
    display: block;
}
@keyframes egrFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Header de sección ───────────────────────────────────────────── */
.asca-egr-section-header {
    margin-bottom: 32px;
}
.asca-egr-section-header h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--asca-navy);
    margin: 0 0 8px;
}
.asca-egr-section-header__sub {
    color: var(--asca-text-muted);
    margin: 0;
    font-size: 15px;
}

/* ── Texto de contenido ──────────────────────────────────────────── */
.asca-content { color: var(--asca-text); line-height: 1.75; }
.asca-content p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════════════
   PANEL: Círculo de Egresados — Bienvenida
═══════════════════════════════════════════════════════════════════ */
.asca-egr-banner {
    width: 100%;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    margin-bottom: 32px;
}
.asca-egr-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10,29,74,.82) 0%, rgba(13,49,120,.55) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 48px;
}
.asca-egr-banner__titulo {
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    margin: 0 0 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.asca-egr-banner__subtitulo {
    color: rgba(255,255,255,.88);
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin: 0;
}

.asca-egr-hero-text {
    padding: 40px 0 24px;
    border-bottom: 2px solid var(--asca-gray-mid);
    margin-bottom: 32px;
}
.asca-egr-hero-text h2 {
    color: var(--asca-navy);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    margin: 0 0 8px;
}
.asca-egr-hero-text__subtitulo {
    color: var(--asca-text-muted);
    font-size: 1.1rem;
    margin: 0;
}

.asca-egr-bienvenida-texto {
    max-width: 820px;
    font-size: 15px;
}

/* ═══════════════════════════════════════════════════════════════════
   PANEL: Beneficios / Actualiza tus datos — Formularios
═══════════════════════════════════════════════════════════════════ */
.asca-egr-intro {
    max-width: 820px;
    margin-bottom: 32px;
    font-size: 15px;
}

.asca-egr-form-embed {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
}
.asca-egr-form-embed iframe {
    width: 100%;
    min-height: 600px;
    border: none;
    display: block;
}

.asca-egr-form-link {
    padding: 32px 0;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════
   PANEL: Instagram
═══════════════════════════════════════════════════════════════════ */
.asca-egr-ig-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px 0 40px;
}
.asca-egr-ig-card {
    background: var(--asca-gray-light);
    border: 1px solid var(--asca-gray-mid);
    border-radius: var(--radius-lg);
    padding: 48px 56px;
    text-align: center;
    max-width: 560px;
    width: 100%;
}
.asca-egr-ig-icon {
    font-size: 56px;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
}
.asca-egr-ig-handle {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--asca-navy);
    margin: 0 0 20px;
}
.asca-egr-ig-desc {
    font-size: 15px;
    margin-bottom: 28px;
    text-align: left;
}
.asca-egr-ig-desc p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════════════
   PANEL: Actividades
═══════════════════════════════════════════════════════════════════ */
.asca-egr-actividades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}
.asca-egr-act-card {
    background: var(--asca-white);
    border: 1px solid var(--asca-gray-mid);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
}
.asca-egr-act-card:hover {
    box-shadow: 0 6px 24px rgba(13,49,120,.12);
    transform: translateY(-3px);
}
.asca-egr-act-card__img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.asca-egr-act-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.asca-egr-act-card:hover .asca-egr-act-card__img-wrap img {
    transform: scale(1.04);
}
.asca-egr-act-card__body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.asca-egr-act-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--asca-navy);
    margin: 0 0 10px;
    line-height: 1.3;
}
.asca-egr-act-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 12px;
}
.asca-egr-act-card__fecha,
.asca-egr-act-card__lugar {
    font-size: 12px;
    color: var(--asca-text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}
.asca-egr-act-card__fecha i { color: var(--asca-red); }
.asca-egr-act-card__lugar i { color: var(--asca-navy); }
.asca-egr-act-card__desc {
    font-size: 13px;
    color: var(--asca-text-light);
    margin: 0 0 16px;
    flex: 1;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════
   PANEL: Memorias
═══════════════════════════════════════════════════════════════════ */
.asca-egr-memoria {
    margin-bottom: 48px;
}
.asca-egr-memoria + .asca-egr-memoria {
    border-top: 1px solid var(--asca-gray-mid);
    padding-top: 40px;
}
.asca-egr-memoria__header {
    margin-bottom: 20px;
}
.asca-egr-memoria__titulo {
    font-size: 1.25rem;
    color: var(--asca-navy);
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.asca-egr-memoria__titulo i { color: var(--asca-red); }
.asca-egr-memoria__anio {
    font-size: .8rem;
    font-weight: 700;
    background: var(--asca-navy);
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    letter-spacing: .04em;
}
.asca-egr-memoria__desc {
    font-size: 13px;
    color: var(--asca-text-muted);
    margin: 0;
}

.asca-egr-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.asca-egr-galeria__item {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 2px solid var(--asca-gray-mid);
    transition: border-color var(--transition), transform var(--transition);
}
.asca-egr-galeria__item:hover {
    border-color: var(--asca-navy);
    transform: scale(1.02);
}
.asca-egr-galeria__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.asca-egr-no-fotos {
    color: var(--asca-text-muted);
    font-size: 13px;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════
   Estado vacío / pendiente
═══════════════════════════════════════════════════════════════════ */
.asca-egr-pendiente {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 24px;
    text-align: center;
    color: var(--asca-text-muted);
    background: var(--asca-gray-light);
    border-radius: var(--radius-md);
    border: 1px dashed var(--asca-gray-border);
}
.asca-egr-pendiente i   { font-size: 40px; opacity: .45; }
.asca-egr-pendiente p   { font-size: 15px; max-width: 420px; margin: 0; }
.asca-egr-pendiente__text {
    font-size: 14px;
    color: var(--asca-text-muted);
    font-style: italic;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════════════════════════════ */
.asca-egr-lightbox__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.88);
    z-index: 9000;
}
.asca-egr-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9001;
    display: flex;
    align-items: center;
    justify-content: center;
}
.asca-egr-lightbox__img-wrap {
    max-width: calc(100vw - 120px);
    max-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.asca-egr-lightbox__img-wrap img {
    max-width: 100%;
    max-height: calc(100vh - 100px);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 40px rgba(0,0,0,.6);
    display: block;
}
.asca-egr-lightbox__close,
.asca-egr-lightbox__prev,
.asca-egr-lightbox__next {
    position: fixed;
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background .2s;
    z-index: 9002;
}
.asca-egr-lightbox__close:hover,
.asca-egr-lightbox__prev:hover,
.asca-egr-lightbox__next:hover {
    background: rgba(255,255,255,.25);
}
.asca-egr-lightbox__close { top: 16px; right: 16px; }
.asca-egr-lightbox__prev  { left: 12px;  top: 50%; transform: translateY(-50%); }
.asca-egr-lightbox__next  { right: 12px; top: 50%; transform: translateY(-50%); }
.asca-egr-lightbox__counter {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.75);
    font-size: 13px;
    font-family: var(--font-heading);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .asca-egr-tabs { position: static; }
    .asca-egr-tab  { font-size: 10px; padding: 12px 10px 10px; }
    .asca-egr-tab i { font-size: 16px; }
}

@media (max-width: 640px) {
    .asca-egr-wrap { padding: 0 16px 48px; }

    .asca-egr-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .asca-egr-tabs::-webkit-scrollbar { display: none; }
    .asca-egr-tab { flex: 0 0 auto; min-width: 80px; }

    .asca-egr-banner { min-height: 200px; }
    .asca-egr-banner__overlay { padding: 24px 20px; }

    .asca-egr-ig-card { padding: 32px 24px; }

    .asca-egr-actividades-grid {
        grid-template-columns: 1fr;
    }

    .asca-egr-galeria {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 8px;
    }

    .asca-egr-lightbox__img-wrap {
        max-width: calc(100vw - 60px);
    }
    .asca-egr-lightbox__prev { left: 4px; }
    .asca-egr-lightbox__next { right: 4px; }
}

.asca-contacto-band { background: linear-gradient(135deg, #0D3178 0%, #0A1D4A 100%); padding: 48px 0; margin-top: 48px; }
.asca-contacto-band__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.asca-contacto-band__title { font-family: 'Montserrat', sans-serif; color: #fff; font-size: 24px; font-weight: 800; margin: 0 0 24px; }
.asca-contacto-band__items { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.asca-contacto-band__item { display: flex; align-items: flex-start; gap: 12px; }
.asca-contacto-band__ic { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,0.12); color: #fff; font-size: 16px; }
.asca-contacto-band__item > div { display: flex; flex-direction: column; }
.asca-contacto-band__item strong { font-family: 'Montserrat', sans-serif; color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 2px; }
.asca-contacto-band__item span, .asca-contacto-band__item a { color: rgba(255,255,255,0.85); font-size: 14px; line-height: 1.5; }
.asca-contacto-band__item a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 575px) { .asca-contacto-band { padding: 36px 0; } .asca-contacto-band__inner { padding: 0 16px; } .asca-contacto-band__items { grid-template-columns: 1fr; } }

.asca-egr-layout { max-width: 1200px; margin: 0 auto; padding: 40px 0px 0; display: grid; grid-template-columns: 260px 1fr; gap: 36px; }
.asca-egr-sidebar { position: sticky; top: 90px; align-self: start; }
.asca-egr-nav ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--asca-gray-border, #e3e6ee); border-radius: 12px; overflow: hidden; }
.asca-egr-nav li { border-bottom: 1px solid var(--asca-gray-border, #e3e6ee); }
.asca-egr-nav li:last-child { border-bottom: 0; }
.asca-egr-nav a { display: block; padding: 13px 18px; color: #0D3178; text-decoration: none; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 14px; transition: background .18s ease; }
.asca-egr-nav a:hover { background: #eef2fb; }
.asca-egr-nav li.is-active a { background: #0D3178; color: #fff; }
.asca-egr-main { min-width: 0; padding-bottom: 24px; }
@media (max-width: 820px) {
    .asca-egr-layout { grid-template-columns: 1fr; gap: 20px; }
    .asca-egr-sidebar { position: static; }
    .asca-egr-nav ul { display: flex; flex-wrap: wrap; }
    .asca-egr-nav li { border-bottom: 0; border-right: 1px solid var(--asca-gray-border, #e3e6ee); }
}

.asca-egr-mem-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; margin-top: 8px; }
.asca-egr-mem-card { display: flex; flex-direction: column; border: 1px solid var(--asca-gray-border, #e3e6ee); border-radius: 12px; overflow: hidden; text-decoration: none; background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
.asca-egr-mem-card:hover { box-shadow: 0 12px 28px rgba(13,49,120,.14); transform: translateY(-3px); }
.asca-egr-mem-card__img { display: block; height: 150px; background-size: cover; background-position: center; background-color: #eef2fb; }
.asca-egr-mem-card__img--ph { display: flex; align-items: center; justify-content: center; color: #b8c2da; font-size: 34px; }
.asca-egr-mem-card__title { padding: 14px 16px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 15px; color: #0D3178; }