/* components.css — Header, Hero, Trust, About, Services (estilo blueprint) */

/* ============ Wordmark (fondos oscuros) ============ */
.wordmark { font-family: var(--font-head); font-weight: 800; font-size: 25px; letter-spacing: -.02em; line-height: 1; display: inline-flex; align-items: baseline; position: relative; }
.wordmark__pin { display: inline-block; width: .5em; height: .5em; border: .15em solid currentColor; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); margin: 0 .03em; position: relative; top: .02em; }
.wordmark__pin::after { content: ""; position: absolute; inset: 26% 0 0 26%; width: 30%; height: 30%; background: var(--red); border-radius: 50%; }
.wordmark__sub { position: absolute; left: 0; top: 100%; margin-top: 4px; font-family: var(--font-mono); font-weight: 400; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; opacity: .55; white-space: nowrap; }

/* ============ Header ============ */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .3s var(--ease), box-shadow .3s; border-bottom: 1px solid transparent; }
.hdr--solid { background: rgba(251,252,254,.88); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); box-shadow: 0 2px 14px rgba(18,47,102,.05); }
.hdr__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.hdr__brand { display: flex; align-items: center; }
.hdr__brand img { height: 34px; width: auto; }
.hdr__nav { display: flex; gap: 4px; margin-left: 10px; }
.hdr__link { font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--body); padding: 9px 14px; transition: color .2s, background .2s; position: relative; }
.hdr__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.hdr__link:hover { color: var(--navy); }
.hdr__link:hover::after, .hdr__link.is-active::after { transform: scaleX(1); }
.hdr__link.is-active { color: var(--navy); }
.hdr__cta { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.hdr__cta .btn { padding: 11px 18px; font-size: 13.5px; }
.hdr__burger { display: none; margin-left: auto; width: 44px; height: 44px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--panel-line); align-items: center; justify-content: center; color: var(--navy); }
.hdr__burger svg { width: 22px; height: 22px; }
.hdr__mobile { display: none; }

@media (max-width: 960px) {
  .hdr__nav, .hdr__cta { display: none; }
  .hdr__burger { display: inline-flex; }
  .hdr, .hdr--solid { background: rgba(251,252,254,.94); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
  .hdr__mobile { display: flex; flex-direction: column; gap: 4px; padding: 12px var(--pad) 22px; background: var(--paper); border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s var(--ease), opacity .25s, padding .35s; }
  .hdr__mobile.is-open { max-height: 480px; opacity: 1; }
  .hdr__mlink { font-family: var(--font-head); padding: 14px 8px; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--line-2); color: var(--navy); }
  .hdr__msep { height: 8px; }
  .hdr__mobile .btn { justify-content: center; }
}

/* ============ Hero ============ */
.hero { position: relative; padding-top: 128px; padding-bottom: 56px; overflow: hidden; }
.hero .circuits--radial { top: -60px; right: -80px; width: 760px; height: 760px; opacity: .5; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(38px, 5.4vw, 66px); font-weight: 900; line-height: 1.02; margin: 22px 0 0; max-width: 15ch; letter-spacing: -.02em; }
.hero__title .hl { color: var(--blue-bright); position: relative; white-space: nowrap; }
.hero__title .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .07em; background: var(--red); opacity: .85; }
.hero__sub { margin-top: 24px; font-size: clamp(16.5px, 1.5vw, 19px); color: var(--body); max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__cta-note { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.18); padding: 3px 7px; }
.btn--ghost .hero__cta-note { background: var(--blue-tint); color: var(--navy); }
.hero__trust { margin-top: 30px; font-size: 13.5px; color: var(--mute); display: flex; align-items: center; gap: 12px; }
.hero__trust::before { content: ""; width: 30px; height: 2px; background: var(--panel-line); }
.hero__trust strong { color: var(--body); font-weight: 700; }

.hero__visual { position: relative; }
.hero__frame { position: relative; }
.hero__photo { aspect-ratio: 4/4.5; }
.hero__node-label { position: absolute; top: 16px; left: 16px; z-index: 3; }
.hero__chip { position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--panel-line), var(--shadow); padding: 13px 16px; z-index: 3; }
.hero__chip strong { display: block; font-family: var(--font-head); font-size: 13.5px; color: var(--navy); font-weight: 700; }
.hero__chip span:not(.dot) { font-size: 12px; color: var(--mute); }
.hero__chip--a { left: -24px; bottom: 64px; }

.hero__stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin-top: 64px; background: var(--panel-line); box-shadow: inset 0 0 0 1px var(--panel-line); }
.hero__stat { display: flex; flex-direction: column; gap: 5px; background: var(--paper); padding: 22px 22px; }
.hero__stat-n { font-family: var(--font-head); font-weight: 900; font-size: clamp(32px, 4vw, 46px); color: var(--navy); line-height: 1; letter-spacing: -.03em; }
.hero__stat-n .u { color: var(--red); }
.hero__stat-l { font-size: 13.5px; color: var(--mute); }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 440px; margin-top: 8px; }
  .hero__chip--a { left: 0; }
  .hero__stats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
  .hero__chip { padding: 10px 12px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
}

