/*
Theme Name: ERA Max Theme
Author: ACL Consultores
Version: 1.4.1
Text Domain: era-max-theme
Description: Tema clásico con looks (Nativo, Principal, DistProp). Tipografía y color por preset; sin plantillas de página si Plantillas ON está activo.
*/

/* ============================================================
   0. @font-face — fuentes locales pre-empaquetadas
   ============================================================ */
@font-face {
    font-family: 'Red Hat Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/red-hat-display-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Red Hat Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/red-hat-display-400-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Red Hat Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/red-hat-display-600.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Red Hat Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/red-hat-display-600-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================
   1. VARIABLES — compartidas (no cromáticas / no tipográficas)
   Las variables de color y tipografía se inyectan por preset
   vía body.era-preset-* (inc/era-presets.php → inline CSS).
   ============================================================ */
:root {
    --era-radius:         0.375rem;
    --era-radius-sm:      0.5rem;
    --era-radius-lg:      0.625rem;
    /* Forma ERA en imágenes: 3 esquinas suaves + inferior derecha más marcada (rem, no %). */
    --era-radius-img:     1.25rem 1.25rem 3.75rem 1.25rem;
    /* Forma ERA: 3 esquinas suaves + inferior derecha marcada (como CTA corporativo). */
    --era-radius-btn:     0.375rem 0.375rem 1.25rem 0.375rem;
    --era-header-height:  4rem;
    --era-news-ink:       #250e62;
}

/* ============================================================
   2. RESET Y BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--era-font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--era-ink);
    background-color: var(--era-white);
}

/* ============================================================
   3. TIPOGRAFÍA
   Selectores con body[class*="era-preset-"] para ganar a los
   estilos globales de theme.json (:root :where(h1) → #C8102E).
   ============================================================ */
body[class*="era-preset-"] h1,
body[class*="era-preset-"] h2,
body[class*="era-preset-"] h3,
body[class*="era-preset-"] h4,
body[class*="era-preset-"] h5,
body[class*="era-preset-"] h6 {
    font-family: var(--era-font-heading);
    font-weight: var(--era-heading-weight, 600);
    line-height: 1.2;
    color: var(--era-heading-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--era-ink-light);
}

body[class*="era-preset-"] a:where(:not(.wp-element-button)) {
    color: var(--era-navy);
    text-decoration: none;
}

body[class*="era-preset-"] a:where(:not(.wp-element-button)):hover {
    color: var(--era-primary);
    text-decoration: underline;
}

/* ============================================================
   4. CABECERA
   ============================================================ */
.site-header {
    background-color: var(--era-white);
    border-bottom: 1px solid var(--era-border);
    height: var(--era-header-height, 64px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header__inner {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 clamp(1.25rem, 3vw, 2rem);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    box-sizing: border-box;
}

.site-header__zone {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.site-header__zone--left {
    justify-content: flex-start;
    margin-right: auto;
}

.site-header__zone--center {
    justify-content: center;
}

.site-header__zone--right {
    justify-content: flex-end;
    margin-left: auto;
}

/* Si el branding está en left, forzar pegado al inicio */
.site-header__zone--left .site-branding {
    margin-right: auto;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.site-branding--below_logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.site-header__zone--center .site-branding--below_logo {
    align-items: center;
}

.site-header__zone--right .site-branding--below_logo {
    align-items: flex-end;
}

.site-branding .site-title {
    font-family: var(--era-font-heading);
    font-size: 1.625rem; /* +30% sobre 1.25rem */
    font-weight: 700;
    color: var(--era-primary);
    text-decoration: none;
    letter-spacing: .02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-branding .site-title:hover {
    color: var(--era-primary-dark);
    text-decoration: none;
}

.site-branding img,
.site-branding .custom-logo {
    height: var(--era-logo-size, 40px);
    max-height: var(--era-logo-size, 40px);
    width: auto;
    display: block;
}

/* ============================================================
   5. NAVEGACIÓN
   ============================================================ */
.main-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-navigation ul li a {
    display: block;
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--era-ink-light);
    border-radius: var(--era-radius);
    transition: color .15s, background-color .15s;
    text-decoration: none;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
    color: var(--era-primary);
    background-color: var(--era-primary-tint);
    text-decoration: none;
}

/* ============================================================
   6. CONTENIDO PRINCIPAL
   ============================================================ */
.site-main {
    width: 100%;
    padding: 2.5rem 1.5rem;
}

body[class*="era-preset-"] .entry-title {
    font-family: var(--era-font-heading);
    font-weight: var(--era-heading-weight, 600);
    color: var(--era-heading-color);
    margin-bottom: 1.5rem;
}

/* En portada el título de sección lo aporta [era_promociones]. */
body.home .entry-header,
body.home .entry-title {
    display: none;
}

.entry-content {
    color: var(--era-ink-light);
}

/* Imágenes de contenido — esquinas redondeadas ERA (como banners corporativos). */
.entry-content img,
.pon-content-wrap img,
.epmax-part img,
.wp-block-image img,
.wp-block-gallery img,
.wp-block-media-text__media img,
.wp-block-post-featured-image img,
.epmax-featured-image img,
.site-main .wp-caption img,
.site-main figure:not(.site-branding) img {
    max-width: 100%;
    height: auto;
    border-radius: var(--era-radius-img);
}

/* Sin redondeo: logos de cabecera e iconos del sistema. */
.site-branding img,
.site-branding .custom-logo,
img.custom-logo,
.emoji,
.avatar {
    border-radius: 0;
}

/* Ancho completo / amplio (Gutenberg align-wide) */
.entry-content .alignwide {
    max-width: min(100%, 1200px);
    margin-left: auto;
    margin-right: auto;
}

.entry-content .alignfull,
.pon-content-wrap .alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
}

.entry-content .alignfull > *,
.pon-content-wrap .alignfull > * {
    box-sizing: border-box;
}

/* ============================================================
   7. BOTONES
   ============================================================ */
button,
.btn,
input[type="submit"],
input[type="button"],
.wp-block-button__link,
.wp-element-button {
    display: inline-block;
    background-color: var(--era-btn-bg, var(--era-primary));
    color: var(--era-white);
    border: none;
    padding: 0.6rem 1.25rem;
    font-family: var(--era-font-body);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--era-radius-btn);
    cursor: pointer;
    transition: background-color .15s, transform .1s, box-shadow .15s;
    text-decoration: none;
}

button:hover,
.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover,
.wp-element-button:hover {
    background-color: var(--era-btn-bg-hover, var(--era-primary-dark));
}

button:active,
.btn:active,
input[type="submit"]:active,
input[type="button"]:active,
.wp-block-button__link:active,
.wp-element-button:active {
    background-color: var(--era-btn-bg-hover, var(--era-primary-dark));
    transform: translateY(1px);
    box-shadow: none;
}

button:focus-visible,
.btn:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
.wp-block-button__link:focus-visible,
.wp-element-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--era-navy-tint);
}

.btn-navy {
    background-color: var(--era-navy);
}

.btn-navy:hover {
    background-color: var(--era-navy-dark);
}

.btn-navy:active {
    background-color: var(--era-navy-dark);
    transform: translateY(1px);
    box-shadow: none;
}

.btn-navy:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--era-navy-tint);
}

