/* ============================================================
   PAGES/CSS/multimedia.css
   Iglesia MMM · Presbiterio 18
   ============================================================ */

:root {
    --c-brand:   #FF6A00;
    --c-brand-2: #FF8C42;
    --c-teal:    #00BFA6;
    --c-purple:  #8B5CF6;
    --c-red:     #EF4444;
    --c-bg:      #0A0F1C;
    --c-bg-alt:  #111827;
    --c-line:    #E5E7EB;
    --c-text:    #1F2937;
    --c-soft:    #6B7280;
    --radius-sm: 10px;
    --radius:    16px;
    --radius-lg: 22px;
    --shadow-sm: 0 4px 14px rgba(0,0,0,.06);
    --shadow:    0 12px 32px rgba(0,0,0,.10);
    --shadow-lg: 0 30px 80px rgba(0,0,0,.35);
    --tr:        .3s cubic-bezier(.4, 0, .2, 1);
    --tr-slow:   .7s cubic-bezier(.2, .8, .2, 1);
}

/* ------------------------------------------------------------
   Base
   ------------------------------------------------------------ */
.multimedia {
    background: #fff;
    color: var(--c-text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

.multimedia .container {
    width: min(1200px, 92%);
    margin-inline: auto;
}

.multimedia .section {
    padding: clamp(40px, 6vw, 80px) 0;
}

/* ============================================================
   LIVE DOT
   ============================================================ */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-red);
    box-shadow: 0 0 0 0 rgba(239,68,68,.7);
    animation: livePulse 1.8s infinite;
    flex-shrink: 0;
}
@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(239,68,68,.7); }
    70%  { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

/* ============================================================
   HERO
   ============================================================ */
.page-hero {
    position: relative;
    padding: clamp(90px, 12vw, 160px) 0 clamp(60px, 8vw, 100px);
    background: var(--c-bg);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,106,0,.35), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(0,191,166,.28), transparent 55%),
        linear-gradient(135deg, #0A0F1C 0%, #111827 100%);
}
.page-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .5;
}

.page-hero__inner { position: relative; z-index: 1; max-width: 780px; }

.page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--c-brand);
    padding: 6px 14px;
    border: 1px solid rgba(255,106,0,.4);
    border-radius: 999px;
    margin-bottom: 22px;
}

.page-hero__title {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1.05;
    margin: 0 0 20px;
    letter-spacing: -.01em;
}
.page-hero__title em { font-style: italic; color: var(--c-brand); }

.page-hero__desc {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.65;
    color: rgba(255,255,255,.78);
    max-width: 620px;
    margin: 0 0 32px;
}

.page-hero__breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    color: rgba(255,255,255,.7);
}
.page-hero__breadcrumb a { color: var(--c-brand); text-decoration: none; transition: color var(--tr); }
.page-hero__breadcrumb a:hover { color: #fff; }
.page-hero__breadcrumb i { font-size: .65rem; opacity: .6; }

/* ============================================================
   GRID DE SECCIONES (HUB)
   ============================================================ */
.mm-hub {
    background: #F9FAFB;
}

.mm-hub__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

/* ===== CARD ===== */
.mm-card {
    position: relative;
    display: block;
    min-height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    box-shadow:
        0 20px 50px rgba(10, 15, 28, 0.18),
        0 4px 12px rgba(10, 15, 28, 0.08);
    transition: transform var(--tr), box-shadow var(--tr);
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mm-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 30px 70px rgba(10, 15, 28, 0.28),
        0 8px 20px rgba(10, 15, 28, 0.12);
}

/* Fondo imagen */
.mm-card__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #0A0F1C, #111827);
    overflow: hidden;
}
.mm-card__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    transition: transform var(--tr-slow), filter var(--tr-slow);
    filter: saturate(1.05) contrast(1.02);
    will-change: transform;
}
.mm-card:hover .mm-card__bg img {
    transform: scale(1.10) rotate(.4deg);
    filter: saturate(1.15) contrast(1.05);
}

/* Overlay multicapa — mucho mejor legibilidad */
.mm-card__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(10,15,28,.10) 0%,
            rgba(10,15,28,.25) 35%,
            rgba(10,15,28,.72) 68%,
            rgba(10,15,28,.96) 100%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(0,0,0,.5) 0%,
            transparent 60%
        );
}

