/* ERSSY POZUECO — cabecera editorial */
.header-main-wrap .ep-masthead {
    color: #292d28;
    background: #fff !important;
}

.ep-masthead .header-top {
    height: auto !important;
    background: #fff !important;
    border: 0 !important;
}

.ep-masthead .ep-masthead__brand {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 30px;
    max-width: 1440px;
    min-height: 126px;
    margin: 0 auto;
    padding: 22px 48px;
}

.ep-masthead__heritage {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ep-masthead__eyebrow {
    color: #74796e;
    font: 400 10px/1.5 Arial, Helvetica, sans-serif;
    letter-spacing: .2em;
}

.ep-masthead__signature {
    color: #434a40;
    font: italic 17px/1.4 Georgia, "Times New Roman", serif;
}

.ep-masthead .ep-masthead__logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ep-masthead .ep-masthead__logo img {
    width: auto !important;
    height: auto !important;
    max-width: 240px !important;
    max-height: 86px !important;
}

.ep-masthead__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.ep-masthead .ep-masthead__actions .btn {
    padding: 12px 18px !important;
    border-radius: 0 !important;
    border: 1px solid #34533c !important;
    background: #fff !important;
    color: #34533c !important;
    box-shadow: none !important;
    font: 400 11px/1.4 Arial, Helvetica, sans-serif !important;
    letter-spacing: .04em;
}

.ep-masthead .ep-masthead__actions .btn:hover {
    background: #34533c !important;
    color: #fff !important;
}

.ep-masthead .header-bottom {
    height: auto !important;
    background: #fff !important;
    border-top: 1px solid #eeeee8;
    border-bottom: 1px solid #e5e7df;
}

.ep-masthead__navigation {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
}

.ep-masthead .header-bottom .header-inner-wrap {
    height: auto !important;
}

.ep-masthead .main-nav {
    width: 100%;
}

.ep-masthead .main-nav .navbar-nav {
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 10px;
}

.ep-masthead .main-nav .navbar-nav > li > a {
    padding: 20px 15px !important;
    color: #343a32 !important;
    background: transparent !important;
    font: 400 12px/1.4 Arial, Helvetica, sans-serif !important;
    letter-spacing: .035em;
    text-transform: none !important;
}

.ep-masthead .main-nav .navbar-nav > li > a:hover,
.ep-masthead .main-nav .navbar-nav > li.current-menu-item > a,
.ep-masthead .main-nav .navbar-nav > li.current-menu-ancestor > a {
    color: #376043 !important;
    text-decoration: underline;
    text-underline-offset: 7px;
    text-decoration-thickness: 1px;
}

.ep-masthead .main-nav .dropdown-menu {
    padding: 12px 0;
    border: 1px solid #e5e7df;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 12px 24px rgba(30, 40, 25, .07);
}

.ep-masthead .main-nav .dropdown-menu a {
    padding: 12px 20px !important;
    color: #343a32 !important;
    font: 400 12px/1.5 Arial, Helvetica, sans-serif !important;
    white-space: normal;
}

.ep-masthead .main-nav .dropdown-menu a:hover {
    background: #f5f6f2 !important;
}

.ep-masthead a:focus-visible,
.ep-masthead button:focus-visible,
.header-main-wrap #header-mobile button:focus-visible {
    outline: 2px solid #34533c;
    outline-offset: 4px;
}

/* Mantener la navegación móvil de Houzez. */
.header-main-wrap #header-mobile {
    min-height: 80px;
    padding: 12px 18px;
    background: #fff !important;
    border-bottom: 1px solid #e5e7df;
}

.header-main-wrap #header-mobile .header-mobile-center img {
    width: auto !important;
    height: auto !important;
    max-width: 175px !important;
    max-height: 56px !important;
}

.header-main-wrap #header-mobile .toggle-button-left,
.header-main-wrap #header-mobile .toggle-button-right {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    color: #34533c !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .ep-masthead .ep-masthead__brand {
        padding-right: 28px;
        padding-left: 28px;
    }

    .ep-masthead .main-nav .navbar-nav > li > a {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }
}

/* Erssy — en el blog, la misma cabecera que la home y las páginas de servicios (17-11-2026) */
.header-main-wrap .ep-blog-header{background:#fff;border-bottom:1px solid #e5e5e2;color:#000}
.ep-blog-header .ep-home-shell{width:min(1320px,calc(100% - 96px));margin:0 auto}
.ep-blog-header .ep-home-mast{min-height:154px;padding:18px 0;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:24px}
.ep-blog-header .ep-home-eyebrow{font:400 11px/1.6 Arial,Helvetica,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#000}
.ep-blog-header .ep-home-brand{display:flex;align-items:center;justify-content:center}
.ep-blog-header .ep-home-brand img{display:block;width:360px;height:auto;max-width:100%;max-height:128px;object-fit:contain}
.ep-blog-header .ep-home-contact-top{justify-self:end;font:400 16px/1.5 Arial,Helvetica,sans-serif;color:#000;text-decoration:none}
.ep-blog-header .ep-home-mast + nav{border-top:1px solid #bfc2bc}
.ep-blog-header .ep-home-nav{display:flex;justify-content:center;flex-wrap:wrap;gap:0 34px;margin:0;padding:8px 0;list-style:none}
.ep-blog-header .ep-home-nav li{position:relative;list-style:none;margin:0}
.ep-blog-header .ep-home-nav>li>a{display:block;padding:16px 0;font:400 13px/1.5 Arial,Helvetica,sans-serif;text-transform:uppercase;letter-spacing:.035em;color:#30332f;text-decoration:none}
.ep-blog-header .ep-home-nav .sub-menu{display:none;position:absolute;top:100%;left:0;z-index:100;min-width:240px;margin:0;padding:14px;background:#fff;border:1px solid #e5e7e0;list-style:none}
.ep-blog-header .ep-home-nav .sub-menu a{display:block;padding:10px;font:400 14px/1.5 Arial,Helvetica,sans-serif;text-transform:none;letter-spacing:normal;color:#30332f;text-decoration:none}
.ep-blog-header .ep-home-nav li:hover>.sub-menu,.ep-blog-header .ep-home-nav li:focus-within>.sub-menu{display:block}
@media (max-width:900px){.ep-blog-header .ep-home-shell{width:calc(100% - 48px)}.ep-blog-header .ep-home-nav{column-gap:22px}}
