/* Ajustes transversales medidos. Sin cambios en definiciones de formularios. */
body a,body button {transition-property:color,background-color,border-color,transform,opacity;transition-duration:160ms,160ms,160ms,240ms,240ms;transition-timing-function:cubic-bezier(.4,0,.2,1)}
body,.site,.site-main {background-color:transparent}
html {background:#fff}
body .entry-content h2 {font-size:clamp(32px,3.5vw,50px);font-weight:500;line-height:1.16}
body .entry-content p,body .entry-content li {font-size:19px;line-height:1.7}
body .entry-content :where(input,select,textarea,label,small) {font-size:16px}
@media(min-width:1100px){body .entry-content p,body .entry-content li{font-size:22px}}
@media print {.secpec-skip,.screen-reader-text.skip-link,.secpec-menu-toggle,.secpec-carousel__controls {display:none!important} [data-secpec-slide]{display:block!important;opacity:1!important;transform:none!important} body *{animation:none!important;transition:none!important}}
@media(prefers-reduced-motion:reduce){body *,body *::before,body *::after{animation:none!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Las tarjetas tienen un único marco; sus contenedores interiores son transparentes. */
body.home .gb-grid-wrapper-b94a53b0 .gb-container,body.home .gb-grid-wrapper-92551b95 .gb-container {border:0;padding:0!important;background:transparent!important;height:auto}
body.home .gb-grid-wrapper-b94a53b0>.gb-grid-column>.gb-container,body.home .gb-grid-wrapper-92551b95>.gb-grid-column>.gb-container{border:1px solid var(--secpec-line);padding:24px!important;height:100%}
body.home .gb-container-99e2cc03,body.home .gb-container-588ff812,body.home .gb-container-3bb3824b{padding:72px 24px!important;background:#fff!important;border:0}
body.home .gb-container-99e2cc03 .gb-headline,body.home .gb-container-588ff812 .gb-headline,body.home .gb-container-3bb3824b .gb-headline{font-size:50px!important;font-weight:500}
.secpec-header__inner{gap:24px}
.secpec-lead{color:#1a3661;max-width:58ch!important;margin-block:24px}
.secpec-contacto a{display:inline-flex;align-items:center;min-height:44px}
@media(max-width:1099px){body.home .gb-container-99e2cc03,body.home .gb-container-588ff812,body.home .gb-container-3bb3824b{padding-block:56px!important}}
@media(max-width:599px){body.home .gb-container-99e2cc03,body.home .gb-container-588ff812,body.home .gb-container-3bb3824b{padding-block:48px!important}body.home .gb-container-99e2cc03 .gb-headline,body.home .gb-container-588ff812 .gb-headline,body.home .gb-container-3bb3824b .gb-headline{font-size:32px!important}.secpec-header__inner{gap:16px}}

.secpec-menu .sub-menu .sub-menu{position:static;display:block;min-width:0;box-shadow:none;border:0;padding-left:16px}

body.home .entry-content .gb-container,body.home .entry-content .gb-headline{background-color:transparent!important}
body.home .entry-content .gb-headline{text-align:left!important}
@media(max-width:599px){.separate-containers .inside-article{padding:24px!important}.entry-content{padding-inline:0!important}}

@media(min-width:769px){.secpec-nav{flex:1 1 auto;min-width:0}.secpec-menu{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0}.secpec-menu>li{min-width:0}.secpec-menu>li>a{white-space:normal;padding-inline:8px;overflow-wrap:anywhere}}


.secpec-contacto{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.secpec-contacto a.secpec-join{background:var(--secpec-action, #0b5963);color:#fff;padding:8px 24px;border-radius:6px;text-decoration:none;min-height:48px}

/* Tres destacados y tres eventos sin una tarjeta huérfana. */
@media(min-width:1100px){body.home .gb-grid-wrapper-b94a53b0,body.home .gb-grid-wrapper-92551b95{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:600px) and (max-width:1099px){body.home .gb-grid-wrapper-b94a53b0,body.home .gb-grid-wrapper-92551b95{grid-template-columns:1fr}}
body.home .gb-grid-wrapper-afb7a91f{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;max-width:800px;margin-inline:auto}
body.home .gb-grid-wrapper-afb7a91f>.gb-grid-column{width:auto;min-width:0;padding:0}
body.home .gb-grid-wrapper-afb7a91f img{max-width:min(100%,352px);height:auto;margin-inline:auto}
@media(max-width:599px){body.home .gb-grid-wrapper-afb7a91f{grid-template-columns:1fr}}

/* Estructuras originales de Gravity Forms: legibles, sin forzar radios a 48px. */
body .entry-content .gb-button{border-radius:6px!important}
body .wp-block-social-links .wp-social-link{border-radius:8px!important}
body .wp-block-social-links .wp-social-link a{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
body .gform_wrapper,body .gform_wrapper *{box-sizing:border-box;min-width:0}
body .gform_wrapper{overflow-wrap:anywhere;max-width:100%}
body .gform_wrapper input[type=file]{width:100%;max-width:100%}
body .gform_wrapper .gfield_required,body .gform_wrapper .gfield_description,body .gform_wrapper .gform_description,body .gform_wrapper .gform_button,body .gform_wrapper .ginput_counter{font-size:16px!important}
body .gform_wrapper input[type=radio],body .gform_wrapper input[type=checkbox]{width:16px!important;height:16px!important;min-height:16px!important;min-width:16px!important;max-width:16px;padding:0!important;border-radius:8px!important}
body .gform_wrapper .gchoice{min-height:44px;display:flex;align-items:center;gap:8px}
body .gform_wrapper .gchoice label{padding-block:10px;line-height:1.4}
body .gform_wrapper .gfield_html [style*="border-radius"]{border-radius:8px!important;max-width:100%;box-sizing:border-box}
body .gform_wrapper [style*="font-size:8px"],body .gform_wrapper [style*="font-size: 8px"],body .gform_wrapper [style*="font-size:9px"],body .gform_wrapper [style*="font-size: 9px"],body .gform_wrapper [style*="font-size:10px"],body .gform_wrapper [style*="font-size: 10px"],body .gform_wrapper [style*="font-size:11px"],body .gform_wrapper [style*="font-size: 11px"],body .gform_wrapper [style*="font-size:12px"],body .gform_wrapper [style*="font-size: 12px"],body .gform_wrapper [style*="font-size:13px"],body .gform_wrapper [style*="font-size: 13px"],body .gform_wrapper [style*="font-size:14px"],body .gform_wrapper [style*="font-size: 14px"],body .gform_wrapper [style*="font-size:15px"],body .gform_wrapper [style*="font-size: 15px"]{font-size:16px!important}

body .gform_wrapper .gfield_html [style*="display: flex"],body .gform_wrapper .gfield_html [style*="display:flex"]{flex-wrap:wrap!important;min-width:0;gap:16px!important}
body .gform_wrapper .gfield_html [style*="linear-gradient"]{background-image:none!important;background-color:#1a3661!important;box-shadow:none!important}

/* Evitar la caja blanca de GP sobre el mismo fondo blanco: un marco por tarjeta. */
body.home{background-color:#fff}
body.home #page{background-color:transparent}
body.home.separate-containers .inside-article{background-color:transparent}

/* Accesibilidad auditada: contraste del formulario, objetivo del calendario y enlaces vacíos. */
body .gform_wrapper #field_1_92 [style*="linear-gradient"]{color:#fff!important}
body .gform_wrapper #field_1_92 [style*="linear-gradient"] *{color:#fff!important}
body .gform_wrapper #field_1_92 p[style*="6b7a90"],body .gform_wrapper #field_1_92 p[style*="107, 122, 144"]{color:#526274!important}
/* El aviso «Documento requerido» es un degradado azul oscuro: sobre él el botón va invertido para que se distinga. */
body .gform_wrapper #field_1_92 a[download]{min-height:48px;border:2px solid #fff!important;border-radius:6px!important;background:#fff!important;color:var(--secpec-action, #0b5963)!important;font-family:"Fira Sans",sans-serif!important;font-size:16px!important;font-weight:600!important}
body .gform_wrapper #field_1_92 a[download]:hover{background:var(--secpec-action-soft, #e6f2f3)!important;color:var(--secpec-action-hover, #084750)!important}
body .gform_wrapper #field_1_92 a[download]:focus-visible{outline:3px solid #fff!important;outline-offset:3px!important}
/* El icono trae stroke="white" en el HTML del formulario y el panel fuerza color blanco a todo su contenido:
   sobre el botón blanco se pinta con el petróleo del texto. */
body .gform_wrapper #field_1_92 a[download] svg path{stroke:var(--secpec-action, #0b5963)!important}
body .gform_wrapper #field_1_92 a[download]:hover svg path{stroke:var(--secpec-action-hover, #084750)!important}
/* Pasos 1-2-3 del mismo aviso: con el mínimo de 16px no caben en tres columnas en móvil y se partían letra a letra. */
@media(max-width:600px){body .gform_wrapper #field_1_92 p[style*="text-transform: uppercase"]{letter-spacing:0!important;overflow-wrap:normal!important;-webkit-hyphens:auto;hyphens:auto}}
body .gform_wrapper button.gform-datepicker-toggle{box-sizing:border-box!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;line-height:44px!important}
.cmplz-documents a.cmplz-link[data-relative_url=""]{display:none!important}
body .gform_wrapper .gform-field-label__text a{ text-decoration:underline!important;text-underline-offset:.15em }
body .entry-content a.gb-button[href]{background-color:var(--secpec-action, #0b5963);color:#fff;font-weight:600}
/* Botones de contenido en dos líneas: reparto equilibrado, así «->» no queda partido en «-» y «>». */
body .entry-content a.gb-button[href]{text-wrap:balance}
body .entry-content .wp-block-button__link{font-weight:600}
body .entry-content a.gb-button[href]:hover,body .entry-content a.gb-button[href]:focus-visible{background-color:var(--secpec-action-hover, #084750);color:#fff}
body .gb-button-3af74acb{background:var(--secpec-action, #0b5963)!important;color:#fff!important}
body .gb-button-3af74acb:hover,body .gb-button-3af74acb:focus-visible{background:var(--secpec-action-hover, #084750)!important;color:#fff!important}
body .gform_wrapper .gform_footer .gform_button,body .gform_wrapper .gform_page_footer .gform_button,body .gform_wrapper .gform_page_footer .gform_next_button{min-height:48px!important;padding:12px 24px!important;border:2px solid var(--secpec-action, #0b5963)!important;border-radius:6px!important;background:var(--secpec-action, #0b5963)!important;color:#fff!important;font-size:16px!important;font-weight:600!important;line-height:1.3!important}
body .gform_wrapper .gform_footer .gform_button:hover,body .gform_wrapper .gform_page_footer .gform_button:hover,body .gform_wrapper .gform_page_footer .gform_next_button:hover{border-color:var(--secpec-action-hover, #084750)!important;background:var(--secpec-action-hover, #084750)!important;color:#fff!important}
body .gform_wrapper .gform_page_footer .gform_previous_button{min-height:48px!important;padding:12px 24px!important;border:2px solid var(--secpec-action, #0b5963)!important;border-radius:6px!important;background:#fff!important;color:var(--secpec-action, #0b5963)!important;font-size:16px!important;font-weight:600!important}
body .gform_wrapper .gform_page_footer .gform_previous_button:hover{background:var(--secpec-action-soft, #e6f2f3)!important;color:var(--secpec-action-hover, #084750)!important}
body .gform_wrapper .gform_footer .gform_button:focus-visible,body .gform_wrapper .gform_page_footer .button:focus-visible{outline:3px solid var(--secpec-action, #0b5963)!important;outline-offset:3px!important}
body.page-id-4465 .entry-content figure.wp-block-table{display:block;width:100%;max-width:100%;min-width:0;overflow:visible!important}
body.page-id-4465 .entry-content figure.wp-block-table table{width:100%!important;max-width:100%;min-width:0;table-layout:fixed}
body.page-id-4465 .entry-content figure.wp-block-table th,body.page-id-4465 .entry-content figure.wp-block-table td{min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:normal}

/* GravityView: los selects nativos quedan por debajo de 44 px en iOS. */
body .entry-content form.gv-widget-search select{box-sizing:border-box;min-height:44px;max-width:100%;font-size:16px}

/* Revision v2: cabecera y orden de portada basados en la identidad SECPEC existente. */
.secpec-header{position:relative;z-index:20;border:0;background:#fff}
.secpec-masthead{position:relative;width:100%;height:180px;overflow:hidden;background:#f4f9fc}
.secpec-masthead__heading{position:absolute;inset:0;margin:0;line-height:0}
.secpec-masthead__brand{display:block;width:100%;height:100%;line-height:0}
.secpec-masthead__picture{display:block;width:100%;height:100%}
.secpec-masthead__art{display:block;width:100%;height:100%;object-fit:cover;object-position:center 50%;border:0;border-radius:0}
.secpec-masthead__mobile-logo{display:none}
.secpec-header__actions{position:absolute;z-index:2;top:18px;right:max(24px,calc((100% - 1320px)/2));display:flex;gap:24px}
.secpec-header__actions a{display:inline-flex;min-width:136px;min-height:48px;align-items:center;justify-content:center;padding:10px 16px;border-radius:6px;color:#fff;text-align:center;text-decoration:none;font-size:16px;font-weight:700}
.secpec-header__actions .secpec-member-link{border:2px solid var(--secpec-action, #0b5963);background:#fff;color:var(--secpec-action, #0b5963)}
.secpec-header__actions .secpec-member-link:hover,.secpec-header__actions .secpec-member-link:focus-visible{border-color:var(--secpec-action-hover, #084750);background:var(--secpec-action-soft, #e6f2f3);color:var(--secpec-action-hover, #084750)}
.secpec-header__actions .secpec-join-link{background:var(--secpec-action, #0b5963)}
.secpec-header__actions .secpec-join-link:hover,.secpec-header__actions .secpec-join-link:focus-visible{background:var(--secpec-action-hover, #084750);color:#fff}
.secpec-nav{position:relative;z-index:1;width:100%;margin:0;background:#1a3661}
.secpec-menu{max-width:1320px;min-height:60px;margin:0 auto;padding:0 16px;display:flex;justify-content:center;gap:4px}
.secpec-menu>li{min-width:0}
.secpec-menu>li>a{min-height:60px;padding:10px 12px;color:#fff;font-size:16px;line-height:1.25;font-weight:650;text-align:center}
.secpec-menu>li>a:hover,.secpec-menu>li>a:focus-visible{background:#284875;color:#fff;text-decoration:underline;text-underline-offset:4px}
.secpec-menu .sub-menu{background:#10284a;border-color:#355478;box-shadow:0 8px 20px #10284a26}
.secpec-menu .sub-menu a{min-height:44px;color:#fff;text-align:left}
.secpec-menu .sub-menu a:hover,.secpec-menu .sub-menu a:focus-visible{background:#284875;color:#fff}
.secpec-menu-toggle{display:none}
body.home .inside-article{padding-top:0;padding-bottom:0}
body.home .entry-content{margin-top:0;padding-top:0;padding-bottom:0}
body.home .entry-content .secpec-lead{max-width:72ch!important;margin:14px auto 12px!important;color:#263547;text-align:center;font-size:17px;line-height:1.4}
body.home .entry-content .secpec-contacto{justify-content:center;margin:0 auto 12px;gap:12px}
body.home .entry-content .secpec-contacto a{min-height:44px;font-size:16px}
body.home .gb-container-99e2cc03,body.home .gb-container-588ff812,body.home .gb-container-3bb3824b{box-sizing:border-box;width:100%;min-height:0;height:auto;padding:16px 24px!important;border:0!important;border-radius:0!important;background:#1a3661!important;color:#fff!important;text-align:center}
body.home .gb-container-99e2cc03 .gb-headline,body.home .gb-container-588ff812 .gb-headline,body.home .gb-container-3bb3824b .gb-headline{margin:0;color:#fff!important;font-size:48px!important;line-height:1.25;text-align:center!important}
body.home .site-content{margin-top:0!important;padding-top:0!important}
body.home .site-main{margin-top:0!important}
@media(min-width:769px) and (max-width:1100px){.secpec-menu{gap:0;padding-inline:12px}.secpec-menu>li>a{padding-inline:6px;font-size:16px}}
@media(max-width:768px){
 .secpec-masthead{--secpec-art-height:clamp(110px,15.625vw,160px);height:calc(var(--secpec-art-height) + 64px)}
 .secpec-masthead__heading{height:var(--secpec-art-height);bottom:auto}
 .secpec-header__actions{position:absolute;top:var(--secpec-art-height);left:0;right:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:8px 16px;background:#fff}
 .secpec-header__actions a{min-width:0;min-height:48px;padding:8px;font-size:15px}
 .secpec-menu-toggle{position:absolute;z-index:4;top:12px;right:12px;display:none;min-width:44px;min-height:44px;align-items:center;justify-content:center;gap:8px;padding:8px 12px;border:1px solid #1a3661;border-radius:4px;background:#fff;color:#1a3661;font-size:16px}
 html.secpec-js .secpec-menu-toggle{display:inline-flex}
 .secpec-nav{display:block;min-height:0;background:#1a3661}
 html.secpec-js .secpec-nav{position:absolute;top:100%;left:0;right:0;width:100%;max-height:min(72vh,620px);overflow-y:auto;visibility:hidden;opacity:0;transform:translateY(-6px);pointer-events:none;transition:opacity 160ms ease,transform 160ms ease,visibility 0s linear 160ms}
 html.secpec-js .secpec-nav.is-open{visibility:visible;opacity:1;transform:none;pointer-events:auto;transition-delay:0s}
 .secpec-menu{display:block;min-height:0;padding:8px 16px 14px}
 .secpec-menu>li{border-bottom:1px solid #ffffff2b}
 .secpec-menu>li>a{min-height:48px;justify-content:flex-start;padding:10px 8px;color:#fff;text-align:left;font-size:16px}
 .secpec-menu .sub-menu{position:static;display:block;min-width:0;padding:0 0 8px 16px;border:0;background:transparent;box-shadow:none}
 .secpec-menu .sub-menu a{min-height:44px;color:#fff}
 body.home .inside-article{padding-inline:0}
 body.home .entry-content{padding-inline:0!important}
 body.home .entry-content .secpec-lead{margin:12px 16px 10px!important;font-size:16px;line-height:1.4}
 body.home .entry-content .secpec-contacto{margin:0 16px 12px;justify-content:center}

 body.home .gb-container-99e2cc03,body.home .gb-container-588ff812,body.home .gb-container-3bb3824b{padding:14px 16px!important}
 }
@media(prefers-reduced-motion:reduce){html.secpec-js .secpec-nav,html.secpec-js .secpec-nav.is-open{transition:none;transform:none}}
@media(max-width:768px){.secpec-masthead__art{object-position:72% center}body.home .site-content{margin-top:0!important}body.home .site-main{margin-top:0!important}body.home .inside-article{margin-top:0!important;padding-top:0!important}}
@media(max-width:600px){.secpec-masthead{--secpec-art-height:90px!important;height:154px!important}.secpec-masthead__heading{height:90px!important}.secpec-header__actions{top:90px!important}.secpec-header__actions .secpec-member-link{border:2px solid var(--secpec-action, #0b5963);background:#fff;color:var(--secpec-action, #0b5963)}.secpec-header__actions .secpec-join-link{background:var(--secpec-action, #0b5963);color:#fff}}
@media(max-width:600px){.secpec-masthead__art{object-position:100% center}.secpec-masthead__mobile-logo{position:absolute;z-index:2;top:14px;left:16px;display:block;width:auto;height:60px;max-width:45%;object-fit:contain}}
body.home .entry-content .gb-container-99e2cc03,body.home .entry-content .gb-container-588ff812,body.home .entry-content .gb-container-3bb3824b{background-color:#1a3661!important;color:#fff!important}
body.home .entry-content .gb-container-99e2cc03 .gb-headline,body.home .entry-content .gb-container-588ff812 .gb-headline,body.home .entry-content .gb-container-3bb3824b .gb-headline{background-color:transparent!important;color:#fff!important}
@media(max-width:600px){
 .secpec-masthead{--secpec-art-height:110px!important;height:174px!important}
 .secpec-masthead__heading{height:110px!important}
 .secpec-header__actions{top:110px!important}
 .secpec-masthead__mobile-logo{top:12px;left:16px;width:120px;height:86px;max-width:120px}
 body.home .gb-container-99e2cc03 .gb-headline,body.home .gb-container-588ff812 .gb-headline,body.home .gb-container-3bb3824b .gb-headline{font-size:32px!important}
 body.home .inside-article{padding-inline:16px!important}
 body.home .entry-content{width:100%;padding-inline:0!important}
}

/* R4: despejar la marca incrustada en el arte y mostrar el logo completo entre 600 y 767 px. */
@media (min-width: 600px) and (max-width: 767px) {
  .secpec-masthead { background-color: #fff; }
  .secpec-masthead__art {
    object-position: 100% center;
    clip-path: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, transparent 150px, #000 200px);
    mask-image: linear-gradient(to right, transparent 0, transparent 150px, #000 200px);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }
  .secpec-masthead__mobile-logo {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 16px;
    display: block;
    width: 120px;
    height: 86px;
    max-width: min(120px, calc(100% - 32px));
    object-fit: contain;
  }
}


/* Cabecera compacta hasta que el menú de escritorio tenga espacio suficiente. */
@media (min-width: 769px) and (max-width: 1024px) {
  .secpec-masthead { --secpec-art-height: clamp(110px, 15.625vw, 160px); height: calc(var(--secpec-art-height) + 64px); }
  .secpec-masthead__heading { height: var(--secpec-art-height); bottom: auto; }
  .secpec-header__actions {
    position: absolute; top: var(--secpec-art-height); left: 0; right: 0; z-index: 2;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
    padding: 8px 16px; background: #fff;
  }
  .secpec-header__actions a { min-width: 0; min-height: 48px; padding: 8px; font-size: 15px; }
  .secpec-menu-toggle {
    position: absolute; top: 12px; right: 12px; z-index: 4; display: none;
    min-width: 44px; min-height: 44px; align-items: center; justify-content: center; gap: 8px;
    padding: 8px 12px; border: 1px solid #1a3661; border-radius: 4px;
    background: #fff; color: #1a3661; font-size: 16px;
  }
  .secpec-menu-toggle__icon,
  .secpec-menu-toggle__icon::before,
  .secpec-menu-toggle__icon::after {
    width: 18px;
    height: 2px;
    display: block;
    position: relative;
    background: currentColor;
  }
  .secpec-menu-toggle__icon::before,
  .secpec-menu-toggle__icon::after { content: ''; position: absolute; left: 0; }
  .secpec-menu-toggle__icon::before { top: -6px; }
  .secpec-menu-toggle__icon::after { top: 6px; }
  html.secpec-js .secpec-menu-toggle { display: inline-flex; }
  .secpec-nav { display: block; min-height: 0; background: #1a3661; }
  html.secpec-js .secpec-nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 3; width: 100%;
    max-height: min(72vh, 620px); overflow-y: auto; visibility: hidden; opacity: 0;
    transform: translateY(-6px); pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
  }
  html.secpec-js .secpec-nav.is-open { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s; }
  .secpec-menu { display: block; width: 100%; min-height: 0; margin: 0; padding: 8px 16px 14px; }
  .secpec-menu > li { min-width: 0; border-bottom: 1px solid #ffffff2b; }
  .secpec-menu > li > a {
    display: flex; min-width: 0; min-height: 48px; justify-content: flex-start; padding: 10px 8px;
    color: #fff; font-size: 16px; line-height: 1.25; text-align: left;
    white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: manual;
  }
  .secpec-menu .sub-menu { position: static; display: block; min-width: 0; padding: 0 0 8px 16px; border: 0; background: transparent; box-shadow: none; }
  .secpec-menu .sub-menu a { min-height: 44px; color: #fff; white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: manual; }
}


/* Desde 1025 px, dejar que los nombres del menú ocupen su ancho natural. */
@media (min-width: 1025px) {
  .secpec-masthead { height: max(180px, 11.458333vw); }
  .secpec-menu {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
  }
  .secpec-menu > li { flex: 0 1 auto; min-width: min-content; max-width: 100%; }
  .secpec-menu > li > a {
    width: auto;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
    text-wrap: balance;
  }
}

@media(prefers-reduced-motion:reduce){html.secpec-js .secpec-nav,html.secpec-js .secpec-nav.is-open{transition:none!important;transform:none!important}}

/* Franja de botones de cabecera (hasta 1024px): mismo margen lateral que el banner de portada; 16px donde no hay banner. */
@media (max-width: 1024px) { .secpec-header__actions { padding-inline: var(--secpec-banner-gutter, 16px); } }