/* Color de acento por tipo */
.mm-card--orange::after,
.mm-card--red::after,
.mm-card--teal::after,
.mm-card--purple::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity var(--tr);
    pointer-events: none;
}
.mm-card--orange::after { background: radial-gradient(circle at 30% 100%, rgba(255,106,0,.45), transparent 65%); }
.mm-card--red::after    { background: radial-gradient(circle at 30% 100%, rgba(239,68,68,.45), transparent 65%); }
.mm-card--teal::after   { background: radial-gradient(circle at 30% 100%, rgba(0,191,166,.45), transparent 65%); }
.mm-card--purple::after { background: radial-gradient(circle at 30% 100%, rgba(139,92,246,.45), transparent 65%); }
.mm-card:hover::after   { opacity: 1; }

/* Badge EN VIVO */
.mm-card__live {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: var(--c-red);
    color: #fff;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    box-shadow: 0 6px 20px rgba(239,68,68,.5);
    animation: liveBadge 2s infinite;
}
.mm-card__live .live-dot {
    background: #fff;
    animation: livePulseWhite 1.8s infinite;
}
@keyframes livePulseWhite {
    0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.8); }
    70%  { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
@keyframes liveBadge {
    0%, 100% { box-shadow: 0 6px 20px rgba(239,68,68,.5), 0 0 0 0 rgba(239,68,68,.5); }
    50%      { box-shadow: 0 6px 20px rgba(239,68,68,.5), 0 0 0 12px rgba(239,68,68,0); }
}

/* Icono */
.mm-card__icon {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 4;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.25);
    font-size: 1.5rem;
    color: #fff;
    transition: transform var(--tr), background var(--tr), border-color var(--tr);
    box-shadow: 0 8px 22px rgba(0,0,0,.2);
}
.mm-card:hover .mm-card__icon {
    transform: scale(1.10) rotate(-6deg);
    background: rgba(255,255,255,.22);
    border-color: rgba(255,255,255,.4);
}
.mm-card--orange .mm-card__icon { color: #FFB37A; }
.mm-card--red .mm-card__icon    { color: #FCA5A5; }
.mm-card--teal .mm-card__icon   { color: #5EEAD4; }
.mm-card--purple .mm-card__icon { color: #C4B5FD; }

/* Contenido */
.mm-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px 30px 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mm-card__subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--c-brand);
    opacity: .95;
}
.mm-card--red .mm-card__subtitle    { color: #FCA5A5; }
.mm-card--teal .mm-card__subtitle   { color: #5EEAD4; }
.mm-card--purple .mm-card__subtitle { color: #C4B5FD; }

.mm-card__title {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -.01em;
    text-shadow: 0 2px 16px rgba(0,0,0,.5);
}

.mm-card__desc {
    font-size: .94rem;
    line-height: 1.55;
    color: rgba(255,255,255,.88);
    margin: 0;
    max-width: 400px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

.mm-card__count {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: .82rem;
    color: rgba(255,255,255,.75);
    margin-top: 6px;
}
.mm-card__count strong {
    font-family: 'Fraunces', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.mm-card__count--live {
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .78rem;
}
.mm-card__count--live i {
    font-size: .55rem;
    color: var(--c-red);
    animation: livePulse 1.8s infinite;
}

.mm-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 11px 20px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    align-self: flex-start;
    transition: all var(--tr);
}
.mm-card:hover .mm-card__cta {
    background: var(--c-brand);
    border-color: var(--c-brand);
    gap: 14px;
    box-shadow: 0 8px 22px rgba(255,106,0,.45);
}
.mm-card--red:hover .mm-card__cta {
    background: var(--c-red);
    border-color: var(--c-red);
    box-shadow: 0 8px 22px rgba(239,68,68,.45);
}
.mm-card--teal:hover .mm-card__cta {
    background: var(--c-teal);
    border-color: var(--c-teal);
    box-shadow: 0 8px 22px rgba(0,191,166,.45);
}
.mm-card--purple:hover .mm-card__cta {
    background: var(--c-purple);
    border-color: var(--c-purple);
    box-shadow: 0 8px 22px rgba(139,92,246,.45);
}
.mm-card__cta i { transition: transform var(--tr); }
.mm-card:hover .mm-card__cta i { transform: translateX(4px); }

/* ============================================================
   ÚLTIMA PRÉDICA
   ============================================================ */
.mm-last {
    background: #fff;
}

.mm-last__head {
    text-align: center;
    margin-bottom: 2rem;
}

.mm-last__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255,106,0,.1);
    color: var(--c-brand);
    border: 1px solid rgba(255,106,0,.25);
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.mm-last__heading {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #0A0F1C;
    margin: 0;
}

.mm-last__card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: transform var(--tr), box-shadow var(--tr);
    max-width: 1000px;
    margin: 0 auto;
}
.mm-last__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.mm-last__media {
    position: relative;
    aspect-ratio: 16/10;
    background: #0A0F1C;
    overflow: hidden;
}
.mm-last__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    transition: transform var(--tr-slow), filter var(--tr-slow);
    filter: saturate(1.05);
}
.mm-last__card:hover .mm-last__media img {
    transform: scale(1.06);
    filter: saturate(1.12);
}
.mm-last__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0A0F1C, #111827);
    color: rgba(255,255,255,.35);
    font-size: 4rem;
}
.mm-last__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,.15) 0%,
        rgba(0,0,0,.45) 100%
    );
    transition: background var(--tr);
}
.mm-last__card:hover .mm-last__play {
    background: linear-gradient(
        180deg,
        rgba(0,0,0,.25) 0%,
        rgba(0,0,0,.55) 100%
    );
}
.mm-last__play i {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    color: var(--c-brand);
    font-size: 1.8rem;
    padding-left: 6px;
    box-shadow: 0 12px 32px rgba(0,0,0,.4);
    transition: transform var(--tr), background var(--tr), color var(--tr);
}
.mm-last__card:hover .mm-last__play i {
    transform: scale(1.10);
    background: var(--c-brand);
    color: #fff;
}

