/* =========================================================
   Gobierno Corporativo
   ========================================================= */

.title-header {
    left: 50px;
    top: 80px;
    width: min-content;
}

.title-header h1 {
    color: #fff;
    text-shadow: 1px 1px #77777A;
    text-transform: uppercase;
    font-weight: 200;
    font-size: 200%;
    margin: 0.5rem 0rem 0.5rem;
	text-shadow: 0 2px 4px #000;
}

.title-header h1 span {
	font-weight: 400;
}

.gc-page {
    --gc-red: #d7282f;
    --gc-red-hover: #a9232a;
    --gc-section-background: #ececec;
    --gc-button-background: #858589;
    --gc-text: #202124;
    --gc-white: #ffffff;

    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    color: var(--gc-text);
}

.gc-page,
.gc-page *,
.gc-page *::before,
.gc-page *::after {
    box-sizing: border-box;
}

.gc-container {
    width: calc(100% - 32px);
    max-width: 1140px;
    margin-right: auto;
    margin-left: auto;
}

/* =========================================================
   Banner superior
   ========================================================= */

.gc-hero {
    padding-top: 64px;
    padding-bottom: 52px;
}

.gc-hero__clip {
    width: 100%;
    /*overflow: hidden;*/
    border-radius: 22px;
    background-color: #1f2c36;
}

.gc-hero__clip img {
    display: block;
    max-width: 100%;
}

/* Elimina márgenes que pudiera agregar el template part */
.gc-hero__clip > :first-child {
    margin-top: 0;
}

.gc-hero__clip > :last-child {
    margin-bottom: 0;
}

/* =========================================================
   Sección del presidente
   ========================================================= */

.gc-president {
    width: 100%;
    padding: 50px 0 54px;
    background-color: var(--gc-section-background);
}

.gc-president__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    align-items: center;
    gap: 64px;

    width: calc(100% - 32px);
    max-width: 1080px;
    margin-right: auto;
    margin-left: auto;
}

.gc-president__content {
    min-width: 0;
}

.gc-president__title {
    margin: 0 0 24px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.gc-president__content p {
    margin: 0 0 21px;
    font-size: 16px;
    line-height: 1.36;
}

.gc-president__content p:last-child {
    margin-bottom: 0;
}

.gc-president__figure {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 0 20px;
    justify-self: end;
}

.gc-president__image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border-radius: 17px;
}

.gc-president__caption {
    position: absolute;
    right: 20px;
    bottom: -20px;
    left: 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 55px;
    padding: 8px 12px;

    color: var(--gc-white);
    text-align: center;
    background-color: var(--gc-red);
    border-radius: 11px;
}

.gc-president__caption strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--gc-white);
}

.gc-president__caption span {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.2;
}

/* =========================================================
   Título del presidente (Añadir debajo de gc-president)
   ========================================================= */

.gc-president__header {
    width: calc(100% - 32px);
    max-width: 1080px;
    margin: 0 auto 40px auto;
    text-align: center;
}

.gc-president__title {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--gc-red);
}

.gc-president__subtitle {
    display: block;
    margin-top: 6px;
    font-size: 26px;
    font-weight: 600;
    color: #666666;
}

/* =========================================================
   Contenido inferior
   ========================================================= */

.gc-main {
    padding-top: 48px;
    padding-bottom: 28px;
}

/* Barra roja */

.gc-group-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 86px;
    padding: 14px 24px;

    color: var(--gc-white);
    text-align: center;
    text-decoration: none;
    background-color: var(--gc-red);
    border-radius: 15px;

    transition:
        background-color 180ms ease,
        transform 180ms ease;
}

.gc-group-link:hover,
.gc-group-link:focus {
    color: var(--gc-white);
    text-decoration: none;
    background-color: var(--gc-red-hover);
}

.gc-group-link:hover {
    transform: translateY(-1px);
}

.gc-group-link__title {
    display: block;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
}

.gc-group-link__url {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.2;
}

/* =========================================================
   Tarjetas
   ========================================================= */

.gc-card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px 24px;

    width: 100%;
    max-width: 1016px;
    margin: 66px auto 0;
}

