/* =========================================================
   ENLACES EXTERNOS - INDEX
   COLEGIO DE CONTADORES PÚBLICOS DE TUMBES
   ========================================================= */

.ccpt-enlaces {
    width: 100%;
    padding: 45px 20px;
    box-sizing: border-box;
    background: #ffffff;
}


/* CONTENEDOR */

.ccpt-enlaces-contenedor {
    width: min(1450px, 100%);
    min-height: 285px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 38% 62%;
    align-items: center;

    background: #ffffff;

    border-radius: 22px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.08);

    overflow: hidden;

    position: relative;
}


/* =========================================================
   PARTE IZQUIERDA
   ========================================================= */

.ccpt-enlaces-info {
    height: 100%;
    min-height: 285px;

    display: flex;
    align-items: center;

    padding: 35px 45px;

    box-sizing: border-box;

    position: relative;

    background: linear-gradient(
        135deg,
        #b40000 0%,
        #c90000 55%,
        #8f0000 100%
    );

    color: #ffffff;
}


/* CURVA DECORATIVA */

.ccpt-enlaces-info::after {
    content: "";

    position: absolute;

    right: -65px;
    top: -30px;

    width: 120px;
    height: 350px;

    border-radius: 50%;

    background: #ffffff;

    z-index: 1;
}


.ccpt-enlaces-info::before {
    content: "";

    position: absolute;

    right: -35px;
    top: -30px;

    width: 90px;
    height: 350px;

    border-radius: 50%;

    background: #0b2d55;

    z-index: 0;
}


/* ICONO */

.ccpt-enlaces-icono {
    width: 75px;
    height: 75px;

    min-width: 75px;

    margin-right: 25px;

    border-radius: 50%;

    background: #ffffff;

    color: #b40000;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 32px;

    position: relative;
    z-index: 3;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.15);
}


/* TEXTO */

.ccpt-enlaces-texto {
    position: relative;
    z-index: 3;
}


.ccpt-enlaces-etiqueta {
    display: block;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 1.2px;

    color: #ffffff;

    margin-bottom: 5px;
}


.ccpt-enlaces-texto h2 {
    margin: 0;

    font-size: 30px;
    line-height: 1.15;

    font-weight: 800;

    color: #ffffff;
}


.ccpt-enlaces-linea {
    width: 55px;
    height: 3px;

    margin: 12px 0;

    background: #ffffff;

    border-radius: 10px;
}


.ccpt-enlaces-texto p {
    max-width: 440px;

    margin: 0;

    font-size: 14px;
    line-height: 1.6;

    color: rgba(255,255,255,0.92);
}


/* =========================================================
   SLIDER
   ========================================================= */

.ccpt-enlaces-slider {
    height: 100%;
    min-height: 285px;

    position: relative;

    display: flex;
    align-items: center;

    padding: 30px 55px;

    box-sizing: border-box;

    background: #ffffff;
}


/* VENTANA */

.ccpt-enlaces-ventana {
    width: 100%;
    overflow: hidden;

    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        inset 0 0 0 1px rgba(0,0,0,0.04);
}


/* TRACK */

.ccpt-enlaces-track {
    display: flex;

    transition:
        transform 0.6s ease;

    will-change: transform;
}


/* ITEM */

.ccpt-enlace-item {
    flex: 0 0 100%;

    height: 210px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px 55px;

    box-sizing: border-box;

    text-decoration: none;

    background: #ffffff;
}


/* IMAGEN */

.ccpt-enlace-item img {
    display: block;

    max-width: 100%;
    max-height: 150px;

    width: auto;
    height: auto;

    object-fit: contain;

    transition:
        transform 0.3s ease;
}


.ccpt-enlace-item:hover img {
    transform: scale(1.04);
}


/* =========================================================
   FLECHAS
   ========================================================= */

.ccpt-enlace-prev,
.ccpt-enlace-next {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 42px;
    height: 42px;

    border: none;

    border-radius: 50%;

    background: #ffffff;

    color: #b40000;

    font-size: 17px;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 10;

    box-shadow:
        0 4px 15px rgba(0,0,0,0.12);

    transition:
        all 0.25s ease;
}


.ccpt-enlace-prev {
    left: 15px;
}


.ccpt-enlace-next {
    right: 15px;
}


.ccpt-enlace-prev:hover,
.ccpt-enlace-next:hover {
    background: #b40000;
    color: #ffffff;

    transform:
        translateY(-50%) scale(1.05);
}


/* =========================================================
   DOTS
   ========================================================= */

.ccpt-enlaces-dots {
    position: absolute;

    bottom: 12px;

    left: 50%;

    transform: translateX(-50%);

    display: flex;

    gap: 7px;

    z-index: 10;
}


.ccpt-enlaces-dot {
    width: 8px;
    height: 8px;

    padding: 0;

    border: none;

    border-radius: 50%;

    background: #d4d7dc;

    cursor: pointer;

    transition:
        all 0.25s ease;
}


.ccpt-enlaces-dot.active {
    width: 22px;

    border-radius: 10px;

    background: #b40000;
}


/* =========================================================
   PIE
   ========================================================= */

.ccpt-enlaces-pie {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 10px;

    margin-top: 20px;

    color: #0b2d55;

    font-size: 14px;
    font-weight: 600;
}


.ccpt-enlaces-pie i {
    color: #b40000;

    font-size: 17px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .ccpt-enlaces-contenedor {
        grid-template-columns: 1fr;

    }


    .ccpt-enlaces-info {
        min-height: 210px;

        padding: 30px;
    }


    .ccpt-enlaces-info::after,
    .ccpt-enlaces-info::before {
        display: none;
    }


    .ccpt-enlaces-slider {
        min-height: 260px;
    }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 600px) {

    .ccpt-enlaces {
        padding: 30px 12px;
    }


    .ccpt-enlaces-contenedor {
        border-radius: 16px;
    }


    .ccpt-enlaces-info {
        min-height: auto;

        padding: 25px 20px;

        display: block;

        text-align: center;
    }


    .ccpt-enlaces-icono {
        margin: 0 auto 15px;
    }


    .ccpt-enlaces-texto h2 {
        font-size: 25px;
    }


    .ccpt-enlaces-linea {
        margin: 10px auto;
    }


    .ccpt-enlaces-texto p {
        font-size: 13px;
    }


    .ccpt-enlaces-slider {
        min-height: 200px;

        padding: 20px 40px;
    }


    .ccpt-enlace-item {
        height: 160px;

        padding: 20px 35px;
    }


    .ccpt-enlace-item img {
        max-height: 105px;
    }


    .ccpt-enlace-prev,
    .ccpt-enlace-next {
        width: 34px;
        height: 34px;

        font-size: 14px;
    }


    .ccpt-enlace-prev {
        left: 5px;
    }


    .ccpt-enlace-next {
        right: 5px;
    }

}