/*
 * JaimeDiaz.TV
 * Centro Multimedia — Editorial Native
 *
 * Arquitectura:
 * - 1 cobertura principal
 * - 2 coberturas secundarias
 */

.jdr-multimedia-section {
    position: relative;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--jdr-border-soft);
}

.jdr-multimedia-section::before {
    position: absolute;
    top: -2px;
    left: 0;
    width: 46px;
    height: 3px;
    border-radius: 999px;
    background: var(--jdr-orange-500);
    content: "";
}

.jdr-multimedia-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 13px;
}

.jdr-multimedia-heading__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--jdr-orange-700);
    font-size: 0.53rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.jdr-multimedia-heading__title {
    margin: 0;
    color: var(--jdr-text-primary);
    font-size: 1.18rem;
    font-weight: 850;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.jdr-multimedia-heading__description {
    margin: 5px 0 0;
    color: var(--jdr-text-muted);
    font-size: 0.63rem;
}

.jdr-multimedia-heading__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    color: var(--jdr-orange-700);
    font-size: 0.56rem;
    font-weight: 850;
    text-transform: uppercase;
}

.jdmh-home {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--jdr-border-soft);
    border-radius: var(--jdr-radius-md);
    background: var(--jdr-surface);
    box-shadow: var(--jdr-shadow-sm);
}

/*
 * Multimedia home header inset
 * Alinea el encabezado con los demás bloques editoriales
 * sin alterar el contenido visual full-bleed.
 */
.jdmh-home > .jdr-multimedia-heading {
    padding-right: 17px;
    padding-left: 17px;
}


.jdmh-home__grid {
    display: grid;
    grid-template-rows: 238px 96px;
    gap: 1px;
    background: var(--jdr-border-soft);
}

.jdmh-home__featured,
.jdmh-home__secondary {
    min-width: 0;
}

.jdmh-card--featured {
    width: 100%;
    height: 238px;
    display: grid;
    grid-template-columns:
        minmax(300px, 47%)
        minmax(0, 1fr);
    background: var(--jdr-surface);
}

.jdmh-card__media {
    position: relative;
    min-width: 0;
    display: block;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            var(--jdr-navy-900),
            #174d58
        );
}

.jdmh-card--featured .jdmh-card__media {
    height: 238px;
}

.jdmh-card__media img,
.jdmh-card__secondary-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 35%;
    transition:
        transform 320ms
        var(--jdr-ease-standard);
}

.jdmh-card__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(7, 36, 44, 0.02) 28%,
            rgba(7, 36, 44, 0.28) 64%,
            rgba(7, 36, 44, 0.68) 100%
        );
    pointer-events: none;
}

.jdmh-card__type,
.jdmh-card__protected {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 24px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 0.47rem;
    font-weight: 850;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.jdmh-card__type {
    top: 12px;
    left: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    background: rgba(8, 42, 50, 0.86);
    backdrop-filter: blur(7px);
}

.jdmh-card__protected {
    right: 10px;
    bottom: 10px;
    color: #ffffff;
    background: rgba(244, 115, 33, 0.92);
}

.jdmh-card__fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(
            circle at 30% 20%,
            rgba(244, 115, 33, 0.15),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            var(--jdr-navy-800),
            var(--jdr-navy-950)
        );
    color: rgba(255, 255, 255, 0.42);
    font-size: 2rem;
}

.jdmh-card__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px 26px;
}

.jdmh-card__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: var(--jdr-text-muted);
}

.jdmh-card__stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.48rem;
    font-weight: 700;
}

.jdmh-card__stats i {
    color: var(--jdr-orange-700);
}

.jdmh-card__title {
    max-width: 440px;
    margin: 8px 0 0;
    color: var(--jdr-text-primary);
    font-size: clamp(1.30rem, 1.65vw, 1.68rem);
    font-weight: 850;
    letter-spacing: -0.04em;
    line-height: 1.04;
}

.jdmh-card__title a {
    color: inherit;
    text-decoration: none;
}

.jdmh-card__summary {
    max-width: 440px;
    margin: 10px 0 0;
    color: var(--jdr-text-secondary);
    font-size: 0.68rem;
    line-height: 1.42;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.jdmh-card__link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    color: var(--jdr-orange-700);
    font-size: 0.53rem;
    font-weight: 850;
    text-decoration: none;
    text-transform: uppercase;
}

.jdmh-home__secondary {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--jdr-border-soft);
}