.btn-outline {
    background-color: transparent;
    color: var(--era-primary);
    border: 1.5px solid var(--era-primary);
}

.btn-outline:hover {
    background-color: var(--era-primary-tint);
}

.btn-outline:active {
    background-color: var(--era-primary-tint);
    transform: translateY(1px);
    box-shadow: none;
}

.btn-outline:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--era-primary-tint);
}

/* ============================================================
   8. FORMULARIOS
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.55rem 0.85rem;
    font-family: var(--era-font-body);
    font-size: 0.95rem;
    color: var(--era-ink);
    background-color: var(--era-white);
    border: 1px solid var(--era-border);
    border-radius: var(--era-radius);
    transition: border-color .15s;
    appearance: none;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--era-navy);
    box-shadow: 0 0 0 3px var(--era-navy-tint);
}

/* ============================================================
   9. PIE DE PÁGINA
   ============================================================ */
.site-footer {
    background-color: var(--era-ink);
    color: var(--era-muted);
    padding: 2rem 1.5rem;
    font-size: 0.875rem;
    margin-top: 4rem;
}

.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer a {
    color: var(--era-border);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--era-white);
    text-decoration: none;
}

/* ============================================================
   10. UTILIDADES
   ============================================================ */
.text-primary   { color: var(--era-primary); }
.text-navy      { color: var(--era-navy); }
.text-muted     { color: var(--era-muted); }

