/*
Theme Name: MTSSA · Servicios eólicos
Author: Master Technology Services S.A.
Description: Portada corporativa con bloques editables, proyectos regionales y servicios desplegables.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: mtssa
*/
:root {
  --mts-ink: #09283c;
  --mts-teal: #007663;
  --mts-aqua: #59e4cd;
  --mts-line: #c9dcd9;
  --mts-mist: #eef6f5;
}
.mts-wrap { width: min(1160px, calc(100% - 72px)); margin-inline: auto; box-sizing: border-box; }
.mts-section { padding-block: clamp(42px, 6vw, 82px); }
.mts-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; padding-block: 8px; }
.mts-logo, .mts-home figure { margin: 0; }
.mts-logo img { width: 116px; max-height: 67px; object-fit: contain; display: block; }
.mts-header .wp-block-navigation { font-size: .98rem; font-weight: 650; }
.mts-header .wp-block-navigation__container { gap: clamp(14px, 2.6vw, 36px); }
.mts-header a:hover { text-decoration: underline; text-underline-offset: 5px; }
.mts-hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(430px, 39vw, 590px); display: grid; align-items: center; background: #153e53; color: white; }
.mts-hero .mts-landscape { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.mts-landscape img { width: 100%; height: 100%; object-fit: cover; object-position: center 51%; }
.mts-hero::before { position: absolute; content: ""; inset: 0; z-index: -1; background: linear-gradient(90deg,rgba(4,30,49,.93),rgba(4,40,62,.72) 40%,rgba(6,40,60,.1) 80%); pointer-events: none; }
.mts-hero-copy { padding-block: 48px; }
.mts-home h1,.mts-home h2,.mts-home h3 { font-weight: 730; line-height: 1.08; letter-spacing: -.042em; margin: 0; }
.mts-home h1 { max-width: 15ch; color: white; font-size: clamp(2.85rem, 5.5vw, 5.25rem); }
.mts-home h2 { font-size: clamp(1.95rem, 3.1vw, 3.05rem); }
.mts-home h3 { font-size: 1.4rem; }
.mts-home p { margin: 14px 0 0; line-height: 1.65; }
.mts-hero-copy p { max-width: 560px; font-size: clamp(1.05rem,1.45vw,1.32rem); }
.mts-home .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.mts-home .wp-block-button__link { padding: .72em 1.2em; background: var(--mts-teal); color: #fff; border: 1px solid transparent; border-radius: 5px; font-weight: 700; text-decoration: none; }
.mts-hero .wp-block-button__link { color: #063a36; background: var(--mts-aqua); }
.mts-hero .wp-block-button + .wp-block-button .wp-block-button__link { color: #fff; background: #12394a; border-color: #bad3dc; }
.mts-home .wp-block-button__link:hover { filter: brightness(.92); }
.mts-about,.mts-split,.mts-team { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(30px,7vw,100px); }
.mts-purpose { border-left: 2px solid var(--mts-line); padding-left: clamp(22px,4vw,60px); }
.mts-purpose h3:not(:first-child) { margin-top: 22px; }
.mts-purpose p { margin-top: 7px; }
.mts-tint { background: var(--mts-mist); }
.mts-disclosures details { border-bottom: 1px solid var(--mts-line); padding: 0 2px; }
.mts-disclosures summary { cursor: pointer; font-weight: 650; font-size: 1.14rem; padding: 16px 6px; }
.mts-disclosures summary::marker { color: var(--mts-teal); }
.mts-disclosures details p { margin: 0; padding: 0 6px 20px 22px; }
.mts-section-title .mts-project-img { margin-top: 22px; }
.mts-project-img img,.mts-team-img img { display: block; width: 100%; height: auto; border-radius: 6px; }
.mts-team { align-items: center; }
.mts-contact p { max-width: 700px; }
.mts-footer { padding-block: 24px; background: var(--mts-ink); color: white; }
.mts-footer .mts-wrap { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; }
.mts-footer p { margin: 0; }
.mts-footer p:first-child { font-weight: 700; }
.mts-home :focus-visible,.mts-header :focus-visible { outline: 3px solid #d38a12; outline-offset: 4px; }
@media(max-width: 720px) {
  .mts-wrap { width: calc(100% - 36px); }
  .mts-header { min-height: 67px; }
  .mts-logo img { max-height: 50px; width: auto; }
  .mts-about,.mts-split,.mts-team { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .mts-purpose { padding-left: 16px; }
  .mts-landscape img { object-position: 62% center; }
  .mts-hero { min-height: 425px; }
}