.jdmh-card--secondary {
    min-width: 0;
    min-height: 96px;
    display: grid;
    grid-template-columns:
        150px
        minmax(0, 1fr);
    color: inherit;
    text-decoration: none;
    background: var(--jdr-surface);
    transition:
        background
        var(--jdr-duration-fast)
        var(--jdr-ease-standard);
}

.jdmh-card__secondary-media {
    position: relative;
    min-width: 0;
    min-height: 96px;
    display: block;
    overflow: hidden;
    background: var(--jdr-navy-900);
}

.jdmh-card--secondary .jdmh-card__shade {
    background:
        linear-gradient(
            90deg,
            rgba(7, 36, 44, 0.02),
            rgba(7, 36, 44, 0.52)
        );
}

.jdmh-card--secondary .jdmh-card__type {
    top: 8px;
    left: 8px;
    min-height: 20px;
    padding: 4px 6px;
    font-size: 0.39rem;
}

.jdmh-card--secondary .jdmh-card__protected {
    right: 7px;
    bottom: 7px;
    min-height: 19px;
    padding: 4px 6px;
    font-size: 0.36rem;
}

.jdmh-card__secondary-body {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 12px 40px 12px 14px;
}

.jdmh-card--secondary .jdmh-card__stats {
    gap: 7px;
}

.jdmh-card--secondary .jdmh-card__stats span {
    font-size: 0.40rem;
}

.jdmh-card__secondary-title {
    color: var(--jdr-text-primary);
    font-size: 0.75rem;
    font-weight: 830;
    letter-spacing: -0.022em;
    line-height: 1.14;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.jdmh-card__secondary-arrow {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border:
        1px solid
        rgba(18, 59, 70, 0.08);
    border-radius: 50%;
    color: var(--jdr-orange-700);
    background:
        rgba(244, 115, 33, 0.055);
    transform: translateY(-50%);
    font-size: 0.48rem;
}

.jdmh-card--featured:hover,
.jdmh-card--secondary:hover {
    background: var(--jdr-surface-soft);
}

.jdmh-card--featured:hover img,
.jdmh-card--secondary:hover img {
    transform: scale(1.018);
}

.jdmh-card--secondary:hover
.jdmh-card__secondary-title,
.jdmh-card--featured:hover
.jdmh-card__title {
    color: var(--jdr-orange-700);
}

.jdmh-more {
    min-height: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 15px;
    background: var(--jdr-surface);
    color: var(--jdr-text-muted);
    text-align: center;
}

.jdmh-more i {
    color: var(--jdr-orange-700);
}

.jdmh-more strong {
    color: var(--jdr-text-primary);
    font-size: 0.70rem;
}

.jdmh-more span {
    font-size: 0.52rem;
}

@media (max-width: 899px) {
    .jdmh-home__grid {
        grid-template-rows:
            224px
            94px;
    }

    .jdmh-card--featured {
        height: 224px;
        grid-template-columns:
            minmax(220px, 40%)
            minmax(0, 1fr);
    }

    .jdmh-card--featured
    .jdmh-card__media {
        height: 224px;
    }

    .jdmh-card__body {
        padding: 20px 24px;
    }

    .jdmh-card--secondary {
        grid-template-columns:
            108px
            minmax(0, 1fr);
        min-height: 94px;
    }

    .jdmh-card__secondary-media {
        min-height: 94px;
    }
}

@media (max-width: 649px) {

    .jdmh-home > .jdr-multimedia-heading {
        padding-right: 16px;
        padding-left: 16px;
    }

    .jdr-multimedia-heading__description {
        display: none;
    }

    .jdmh-home__grid {
        grid-template-rows: auto auto;
    }

    .jdmh-card--featured {
        height: auto;
        grid-template-columns:
            minmax(0, 1fr);
    }

    .jdmh-card--featured
    .jdmh-card__media {
        height: auto;
        min-height: 190px;
        aspect-ratio: 16 / 9;
    }

    .jdmh-card__body {
        padding: 19px;
    }

    .jdmh-card__title {
        font-size: 1.28rem;
    }

    .jdmh-home__secondary {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .jdmh-card--secondary {
        grid-template-columns:
            112px
            minmax(0, 1fr);
        min-height: 90px;
    }

    .jdmh-card__secondary-media {
        min-height: 90px;
    }
}

@media (max-width: 419px) {
    .jdmh-card--secondary {
        grid-template-columns:
            96px
            minmax(0, 1fr);
    }
}