.bg-primary     { background-color: var(--era-primary); }
.bg-primary-tint{ background-color: var(--era-primary-tint); }
.bg-navy        { background-color: var(--era-navy); }
.bg-navy-tint   { background-color: var(--era-navy-tint); }
.bg-surface     { background-color: var(--era-surface); }

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: var(--era-radius-img);
}

.badge-primary {
    background-color: var(--era-primary-tint);
    color: var(--era-primary-dark);
}

.badge-navy {
    background-color: var(--era-navy-tint);
    color: var(--era-navy-dark);
}

/* ============================================================
   11. MENÚ LATERAL (fvppt-sidebar-menu)
   ============================================================ */
.fvppt-sidebar-menu {
    list-style: none;
    padding: 1rem 0.75rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fvppt-sidebar-menu li a {
    display: block;
    width: 100%;
    padding: 0.6rem 1.25rem;
    background-color: var(--era-btn-bg, var(--era-primary));
    color: var(--era-white);
    font-family: var(--era-font-body);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--era-radius-btn);
    text-decoration: none;
    transition: background-color .15s, transform .1s;
}

.fvppt-sidebar-menu li a:hover {
    background-color: var(--era-btn-bg-hover, var(--era-primary-dark));
    text-decoration: none;
    color: var(--era-white);
}

.fvppt-sidebar-menu li a:active {
    background-color: var(--era-btn-bg-hover, var(--era-primary-dark));
    transform: translateY(1px);
}

.fvppt-sidebar-menu li.current-menu-item > a {
    background-color: var(--era-btn-bg-hover, var(--era-primary-dark));
}

/* ============================================================
   12. PIE LEGAL ERA (plantillas Obra Nueva)
   Layout equilibrado: 5 botones + canal debajo, redes y texto legal.
   ============================================================ */
.elementor-12553.era-site-footer,
.era-site-footer.elementor-12553 {
    --era-footer-bg: #C8102E;
    --era-footer-btn: rgba(0, 0, 0, 0.28);
    --era-footer-btn-hover: rgba(0, 0, 0, 0.45);
    --era-footer-max: 1120px;
    background: var(--era-footer-bg, var(--era-primary, #C8102E));
    color: #fff;
    font-family: var(--era-font-body, "Red Hat Display", "Segoe UI", sans-serif);
    width: 100%;
    margin: 0;
    padding: 2.75rem 0 1.75rem;
    box-sizing: border-box;
}

body.pon-landing .era-site-footer {
    padding-bottom: 5.5rem;
}

.era-site-footer__inner {
    width: min(100% - 2.5rem, var(--era-footer-max));
    margin-inline: auto;
    box-sizing: border-box;
}

.era-site-footer__links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0 0 1.75rem;
}

.era-site-footer__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.7rem 0.85rem;
    background: var(--era-footer-btn);
    color: #fff !important;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    border-radius: var(--era-radius-btn);
    transition: background-color 0.15s ease;
}

.era-site-footer__links a:last-child {
    grid-column: 1;
}

