﻿/* ==========================================================================
   Estilos de informes, carta del director y consejo de administración
   ========================================================================== */

/* --- Informes, cartas y EEFF --- *//* Layout de lectura vertical para informes, cartas y EEFF */
.doc-page {
    max-width: 820px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.carta-dg-page.doc-page {
    max-width: 1120px;
}

.doc-page .doc-section {
    margin-bottom: 48px;
}

.doc-page .doc-section + .doc-section {
    padding-top: 8px;
}

.doc-page .doc-lead {
    color: #3babf0;
    font-size: 17px;
    line-height: 1.65;
}

.doc-page p,
.doc-page li {
    text-align: justify;
    line-height: 1.7;
}

.doc-page .doc-figure {
    margin: 32px auto;
    display: block;
    text-align: center;
}

.doc-page .doc-figure img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* TamaÃ±os por tipo de imagen (no regla Ãºnica para todas) */
.doc-page .doc-figure--hero {
    max-width: 62%;
}

.doc-page .doc-figure--hero img {
    width: 100%;
}

.doc-page .doc-figure--half {
    max-width: 50%;
}

.doc-page .doc-figure--table {
    max-width: 88%;
}

.doc-page .doc-figure--table img {
    width: 80%;
}

.doc-page .doc-figure--third {
    max-width: 270px;
}

.doc-page .doc-figure--third img {
    max-height: 400px;
    object-fit: contain;
}

.doc-page .doc-figure--full {
    max-width: 100%;
}

@media (max-width: 767px) {
    .doc-page .doc-figure--hero,
    .doc-page .doc-figure--half,
    .doc-page .doc-figure--table {
        max-width: 100%;
    }

    .doc-page .doc-figure--third {
        max-width: 225px;
    }

    .doc-page .doc-figure--third img {
        max-height: 335px;
    }
}

.doc-page .doc-signature {
    margin-top: 48px;
    text-align: center;
}

.doc-page .doc-signature__role {
    color: #006bd9;
    margin-bottom: 0;
}

.doc-page .doc-signature__name {
    color: #3babf0;
}

.doc-notas-table {
    background-color: #f1f2f4;
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin: 28px auto 32px;
    max-width: 92%;
    padding: 26px 34px;
    position: relative;
}

.doc-notas-table__col {
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
}

.doc-notas-table__num-col {
    width: 48px;
}

.doc-notas-table__col:first-child {
    border-right: 1px solid #3babf0;
    padding-right: 34px;
}

.doc-notas-table__col:last-child {
    padding-left: 34px;
}

.doc-notas-table__col tr + tr .doc-notas-table__num,
.doc-notas-table__col tr + tr .doc-notas-table__text {
    padding-top: 10px;
}

.doc-notas-table__num {
    color: #3babf0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    padding-right: 10px;
    text-align: right;
    vertical-align: top;
    white-space: nowrap;
}

.doc-notas-table__num-val {
    padding-right: 4px;
}

.doc-notas-table__num-sep {
    padding-right: 2px;
}

.doc-notas-table__text {
    color: #2f2f2f;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
    padding-left: 8px;
    text-align: left;
    vertical-align: top;
}

.doc-notas-table__col td {
    border: 0;
    padding: 0;
}

@media (max-width: 767px) {
    .doc-notas-table {
        gap: 18px 0;
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 22px 0;
    }

    .doc-notas-table__col:first-child {
        border-right: 0;
        padding-right: 0;
    }

    .doc-notas-table__col:last-child {
        padding-left: 0;
    }
}

/* Revelado al hacer scroll */
.doc-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.doc-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .doc-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* EEFF — tablas e imágenes financieras */
.eeff-page {
    max-width: 1040px;
    padding-bottom: 64px;
    scroll-behavior: smooth;
}

.eeff-page .doc-reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

.eeff-page .eeff-anchor {
    scroll-margin-top: 200px;
}

/* Barra de navegación interna EEFF */
.eeff-nav {
    position: sticky;
    top: 80px;
    z-index: 900;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 40px;
    padding: 14px 0 20px;
    background: #f4f4f5;
}

.eeff-nav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #3babf0;
    background: #fff;
    border: 1px solid #3babf0;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.eeff-nav__btn:hover,
.eeff-nav__btn:focus {
    color: #fff;
    background: #3babf0;
    border-color: #3babf0;
    text-decoration: none;
}

.eeff-nav__btn.is-active {
    color: #fff;
    background: #3babf0;
    border-color: #3babf0;
}

@media (max-width: 767px) {
    .eeff-nav {
        top: 64px;
    }

    .eeff-page .eeff-anchor {
        scroll-margin-top: 170px;
    }

    .eeff-nav__btn {
        flex: 1 1 calc(50% - 10px);
        font-size: 12px;
        padding: 8px 12px;
    }

    .eeff-page .eeff-photo,
    .eeff-page .doc-table-figure--photo {
        max-width: 100%;
    }

    .eeff-page .eeff-photo img,
    .eeff-page .doc-table-figure--photo img {
        max-height: 280px;
    }
}

.eeff-page .doc-section {
    margin-bottom: 40px;
    padding-bottom: 36px;
}

.eeff-page .doc-section:not(:last-child) {
    border-bottom: 1px solid #d8dce3;
}

.eeff-page .doc-section:empty {
    display: none;
}

.eeff-page .eeff-statement {
    padding-top: 8px;
}

.eeff-page .eeff-footnote {
    color: #5a6270;
    font-size: 14px;
    font-style: italic;
    margin-top: 20px;
    text-align: center;
}

.eeff-page .doc-table-block {
    margin: 56px 0;
    padding: 24px 0;
    border-top: 1px solid #d8dce3;
}

.eeff-page .doc-table-block:first-of-type {
    border-top: none;
    padding-top: 0;
}

.eeff-page .doc-table-figure {
    margin: 28px 0 16px;
    display: block;
}

.eeff-page .doc-table-figure img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    image-rendering: auto;
}

