/* ==============================> ARCHIVO PROYECTOS */

.ap-titulo-archivo {
    font-size: 36px;
    font-weight: 700;
    color: var(--e-global-color-primary);
    margin: 0 0 40px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(-16px);
    animation: ap-entrada-titulo 0.45s ease forwards;
}

.ap-titulo-archivo span {
    color: var(--e-global-color-primary);
}

@keyframes ap-entrada-titulo {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* -> Tabs */

.ap-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 48px;
    padding: 0;
    border: none;
    background: none;
    opacity: 0;
    animation: ap-entrada-titulo 0.45s ease 0.1s forwards;
}

.ap-tab {
    display: inline-block;
    padding: 9px 22px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #555;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.22s ease, border-color 0.22s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.ap-tab:hover {
    color: var(--e-global-color-primary);
}

.ap-tab.ap-tab-activo {
    color: var(--e-global-color-primary);
    border-bottom-color: var(--e-global-color-primary);
}


/* -> Grid de cards */

.ap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    transition: opacity 0.22s ease;
}

.ap-grid.ap-grid-salida {
    opacity: 0;
    pointer-events: none;
}

.ap-sin-resultados {
    grid-column: 1 / -1;
    font-size: 16px;
    color: #888;
    padding: 40px 0;
    text-align: center;
}


/* -> Card */

.ap-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    background: #f0f0f0;
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        box-shadow 0.3s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.ap-card.ap-card-visible {
    opacity: 1;
    transform: translateY(0);
}

.ap-card:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
}

.ap-card:hover .ap-card-imagen img {
    transform: scale(1.05);
}

.ap-card:hover .ap-card-info {
    opacity: 1;
    transform: translateY(0);
}


/* -> Imagen de card */

.ap-card-imagen {
    position: relative;
    width: 100%;
    padding-bottom: 66%;
    overflow: hidden;
}

.ap-card-imagen img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}


/* -> Info de card */

.ap-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
    opacity: 0.92;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ap-card-titulo {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    letter-spacing: 0.01em;
}


/* -> Loader */

.ap-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, height 0.2s ease;
}

.ap-loader.ap-loader-visible {
    height: 60px;
    opacity: 1;
}

.ap-loader span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--e-global-color-primary);
    animation: ap-pulso 0.9s ease-in-out infinite;
}

.ap-loader span:nth-child(2) { animation-delay: 0.15s; }
.ap-loader span:nth-child(3) { animation-delay: 0.30s; }

@keyframes ap-pulso {
    0%, 100% { transform: scale(0.6); opacity: 0.4; }
    50%       { transform: scale(1);   opacity: 1; }
}


/* -> Responsive 768px */

@media (max-width: 768px) {

    .ap-titulo-archivo {
        font-size: 26px;
        margin-bottom: 28px;
    }

    .ap-tabs {
        gap: 4px;
        margin-bottom: 32px;
    }

    .ap-tab {
        font-size: 11px;
        padding: 8px 14px;
    }

    .ap-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ap-card-imagen {
        padding-bottom: 72%;
    }

    .ap-card-info {
        opacity: 1;
        transform: translateY(0);
        padding: 16px 18px;
    }

    .ap-card-titulo {
        font-size: 15px;
    }
}