.era-site-footer__links a:hover,
.era-site-footer__links a:focus {
    background: var(--era-footer-btn-hover);
}

.era-site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
}

.era-site-footer__social-link {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--era-radius-sm);
    background-color: #2f2f2f;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1.15rem 1.15rem;
    text-decoration: none;
    transition: transform 0.12s ease, opacity 0.12s ease;
}

.era-site-footer__social-link:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.era-site-footer__social-link--linkedin {
    background-color: #0a66c2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M4.98 3.5C4.98 4.88 3.88 6 2.5 6S0 4.88 0 3.5 1.12 1 2.5 1s2.48 1.12 2.48 2.5zM.5 8.5h4V23h-4V8.5zM8.5 8.5h3.8v2h.05c.53-1 1.82-2.05 3.75-2.05 4.01 0 4.75 2.64 4.75 6.07V23h-4v-6.6c0-1.57-.03-3.59-2.19-3.59-2.19 0-2.53 1.71-2.53 3.48V23h-4V8.5z'/%3E%3C/svg%3E");
}
.era-site-footer__social-link--facebook {
    background-color: #1877f2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M22 12.06C22 6.5 17.52 2 12 2S2 6.5 2 12.06c0 5.02 3.66 9.18 8.44 9.94v-7.03H7.9v-2.91h2.54V9.84c0-2.5 1.49-3.89 3.77-3.89 1.09 0 2.24.2 2.24.2v2.46h-1.26c-1.24 0-1.63.77-1.63 1.56v1.88h2.78l-.44 2.91h-2.34V22c4.78-.76 8.44-4.92 8.44-9.94z'/%3E%3C/svg%3E");
}
.era-site-footer__social-link--instagram {
    background-color: #111;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5zm5 5.2A4.8 4.8 0 1 0 16.8 12 4.8 4.8 0 0 0 12 7.2zm0 7.9A3.1 3.1 0 1 1 15.1 12 3.1 3.1 0 0 1 12 15.1zM17.65 6.1a1.15 1.15 0 1 0 1.15 1.15 1.15 1.15 0 0 0-1.15-1.15z'/%3E%3C/svg%3E");
}
.era-site-footer__social-link--tiktok {
    background-color: #2f2f2f;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M21 8.2a6.7 6.7 0 0 1-3.9-1.2v6.7a5.9 5.9 0 1 1-5.9-5.9c.2 0 .5 0 .7.05v2.9a3 3 0 1 0 2.1 2.9V2.5h2.9A3.8 3.8 0 0 0 21 5.4V8.2z'/%3E%3C/svg%3E");
}
.era-site-footer__social-link--youtube {
    background-color: #ff0000;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M23.5 6.2a3 3 0 0 0-2.1-2.1C19.5 3.5 12 3.5 12 3.5s-7.5 0-9.4.6A3 3 0 0 0 .5 6.2 31.5 31.5 0 0 0 0 12a31.5 31.5 0 0 0 .5 5.8 3 3 0 0 0 2.1 2.1c1.9.6 9.4.6 9.4.6s7.5 0 9.4-.6a3 3 0 0 0 2.1-2.1A31.5 31.5 0 0 0 24 12a31.5 31.5 0 0 0-.5-5.8zM9.75 15.5v-7l6.5 3.5-6.5 3.5z'/%3E%3C/svg%3E");
}
.era-site-footer__social-link--spotify {
    background-color: #1db954;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.5 17.3a.75.75 0 0 1-1.03.25c-2.82-1.72-6.37-2.11-10.55-1.16a.75.75 0 1 1-.33-1.46c4.56-1.03 8.48-.59 11.66 1.34a.75.75 0 0 1 .25 1.03zm1.47-3.27a.93.93 0 0 1-1.28.31c-3.23-1.98-8.15-2.56-11.97-1.4a.94.94 0 1 1-.54-1.8c4.34-1.3 9.76-.67 13.48 1.61a.93.93 0 0 1 .31 1.28zm.13-3.4c-3.87-2.3-10.26-2.51-13.96-1.39a1.12 1.12 0 1 1-.65-2.14c4.24-1.28 11.28-1.03 15.74 1.61a1.12 1.12 0 1 1-1.13 1.92z'/%3E%3C/svg%3E");
}

