/*
Theme Name: Mundo Ferretero Child
Template: newsup
Version: 1.3.3
Description: Personalizaciones de Mundo Ferretero sobre Newsup.
*/

/* Header editorial: aire para la marca y productos concentrados a la derecha. */
.mg-nav-widget-area-back {
    background-image: url('assets/header-mundo-ferretero.png') !important;
    background-color: #07090b !important;
    background-position: right center !important;
    background-repeat: no-repeat !important;
    background-size: auto 100% !important;
}

@media (max-width: 767px) {
    .mg-nav-widget-area-back {
        background-image: linear-gradient(rgba(7, 9, 11, .72), rgba(7, 9, 11, .72)), url('assets/header-mundo-ferretero.png') !important;
        background-position: right center !important;
        background-size: cover !important;
    }
}

.mf-home-ad {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 24px 0 32px;
    padding: 18px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.mf-home-ad a {
    display: block;
    width: 100%;
    text-align: center;
}

.mf-home-ad img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 420px;
    margin: 0 auto;
    object-fit: contain;
}

@media (max-width: 767px) {
    .mf-home-ad {
        margin: 18px 0 24px;
        padding: 12px;
    }

    .mf-home-ad img {
        max-height: 360px;
    }
}

.mf-sidebar-module {
    margin-bottom: 28px;
    padding: 24px;
    background: #fff;
    border-top: 4px solid #e65300;
    border-radius: 4px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.mf-sidebar-module__eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #e65300;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mf-sidebar-module h3 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.2;
}

.mf-sidebar-module p:last-child {
    margin-bottom: 0;
}

.mf-sidebar-newsletter input[type="email"] {
    width: 100%;
    margin-bottom: 10px;
    padding: 11px 12px;
    border: 1px solid #d8d8d8;
    border-radius: 3px;
}

.mf-sidebar-newsletter button,
.mf-sidebar-poll button {
    width: 100%;
    padding: 11px 16px;
    color: #fff;
    background: #e65300;
    border: 0;
    border-radius: 3px;
    font-weight: 700;
    cursor: pointer;
}

.mf-sector-poll label {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin: 10px 0;
    cursor: pointer;
}

.mf-sector-poll__question {
    font-weight: 700;
}

.mf-sector-poll__status {
    margin-top: 12px;
    font-size: 14px;
}

.mf-poll-results {
    margin-top: 14px;
}

.mf-poll-result {
    margin-bottom: 10px;
}

.mf-poll-result__label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.mf-poll-result__bar {
    height: 7px;
    margin-top: 4px;
    overflow: hidden;
    background: #ececec;
    border-radius: 999px;
}

.mf-poll-result__bar span {
    display: block;
    height: 100%;
    background: #e65300;
}

.mf-sidebar-recommended article {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 12px;
    align-items: start;
    margin-top: 16px;
}

.mf-sidebar-recommended img {
    display: block;
    width: 88px;
    height: 68px;
    object-fit: cover;
    border-radius: 3px;
}

.mf-sidebar-recommended h4 {
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
}

.mf-sidebar-recommended h4 a {
    color: inherit;
}

/* Acentos del menú principal: naranja editorial de Mundo Ferretero. */
header nav .mobilehomebtn,
header nav .homebtn,
header nav .btn-theme,
header nav button.btn,
header nav .navbar-nav > li.active > a,
header nav .navbar-nav > li.current-menu-item > a,
header nav .navbar-nav > li > a:hover,
header nav .navbar-nav > li > a:focus,
header nav .navbar-nav .dropdown-menu > li > a:hover,
header nav .navbar-nav .dropdown-menu > li > a:focus,
header nav .navbar-nav .dropdown-menu > li.current-menu-item > a {
    background-color: #e65300 !important;
    border-color: #e65300 !important;
}

/* Agenda de eventos. */
.mf-events-hero {
    margin-bottom: 30px;
    padding: 34px;
    color: #fff;
    background: #1f2024;
    border-left: 6px solid #e65300;
    border-radius: 4px;
}

.mf-events-hero h1 {
    margin: 0 0 10px;
    color: #fff;
}

.mf-events-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.mf-events-filters a {
    padding: 8px 14px;
    color: #1f2024;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 999px;
    font-weight: 700;
}

.mf-events-filters a.is-active,
.mf-events-filters a:hover {
    color: #fff;
    background: #e65300;
    border-color: #e65300;
}

.mf-event-card {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 22px;
    margin-bottom: 22px;
    padding: 24px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.mf-event-card__date {
    display: flex;
    min-height: 112px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #e65300;
    border-radius: 4px;
    text-align: center;
}

.mf-event-card__day {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.mf-event-card__month {
    margin-top: 5px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mf-event-card__type,
.mf-event-single__type {
    color: #e65300;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.mf-event-card h2 {
    margin: 5px 0 10px;
    font-size: 25px;
}

.mf-event-card__meta,
.mf-event-single__meta {
    margin: 0 0 12px;
    color: #555;
}

.mf-event-card__link,
.mf-event-single__official {
    color: #e65300;
    font-weight: 800;
}

.mf-event-single {
    padding: 30px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.mf-event-single__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
    padding: 20px;
    background: #f7f7f7;
}

.mf-event-single__details strong {
    display: block;
    margin-bottom: 3px;
}

.mf-sidebar-events ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mf-sidebar-events li {
    padding: 12px 0;
    border-bottom: 1px solid #ececec;
}

.mf-sidebar-events li:last-child {
    border-bottom: 0;
}

.mf-sidebar-events time {
    display: block;
    color: #e65300;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.mf-sidebar-events a {
    color: inherit;
    font-weight: 700;
}

@media (max-width: 767px) {
    .mf-event-card {
        grid-template-columns: 78px 1fr;
        gap: 14px;
        padding: 16px;
    }

    .mf-event-card__date {
        min-height: 82px;
    }

    .mf-event-card__day {
        font-size: 27px;
    }

    .mf-event-card h2 {
        font-size: 20px;
    }

    .mf-event-single__details {
        grid-template-columns: 1fr;
    }
}