.eeff-page .row.doc-section .col-12 + .col-12 {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.eeff-page figure.d-flex,
.eeff-page figure.d-flex.w-80,
.eeff-page figure.d-flex.w-60 {
    display: block !important;
    width: 100% !important;
    max-width: 100%;
    margin: 28px 0;
}

.eeff-page figure.d-flex img,
.eeff-page figure.d-flex.w-80 img,
.eeff-page figure.d-flex.w-60 img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.eeff-page .ml-20 {
    margin-left: 20px !important;
    max-width: calc(100% - 20px);
}

.eeff-page .ml-40 {
    margin-left: 40px !important;
    max-width: calc(100% - 40px);
}

.eeff-page .ml-60 {
    margin-left: 60px !important;
    max-width: calc(100% - 60px);
}

.eeff-page .ml-80 {
    margin-left: 80px !important;
    max-width: calc(100% - 80px);
}

.eeff-page .blue { color: #006bd9; }
.eeff-page .l-blue { color: #3babf0 !important; }
.eeff-page .grey { color: #3b3b3b !important; }
.eeff-page .subtitle { color: #006bd9; font-size: 18px; font-weight: 700; line-height: 22px; margin-top: 28px; }
.eeff-page .italic { font-style: italic; }
.eeff-page .eeff-signature { text-align: center; }
.eeff-page .eeff-signature .blue { margin-top: 32px; }

.eeff-page .tabla {
    border: none;
    color: #3b3b3b;
    font-size: 16px;
    margin-top: 20px;
    text-align: justify;
    width: 100%;
}

.eeff-page .tabla td { padding: 25px 15px; }

.eeff-page .tabla tr td:first-child {
    background-color: #006bd9;
    color: white;
    font-weight: 700;
    text-align: center;
    vertical-align: top;
    width: 30%;
}

.eeff-page .tabla tr td:not(:last-child) { border-bottom: 1px white solid; }
.eeff-page .tabla tr:nth-child(even) { background-color: #f4f4f5; }
.eeff-page .tabla tr:nth-child(odd) { background-color: #fdfdfd; }

/* Fotos ilustrativas EEFF — imagen completa, tamaño contenido */
.eeff-page .eeff-photo,
.eeff-page .doc-table-figure--photo {
    border-radius: 12px;
    margin: 28px auto;
    max-width: 720px;
    overflow: hidden;
}

.eeff-page .eeff-photo img,
.eeff-page .doc-table-figure--photo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 360px;
    margin: 0 auto;
}

.eeff-table-wrap {
    margin: 20px 0 0;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}

.eeff-table-group {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 20px 0 0;
}

.eeff-table-group .eeff-table-wrap,
.eeff-table-group .eeff-table-stack {
    margin: 0;
}

.eeff-table-group .eeff-photo {
    margin: 0 auto;
}

.eeff-table-stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.eeff-table-stack .eeff-table-wrap {
    margin: 0;
}

.eeff-table {
    border-collapse: collapse;
    border-top: 3px solid #006bd9;
    border-bottom: 2px solid #006bd9;
    font-size: 12px;
    line-height: 1.35;
    table-layout: fixed;
    width: 100%;
    min-width: 0;
}

.eeff-table th,
.eeff-table td {
    padding: 5px 6px;
    vertical-align: top;
}

.eeff-table thead th,
.eeff-table__head th {
    background-color: #eef5fc;
    border-bottom: 2px solid #006bd9;
    color: #006bd9;
    font-size: 11px;
    font-weight: 700;
    hyphens: auto;
    line-height: 1.25;
    overflow-wrap: break-word;
    position: relative;
    text-align: center;
    vertical-align: top;
    white-space: normal;
    word-wrap: break-word;
}

.eeff-table__head th:first-child,
.eeff-table thead th:first-child {
    max-width: 28%;
    width: auto;
}

.eeff-table__head:has(> th:first-child:nth-last-child(5)) > th:nth-child(2) {
    text-align: center;
}

.eeff-table--capital .eeff-table__head th {
    line-height: 1.3;
}

.eeff-table--capital .eeff-table__head th:first-child {
    max-width: none;
    min-width: 120px;
}

.eeff-table--capital {
    min-width: 1180px;
    table-layout: auto;
    width: max-content;
}

.eeff-table--capital .eeff-table__head th:not(:first-child) {
    font-size: 11px;
    min-width: 72px;
    max-width: none;
    padding: 6px 4px;
    text-align: center;
}

.eeff-table--capital tbody td:not(:first-child) {
    font-size: 11px;
    padding: 4px 3px;
    white-space: nowrap;
}

.eeff-table-wrap:has(.eeff-table--capital) {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.eeff-table--wide thead th:not(:first-child):not([colspan]) {
    max-width: 88px;
    min-width: 52px;
}

.eeff-table--wide td {
    overflow-wrap: break-word;
    white-space: normal;
    word-wrap: break-word;
}

.eeff-page .eeff-table td:first-child p {
    text-align: left;
}

.eeff-page .eeff-table td:not(:first-child) p {
    text-align: center;
}

.eeff-page .eeff-table td p {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    margin: 0 0 6px;
}

.eeff-page .eeff-table td p:last-child {
    margin-bottom: 0;
}

.eeff-table--valuacion .eeff-table__head th:nth-child(n+2),
.eeff-table--valuacion tbody td:nth-child(n+2) {
    text-align: center;
}

.eeff-table--valuacion tbody td:nth-child(n+2) {
    color: #333;
    font-weight: 400;
}

.eeff-table--asociadas .eeff-table__head th:first-child {
    max-width: 24%;
    width: 24%;
}

.eeff-table--asociadas .eeff-table__head th:nth-child(5),
.eeff-table--asociadas tbody td:nth-child(5) {
    max-width: 12%;
    text-align: center;
}

.eeff-table--asociadas .eeff-table__head th:nth-child(6),
.eeff-table--asociadas tbody td:nth-child(6) {
    max-width: 28%;
    text-align: center;
}

.eeff-table--asociadas tbody td:nth-child(n+2):nth-child(-n+4) {
    white-space: nowrap;
}

.eeff-table--segment thead th {
    font-size: 10px;
    padding: 5px 3px;
}

.eeff-table--segment thead th:not(:first-child):not([colspan]) {
    max-width: 72px;
    min-width: 48px;
}

.eeff-table--segment tbody td:not(:first-child) {
    font-size: 11px;
    white-space: nowrap;
}

.eeff-table tbody tr {
    background-color: #fff;
}

.eeff-table tbody tr:nth-child(even) {
    background-color: #eef1f5;
}

.eeff-table tbody tr td {
    border-bottom: 1px solid #e8edf3;
}

.eeff-table td {
    background-color: transparent;
    color: #333;
    overflow-wrap: break-word;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
}

.eeff-table td:first-child {
    color: #444;
    font-weight: 500;
    hyphens: auto;
    text-align: left;
}

.eeff-table:has(.eeff-table__head:first-child > th:first-child:nth-last-child(5)) tbody td:nth-child(2) {
    color: #666;
    font-variant-numeric: normal;
}

.eeff-table tbody td:not(:first-child) {
    font-variant-numeric: tabular-nums;
}

.eeff-table--valuacion tbody td:nth-child(n+2),
.eeff-table--asociadas tbody td:nth-child(5),
.eeff-table--asociadas tbody td:nth-child(6) {
    font-variant-numeric: normal;
}

.eeff-table:not(.eeff-table--wide):not(.eeff-table--capital):not(.eeff-table--segment) tbody td:nth-child(n+2) {
    white-space: nowrap;
}

.eeff-table__row--bold td:not(:first-child) {
    font-weight: 700;
}

.eeff-table__section td {
    background-color: transparent;
    border-bottom: 1px solid #d8e3f0;
    color: #3babf0;
    font-size: 13px;
    font-style: italic;
    font-weight: 700;
    padding-top: 14px;
    text-align: left;
}

.eeff-table__total td {
    background-color: transparent;
    border-top: 1px solid #d8e3f0;
    font-weight: 700;
    padding-top: 8px;
}

.eeff-table__total--grand td {
    border-top: 3px double #006bd9;
    font-weight: 700;
    padding-top: 10px;
}

.eeff-table tbody .eeff-table__col-current {
    background-color: transparent;
}

.eeff-table__head .eeff-table__col-current {
    background-color: #eef5fc;
}

.eeff-table__tab {
    background-color: #006bd9;
    border-radius: 6px 6px 0 0;
    display: block;
    height: 8px;
    left: 50%;
    position: absolute;
    top: -8px;
    transform: translateX(-50%);
    width: 42px;
}

.eeff-table--2col .eeff-table__head th:first-child {
    width: 65%;
}

.eeff-table--2col .eeff-table__head th:last-child {
    width: 35%;
}

@media (max-width: 767px) {
    .eeff-table {
        font-size: 11px;
    }

    .eeff-table th,
    .eeff-table td {
        padding: 4px 6px;
    }

    .eeff-table--capital {
        min-width: 1100px;
    }

    .eeff-table--wide,
    .eeff-table--segment {
        min-width: 640px;
        table-layout: auto;
        width: max-content;
    }

    .eeff-table-wrap:has(.eeff-table--wide),
    .eeff-table-wrap:has(.eeff-table--segment) {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Informe del comitÃ© */
.doc-page .doc-subtitle {
    color: #006bd9;
    font-weight: 700;
    font-size: 18px;
    margin-top: 28px;
}

.doc-page .italic {
    font-style: italic;
}


/* --- Carta del Director General --- */
/* Carta del Director General â€” carta de lectura + grÃ¡ficas complementarias */
.carta-dg-page {
    max-width: 1120px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.carta-dg-page > .row,
.carta-dg-page .doc-section > .row {
    margin-left: 0;
    margin-right: 0;
}

.carta-dg-page > .row > .col-12,
.carta-dg-page .doc-section > .row > .col-12 {
    padding-left: 0;
    padding-right: 0;
}

.carta-dg-page .carta-dg__header {
    margin-bottom: 36px;
}

.carta-dg-page .carta-dg__header h4 {
    font-weight: 600;
    margin-top: 12px;
    line-height: 1.5;
}

.carta-dg-page .carta-dg__block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 42%);
    gap: 28px 44px;
    align-items: center;
    margin-bottom: 52px;
}

.carta-dg-page .carta-dg__text p {
    text-align: justify;
    line-height: 1.72;
    margin-bottom: 16px;
}

.carta-dg-page .carta-dg__text .subtitle {
    font-weight: 700;
    margin: 0 0 14px;
    color: #122670;
}

.carta-dg-page .carta-dg__graphics {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-self: center;
    height: 100%;
}

.carta-dg-page .carta-dg__figure {
    margin: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(18, 38, 112, 0.08);
}

.carta-dg-page .carta-dg__figure img {
    display: block;
    width: 100%;
    height: auto;
}

.carta-dg-page .carta-dg__figure--banner {
    aspect-ratio: 1858 / 485;
}

.carta-dg-page .carta-dg__figure--banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Banner dentro de la columna de texto (debajo del tÃ­tulo del segmento) */
.carta-dg-page .carta-dg__inline-banner {
    margin: 14px 0 18px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(18, 38, 112, 0.08);
    aspect-ratio: 1858 / 485;
}

.carta-dg-page .carta-dg__inline-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.carta-dg-page .carta-dg__figure--photo img {
    border-radius: 6px;
}

/* â€”â€”â€” GrÃ¡ficas de barras (HTML) â€”â€”â€” */
.dg-chart-panel {
    border-radius: 8px;
    padding: 18px 16px 14px;
    background: #e8eaed;
    box-shadow: 0 2px 14px rgba(18, 38, 112, 0.1);
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.dg-chart-panel.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.dg-chart-panel--dark {
    background: linear-gradient(160deg, #edf3f9 0%, #e2ecf6 100%);
    color: #122670;
    padding: 20px 16px 16px;
    border: 1px solid rgba(58, 171, 240, 0.18);
}

.dg-chart-panel__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 14px;
}

.dg-chart-panel__grid .dg-chart:nth-child(5) {
    grid-column: 1;
}

.dg-chart-panel__grid--3 {
    grid-template-columns: 1fr 1fr;
}

.dg-chart-panel__grid--3 .dg-chart:last-child {
    grid-column: 1 / -1;
    max-width: 88%;
    margin: 0 auto;
    width: 100%;
}

.dg-chart-panel__grid--4 {
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
}

.dg-chart-panel__note {
    margin: 10px 0 0;
    font-size: 11px;
    color: #5a6478;
    text-align: right;
    line-height: 1.4;
}

.dg-chart-panel--dark .dg-chart__unit {
    color: #5a6478;
}

.dg-chart-panel--dark .dg-chart__track {
    background: #f8fafc;
}

.dg-chart-panel--dark .dg-chart__bar:not(.dg-chart__bar--current) {
    background: #2a5588;
}

.dg-chart {
    min-width: 0;
}

.dg-chart__title {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    color: #122670;
}

.dg-chart__marker {
    flex-shrink: 0;
    width: 8px;
    height: 16px;
    margin-top: 1px;
    background: #3babf0;
    border-radius: 0 8px 8px 0;
}

.dg-chart-panel--dark .dg-chart__marker {
    background: #3babf0;
}

.dg-chart__unit {
    margin: 0 0 8px 14px;
    font-size: 11px;
    color: #5a6478;
    line-height: 1.3;
}

.dg-chart__rows {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dg-chart__row {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 6px;
}

.dg-chart__year {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a2e;
}

.dg-chart__track {
    height: 14px;
    background: #f4f5f7;
    border-radius: 999px;
    overflow: hidden;
}

.dg-chart__bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: #2a5588;
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.dg-chart__bar--current {
    background: linear-gradient(90deg, #2e9de8 0%, #3babf0 100%);
}

.dg-chart__value {
    min-width: 52px;
    font-size: 11px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: right;
    white-space: nowrap;
}

.dg-chart__value--current {
    color: #1a8fd4;
}

.dg-chart-panel--dark .dg-chart__value--current {
    color: #1a8fd4;
}

/* AnimaciÃ³n: texto al hacer scroll */
.carta-dg-page .carta-dg__text.doc-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.carta-dg-page .carta-dg__text.doc-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.carta-dg-page .carta-dg__figure.doc-reveal {
    opacity: 0;
    transform: translateX(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.carta-dg-page .carta-dg__figure.doc-reveal.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.carta-dg-page .carta-dg__signature {
    margin-top: 36px;
}

.carta-dg-page .carta-dg__signature__name {
    color: #3babf0;
    margin-top: 48px;
    margin-bottom: 0;
}

.carta-dg-page .carta-dg__signature__role {
    color: #006bd9;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .carta-dg-page .carta-dg__block {
        grid-template-columns: 1fr;
        gap: 24px;
        align-items: start;
    }

    .carta-dg-page .carta-dg__graphics {
        order: -1;
        align-self: auto;
        height: auto;
        justify-content: flex-start;
    }

    .dg-chart-panel {
        transform: translateY(24px);
    }

    .dg-chart-panel.is-visible {
        transform: translateY(0);
    }

    .dg-chart-panel__grid--3 .dg-chart:last-child {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .dg-chart-panel__grid,
    .dg-chart-panel__grid--4 {
        grid-template-columns: 1fr;
    }

    .dg-chart-panel__grid--3 .dg-chart:last-child {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .carta-dg-page .carta-dg__text.doc-reveal,
    .carta-dg-page .carta-dg__figure.doc-reveal,
    .dg-chart-panel {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .dg-chart__bar {
        transition: none;
    }

    .dg-chart-panel.is-animated .dg-chart__bar {
        width: var(--bar-pct, 100%) !important;
    }
}


/* --- Opinión del Consejo --- */
.opinion-consejo-page {
    max-width: none;
    width: 100%;
    padding-bottom: 0;
}

.opinion-consejo-page__split {
    display: grid;
    grid-template-columns: minmax(0, 48%) minmax(0, 52%);
    align-items: stretch;
}

.opinion-consejo-page__media {
    margin: 0;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.opinion-consejo-page__photo {
    display: block;
    height: 100%;
    inset: 0;
    object-fit: cover;
    object-position: center;
    position: absolute;
    width: 100%;
}

.opinion-consejo-page__content {
    background: #edeeef;
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: flex-start;
    padding: 40px 48px 40px 40px;
}

.opinion-consejo-page__title {
    font-weight: 700;
    margin: 0;
}

.opinion-consejo-page__subtitle {
    color: #333;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.5;
    margin: 12px 0 0;
    text-transform: uppercase;
}

.opinion-consejo-page__body p {
    color: #333;
    line-height: 1.7;
    margin-bottom: 16px;
    text-align: left;
}

.opinion-consejo-page__body p:last-child {
    margin-bottom: 0;
}

.opinion-consejo-page__signature {
    margin-top: auto;
    padding-top: 32px;
    text-align: center;
}

.opinion-consejo-page__signature p {
    color: #3babf0;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.opinion-consejo-page__signature .doc-signature__role {
    margin-bottom: 4px;
}

@media (max-width: 991px) {
    .opinion-consejo-page__split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .opinion-consejo-page__media {
        aspect-ratio: 16 / 9;
        position: relative;
    }

    .opinion-consejo-page__photo {
        height: 100%;
        inset: 0;
        position: absolute;
        width: 100%;
    }

    .opinion-consejo-page__content {
        padding: 32px 24px 36px;
    }
}


/* --- Consejo de Administración --- */
.consejero-page {
    overflow: visible;
    padding-bottom: 2rem;
}

.consejero-intro {
    margin-bottom: 1.5rem;
}

.consejero-hero__figure {
    margin: 0;
}

.consejero-hero__figure img {
    border-radius: 10px;
    display: block;
    height: auto;
    width: 100%;
}

.consejero-section-title {
    color: #006bd9;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1.25rem;
}

.consejero-section-title--spaced {
    margin-top: 2.5rem;
}

.consejero-row + .consejero-row,
.consejero-row + .consejero-row--with-photo,
.consejero-row + .consejero-row--rail-split,
.consejero-row--with-photo + .consejero-section-title,
.consejero-row--rail-split + .consejero-section-title,
.consejero-section-title + .consejero-row,
.consejero-section-title + .consejero-scene-photo {
    margin-top: 1.75rem;
}

.consejero-row + .consejero-scene-photo,
.consejero-row + .consejero-row--rail-split {
    margin-top: 0.75rem;
}

.consejero-scene-rail {
    display: block;
    overflow: hidden;
}

.consejero-scene-rail__img {
    border-radius: 12px;
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
}

.consejero-scene-rail + .consejero-row {
    clear: both;
    margin-top: 0;
    overflow: visible;
    position: relative;
}

.consejero-scene-photo + .consejero-row {
    clear: both;
    margin-top: 1.25rem;
    overflow: visible;
    position: relative;
}

.consejero-grid,
.consejero-row {
    overflow: visible;
}

.consejero-grid {
    align-items: start;
}

.consejero-grid > [class*="col-"] {
    margin-bottom: 0;
    padding-bottom: 4px;
}

/* Fila con foto lateral: col-3 imagen / col-9 tarjetas */
.consejero-row--with-photo {
    align-items: flex-start;
    overflow: visible;
}

/* Botones izquierda / foto derecha (fija al desplegar tarjetas) */
.consejero-row--rail-split {
    align-items: flex-start;
    overflow: visible;
}

.consejero-row--rail-split__cards {
    overflow: visible;
}

.consejero-row--rail-split__cards > .consejero-grid + .consejero-grid {
    margin-top: 1.5rem;
}

.consejero-row--rail-split__cards .consejero-grid > [class*="col-"],
.consejero-board-grid__propietarios .consejero-grid > [class*="col-"],
.consejero-board-grid__suplentes .consejero-grid > [class*="col-"] {
    margin-bottom: 10px;
}

.consejero-row--rail-split__cards .consejero-card__header,
.consejero-board-grid .consejero-card__header {
    align-items: center;
    min-height: 56px;
    padding: 8px 12px;
}

.consejero-row--rail-split__cards .consejero-card__name,
.consejero-board-grid .consejero-card__name {
    font-size: 13.12px;
    line-height: 1.2;
}

.consejero-row--rail-split__media {
    align-self: flex-start;
    flex-shrink: 0;
}

.consejero-row--board .consejero-section-title--spaced,
.consejero-board-grid__suplentes .consejero-section-title--spaced {
    margin-top: 2rem;
}

.consejero-suplentes-cards > .consejero-grid + .consejero-grid {
    margin-top: 1.5rem;
}

.consejero-board-grid {
    display: grid;
    gap: 1.5rem 0;
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 2rem;
}

.consejero-board-grid__propietarios > .consejero-grid + .consejero-grid {
    margin-top: 1.5rem;
}

.consejero-board-grid__media {
    margin-left: auto;
    max-width: 90%;
    width: 90%;
}

.consejero-board-grid__media .consejero-scene-rail {
    aspect-ratio: 5 / 4;
    border-radius: 12px;
    margin: 0;
    overflow: hidden;
    width: 100%;
}

.consejero-board-grid__media .consejero-scene-rail__img {
    border-radius: 12px;
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    width: 100%;
}

.consejero-board-grid__media .consejero-wide-photo {
    line-height: 0;
    margin: 0;
    width: 100%;
}

.consejero-board-grid__media .consejero-wide-photo img {
    aspect-ratio: 5 / 4;
    border-radius: 12px;
    display: block;
    height: auto;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.consejero-board-grid__media--bottom {
    margin-bottom: 1.25rem;
}

@media (min-width: 992px) {
    .consejero-board-grid {
        column-gap: 30px;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: auto auto;
        row-gap: 2rem;
    }

    .consejero-board-grid__propietarios {
        grid-column: 1;
        grid-row: 1;
    }

    .consejero-board-grid__media--top {
        align-self: start;
        grid-column: 2;
        grid-row: 1;
    }

    .consejero-board-grid__suplentes {
        grid-column: 1;
        grid-row: 2;
    }

    .consejero-board-grid__media--bottom {
        align-self: start;
        grid-column: 2;
        grid-row: 2;
    }

    .consejero-board-grid__suplentes .consejero-section-title--spaced {
        margin-top: 0;
    }
}

.consejero-media-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-left: auto;
    max-width: 90%;
    width: 90%;
}

.consejero-media-stack--sticky {
    position: sticky;
    top: 96px;
    z-index: 2;
}

.consejero-media-stack .consejero-scene-rail {
    aspect-ratio: 5 / 4;
    border-radius: 12px;
    margin: 0;
    overflow: hidden;
    width: 100%;
}

.consejero-media-stack .consejero-scene-rail__img {
    border-radius: 12px;
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    width: 100%;
}

.consejero-media-stack .consejero-wide-photo {
    line-height: 0;
    margin: 0;
    width: 100%;
}

.consejero-media-stack .consejero-wide-photo img {
    aspect-ratio: 5 / 4;
    border-radius: 12px;
    display: block;
    height: auto;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.consejero-scene-rail--sticky,
.consejero-wide-photo--sticky {
    position: sticky;
    top: 96px;
    z-index: 2;
}

.consejero-row--with-photo__cards {
    overflow: visible;
}

.consejero-row--with-photo__cards > .consejero-grid + .consejero-grid {
    margin-top: 1.5rem;
}

.consejero-row--with-photo__media {
    align-self: flex-start;
    flex-shrink: 0;
}

.consejero-row--with-photo__cards > .consejero-grid {
    margin-left: -15px;
    margin-right: -15px;
}

.consejero-stack .consejero-card + .consejero-card {
    margin-top: 1.5rem;
}

.consejero-card {
    width: 100%;
}

.consejero-card__header {
    align-items: center;
    background: #0d2867;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(13, 40, 103, 0.25);
    color: #fff;
    cursor: pointer;
    display: flex;
    gap: 10px;
    min-height: 52px;
    padding: 12px 14px;
    text-align: left;
    transition: background 0.2s ease, border-radius 0.2s ease;
    width: 100%;
}

.consejero-card__header:hover {
    background: #0a1f52;
}

.consejero-card__header.is-open {
    background: #0d2867;
    border-radius: 12px 12px 0 0;
    box-shadow: none;
}

.consejero-card__chevron {
    background: #3babf0;
    border-radius: 50%;
    flex-shrink: 0;
    height: 22px;
    position: relative;
    transition: transform 0.25s ease;
    width: 22px;
}

.consejero-card__chevron::after {
    border-right: 2px solid #fff;
    border-top: 2px solid #fff;
    content: "";
    height: 7px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-55%, -50%) rotate(45deg);
    width: 7px;
}

.consejero-card__header.is-open .consejero-card__chevron {
    transform: rotate(90deg);
}

.consejero-card__name {
    font-size: 13.12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
    text-transform: uppercase;
}

.consejero-card__body {
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 14px rgba(13, 40, 103, 0.18);
    overflow: hidden;
}

.consejero-card__body[hidden] {
    display: none !important;
}

.consejero-card__puesto {
    background: #eef0f3;
    margin: 10px 10px 8px;
    padding: 10px 14px 14px;
}

.consejero-card__puesto-label {
    background: #3babf0;
    border-radius: 0 8px 8px 0;
    color: #fff;
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    margin: -10px 0 12px -14px;
    padding: 5px 14px 5px 10px;
    width: fit-content;
}

.consejero-card__puesto-content p {
    color: #333;
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.consejero-card__puesto-content ul {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}

.consejero-card__puesto-content ul:last-child {
    margin-bottom: 0;
}

.consejero-card__puesto-content li {
    color: #555;
    font-size: 0.78rem;
    line-height: 1.4;
    padding-left: 16px;
    position: relative;
}

.consejero-card__puesto-content li::before {
    background-color: #3babf0;
    border-radius: 50%;
    content: '';
    display: block;
    height: 6px;
    left: 0;
    position: absolute;
    top: 0.45em;
    width: 6px;
}

.consejero-card__meta {
    padding: 0 10px 12px;
}

.consejero-card__meta-row {
    display: flex;
    gap: 0;
    margin-bottom: 6px;
    min-width: 0;
}

.consejero-card__meta-row:last-child {
    margin-bottom: 0;
}

.consejero-card__meta-label {
    align-items: center;
    background: #006bd9;
    border-radius: 10px 0 0 10px;
    color: #fff;
    display: flex;
    flex: 1;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
    min-width: 0;
    overflow-wrap: break-word;
    padding: 10px 12px;
}

.consejero-card__meta-label--light {
    background: #3babf0;
}

.consejero-card__meta-value {
    align-items: center;
    background: #eef0f3;
    border-radius: 0 10px 10px 0;
    color: #444;
    display: flex;
    flex: 1;
    font-size: 0.78rem;
    min-width: 0;
    overflow-wrap: break-word;
    padding: 10px 12px;
}

/* Foto del tren: solo paisaje (archivo recortado sin recuadros del PNG) */
.consejero-scene-photo {
    border-radius: 12px;
    line-height: 0;
    margin: 0;
    overflow: hidden;
}

.consejero-scene-photo img {
    aspect-ratio: 1896 / 786;
    display: block;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    width: 100%;
}

/* Foto lateral (grúa): recorte equilibrado, grúa visible */
.consejero-side-photo {
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    line-height: 0;
    margin: 0;
    overflow: hidden;
}

.consejero-row--with-photo__media .consejero-side-photo {
    aspect-ratio: 3 / 4;
    display: block;
    max-width: 200px;
    position: relative;
    width: 100%;
}

.consejero-row--with-photo__media .consejero-side-photo img {
    aspect-ratio: unset;
    display: block;
    height: 100%;
    inset: 0;
    max-height: none;
    object-fit: cover;
    object-position: 52% 40%;
    position: absolute;
    width: 100%;
}

.consejero-side-photo img {
    aspect-ratio: 3 / 4;
    display: block;
    height: auto;
    max-height: 240px;
    object-fit: cover;
    object-position: center 25%;
    width: 100%;
}

/* Foto suplentes: tamaño fijo, no cambia al desplegar tarjetas */
.consejero-suplentes-row {
    align-items: flex-start;
}

.consejero-suplentes-row__cards > .consejero-grid + .consejero-grid {
    margin-top: 1.5rem;
}

.consejero-suplentes-row__media {
    align-self: flex-start;
    flex-shrink: 0;
}

.consejero-suplentes-row__media .consejero-wide-photo {
    line-height: 0;
    margin: 0;
}

.consejero-suplentes-row__media .consejero-wide-photo img {
    aspect-ratio: 1875 / 441;
    border-radius: 10px;
    display: block;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    width: 100%;
}

.consejero-wide-photo {
    line-height: 0;
    margin: 0;
}

.consejero-wide-photo img {
    border-radius: 10px;
    display: block;
    height: auto;
    width: 100%;
}

.consejero-cargo-title {
    color: #006bd9;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.consejero-cargos-row {
    justify-content: space-evenly;
    margin-bottom: 1.75rem;
    margin-top: 1.5rem;
}

.consejero-notas {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: 2rem;
}

.consejero-footer-photo {
    line-height: 0;
    margin: 1.5rem 0 0;
}

.consejero-footer-photo img {
    border-radius: 10px;
    display: block;
    height: auto;
    width: 100%;
}

@media (max-width: 991px) {
    .consejero-section-title,
    .consejero-cargo-title {
        font-size: 1.4rem;
    }

    .consejero-row--with-photo__media {
        margin-bottom: 1.5rem;
    }

    .consejero-row--with-photo__media .consejero-side-photo {
        aspect-ratio: 16 / 10;
        max-width: 280px;
    }

    .consejero-row--with-photo__media .consejero-side-photo img {
        object-position: 50% 38%;
    }

    .consejero-suplentes-row__cards,
    .consejero-suplentes-row__media {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .consejero-suplentes-row__media {
        margin-top: 1.5rem;
    }

    .consejero-side-photo img {
        aspect-ratio: 16 / 9;
        max-height: none;
    }

    .consejero-row--with-photo__media .consejero-side-photo img {
        aspect-ratio: unset;
        object-fit: cover;
    }

    .consejero-row--rail-split__media {
        margin-top: 1.5rem;
    }

    .consejero-scene-rail--sticky,
    .consejero-wide-photo--sticky,
    .consejero-media-stack--sticky {
        position: static;
        top: auto;
    }

    .consejero-board-grid__media {
        margin-left: 0;
        max-width: 100%;
        width: 100%;
    }
}