/* ============ Trust bar ============ */
.trust { padding: 36px 0 40px; border-block: 1px solid var(--line); background: rgba(255,255,255,.5); position: relative; }
.trust__head { text-align: center; margin-bottom: 22px; }
.trust__label { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.trust__track-wrap { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.trust__track { display: flex; gap: 56px; width: max-content; animation: trustscroll 34s linear infinite; }
.trust:hover .trust__track { animation-play-state: paused; }
.trust__logo { font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: -.02em; color: #aab6cc; white-space: nowrap; transition: color .2s; }
.trust__logo:hover { color: var(--navy); }
@keyframes trustscroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .trust__track { animation: none; flex-wrap: wrap; justify-content: center; } }

/* ============ About ============ */
.about__intro { max-width: 760px; position: relative; z-index: 1; }
.about__body { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 60px); margin-top: 48px; align-items: start; position: relative; z-index: 1; }
.about__text p { font-size: 17px; color: var(--body); margin-bottom: 20px; }
.about__text strong { color: var(--navy); font-weight: 700; }
.about__mv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.about__mv-panel { position: relative; }
.about__mv-panel .tpanel__in { padding: 24px; }
.about__mv-cap { position: absolute; top: 0; left: 22px; height: 4px; width: 54px; background: var(--blue); z-index: 3; }
.about__mv-panel--vision .about__mv-cap { background: var(--red); }
.about__mv-k { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.about__mv-panel--vision .about__mv-k { color: var(--red); }
.about__mv-panel p { font-size: 14.2px; color: var(--body); line-height: 1.55; }
.about__aside { position: sticky; top: 96px; }
.about__photo-wrap { position: relative; }
.about__photo { aspect-ratio: 4/3.4; }
.about__facts { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 1px; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); }
.about__facts li { display: flex; align-items: baseline; gap: 14px; padding: 14px 14px; background: var(--paper); }
.about__fact-n { font-family: var(--font-head); font-weight: 800; font-size: 14px; color: var(--blue); min-width: 58px; }
.about__facts li span:last-child { font-size: 14px; color: var(--body); }
@media (max-width: 880px) {
  .about__body { grid-template-columns: 1fr; }
  .about__mv { grid-template-columns: 1fr; }
  .about__aside { position: static; }
}

/* ============ Services ============ */
.serv__head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: end; margin-bottom: 42px; position: relative; z-index: 1; }
.serv__head-lead { padding-bottom: 6px; }
.serv { display: grid; grid-template-columns: .92fr 1.08fr; gap: 22px; align-items: start; position: relative; z-index: 1; }
.serv__tabs { display: flex; flex-direction: column; gap: 12px; }
.serv__tab { display: flex; align-items: center; gap: 16px; text-align: left; background: #fff; box-shadow: inset 0 0 0 1.5px var(--panel-line); padding: 17px 20px; transition: box-shadow .25s, transform .25s, background .25s; position: relative; }
.serv__tab.bevel { } /* aplica bisel */
.serv__tab:hover { transform: translateX(3px); box-shadow: inset 0 0 0 1.5px var(--blue-tint2); }
.serv__tab.is-active { box-shadow: inset 0 0 0 2px var(--blue); }
.serv__tab.is-active.serv__tab--red { box-shadow: inset 0 0 0 2px var(--red); }
.serv__tab-ico { flex: 0 0 auto; width: 46px; height: 46px; background: var(--panel-2); color: var(--navy); display: flex; align-items: center; justify-content: center; transition: background .25s, color .25s; clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px); }
.serv__tab-ico svg { width: 23px; height: 23px; }
.serv__tab.is-active .serv__tab-ico { background: var(--blue); color: #fff; }
.serv__tab.is-active.serv__tab--red .serv__tab-ico { background: var(--red); }
.serv__tab-txt { display: flex; flex-direction: column; gap: 2px; }
.serv__tab-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.serv__tab-name { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--navy); letter-spacing: -.01em; }
.serv__tab-field { font-size: 13px; color: var(--body); }
.serv__tab-chev { margin-left: auto; color: var(--blue); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.serv__tab--red .serv__tab-chev { color: var(--red); }
.serv__tab-chev svg { width: 20px; height: 20px; }
.serv__tab.is-active .serv__tab-chev { opacity: 1; transform: none; }

.serv__panel { position: relative; }
.serv__panel .tpanel__in { display: grid; }
.serv__panel-body { padding: clamp(26px, 3vw, 40px); }
.serv__panel-field { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.serv__panel--red .serv__panel-field { color: var(--red); }
.serv__panel-title { font-size: clamp(23px, 2.5vw, 29px); margin: 14px 0 12px; max-width: 20ch; }
.serv__panel-desc { font-size: 16px; color: var(--body); max-width: 52ch; }
.serv__list { list-style: none; margin: 24px 0 28px; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.serv__list li { display: flex; align-items: flex-start; gap: 13px; font-size: 15.5px; color: var(--ink); }
.serv__check { flex: 0 0 auto; width: 23px; height: 23px; background: var(--blue-tint); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-top: 1px; clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px); }
.serv__panel--red .serv__check { background: var(--red-tint); color: var(--red); }
.serv__check svg { width: 14px; height: 14px; }
.serv__panel-visual { padding: 0 clamp(26px,3vw,40px) clamp(26px,3vw,40px); }
.serv__panel-visual .ph { aspect-ratio: 16/7; }
@media (max-width: 880px) {
  .serv__head { grid-template-columns: 1fr; }
  .serv { grid-template-columns: 1fr; }
  .serv__tab-chev { display: none; }
}

/* ---- circuitos ambientales ---- */
.about__circ { bottom: 20px; right: -30px; width: 300px; height: 300px; opacity: .55; }
.serv__circ { top: 60px; left: -50px; width: 240px; height: 240px; transform: scaleX(-1); opacity: .5; }
