/* ==============================> ARCHIVO DE PROYECTOS */

/* -> Variables globales reutilizables (consistencia visual) */
:root {
    --aas-radius: 8px;
    --aas-radius-sm: 6px;
}

/* -> Grid de Categorías (2 columnas) */
.adp-grid-categorias {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

/* -> Card de Categoría */
.adp-card-categoria {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--aas-radius);
    transition: box-shadow 0.3s ease, -webkit-transform 0.3s ease;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.adp-card-categoria:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* -> Imagen del Card */
.adp-card-imagen {
    flex: 0 0 38%;
    height: 240px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* -> Sin imagen */
.adp-card-imagen.adp-sin-imagen {
    background-color: #e5e5e5;
}

/* -> Contenido del Card */
.adp-card-contenido {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding: 24px 28px;
}

/* -> Título de Categoría */
.adp-card-titulo {
    margin: 0 0 16px;
    padding: 0;
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* -> Lista de Posts */
.adp-lista-posts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.adp-item-post {
    margin: 0 !important;
}

/* -> Enlace de cada Post */
.adp-enlace-post {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #333333;
    font-size: 14px;
    line-height: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.adp-enlace-post:hover {
    color: var(--e-global-color-primary);
}

/* -> Ícono Checkmark */
.adp-enlace-post .huge-checkmark-square-03 {
    flex-shrink: 0;
    color: #16a34a;
    font-size: 16px;
}


/* -> Botón Ver más */
.adp-ver-mas {
    display: inline-block;
    margin-top: 16px;
    color: var(--e-global-color-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    text-transform: uppercase;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.adp-ver-mas:hover {
    opacity: 1;
    text-decoration: underline;
}

/* -> Grid de Proyectos (fallback sin categorías) */
.adp-grid-proyectos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    width: 100%;
}

/* -> Box Proyecto (fallback) */
.adp-box-proyecto {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background-color: #111;
    border-radius: var(--aas-radius);
    text-decoration: none;
}

/* -> Imagen de fondo (fallback) */
.adp-box-proyecto .adp-box-imagen {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-transform: scale(1);
    transform: scale(1);
    transition: -webkit-transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    border-radius: var(--aas-radius);
}

.adp-box-proyecto:hover .adp-box-imagen {
    -webkit-transform: scale(1.06);
    transform: scale(1.06);
}

/* -> Sin imagen (fallback) */
.adp-box-imagen.adp-sin-imagen {
    background-color: #1a1a1a;
}

/* -> Overlay (fallback) */
.adp-box-proyecto .adp-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 18px 16px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.68) 0%,
        rgba(0, 0, 0, 0.08) 50%,
        transparent 100%
    );
    border-radius: var(--aas-radius);
}

/* -> Nombre (fallback) */
.adp-nombre-proyecto {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-transform: uppercase;
}

/* -> Responsive 768px */
@media (max-width: 768px) {
    .adp-grid-categorias {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .adp-card-titulo {
        margin-bottom: 12px;
        font-size: 18px;
    }

    .adp-card-contenido {
        padding: 20px 22px;
    }

    .adp-grid-proyectos {
        grid-template-columns: repeat(2, 1fr);
        gap: 3px;
    }

    .adp-box-proyecto .adp-overlay {
        padding: 12px 10px;
    }

    .adp-nombre-proyecto {
        font-size: 12px;
    }
}

/* -> Responsive 480px (apilar imagen y contenido) */
@media (max-width: 480px) {
    .adp-card-categoria {
        flex-direction: column;
    }

    .adp-card-imagen {
        flex: 0 0 160px;
        width: 100%;
    }

    .adp-card-contenido {
        padding: 18px 20px;
    }
}