/* =====================================================
   ARMENIANOS UNE
   CARDS - ANUNCIOS
   ===================================================== */

.au-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-top: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* =====================================================
   ENLACE VACÍO GENERADO POR LA SECCIÓN
   NO DEBE SER UN ELEMENTO DEL GRID
   ===================================================== */

.au-cards > a.ja-section-click {
    display: none !important;
}

/* =====================================================
   TARJETA
   ===================================================== */

.au-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    background: #fff;
    border: 1px solid var(--au-border);
    border-radius: 16px;
    overflow: hidden;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);

    transition: all 0.25s ease;
}

/* =====================================================
   IMAGEN
   ===================================================== */

.au-card-image {
    position: relative;

    width: 100%;
    height: 220px;

    overflow: hidden;

    background: #eef2f7;

    flex-shrink: 0;
}

/* Enlaces dentro de la zona de imagen */

.au-card-image > a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Ocultamos el enlace vacío generado por Elementor/tema */

.au-card-image > a.ja-section-click {
    display: none !important;
}

/* Imagen real */

.au-card-image img {
    display: block !important;

    width: 100% !important;
    height: 220px !important;

    max-width: none !important;

    object-fit: cover !important;
}

/* =====================================================
   CONTENIDO
   ===================================================== */

.au-card-content {
    width: 100%;
    box-sizing: border-box;

    padding: 24px;
}

/* =====================================================
   TÍTULO
   ===================================================== */

.au-card-title {
    margin: 0 0 12px;

    color: var(--au-primary);

    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.au-card-title a {
    color: var(--au-primary);
    text-decoration: none;
}

/* =====================================================
   TEXTO
   ===================================================== */

.au-card-text {
    margin-bottom: 20px;

    color: var(--au-text-light);

    line-height: 1.7;
}

/* =====================================================
   FOOTER DE TARJETA
   ===================================================== */

.au-card-footer {
    display: flex;

    justify-content: space-between;
    align-items: center;
}

/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 900px) {

    .au-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .au-card {
        width: 100%;
        max-width: 100%;
    }

}

/* =====================================================
   MÓVIL
   ===================================================== */

@media (max-width: 768px) {

    .au-cards {
        display: grid !important;

        grid-template-columns: minmax(0, 1fr) !important;

        gap: 20px;

        width: 100% !important;
        max-width: 100% !important;

        margin-top: 30px;
    }

    .au-card {
        grid-column: 1 / -1 !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .au-card-image {
        width: 100% !important;
        height: 220px !important;
    }

    .au-card-image img {
        width: 100% !important;
        height: 220px !important;
        object-fit: cover !important;
    }

    .au-card-content {
        width: 100% !important;
        padding: 20px;
    }

}

/* =====================================================
   MÓVIL PEQUEÑO
   ===================================================== */

@media (max-width: 480px) {

    .au-cards {
        gap: 18px;
    }

    .au-card-image {
        height: 220px !important;
    }

    .au-card-image img {
        height: 220px !important;
    }

    .au-card-content {
        padding: 18px;
    }

    .au-card-title {
        font-size: 20px;
    }

}