/**
 * Portal institucional — presentación formal (documento / sitio gremial).
 * Scoped a .sipos-portal--inst para no afectar beneficios ni panel afiliado.
 */

.sipos-portal--inst {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 32px;
}

body.portal-page:has(.sipos-portal--inst) {
    background: #f7fafc;
}

/* —— Contenido —— */
.inst-main {
    margin: 0 16px;
}

.inst-header {
    text-align: center;
    padding: 40px 28px 36px;
    margin: 24px 0 32px;
    background: #fff;
    border: 1px solid #d5dde3;
    box-shadow: 0 1px 0 rgba(6, 52, 84, 0.06);
}

.inst-org {
    margin: 0 0 16px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5a6c78;
}

.inst-title {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.1rem);
    font-weight: 700;
    color: #063454;
    letter-spacing: -0.02em;
}

.inst-subtitle {
    margin: 0 0 28px;
    font-size: 1.05rem;
    color: #3d4f5c;
    font-weight: 400;
}

.inst-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.inst-btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 2px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.inst-btn--primary {
    background: #063454;
    color: #fff;
    border: 1px solid #063454;
}

.inst-btn--primary:hover {
    background: #0a4a6e;
    color: #fff;
}

.inst-btn--outline {
    background: #fff;
    color: #063454;
    border: 1px solid #063454;
}

.inst-btn--outline:hover {
    background: #f4f7f9;
}

/* Bloques de sección */
.inst-block {
    margin-bottom: 28px;
    background: #fff;
    border: 1px solid rgba(210, 224, 232, 0.9);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(21, 104, 146, 0.06);
    overflow: hidden;
    transition: transform 0.35s var(--portal-ease, ease), box-shadow 0.35s ease;
}

.inst-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(21, 104, 146, 0.1);
}

.inst-block-title {
    margin: 0;
    padding: 20px 28px 8px;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: #156892;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: transparent;
    border-bottom: none;
}

.inst-block-body {
    padding: 8px 28px 28px;
}

.inst-prose {
    font-size: 1rem;
    line-height: 1.75;
    color: #1a2a34;
    text-align: justify;
    hyphens: auto;
}

.inst-prose p {
    margin: 0 0 1em;
}

.inst-prose p:last-child {
    margin-bottom: 0;
}

.inst-prose a {
    color: #0d5a7a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.inst-prose--center {
    text-align: center;
    hyphens: none;
}

.inst-intro {
    margin: 0 0 20px;
    font-size: 0.95rem;
    color: #4a5d6a;
}

.inst-mission {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e4e9ed;
}

.inst-mission-label,
.inst-values-heading {
    margin: 0 0 14px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5a6c78;
}

.inst-values {
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inst-values-row {
    display: block;
    padding: 16px 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #f5fafc 0%, #eef6f9 100%);
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.inst-values-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(21, 104, 146, 0.08);
}

.inst-values-row:last-child {
    border-bottom: none;
}

.inst-values dt {
    margin: 0 0 6px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    color: #156892;
}

.inst-values dd {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.65;
    color: #2a3d48;
    text-align: left;
    hyphens: none;
}

.inst-closing {
    margin: 0;
    font-size: 0.98rem;
    font-style: italic;
    color: #4a5d6a;
}

.inst-benefit-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inst-benefit-list li {
    border: none;
}

.inst-benefit-list li:last-child {
    border-bottom: none;
}

.inst-benefit-list a {
    display: block;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: #156892;
    text-decoration: none;
    text-align: left;
    border-radius: 12px;
    background: #f3f8fb;
    transition: background 0.2s, transform 0.25s ease, box-shadow 0.25s ease;
}

.inst-benefit-list a:hover {
    background: #e7f3f8;
    text-decoration: none;
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(21, 104, 146, 0.08);
}

.inst-block-cta {
    margin: 0;
    text-align: center;
}

.sipos-portal--inst .portal-footer {
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: #5a6c78;
    padding: 20px 16px;
    border-top: 1px solid #d5dde3;
    margin-top: 8px;
    background: transparent;
}

@media (max-width: 640px) {
    .inst-block-body {
        padding: 22px 18px 26px;
    }

    .inst-header {
        padding: 32px 18px 28px;
    }

    .inst-values-row {
        text-align: left;
    }

    .inst-values dd {
        text-align: left;
    }

    .inst-block-title {
        padding: 18px 18px 6px;
    }

    .inst-block-body {
        padding: 6px 18px 22px;
    }

    .inst-header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .inst-btn {
        text-align: center;
    }
}
