/* MAG'S MULTISERVICIOS — portada y navegación aprobables (borrador).
 * Tipografía corporativa: Cinzel para el título; Montserrat en navegación.
 * Sólo altera la cabecera, el hero, los enlaces directos de contacto y anclas. */
body.home .mags-hero2026 {
  position: relative !important;
  isolation: isolate;
  display: flex !important;
  align-items: center !important;
  width: 100%;
  height: clamp(520px, 57vw, 760px) !important;
  min-height: 520px !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  overflow: hidden;
  background: #23333b;
}
body.home .mags-hero2026 .hero-v2__media {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0;
  opacity: 1 !important;
  background: none !important;
  transform: none !important;
  overflow: hidden;
}
body.home .mags-hero2026 .hero-v2__media::after { content: none !important; }
body.home .mags-hero2026 .hero-v2__image {
  display: block !important;
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}
body.home .mags-hero2026::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(10,25,34,.72) 0%,
    rgba(10,25,34,.54) 34%,
    rgba(10,25,34,.17) 67%,
    rgba(10,25,34,0) 100%);
}
body.home .mags-hero2026 .hero-v2__veil,
body.home .mags-hero2026 .scroll-cue { display: none !important; }
body.home .mags-hero2026 .hero-v2__content {
  position: relative !important;
  inset: auto !important;
  z-index: 2;
  width: min(calc(100% - 96px), 1400px) !important;
  max-width: 1400px !important;
  min-height: 0 !important;
  margin-inline: auto !important;
  padding: 30px 0 !important;
  text-align: left !important;
  pointer-events: auto !important;
  display: flex !important;
  align-items: center;
}
body.home .mags-hero2026 .hero-v3__identity.mags-hero2026__copy {
  position: relative !important;
  display: block !important;
  width: min(100%, 860px);
  max-width: 860px;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 1 !important;
  transform: none !important;
  text-align: left;
}
body.home .mags-hero2026 .mags-hero2026__title {
  display: block !important;
  max-width: 860px !important;
  margin: 0 !important;
  font-family: Cinzel, Georgia, "Times New Roman", serif !important;
  font-weight: 600 !important;
  font-size: clamp(2.25rem, 4.2vw, 4.7rem) !important;
  letter-spacing: -.03em !important;
  line-height: 1.18 !important;
  text-transform: uppercase !important;
  color: #fff !important;
  text-shadow: 0 3px 18px rgba(0,0,0,.27);
  overflow-wrap: normal !important;
}
body.home .mags-hero2026 .mags-hero2026__title span {
  color: #f47a22 !important;
  white-space: normal !important;
}
body .site-header .header-row {
  width: min(calc(100% - 48px), 1250px);
  max-width: 1250px;
  margin-inline: auto;
}
body .site-header .site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(12px, 1.6vw, 25px);
}
body .site-header .site-nav a {
  color: #142e3e;
  font-family: Montserrat, "Segoe UI", Arial, sans-serif !important;
  font-size: clamp(.68rem, .83vw, .79rem) !important;
  line-height: 1.4;
  letter-spacing: .025em !important;
  font-weight: 650 !important;
  white-space: nowrap;
  text-transform: uppercase;
  text-decoration: none;
  padding: 11px 0;
}
body .site-header .site-nav a:focus-visible,
body .site-header .mobile-menu a:focus-visible {
  outline: 2px solid #f47a22;
  outline-offset: 3px;
}
body .site-header .menu-toggle {
  padding: 8px;
  height: 48px;
  width: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
body .site-header .menu-toggle span {
  display: block;
  flex: 0 0 2px;
  margin: 0 !important;
  width: 27px;
  height: 2px;
  background: #142e3e;
}
body .site-header .mobile-menu a {
  font-family: Montserrat, "Segoe UI", Arial, sans-serif !important;
  font-weight: 600 !important;
  font-size: .95rem !important;
  line-height: 1.4;
  text-transform: uppercase;
}
body .site-header .mobile-menu__inner { gap: 1px; }
body.home #proyectos,
body.home #contacto { scroll-margin-top: 128px; }
body.home .mags-contacto__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  color: #f1fcfb;
  font-family: Montserrat, sans-serif;
  font-size: .82rem;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 4px;
}
body.home .mags-contacto__link:hover { color: #a6eee2; }
@media (min-width: 1021px) {
  body .site-header .menu-toggle { display: none !important; }
  body .site-header .site-nav { display: flex !important; }
}
@media (max-width: 1020px) {
  body .site-header .site-nav { display: none !important; }
  body .site-header .menu-toggle { display: flex !important; }
  body.home .mags-hero2026 { height: clamp(490px, 69svh, 740px) !important; min-height: 490px !important; }
  body.home .mags-hero2026 .hero-v2__image { object-position: 58% center !important; }
  body.home .mags-hero2026::after {
    background: linear-gradient(90deg, rgba(10,25,34,.82), rgba(10,25,34,.53) 61%, rgba(10,25,34,.11));
  }
  body.home .mags-hero2026 .hero-v2__content { width: calc(100% - 68px) !important; }
  body.home .mags-hero2026 .mags-hero2026__title { font-size: clamp(2.1rem, 5.2vw, 3.8rem) !important; }
}
@media (max-width: 700px) {
  body .site-header .header-row { width: calc(100% - 32px); max-width: none; }
  body.home .mags-hero2026 { height: clamp(440px, 64svh, 635px) !important; min-height: 440px !important; }
  body.home .mags-hero2026 .hero-v2__image { object-position: 60% center !important; }
  body.home .mags-hero2026 .hero-v2__content { width: calc(100% - 36px) !important; }
  body.home .mags-hero2026 .mags-hero2026__title {
    max-width: 100% !important;
    font-size: clamp(1.52rem, 6.25vw, 2.75rem) !important;
    line-height: 1.2 !important;
    letter-spacing: -.04em !important;
  }
  body.home #proyectos, body.home #contacto { scroll-margin-top: 95px; }
  body.home .final-v2__actions { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  body.home .mags-hero2026 *, body .site-header * { transition: none !important; animation: none !important; }
}

/* Portada final aprobada: mostrar el PNG original completo, sin recortar ni superponer texto. */
body.home .topline {
  display: none !important;
}
body.home .site-header {
  display: block !important;
}
body.home .mags-approved-hero {
  position: relative;
  isolation: isolate;
  display: block;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: none;
  overflow: hidden;
  background: #f8f8f8;
}
body.home .mags-approved-hero > picture {
  display:block;
  width:100%;
  aspect-ratio:1448 / 900;
  overflow:hidden;
}
body.home .mags-approved-hero__image {
  display:block !important;
  position:relative !important;
  width:100% !important;
  height:auto !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
  aspect-ratio:1448 / 1086;
  object-fit:contain !important;
  object-position:center !important;
  filter:none !important;
  transform:translateY(-14%) !important;
  opacity:1 !important;
}
body.home .mags-approved-hero__link {
  position: absolute;
  display: block;
  top: 10.8%;
  height: 5.7%;
  background: transparent;
  z-index: 3;
  border: 0;
}
body.home .mags-approved-hero__link:focus-visible,
body.home .mags-approved-hero__toggle:focus-visible {
  outline: 3px solid #f26a00;
  outline-offset: 1px;
}
body.home .mags-approved-hero__link--brand {
  top: 7%;
  left: 6.2%;
  width: 13.3%;
  height: 12%;
}
body.home .mags-approved-hero__link--inicio { left: 30.2%; width: 5.2%; }
body.home .mags-approved-hero__link--servicios { left: 36.6%; width: 8.5%; }
body.home .mags-approved-hero__link--dos-horas { left: 46.4%; width: 10.9%; }
body.home .mags-approved-hero__link--proyectos { left: 59.2%; width: 9%; }
body.home .mags-approved-hero__link--presupuestos { left: 70%; width: 11.4%; }
body.home .mags-approved-hero__link--contacto { left: 83.1%; width: 9.9%; }
body.home .mags-approved-hero__nav,
body.home .mags-approved-hero__mobile { display: none !important; }
@media (max-width: 740px) {
  body.home .site-header {
    display: block !important;
    position: sticky;
    top: 0;
    z-index: 1200;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
  }
  body.home .mags-approved-hero {
    overflow: hidden;
  }
  body.home .mags-approved-hero__image {
    margin-top: -10.5% !important;
  }
  body.home .mags-approved-hero__nav { display: none !important; }
  body.home .mags-approved-hero__mobile { display: none !important; }
  body.home .mags-approved-hero__toggle {
    appearance: none;
    position: absolute;
    z-index: 11;
    top: 7.5%;
    right: 3.7%;
    width: 42px;
    height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: none;
    border-radius: 5px;
    background: rgba(255,255,255,.88);
    cursor: pointer;
    padding: 5px;
  }
  body.home .mags-approved-hero__toggle span {
    display: block;
    width: 23px;
    height: 2px;
    border-radius: 1px;
    background: #0b2f55;
  }
  body.home .mags-approved-hero__mobile-menu {
    position: absolute;
    z-index: 10;
    top: 20%;
    right: 3.7%;
    display: flex;
    flex-direction: column;
    width: min(300px, 90vw);
    background: #0b2f55;
    color: white;
    padding: 12px 18px;
    box-shadow: 0 14px 34px rgba(0,0,0,.28);
  }
  body.home .mags-approved-hero__mobile-menu a {
    display: block;
    padding: 11px 4px;
    font-family: Montserrat, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.2);
  }
}