.era-site-footer__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.era-site-footer__legal {
    color: #fff;
    font-size: 0.8125rem;
    line-height: 1.65;
    max-width: 72rem;
}

.era-site-footer__legal p {
    margin: 0 0 0.65rem;
    color: #fff; /* anula p { color: var(--era-ink-light) } del tema */
}

.era-site-footer__legal p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   13. RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .era-site-footer__links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .era-site-footer__links a:last-child {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .site-header__inner {
        padding: 0 1rem;
    }

    .main-navigation {
        display: none;
    }

    .site-main {
        padding: 1.5rem 1rem;
    }

    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.35rem; }

    .era-site-footer {
        padding-top: 2rem;
    }

    body.pon-landing .era-site-footer {
        padding-bottom: 6rem;
    }

    .era-site-footer__inner {
        width: min(100% - 2rem, var(--era-footer-max, 1120px));
    }

    .era-site-footer__links {
        grid-template-columns: 1fr 1fr;
        gap: 0.55rem;
    }

    .era-site-footer__links a {
        font-size: 0.65rem;
        min-height: 2.5rem;
        padding: 0.55rem 0.6rem;
    }

    .era-site-footer__legal {
        font-size: 0.75rem;
    }
}

/*
 * Cabeceras EPMAX en móvil (≤600px = breakpoint del overlay del bloque Navegación):
 * fila 1 = logo (+ título solo si la plantilla ya lo trae)
 * fila 2 = bocadillo del menú
 * No se fuerza título en cabeceras que no lo tienen.
 */
@media (max-width: 600px) {
	.epmax-blog-header {
		display: grid !important;
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-rows: auto auto;
		align-items: center;
		justify-content: stretch;
		column-gap: 0.75rem;
		row-gap: 0.5rem;
		flex-wrap: unset;
	}

	.epmax-blog-header__logo {
		grid-column: 1;
		grid-row: 1;
		margin: 0;
	}

	.epmax-blog-header__main {
		display: contents;
	}

	.epmax-blog-header__main > .wp-block-heading {
		grid-column: 2;
		grid-row: 1;
		justify-self: start;
		align-self: center;
		margin: 0;
		text-align: left !important;
	}

	.epmax-blog-header__nav,
	.epmax-blog-header .wp-block-navigation {
		grid-column: 1 / -1;
		grid-row: 2;
		width: 100%;
		justify-content: center;
	}

	.epmax-blog-header .wp-block-navigation__responsive-container-open {
		margin-inline: auto;
	}

	.epmax-site-header {
		display: grid !important;
		grid-template-columns: 1fr;
		grid-template-rows: auto auto;
		align-items: center;
		justify-items: stretch;
		gap: 0.5rem;
		flex-wrap: unset;
	}

	.epmax-site-header__logo {
		grid-row: 1;
		justify-self: start;
		margin: 0;
	}

	.epmax-site-header__nav-wrap {
		grid-row: 2;
		width: 100%;
		margin: 0 !important;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
	}

	.epmax-site-header > .wp-block-navigation,
	.epmax-site-header__nav {
		grid-row: 2;
		width: 100%;
		justify-content: center;
	}

	.epmax-site-header .wp-block-navigation__responsive-container-open {
		margin-inline: auto;
	}

	.epmax-site-header__nav-wrap > .wp-block-separator {
		display: none;
	}

	/* Home: solo nav en la barra; no se inventa logo/título. */
	.era-home-cabecera__nav {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.era-home-cabecera__nav .wp-block-navigation__responsive-container-open {
		margin-inline: auto;
	}
}

