/* Listado de actividades APROMT-CLM */

.apromt-actividades-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}

.apromt-actividad-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(75, 61, 120, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.apromt-actividad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(75, 61, 120, 0.18);
}

.apromt-actividad-card__imagen {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f7f4fb;
}

.apromt-actividad-card__imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.apromt-actividad-card:hover .apromt-actividad-card__imagen img {
    transform: scale(1.04);
}

.apromt-actividad-card__placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b3d78;
    font-weight: 700;
    background: #f7f4fb;
}

.apromt-actividad-card__contenido {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.2rem;
}

.apromt-actividad-card__tipo {
    width: fit-content;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: #f7f4fb;
    color: #4b3d78;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.apromt-actividad-card__titulo {
    margin: 0 0 0.8rem;
    font-size: 1.2rem;
    line-height: 1.35;
    font-style: normal !important;
    font-weight: 800 !important;
    text-shadow: none !important;
    letter-spacing: -0.015em;
}

.apromt-actividad-card__titulo a {
    color: #2c174d !important;
    text-decoration: none !important;
    font-style: normal !important;
    font-weight: 800 !important;
    text-shadow: none !important;
}

.apromt-actividad-card__titulo a:hover {
    color: #4b3d78;
}

.apromt-actividad-card__datos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.7rem;
    margin-bottom: 0.8rem;
    color: #4b3d78;
    font-size: 0.86rem;
    font-weight: 750;
    line-height: 1.35;
}

.apromt-actividad-card__dato:not(:last-child)::after {
    content: "|";
    margin-left: 0.85rem;
    color: rgba(75, 61, 120, 0.55);
}

.apromt-actividad-card__dato {
    display: inline-flex;
    align-items: center;
}

.apromt-actividad-card__extracto {
    margin: 0 0 1rem;
    color: #25364f;
    font-size: 0.95rem;
    line-height: 1.55;

    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.apromt-actividad-card__boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-top: auto;
    padding: 0.65rem 1.05rem;
    border-radius: 999px;
    background: #4b3d78;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.apromt-actividad-card__boton:hover {
    background: #36295f;
    color: #ffffff;
}

.apromt-actividades-vacio {
    padding: 1.5rem;
    border-radius: 16px;
    background: #f7f4fb;
    color: #4b3d78;
    font-weight: 700;
}

/* Responsive */

@media (max-width: 1024px) {
    .apromt-actividades-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .apromt-actividades-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .apromt-actividad-card__contenido {
        padding: 1.25rem;
    }

    .apromt-actividad-card__titulo {
        font-size: 1.15rem;
    }
}

/* ==============================
   APROMT - Detalle individual de Actividades
   ============================== */

.apromt-actividad-single {
    background: #ffffff;
}

.apromt-actividad-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 3rem;
    align-items: center;
    max-width: 1180px;
    margin: 4rem auto 3rem;
    padding: 0 1.5rem;
}

.apromt-actividad-hero__contenido {
    max-width: 680px;
}

.apromt-actividad-hero__tipo {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 1rem;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    background: #f7f4fb;
    color: #4b3d78;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.apromt-actividad-hero__titulo {
    margin: 0 0 1.2rem;
    color: #2c174d !important;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.08;
    font-style: normal !important;
    font-weight: 850 !important;
    letter-spacing: -0.04em;
    text-shadow: none !important;
}

.apromt-actividad-hero__extracto {
    margin: 0 0 1.7rem;
    color: #25364f;
    font-size: 1.15rem;
    line-height: 1.65;
    font-weight: 500;
}

.apromt-actividad-hero__boton,
.apromt-actividad-info__boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.85rem 1.45rem;
    border-radius: 999px;
    background: #4b3d78;
    color: #ffffff !important;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 12px 28px rgba(75, 61, 120, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.apromt-actividad-hero__boton:hover,
.apromt-actividad-info__boton:hover {
    background: #36295f;
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(75, 61, 120, 0.28);
}

.apromt-actividad-hero__imagen {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 18px 48px rgba(75, 61, 120, 0.16);
    background: #f7f4fb;
}