.mm-last__body {
    padding: 34px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.mm-last__title {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    font-weight: 700;
    color: #0A0F1C;
    line-height: 1.25;
    margin: 0;
}

.mm-last__preacher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .95rem;
    color: var(--c-teal);
    font-weight: 600;
    margin: 0;
}

.mm-last__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: .85rem;
    color: var(--c-soft);
}
.mm-last__meta span { display: inline-flex; align-items: center; gap: 6px; }
.mm-last__meta i { color: var(--c-brand); }

/* ============================================================
   PRÓXIMA TRANSMISIÓN
   ============================================================ */
.mm-next {
    background: #F9FAFB;
}

.mm-next__card {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #FFF7ED, #FFEDD5);
    border: 1px solid #FED7AA;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    flex-wrap: wrap;
    transition: transform var(--tr), box-shadow var(--tr);
    max-width: 900px;
    margin: 0 auto;
}
.mm-next__card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.mm-next__icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--c-brand), #E85F00);
    color: #fff;
    border-radius: 18px;
    font-size: 1.6rem;
    flex-shrink: 0;
    box-shadow: 0 8px 22px rgba(255,106,0,.32);
}

.mm-next__info { flex: 1; min-width: 200px; }

.mm-next__eyebrow {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9A3412;
    margin-bottom: 6px;
}

.mm-next__title {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0A0F1C;
    margin: 0 0 8px;
    line-height: 1.25;
}

.mm-next__meta {
    font-size: .9rem;
    color: #9A3412;
    margin: 0;
}
.mm-next__meta i { margin-right: 5px; }
.dot-sep { margin: 0 8px; color: #FED7AA; }

.mm-next__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: .88rem;
    font-weight: 700;
    color: var(--c-brand);
    white-space: nowrap;
    transition: gap var(--tr);
}
.mm-next__card:hover .mm-next__cta {
    gap: 12px;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: .92rem;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--tr), background var(--tr),
                color var(--tr), box-shadow var(--tr), border-color var(--tr);
    white-space: nowrap;
}

.btn--primary {
    background: var(--c-brand);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255,106,0,.32);
}
.btn--primary:hover {
    background: #E85F00;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(255,106,0,.42);
}

.btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.22);
}
.btn--ghost:hover {
    background: rgba(255,255,255,.08);
    border-color: var(--c-brand);
    color: var(--c-brand);
    transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .mm-hub__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .mm-card {
        min-height: 360px;
    }

    .mm-last__card {
        grid-template-columns: 1fr;
    }
    .mm-last__media {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 640px) {
    .mm-card {
        min-height: 320px;
    }
    .mm-card__icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        top: 18px;
        left: 18px;
        border-radius: 14px;
    }
    .mm-card__live {
        top: 14px;
        right: 14px;
        padding: 5px 11px;
        font-size: .65rem;
    }
    .mm-card__content {
        padding: 26px 22px 22px;
    }
    .mm-card__title {
        font-size: 1.45rem;
    }
    .mm-card__desc {
        font-size: .85rem;
    }
    .mm-card__count strong { font-size: 1.2rem; }

    .mm-last__body { padding: 24px 22px; }
    .mm-last__play i { width: 66px; height: 66px; font-size: 1.5rem; }

    .mm-next__card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 22px;
    }
    .mm-next__icon {
        width: 54px;
        height: 54px;
        font-size: 1.4rem;
    }
}

/* ============================================================
   ACCESIBILIDAD
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

.mm-card:focus-visible,
.mm-last__card:focus-visible,
.mm-next__card:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--c-brand);
    outline-offset: 3px;
}