/**
 * Promoción de Webinar
 * Estilos para los tres formatos: cintillo superior, banner de Home y franja de footer.
 * Paleta alineada al tema: azul #0043FF, rojo REMAX #dc1c2e.
 */

:root {
    --mt-webinar-blue: #0043FF;
    --mt-webinar-blue-dark: #0033cc;
    --mt-webinar-red: #dc1c2e;
    --mt-webinar-red-dark: #b01623;
}

/* ==========================================================================
   FORMATO 1: CINTILLO SUPERIOR
   ========================================================================== */
.mt-webinar-topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    padding: 10px 44px;
    background: linear-gradient(135deg, var(--mt-webinar-blue) 0%, #0033cc 100%);
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
}

.mt-webinar-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    max-width: 1200px;
}

.mt-webinar-topbar__text {
    font-weight: 600;
}

.mt-webinar-topbar__cta {
    display: inline-block;
    flex-shrink: 0;
    background: #fff;
    color: var(--mt-webinar-blue);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .02em;
    padding: 7px 16px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.mt-webinar-topbar__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.mt-webinar-topbar__close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .85);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
    transition: background .2s ease, color .2s ease;
}

.mt-webinar-topbar__close:hover {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

@media (max-width: 640px) {
    .mt-webinar-topbar {
        padding: 9px 40px;
        font-size: 13px;
    }
    .mt-webinar-topbar__inner {
        gap: 8px;
    }
}

/* ==========================================================================
   CONTADOR REGRESIVO (reutilizable)
   ========================================================================== */
.mt-webinar-countdown {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mt-webinar-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 58px;
    padding: 10px 8px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 10px;
}

.mt-webinar-countdown__value {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.mt-webinar-countdown__label {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .85;
}

/* ==========================================================================
   FORMATO 2: BANNER EN LA HOME
   ========================================================================== */
.mt-webinar-home {
    margin: 40px 20px;
}

.mt-webinar-home__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    background: linear-gradient(135deg, var(--mt-webinar-blue) 0%, #0033cc 100%);
    color: #fff;
    border-radius: 20px;
    padding: 44px 40px;
    box-shadow: 0 16px 44px rgba(0, 67, 255, .22);
}

.mt-webinar-home--has-image .mt-webinar-home__container {
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .mt-webinar-home--has-image .mt-webinar-home__container {
        grid-template-columns: 1.2fr 1fr;
    }
}

.mt-webinar-home__eyebrow {
    display: inline-block;
    margin: 0 0 12px;
    padding: 5px 12px;
    background: var(--mt-webinar-red);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-radius: 999px;
}

.mt-webinar-home__title {
    margin: 0 0 14px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
}

.mt-webinar-home__subtitle {
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.6;
    opacity: .92;
    max-width: 620px;
}

.mt-webinar-countdown--home {
    margin-bottom: 24px;
}

.mt-webinar-home__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.mt-webinar-home__cta {
    display: inline-block;
    background: #fff;
    color: var(--mt-webinar-blue);
    font-weight: 800;
    font-size: 16px;
    padding: 15px 34px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.mt-webinar-home__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}

.mt-webinar-home__media img {
    width: 100%;
    height: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

@media (max-width: 767px) {
    .mt-webinar-home {
        margin: 30px 16px;
    }
    .mt-webinar-home__container {
        padding: 32px 24px;
    }
    .mt-webinar-home__title {
        font-size: 23px;
    }
    .mt-webinar-home__subtitle {
        font-size: 15px;
    }
    .mt-webinar-home__cta {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   FORMATO 3: FRANJA EN EL FOOTER
   ========================================================================== */
.mt-webinar-footer {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    background: linear-gradient(135deg, var(--mt-webinar-red) 0%, var(--mt-webinar-red-dark) 100%);
    color: #fff;
    padding: 26px 32px;
    border-radius: 14px;
    transform: translateY(-30px);
    box-shadow: 0 12px 34px rgba(220, 28, 46, .28);
}

.mt-webinar-footer__title {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
}

.mt-webinar-footer__subtitle {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.5;
    opacity: .9;
    max-width: 640px;
}

.mt-webinar-footer__cta {
    display: inline-block;
    flex-shrink: 0;
    background: #fff;
    color: var(--mt-webinar-red);
    font-weight: 800;
    font-size: 15px;
    padding: 14px 30px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.mt-webinar-footer__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}

@media (max-width: 767px) {
    .mt-webinar-footer {
        margin: 0 16px;
        padding: 22px 22px;
        text-align: center;
        justify-content: center;
    }
    .mt-webinar-footer__cta {
        width: 100%;
        text-align: center;
    }
}
