/*
Theme Name: MTSSA · Servicios eólicos
Author: Master Technology Services S.A.
Description: Portada corporativa con introducción, objetivos, visión y misión en bloques editables.
Version: 1.10.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; }
}

.mts-section-copy{scroll-margin-top:28px}
.mts-section-copy .wp-block-list{max-width:86ch;line-height:1.65;padding-inline-start:1.4em}
.mts-section-copy li+li{margin-top:1em}
.mts-section-copy li::marker{color:var(--mts-teal)}

.mts-hero-copy .mts-experience-label {
  margin: 1.5rem 0 .2rem;
  color: #e0f1ee;
  font-size: .95rem;
  font-weight: 600;
}
.mts-hero-copy .mts-experience {
  margin: 1rem 0 0;
  max-width: 34ch;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1.24;
  color: #fff;
}
.mts-experience strong { color: #75eed7; white-space: nowrap; }

mts-crew-carousel { display:block; min-width:0; }
.mts-crew-frame { position:relative; width:fit-content; max-width:100%; margin-inline:auto; overflow:hidden; border-radius:8px; background:#fff; }
.mts-crew-link { display:block; color:white; }
.mts-crew-link:focus-visible { outline:3px solid #76e6cf; outline-offset:-4px; }
.mts-crew-photo { display:block; width:auto; max-width:100%; height:auto; }
.mts-crew-photo[hidden], mts-crew-carousel:not(:defined) .mts-crew-controls { display:none; }
.mts-crew-controls button { position:absolute; display:grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid #ffffffa6; border-radius:50%; color:white; background:#000b; cursor:pointer; font:600 1.55rem/1 system-ui,sans-serif; }
.mts-crew-controls button:hover { background:#000; }
.mts-crew-controls [data-action="prev"], .mts-crew-controls [data-action="next"] { top:50%; transform:translateY(-50%); }
.mts-crew-controls [data-action="prev"] { left:10px; }
.mts-crew-controls [data-action="next"] { right:10px; }



.mts-site-foot { background:#0a2939; color:#e4efef; font:400 1rem/1.5 system-ui,sans-serif; text-align:left; }
.mts-foot-inner { box-sizing:border-box; width:min(1160px,calc(100% - 64px)); margin-inline:auto; }
.mts-foot-grid { display:grid; grid-template-columns:1.12fr .75fr 1.12fr 1fr; gap:clamp(16px,3vw,44px); padding-block:44px 34px; }
.mts-foot-grid strong { margin:0 0 6px; color:#fff; font-size:1.05rem; }
.mts-foot-brand,.mts-foot-links { display:flex; flex-direction:column; align-items:flex-start; gap:5px; margin:0; font-style:normal; }
.mts-foot-brand img { display:block; width:132px; height:80px; object-fit:contain; padding:6px 12px; box-sizing:border-box; background:white; border-radius:4px; }
.mts-foot-brand { gap:14px; }
.mts-site-foot a,.mts-site-foot summary { color:#deebed; text-decoration:none; overflow-wrap:anywhere; }
.mts-site-foot a:hover,.mts-site-foot summary:hover { color:#76e6cf; text-decoration:underline; text-underline-offset:3px; }
.mts-site-foot :focus-visible { outline:2px solid #76e6cf; outline-offset:3px; }
.mts-foot-base { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:12px 28px; padding-block:16px 22px; border-top:1px solid #48616c; }
.mts-foot-base small,.mts-foot-notices { font-size:.88rem; }
.mts-foot-notices { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 22px; }
.mts-foot-notices summary { cursor:pointer; }
.mts-foot-notices p { margin:8px 0; max-width:48ch; }
.mts-foot-notices p a { text-decoration:underline; }
@media(max-width:880px) { .mts-foot-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; } }
@media(max-width:550px) { .mts-foot-inner { width:calc(100% - 36px); } .mts-foot-grid { grid-template-columns:minmax(0,1fr); padding-block:32px 24px; } .mts-foot-base { display:grid; } }

.mts-services { color:#102f40; }
.mts-svc-hero { display:flex; align-items:flex-end; min-height:clamp(370px,38vw,560px); color:#fff; background-color:#09283c; background-image:linear-gradient(90deg,#09283c 15%,rgba(9,40,60,.98) 34%,rgba(9,40,60,.8) 50%,rgba(9,40,60,.15) 82%),var(--svc-photo); background-size:cover,auto 128%; background-position:center,right 54%; background-repeat:no-repeat; }
.mts-svc-wrap { width:min(1100px,calc(100% - 48px)); box-sizing:border-box; margin-inline:auto; }
.mts-svc-hero .mts-svc-wrap { padding-block:clamp(46px,6vw,84px); }
.mts-svc-hero h1 { margin:0; color:white; font-weight:740; font-size:clamp(2.8rem,5vw,4.8rem); line-height:1.06; letter-spacing:-.045em; }
.mts-svc-hero p { margin:14px 0 0; max-width:min(48ch,51%); color:#fff; line-height:1.5; font-size:clamp(1rem,1.45vw,1.22rem); }
.mts-svc-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:18px; padding-block:clamp(28px,4vw,58px); }
.mts-svc-list details { box-sizing:border-box; overflow:hidden; border:1px solid #cadbdc; border-radius:10px; background:#fff; margin:0; }
.mts-svc-list summary { display:grid; grid-template-columns:clamp(86px,9vw,136px) minmax(0,1fr) 28px; align-items:center; column-gap:clamp(10px,1.2vw,19px); padding:0 14px 0 0; min-height:128px; color:#102f40; cursor:pointer; list-style:none; font-size:clamp(1rem,1.5vw,1.23rem); font-weight:680; line-height:1.26; }
.mts-svc-list summary::-webkit-details-marker { display:none; }
.mts-svc-list summary::before { content:""; display:block; align-self:stretch; background:#dce7e7 var(--card-photo) center/cover no-repeat; }
.mts-svc-list summary::after { content:""; display:block; width:28px; height:28px; box-sizing:border-box; border-radius:50%; background:linear-gradient(#006952,#006952) center/12px 2px no-repeat,linear-gradient(#006952,#006952) center/2px 12px no-repeat,#e3f1ee; }
.mts-svc-list details[open] summary::after { background:linear-gradient(white,white) center/12px 2px no-repeat,#006952; }
.mts-svc-list details[open] { border-color:#68a59b; }
.mts-svc-list summary:hover,.mts-svc-list details[open] summary { background:#f0f7f6; }
.mts-svc-list summary:focus-visible,.mts-svc-list a:focus-visible { outline:3px solid #007663; outline-offset:-3px; }
.mts-svc-list details p { margin:15px 20px; line-height:1.62; }
.mts-svc-list details p:last-child { margin-bottom:21px; }
.mts-svc-list a { color:#006b5b; font-weight:650; text-decoration:underline; text-underline-offset:3px; }
@media(max-width:760px) { .mts-svc-list { grid-template-columns:minmax(0,1fr); gap:12px; } .mts-svc-list summary { min-height:106px; } }
.mts-card-mantenimiento { --card-photo:url("fotos/pernos-tratados.webp"); }
.mts-card-modernizacion { --card-photo:url("fotos/control-estructura.webp"); }
.mts-card-componentes { --card-photo:url("fotos/cilindro-pitch.webp"); }
.mts-card-palas { --card-photo:url("fotos/palas-goldwind.webp"); }
.mts-card-ascenso { --card-photo:url("fotos/elevador-3s.webp"); }
.mts-card-torres { --card-photo:url("fotos/estructura-tensor.webp"); }
.mts-card-izajes { --card-photo:url("fotos/izaje-torre.webp"); }
.mts-card-subestaciones { --card-photo:url("fotos/orosi-subestacion.webp"); }
@media(max-width:580px) { .mts-svc-wrap { width:calc(100% - 36px); } }

.mts-svc-hero .mts-svc-contact { display:inline-flex; align-items:center; min-height:46px; box-sizing:border-box; margin-top:24px; padding:.7em 1.5em; color:#09283c; background:#75eed7; border-radius:5px; font-weight:700; text-decoration:none; }
.mts-svc-contact:hover { background:#a0f4e5; }
.mts-svc-contact:focus-visible { outline:3px solid white; outline-offset:4px; }
@media(max-width:720px) {
  .mts-svc-hero { min-height:400px; background-image:linear-gradient(0deg,#09283c 0%,rgba(9,40,60,.89) 47%,rgba(9,40,60,.12) 100%),var(--svc-photo); background-size:cover; background-position:center,center 40%; }
  .mts-svc-hero .mts-svc-wrap { padding-block:36px; }
  .mts-svc-hero p { max-width:46ch; }
}

.brand img{width:100px;height:62px;object-fit:contain}.mts-section-copy li{margin-top:.65rem}.mts-home .mts-hero-copy p{color:white}.mts-home .mts-hero-copy .mts-experience-label{color:#e0f1ee}
.mts-map-countries { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:.5rem 1.4rem; padding:0; margin:1.1rem 0 0; list-style:none; color:#123945; font-size:1rem; font-weight:600; }
.mts-map-countries li { display:inline-flex; align-items:center; gap:.45rem; }
.mts-map-countries li::before { content:""; width:.52rem; height:.52rem; border-radius:2px; background:#007b70; }
