@charset "UTF-8";

/* =====================================================
   ACTIWEB 2.0 - SECCIÓN FUNCIONES DRTC HUANCAVELICA
   Convención BEM
===================================================== */

.ac-funciones {
    width: 100%;
    padding: 20px 0 35px;
    font-family: inherit;
}

/* ENCABEZADO */

.ac-funciones__encabezado {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    padding: 0 5px;
}

.ac-funciones__encabezado-icono {
    width: 65px;
    min-width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #07519a;
    font-size: 38px;
}

.ac-funciones__encabezado-contenido {
    flex: 1;
}

.ac-funciones__titulo {
    position: relative;
    margin: 0 0 8px;
    padding-left: 18px;
    color: #073c7c;
    font-size: 27px;
    font-weight: 750;
    line-height: 1.2;
}

.ac-funciones__titulo::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 4px;
    height: 28px;
    background: #0875ce;
    border-radius: 4px;
}

.ac-funciones__descripcion {
    margin: 0;
    color: #4e6075;
    font-size: 14px;
    line-height: 1.6;
    max-width: 950px;
}

/* GRID */

.ac-funciones__grid {
    align-items: stretch;
}

/* TARJETAS */

.ac-funciones__card {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 230px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e3edf7;
    border-radius: 20px;
    box-shadow: 0 5px 13px rgba(12, 64, 111, 0.10);
    transition: transform .25s ease, box-shadow .25s ease;
}

.ac-funciones__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 9px 20px rgba(12, 64, 111, 0.15);
}

/* CONTENIDO */

.ac-funciones__contenido {
    position: relative;
    z-index: 2;
    width: 72%;
    padding: 17px 12px 17px 17px;
}

.ac-funciones__card-cabecera {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 58px;
    margin-bottom: 10px;
}

.ac-funciones__icono {
    width: 55px;
    min-width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, #0789dd, #064582);
    border-radius: 14px;
    font-size: 27px;
    box-shadow: 0 3px 7px rgba(0, 75, 145, .16);
}

.ac-funciones__card-cabecera h3 {
    margin: 0;
    color: #073c7c;
    font-size: 19px;
    font-weight: 750;
    line-height: 1.2;
}

/* LISTA */

.ac-funciones__lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ac-funciones__lista li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #253448;
    font-size: 12.5px;
    line-height: 1.4;
}

.ac-funciones__check {
    display: inline-flex;
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    color: #fff;
    background: #07549e;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
}

/* IMAGEN LATERAL */

.ac-funciones__imagen {
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    overflow: hidden;
    clip-path: polygon(23% 0, 100% 0, 100% 100%, 0 100%);
    background: #e4f2fc;
}

.ac-funciones__imagen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .4s ease;
}

.ac-funciones__card:hover .ac-funciones__imagen img {
    transform: scale(1.06);
}

/* TARJETAS CON CONTENIDO EXTENSO */

.ac-funciones__card:has(.ac-funciones__lista li:nth-child(4)),
.ac-funciones__card:has(.ac-funciones__lista li:nth-child(5)) {
    min-height: 290px;
}

/* TABLET */

@media (max-width: 1199.98px) {

    .ac-funciones__contenido {
        width: 74%;
        padding: 15px 10px 15px 14px;
    }

    .ac-funciones__card-cabecera h3 {
        font-size: 17px;
    }

    .ac-funciones__lista li {
        font-size: 12px;
    }

    .ac-funciones__icono {
        width: 48px;
        min-width: 48px;
        height: 48px;
        font-size: 23px;
    }
}

/* MÓVILES */

@media (max-width: 767.98px) {

    .ac-funciones {
        padding: 15px 0 25px;
    }

    .ac-funciones__encabezado {
        gap: 12px;
        margin-bottom: 20px;
    }

    .ac-funciones__encabezado-icono {
        width: 45px;
        min-width: 45px;
        height: 45px;
        font-size: 30px;
    }

    .ac-funciones__titulo {
        font-size: 22px;
    }

    .ac-funciones__descripcion {
        font-size: 13px;
    }

    .ac-funciones__card,
    .ac-funciones__card:has(.ac-funciones__lista li:nth-child(4)),
    .ac-funciones__card:has(.ac-funciones__lista li:nth-child(5)) {
        min-height: 0;
        padding-bottom: 105px;
        border-radius: 15px;
    }

    .ac-funciones__contenido {
        width: 100%;
        padding: 15px;
    }

    .ac-funciones__card-cabecera {
        min-height: 48px;
        margin-bottom: 12px;
    }

    .ac-funciones__icono {
        width: 47px;
        min-width: 47px;
        height: 47px;
        font-size: 23px;
    }

    .ac-funciones__card-cabecera h3 {
        font-size: 17px;
    }

    .ac-funciones__lista li {
        font-size: 13px;
        line-height: 1.45;
    }

    .ac-funciones__imagen {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 95px;
        clip-path: none;
    }

    .ac-funciones__imagen img {
        object-position: center 45%;
    }
}

/* MÓVILES PEQUEÑOS */

@media (max-width: 400px) {

    .ac-funciones__titulo {
        font-size: 20px;
    }

    .ac-funciones__card-cabecera h3 {
        font-size: 16px;
    }

    .ac-funciones__lista li {
        font-size: 12.5px;
    }
}
