@charset "utf-8";
/* =========================================================
   DIRECTIVOS - LISTADO DE ÓRGANOS
========================================================= */

.chy-direc-list {
    padding: 20px 0 60px;
}


/* =========================================================
   GRID
========================================================= */

.chy-direc-list__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}


/* =========================================================
   TARJETA
========================================================= */

.chy-direc-card {
    position: relative;

    display: flex;
    align-items: flex-start;

    min-width: 0;
    min-height: 190px;

    padding: 14px 22px;

    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.96),
        rgba(250, 248, 240, 0.98)
    );

    border: 1px solid rgba(40, 83, 45, 0.12);
    border-radius: 16px;

    box-shadow:
        0 8px 22px rgba(32, 64, 37, 0.08);

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.chy-direc-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 14px 30px rgba(32, 64, 37, 0.13);
}


/* =========================================================
   ICONO CIRCULAR
========================================================= */

.chy-direc-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    /* Tamaño fijo para evitar deformación */
    flex: 0 0 82px;

    width: 82px;
    min-width: 82px;
    max-width: 82px;

    height: 82px;
    min-height: 82px;
    max-height: 82px;

    aspect-ratio: 1 / 1;

    margin-right: 20px;

    box-sizing: border-box;

    border: 2px solid #d8dfcf;
    border-radius: 50%;

    background: linear-gradient(
        145deg,
        #19542b,
        #0e3b1d
    );

    color: #ffffff;

    font-size: 34px;
    line-height: 1;

    box-shadow:
        inset 0 0 0 4px rgba(255, 255, 255, 0.08),
        0 5px 12px rgba(20, 75, 37, 0.12);
}


/* Icono Bootstrap */

.chy-direc-card__icon i {
    display: block;

    line-height: 1;

    color: #ffffff;
}


/* =========================================================
   CONTENIDO
========================================================= */

.chy-direc-card__content {
    flex: 1 1 auto;

    min-width: 0;

    padding-left: 18px;

    border-left: 1px solid #d9d7c8;
}


/* =========================================================
   TÍTULO
========================================================= */

.chy-direc-card__title {
    margin: 0 0 10px;

    color: #285338;

    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;

    letter-spacing: 0.3px;
}


/* =========================================================
   TABLA
========================================================= */

.chy-direc-card__table {
    width: 100%;
}


/* =========================================================
   CABECERA Y FILAS
========================================================= */

.chy-direc-card__header,
.chy-direc-card__row {
    display: grid;

    grid-template-columns: 38% 62%;

    width: 100%;
}


/* =========================================================
   CABECERA DE LA TABLA
========================================================= */

.chy-direc-card__header {
    padding-bottom: 7px;

    color: #456447;

    font-size: 11px;
    font-weight: 800;

    border-bottom: 1px solid #aeb899;
}


.chy-direc-card__header div {
    padding: 0 8px;
}


.chy-direc-card__header div:last-child {
    border-left: 1px solid #d8d7ca;
}


/* =========================================================
   FILAS
========================================================= */

.chy-direc-card__row {
    color: #404944;

    font-size: 11px;
    line-height: 1.35;
}


.chy-direc-card__row div {
    padding: 4px 8px;
}


.chy-direc-card__row div:first-child {
    color: #3d473f;

    font-weight: 500;
}


.chy-direc-card__row div:last-child {
    border-left: 1px solid #e0ded3;
}


/* =========================================================
   DECORACIÓN INFERIOR
========================================================= */

.chy-direc-card__decor {
    position: absolute;

    bottom: 7px;

    color: #5d7d32;

    font-size: 28px;
    line-height: 1;

    opacity: 0.9;

    pointer-events: none;
}


.chy-direc-card__decor i {
    display: block;

    line-height: 1;
}


.chy-direc-card__decor--left {
    left: 12px;

    transform: rotate(-20deg);
}


.chy-direc-card__decor--right {
    right: 12px;

    transform: scaleX(-1) rotate(-20deg);
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 991px) {

    .chy-direc-list {
        padding: 15px 0 50px;
    }


    .chy-direc-list__grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }


    .chy-direc-card {
        min-height: auto;

        padding: 18px 22px;
    }

}


/* =========================================================
   RESPONSIVE - MÓVIL
========================================================= */

@media (max-width: 576px) {

    .chy-direc-list {
        padding: 10px 0 40px;
    }


    .chy-direc-list__grid {
        gap: 14px;
    }


    .chy-direc-card {
        flex-direction: column;

        padding: 20px 18px;

        border-radius: 14px;
    }


    /* ICONO */

    .chy-direc-card__icon {
        flex: 0 0 70px;

        width: 70px;
        min-width: 70px;
        max-width: 70px;

        height: 70px;
        min-height: 70px;
        max-height: 70px;

        aspect-ratio: 1 / 1;

        margin: 0 0 16px;

        font-size: 28px;
    }


    /* CONTENIDO */

    .chy-direc-card__content {
        width: 100%;

        padding-left: 0;

        border-left: none;
    }


    /* TÍTULO */

    .chy-direc-card__title {
        font-size: 16px;

        line-height: 1.3;
    }


    /* TABLA */

    .chy-direc-card__header,
    .chy-direc-card__row {
        grid-template-columns: 40% 60%;
    }


    .chy-direc-card__header {
        font-size: 10px;
    }


    .chy-direc-card__row {
        font-size: 10px;
    }


    .chy-direc-card__header div,
    .chy-direc-card__row div {
        padding-left: 5px;
        padding-right: 5px;
    }


    /* DECORACIÓN */

    .chy-direc-card__decor {
        display: none;
    }

}


/* =========================================================
   RESPONSIVE - MÓVILES PEQUEÑOS
========================================================= */

@media (max-width: 380px) {

    .chy-direc-card {
        padding: 16px 12px;
    }


    .chy-direc-card__header,
    .chy-direc-card__row {
        grid-template-columns: 42% 58%;
    }


    .chy-direc-card__title {
        font-size: 15px;
    }


    .chy-direc-card__header,
    .chy-direc-card__row {
        font-size: 9px;
    }

}