/* =========================================================
   MODELFORMY - AJUSTE DE ENCABEZADO
   - Reduce altura visual de la franja superior
   - Aumenta el logotipo aprox. 1 cm
   - Mantiene legibilidad y proporciones
   ========================================================= */

:root{
  --mf-header-pad-top: 8px;
  --mf-header-pad-bottom: 8px;
  --mf-header-gap: 20px;
  --mf-logo-height-desktop: 110px; /* + aprox. 1 cm */
  --mf-logo-height-mobile: 82px;
  --mf-brand-title-size: clamp(38px, 4.6vw, 64px);
  --mf-brand-subtitle-size: clamp(14px, 1.35vw, 24px);
}

/* Franja superior más baja */
body > header,
header:first-of-type,
.mf-header,
.mf-site-header,
.site-header,
.mf-top-header,
.mf-main-header {
  padding-top: var(--mf-header-pad-top) !important;
  padding-bottom: var(--mf-header-pad-bottom) !important;
  min-height: auto !important;
}

/* Contenedores internos del header */
body > header .wrap,
body > header .container,
body > header .inner,
body > header .content,
body > header .row,
header:first-of-type .wrap,
header:first-of-type .container,
header:first-of-type .inner,
header:first-of-type .content,
header:first-of-type .row,
.mf-header .wrap,
.mf-header .container,
.mf-header .inner,
.mf-header .content,
.mf-header .row,
.mf-site-header .wrap,
.mf-site-header .container,
.mf-site-header .inner,
.mf-site-header .content,
.mf-site-header .row,
.site-header .wrap,
.site-header .container,
.site-header .inner,
.site-header .content,
.site-header .row {
  min-height: auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  align-items: center !important;
}

/* Bloque de marca */
.brand.cover-brand,
.cover-brand,
.mf-brand,
.mf-branding,
.mf-brand-wrap,
.mf-brand-row {
  display: flex !important;
  align-items: center !important;
  gap: var(--mf-header-gap) !important;
}

/* Logo más grande */
.mf-brand-logo,
.mf-logo,
.brand.cover-brand img,
.cover-brand img,
.mf-branding img,
.mf-brand img {
  height: var(--mf-logo-height-desktop) !important;
  width: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
}

/* Nombre y subtítulo de marca */
.cover-brand-name,
.mf-brand-copy,
.mf-brand-text,
.mf-brand-block {
  margin: 0 !important;
  padding: 0 !important;
}

.cover-brand-name h1,
.cover-brand-name .title,
.mf-brand-title,
.mf-site-title,
.brand-title {
  font-size: var(--mf-brand-title-size) !important;
  line-height: 1.02 !important;
  margin: 0 0 6px 0 !important;
  letter-spacing: 0.02em !important;
}

.cover-brand-name p,
.cover-brand-name .subtitle,
.mf-brand-subtitle,
.mf-site-subtitle,
.brand-subtitle {
  font-size: var(--mf-brand-subtitle-size) !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  letter-spacing: 0.12em !important;
}

/* Navegación y botón alineados */
.mf-nav,
.mf-main-nav,
.mf-header-nav,
.site-header nav,
.mf-header-actions,
.mf-header-cta,
.mf-locale-switcher,
.mf-language-switcher {
  align-items: center !important;
}

/* Reducir márgenes verticales innecesarios dentro del header */
body > header *:first-child,
header:first-of-type *:first-child {
  margin-top: 0 !important;
}
body > header *:last-child,
header:first-of-type *:last-child {
  margin-bottom: 0 !important;
}

/* Ajuste móvil */
@media (max-width: 900px){
  :root{
    --mf-header-pad-top: 6px;
    --mf-header-pad-bottom: 6px;
    --mf-header-gap: 14px;
  }

  .mf-brand-logo,
  .mf-logo,
  .brand.cover-brand img,
  .cover-brand img,
  .mf-branding img,
  .mf-brand img {
    height: var(--mf-logo-height-mobile) !important;
  }

  .cover-brand-name h1,
  .cover-brand-name .title,
  .mf-brand-title,
  .mf-site-title,
  .brand-title {
    font-size: clamp(28px, 8vw, 42px) !important;
  }

  .cover-brand-name p,
  .cover-brand-name .subtitle,
  .mf-brand-subtitle,
  .mf-site-subtitle,
  .brand-subtitle {
    font-size: clamp(12px, 3vw, 16px) !important;
    letter-spacing: 0.08em !important;
  }
}