@charset "utf-8";

/* ==================================================
   LINKS DE INTERES - ACTIWEB 2.0
   DRTC HUANCAVELICA
================================================== */

.ac-links-interes {
    width: 100%;
    padding: 55px 0;
    overflow: hidden;
}

/* =========================================
   CABECERA
========================================= */

.ac-links-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.ac-links-subtitle {
    display: block;
    color: #08377F;
    font-size: 0.80rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.ac-links-heading h2 {
    color: #17345d;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

/* =========================================
   CONTROLES
========================================= */

.ac-links-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ac-links-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #dce3ec;
    border-radius: 50%;

    background: #fff;
    color: #08377F;

    font-size: 32px;
    line-height: 1;
    padding: 0;

    cursor: pointer;
    transition: all .3s ease;
}

.ac-links-btn:hover:not(:disabled) {
    background: #08377F;
    color: #fff;
    border-color: #08377F;
}

.ac-links-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* =========================================
   CARRUSEL
========================================= */

.ac-links-viewport {
    width: 100%;
    overflow: hidden;
}

.ac-links-track {
    display: flex;
    width: 100%;
    transition: transform .55s ease;
    will-change: transform;
}

/* Cada página ocupa el 100% */

.ac-links-page {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 16px;
}

/* =========================================
   FILAS
   SIEMPRE DOS FILAS POR PAGINA
========================================= */

.ac-links-row {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));

    gap: 15px;
}

/* =========================================
   ITEMS
========================================= */

/* CONTENEDOR */
.ac-links-item {
    position: relative;
    display: block;
    width: 100%;
    height: 105px;
    overflow: hidden;

    background: transparent;
    border: none;
    border-radius: 8px;
    box-shadow: none;

    text-decoration: none;
}

/* IMAGEN */
.ac-links-item img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    padding: 0;

    transition: transform .4s ease;
}

/* =========================================
   EFECTO HOVER
========================================= */

.ac-links-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px;

    background: rgba(8, 55, 127, .92);

    opacity: 0;
    transition: opacity .3s ease;
}

.ac-links-title {
    color: #fff;

    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;

    text-align: center;

    transform: translateY(10px);
    transition: transform .3s ease;
}

.ac-links-item:hover .ac-links-overlay,
.ac-links-item:focus-visible .ac-links-overlay {
    opacity: 1;
}

.ac-links-item:hover .ac-links-title,
.ac-links-item:focus-visible .ac-links-title {
    transform: translateY(0);
}

.ac-links-item:hover img {
    transform: scale(1.06);
}

/* =========================================
   TABLET
   3 COLUMNAS X 2 FILAS
========================================= */

@media (max-width: 991.98px) {

    .ac-links-interes {
        padding: 40px 0;
    }

    .ac-links-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .ac-links-item {
        height: 100px;
    }

}

/* =========================================
   CELULARES
   2 COLUMNAS X 2 FILAS
========================================= */

@media (max-width: 575.98px) {

    .ac-links-interes {
        padding: 30px 0;
    }

    .ac-links-header {
        margin-bottom: 20px;
    }

    .ac-links-heading h2 {
        font-size: 23px;
    }

    .ac-links-subtitle {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .ac-links-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ac-links-page {
        gap: 10px;
    }

    .ac-links-item {
        height: 85px;
    }

    .ac-links-title {
        font-size: 11px;
    }

    .ac-links-btn {
        width: 36px;
        height: 36px;
        font-size: 28px;
    }

}

/* =========================================
   DISPOSITIVOS TACTILES
========================================= */

@media (hover: none) {

    .ac-links-item:hover .ac-links-overlay {
        opacity: 0;
    }

    .ac-links-item:active .ac-links-overlay,
    .ac-links-item:focus-visible .ac-links-overlay {
        opacity: 1;
    }

    .ac-links-item:active .ac-links-title,
    .ac-links-item:focus-visible .ac-links-title {
        transform: translateY(0);
    }

}

/* =========================================
   ACCESIBILIDAD
========================================= */

@media (prefers-reduced-motion: reduce) {

    .ac-links-track,
    .ac-links-item img,
    .ac-links-overlay,
    .ac-links-title {
        transition: none;
    }

}