.gc-card {
    position: relative;
    isolation: isolate;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 1 calc((100% - 72px) / 4);
    height: 158px;
    min-width: 0;
    overflow: hidden;

    color: var(--gc-white);
    text-decoration: none;
    border-radius: 14px;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.gc-card::before {
    position: absolute;
    z-index: 1;
    inset: 0;

    content: "";
    background-color: rgba(186, 43, 49, 0.73);

    transition: background-color 180ms ease;
}

.gc-card__image {
    position: absolute;
    z-index: 0;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 260ms ease;
}

.gc-card__title {
    position: relative;
    z-index: 2;

    display: block;
    max-width: 92%;
    padding: 16px;

    color: var(--gc-white);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.14;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.gc-card:hover,
.gc-card:focus {
    color: var(--gc-white);
    text-decoration: none;
}

.gc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.15);
}

.gc-card:hover::before {
    background-color: rgba(186, 43, 49, 0.66);
}

.gc-card:hover .gc-card__image {
    transform: scale(1.045);
}

/* =========================================================
   Botones inferiores
   ========================================================= */

.gc-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;

    margin-top: 42px;
}

.gc-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 1 235px;
    min-height: 57px;
    padding: 12px 24px;

    color: var(--gc-white);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;

    background-color: var(--gc-button-background);
    border-radius: 13px;

    transition:
        background-color 180ms ease,
        transform 180ms ease;
}

.gc-action:hover,
.gc-action:focus {
    color: var(--gc-white);
    text-decoration: none;
    background-color: #727277;
}

.gc-action:hover {
    transform: translateY(-1px);
}

/* =========================================================
   Accesibilidad
   ========================================================= */

.gc-group-link:focus-visible,
.gc-card:focus-visible,
.gc-action:focus-visible {
    outline: 3px solid #111111;
    outline-offset: 4px;
}

@media (min-width: 768px) {
    .gc-president__content p {
        text-align: justify;
    }
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 991.98px) {
    .gc-hero {
        padding-top: 36px;
        padding-bottom: 38px;
    }

    .gc-president {
        padding-top: 42px;
        padding-bottom: 52px;
    }

    .gc-president__layout {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 720px;
    }

    .gc-president__figure {
        width: min(100%, 370px);
        max-width: none;
        justify-self: center;
    }

    .gc-card-grid {
        max-width: 720px;
        gap: 22px;
        margin-top: 50px;
    }

    .gc-card {
        flex-basis: calc((100% - 22px) / 2);
        height: 180px;
    }
}

/* =========================================================
   Móvil
   ========================================================= */

@media (max-width: 575.98px) {
    .gc-container,
    .gc-president__layout {
        width: calc(100% - 28px);
    }

    .gc-hero {
        padding-top: 24px;
        padding-bottom: 30px;
    }

    .gc-hero__clip {
        border-radius: 16px;
    }

    .gc-president {
        padding-top: 34px;
        padding-bottom: 46px;
    }

    .gc-president__layout {
        gap: 34px;
    }

    .gc-president__title {
        margin-bottom: 20px;
        font-size: 16px;
        line-height: 1.35;
    }

    .gc-president__content p {
        margin-bottom: 18px;
        font-size: 15.5px;
        line-height: 1.5;
        text-align: left;
    }

    .gc-president__caption {
        right: 12px;
        left: 12px;
    }

    .gc-main {
        padding-top: 32px;
    }

    .gc-group-link {
        min-height: 82px;
        padding: 14px 18px;
        border-radius: 13px;
    }

    .gc-group-link__title {
        font-size: 19px;
    }

    .gc-group-link__url {
        font-size: 12.5px;
    }

    .gc-card-grid {
        gap: 18px;
        margin-top: 38px;
    }

    .gc-card {
        flex-basis: 100%;
        width: 100%;
        max-width: 380px;
        height: 190px;
    }

    .gc-card__title {
        font-size: 20px;
    }

    .gc-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-top: 30px;
    }

    .gc-action {
        flex-basis: auto;
        width: 100%;
        min-height: 55px;
    }
}

/* =========================================================
   Ajustes Móvil (Añadir dentro de @media max-width: 575.98px)
   ========================================================= */

@media (max-width: 575.98px) {
    .gc-president__header {
        margin-bottom: 28px;
    }
    
    .gc-president__title {
        font-size: 30px;
    }
    
    .gc-president__subtitle {
        font-size: 20px;
    }
}