.apromt-actividad-hero__imagen img {
    display: block;
    width: 100%;
    height: auto;
}

.apromt-actividad-contenedor {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 3rem;
    max-width: 1180px;
    margin: 0 auto 5rem;
    padding: 0 1.5rem;
}

.apromt-actividad-info {
    align-self: start;
    position: sticky;
    top: 120px;
    padding: 1.6rem;
    border-radius: 24px;
    background: #f7f4fb;
    box-shadow: 0 14px 35px rgba(75, 61, 120, 0.1);
}

.apromt-actividad-info h2,
.apromt-actividad-contenido h2,
.apromt-actividad-contacto h2 {
    margin: 0 0 1.2rem;
    color: #2c174d !important;
    font-size: 1.45rem;
    line-height: 1.25;
    font-style: normal !important;
    font-weight: 850 !important;
    text-shadow: none !important;
}

.apromt-actividad-info__grid {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.apromt-actividad-info__item {
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(75, 61, 120, 0.16);
}

.apromt-actividad-info__item span {
    display: block;
    margin-bottom: 0.25rem;
    color: #6b5f89;
    font-size: 0.84rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.apromt-actividad-info__item strong {
    display: block;
    color: #25364f;
    font-size: 1rem;
    line-height: 1.45;
}

.apromt-actividad-contenido {
    color: #25364f;
    font-size: 1.05rem;
    line-height: 1.8;
}

.apromt-actividad-contenido__texto p {
    margin-bottom: 1.1rem;
}

.apromt-actividad-contacto {
    margin-top: 2.5rem;
    padding: 1.5rem;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(75, 61, 120, 0.14);
    box-shadow: 0 12px 32px rgba(75, 61, 120, 0.08);
}

.apromt-actividad-contacto a {
    color: #4b3d78;
    font-weight: 800;
    text-decoration: none;
}

.apromt-actividad-contacto a:hover {
    text-decoration: underline;
}

.apromt-actividad-volver {
    margin-top: 2.5rem;
}

.apromt-actividad-volver a {
    color: #4b3d78;
    font-weight: 800;
    text-decoration: none;
}

.apromt-actividad-volver a:hover {
    text-decoration: underline;
}

/* Responsive detalle Actividades */

@media (max-width: 960px) {
    .apromt-actividad-hero,
    .apromt-actividad-contenedor {
        grid-template-columns: 1fr;
    }

    .apromt-actividad-info {
        position: static;
    }
}

@media (max-width: 680px) {
    .apromt-actividad-hero {
        margin-top: 2.5rem;
        gap: 2rem;
    }

    .apromt-actividad-contenedor {
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .apromt-actividad-info,
    .apromt-actividad-contacto {
        padding: 1.25rem;
    }
}

/* ==============================
   APROMT - Títulos página Formación y Talleres
   ============================== */

.apromt-actividades-page h1,
.apromt-actividades-page h2,
.apromt-actividades-page .uagb-heading-text,
.apromt-actividades-page .wp-block-heading,
.apromt-section-title,
.apromt-section-title .uagb-heading-text {
    color: #2c174d !important;
    font-style: normal !important;
    font-weight: 850 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.04em !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

.apromt-actividades-page h1,
.apromt-actividades-page .uagb-heading-text:first-child {
    font-size: clamp(2.4rem, 5vw, 4rem) !important;
}

.apromt-actividades-page h2,
.apromt-actividades-page .wp-block-heading,
.apromt-section-title,
.apromt-section-title .uagb-heading-text {
    font-size: clamp(2rem, 4vw, 3rem) !important;
    margin: 4rem 0 2rem !important;
}

/* Línea decorativa bajo los títulos de sección */
.apromt-actividades-page h2::after,
.apromt-actividades-page .wp-block-heading::after,
.apromt-section-title::after {
    content: "";
    display: block;
    width: 90px;
    height: 4px;
    margin-top: 0.85rem;
    border-radius: 999px;
    background: #4b3d78;
}

/* Evita que el título principal tenga línea si no la quieres */
.apromt-actividades-page h1::after {
    content: none !important;
}

.apromt-actividades-grid--inicio {
    margin: 2.5rem 0 3rem;
}