/* ===================================================== */
/* MENU ACTIVO                                           */
/* ===================================================== */

.productos {
    text-decoration: underline !important;
    color: var(--fid-primary) !important;
    font-weight: bold;
}

.productos i {
    display: inline-block;
    transform: rotate(90deg);
}

/* ===================================================== */
/* HERO                                                  */
/* ===================================================== */

.hero-apis {
    background-image: url('../../img_new/banners_productos/banner_apis2.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 50vh;
}

.hero-content-apis {
    width: 70%;
    padding-left: 5vw;
    height: 100%;
}

.hero-content-apis h2,
.hero-content-apis span {
    color: var(--fid-primary);
}

.hero-content-apis span {
    width: 90%;
}

/* ===================================================== */
/* HEADER SECCIÓN APIS                                   */
/* ===================================================== */

.nuestras-apis {
    background-color: var(--fid-medio);
    color: white;
    width: 55%;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    padding-left: 6vw;
}

/* ===================================================== */
/* APIS SECTION                                          */
/* ===================================================== */

.apis-section {
    margin-top: 5vh;
    margin-bottom: 8vh;
    margin-left: 5vw;
    margin-right: 5vw;
}

.apis-section .card-api {
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

/* Overlay general */
.card-api::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Contenido arriba del overlay */
.card-api > * {
    position: relative;
    z-index: 2;
}

/* ===================================================== */
/* BOTÓN HOVER                                           */
/* ===================================================== */

.card-api .btn-ver-mas {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.card-api:hover .btn-ver-mas {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.card-api a{
    width: 50%;
}

.btn-ver-mas {
    background-color: var(--fid-primary);
    color: white;
    border-radius: 24px;
    font-weight: 600;
    border: none;
    width: 100%;
}

.btn-ver-mas:hover {
    background-color: var(--fid-dark);
    color: white;
}

/* ===================================================== */
/* BACKGROUNDS POR API                                   */
/* ===================================================== */

.validacion {
    background-image: url('../../img_new/banners_apis/api_validacion.jpg');
    background-size: cover;
    background-position: 100% 40%;
}

.validacion::before {
    background: rgba(255,255,255,0.9);
}

.fidecheck-api {
    background-image: url('../../img_new/banners_apis/api_fidecheck.png');
    background-repeat: no-repeat;
    background-size: 50% auto;
    background-position: 130% center;
}

.fidecheck-api::before {
    background: rgba(255,255,255,0.7);
}

.informes {
    background-image: url('../../img_new/banners_apis/api_informes.png');
    background-size: cover;
    background-position: 80% 35%;
}

.informes::before {
    background: rgba(255,255,255,0.8);
}

.control {
    background-image: url('../../img_new/banners_apis/api_control.jpg');
    background-size: cover;
    background-position: 100% 50%;
}

.control::before {
    background: rgba(255,255,255,0.7);
}

/* ===================================================== */
/* TECNOLOGÍA E INFRA                                    */
/* ===================================================== */

.tec-inf-section {
    margin-top: 8vh !important;
}

.tec-inf-section h4,
.tec-inf-section .subtitle {
    color: var(--fid-dark);
}

.tec-inf-section .subtitle {
    font-size: 1.15rem;
}

.tec-card {
    border-bottom: 1px solid var(--neutral-200);
    height: 15%;
}

.tec-card .img {
    width: 15%;
}

.tec-card-content {
    width: 85%;
}

.tec-card-content h5 {
    color: var(--fid-primary);
}

.tec-card-content span {
    color: var(--fid-dark);
}

/* ===================================================== */
/* SCROLL OFFSET                                         */
/* ===================================================== */

#informe-comercial,
#fidecheck,
#validacion,
#control {
    scroll-margin-top: 10vh;
}

/* ===================================================== */
/* ================= TABLET ≤ 992px ==================== */
/* ===================================================== */

@media (max-width: 992px) {

    .hero-apis {
        height: auto;
        padding: 60px 0;
    }

    .hero-content-apis {
        width: 90%;
    }

    .nuestras-apis {
        width: 80%;
    }

    .fidecheck-api {
        background-size: 60% auto;
        background-position: 120% center;
    }

    .tec-card {
        height: auto;
        padding-bottom: 20px;
    }
}

/* ===================================================== */
/* ================= MOBILE ≤ 768px ==================== */
/* ===================================================== */

@media (max-width: 768px) {

    .hero-content-apis {
        width: 100%;
        padding: 0 5vw;
    }

    .hero-content-apis h2 {
        font-size: 22px;
    }

    .hero-content-apis span {
        font-size: 14px;
        width: 100%;
    }

    .nuestras-apis {
        width: 100%;
        padding-left: 5vw;
        border-radius: 0;
    }

    .card-api .btn-ver-mas {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .fidecheck-api,
    .validacion,
    .informes,
    .control {
        background-position: center;
        background-size: cover;
    }

    .tec-inf-section {
        margin: 5vh 5vw;
    }

    .tec-card {
        flex-direction: column;
        height: auto;
    }

    .tec-card .img,
    .tec-card-content {
        width: 100%;
    }
    .btn-ver-mas {
        width: 100%;
    }
    .card-api a{
        width: 100%;
    }
}

/* ===================================================== */
/* ================= MOBILE SMALL ≤ 480px ============== */
/* ===================================================== */

@media (max-width: 480px) {

    .hero-content-apis h2 {
        font-size: 20px;
    }

    .tec-inf-section .subtitle {
        font-size: 14px;
    }
}
