/* ==========================================================
   GCM Global Certification Mexico — estilos
   PALETA: cambie solo estas variables para igualar los colores
   exactos del manual de identidad de GCL International.
   ========================================================== */
:root {
  --brand: #304985;        /* azul institucional GCL (barra superior, logo, botón cotizar) */
  --brand-dark: #222262;   /* azul marino: texto del menú y títulos */
  --brand-deep: #1c2b55;   /* pie de página */
  --brand-2: #48c7ec;      /* cian GCL (botón LEARN MORE) */
  --brand-2-dark: #26b0d9;
  --ink: #1d2733;
  --muted: #5d6875;
  --line: #e2e7ee;
  --bg-alt: #f3f6fa;
  --radius: 2px;
  --shadow: 0 6px 24px rgba(48, 73, 133, .08);
  --shadow-lg: 0 16px 40px rgba(48, 73, 133, .16);
  --header-h: 112px;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--font-body); color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--brand-dark); line-height: 1.25; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
p { margin: 0 0 1em; }
.mt { margin-top: 1.8rem; }

.container { width: min(1200px, 92%); margin-inline: auto; }

.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand-2); margin-bottom: .7rem;
}
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; background: currentColor; vertical-align: middle; margin-right: .6rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 2.3rem; border-radius: 0; border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 500; font-size: .92rem; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand-2); color: #fff; }
.btn--primary:hover { background: var(--brand-2-dark); color: #fff; }
.btn--navy { background: var(--brand); color: #fff; font-weight: 700; letter-spacing: 0; }
.btn--navy:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { border-color: #fff; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--brand); }
.btn--outline { border-color: var(--brand); color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--sm { padding: .6rem 1.2rem; font-size: .8rem; }
.btn--header { padding: 1.1rem 1.6rem; font-size: .92rem; }
.btn--block { width: 100%; }

.link-arrow { font-family: var(--font-head); font-weight: 600; font-size: .88rem; text-transform: uppercase; letter-spacing: .04em; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--brand); font-size: .8rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; gap: .5rem 1rem; column-gap: .5rem; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--brand-2); }
.topbar__contact, .topbar__links { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.topbar__links a + a { position: relative; }
.topbar__links a + a::before { display: none; }
.topbar__portal { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; color: var(--brand-2) !important; }
.topbar__portal:hover { color: #fff !important; }
.topbar__portal svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.topbar__contact a[href^="tel"] { display: none; }
.topbar__osp { color: #fff; padding-right: 1.1rem; border-right: 1px solid rgba(255,255,255,.3); }
.topbar__osp strong { font-weight: 700; }

.lang-toggle { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.45); color: #fff; font: 600 .82rem var(--font-body); padding: .25rem .75rem; cursor: pointer; transition: background .2s, color .2s; }
.lang-toggle:hover { background: #fff; color: var(--brand); }
.lang-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow .25s; }
.header.is-scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.logo { display: flex; align-items: center; flex: none; margin-right: 1.5rem; }
.logo__img { height: 69px; width: auto; }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { white-space: nowrap; }
.nav a:not(.btn) { color: var(--brand-dark); font-family: var(--font-body); font-weight: 700; font-size: .98rem; position: relative; padding: .4rem 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--brand-2); transition: width .25s; }
.nav a:not(.btn):hover, .nav a.is-active { color: var(--brand); }
.nav a:not(.btn):hover::after, .nav a.is-active::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--brand); margin: 6px 0; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero: carrusel de esquemas con video ---------- */
.hero { position: relative; height: clamp(580px, calc(100vh - 150px), 820px); overflow: hidden; background: #111416; color: #fff; }
.hero__stage { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); opacity: 0; transition: opacity .6s; }
.hero__slide.has-video .hero__video { opacity: 1; }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.75) 100%); }

/* Fondo animado de respaldo (cuando aún no hay video) */
.hero__fallback {
  position: absolute; inset: -10%; display: grid; place-items: center;
  background:
    radial-gradient(circle at 25% 30%, hsla(calc(205 + var(--hue) * .3), 45%, 45%, .45), transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(72,199,236,.25), transparent 45%),
    linear-gradient(135deg, #2a2f36, #121417 70%);
  animation: drift 10s ease-in-out infinite alternate;
}
.hero__fallback svg { width: min(46vw, 520px); height: auto; fill: none; stroke: rgba(255,255,255,.07); stroke-width: .6; stroke-linecap: round; stroke-linejoin: round; position: absolute; right: 4%; }
.hero__fallback span { position: absolute; left: 4%; bottom: 18%; font-family: var(--font-head); font-weight: 800; font-size: clamp(3rem, 11vw, 10rem); color: rgba(255,255,255,.04); white-space: nowrap; }
.hero__slide.has-video .hero__fallback { display: none; }
@keyframes drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.08) translate(-2%, 1%); } }

.hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding-bottom: 120px; }
.hero__content > * { max-width: 1050px; }
.hero__title { color: #fff; font-weight: 700; font-size: clamp(1.45rem, 3vw, 2.5rem); line-height: 1.2; letter-spacing: .03em; text-transform: uppercase; margin-bottom: .55em; max-width: 900px; text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.hero__scope { font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #dfe6ee; margin-bottom: 1rem; padding: .35rem .9rem; border: 1px solid rgba(255,255,255,.35); }
.hero__scope.is-mx { color: #fff; background: var(--brand); border-color: var(--brand); }
.lead { font-size: 1.02rem; color: #e6e9ee; max-width: 680px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: center; margin-top: 1.8rem; }
.hero__slide.is-active .hero__content > * { animation: up .8s ease both; }
.hero__slide.is-active .hero__content > *:nth-child(2) { animation-delay: .1s; }
.hero__slide.is-active .hero__content > *:nth-child(3) { animation-delay: .2s; }
.hero__slide.is-active .hero__content > *:nth-child(4) { animation-delay: .3s; }

.hero__slide:not(.has-video) .hero__osp-tag { position: absolute; top: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 3; font-size: .85rem; letter-spacing: .05em; padding: .4rem 1rem; background: rgba(48,73,133,.75); border: 1px solid rgba(255,255,255,.3); white-space: nowrap; }

.hero__arrow { position: absolute; top: 45%; z-index: 3; width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.25); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; transition: background .2s, border-color .2s; }
.hero__arrow:hover { background: var(--brand-2); border-color: var(--brand-2); }
.hero__arrow--prev { left: 1.5rem; }
.hero__arrow--next { right: 1.5rem; }

.hero__nav { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; background: linear-gradient(0deg, rgba(0,0,0,.65), rgba(0,0,0,0)); padding-top: 2rem; }
.hero__nav-inner { display: flex; align-items: stretch; gap: .8rem; }
.hero__tabs { display: flex; gap: 2px; overflow-x: auto; flex: 1; scrollbar-width: none; scroll-snap-type: x mandatory; }
.hero__tabs::-webkit-scrollbar { display: none; }
.hero__tab {
  position: relative; flex: 1 0 128px; scroll-snap-align: start; text-align: left; cursor: pointer;
  padding: .85rem .9rem 1.05rem; border: 0; background: rgba(255,255,255,.08); color: #cfd6df; font: inherit;
  border-top: 3px solid rgba(255,255,255,.18); transition: background .2s, color .2s;
}
.hero__tab:hover { background: rgba(255,255,255,.16); color: #fff; }
.hero__tab strong { display: block; font-family: var(--font-head); font-size: .82rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__tab small { display: block; font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__tab.is-mx { border-top-color: rgba(72,199,236,.6); }
.hero__tab.is-active { background: rgba(48,73,133,.85); color: #fff; }
.hero__bar { position: absolute; left: 0; top: -3px; height: 3px; width: 0; background: var(--brand-2); }
.hero__tab.is-active .hero__bar { animation: bar 5s linear forwards; }
.hero__tabs.is-paused .hero__tab.is-active .hero__bar { animation-play-state: paused; }
@keyframes bar { from { width: 0; } to { width: 100%; } }
.hero__pause { flex: none; width: 44px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.3); color: #fff; cursor: pointer; font-size: .8rem; }
.hero__pause:hover { background: var(--brand-2); }
.hero__more { flex: none; align-self: center; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .85rem; white-space: nowrap; padding: 0 .4rem; }
.hero__more:hover { color: var(--brand-2); }

/* ---------- Banda OSP ---------- */
.osp-band { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.osp-band__inner { display: flex; align-items: center; gap: 1.6rem; padding: 1.6rem 0; }
.osp-band__badge { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; box-shadow: 0 0 0 5px rgba(72,199,236,.35); }
.osp-band p { margin: 0; color: var(--muted); font-size: .98rem; }
.osp-band strong { color: var(--brand-dark); }
.osp-band .link-arrow { flex: none; }

/* ---------- Cifras ---------- */
.stats { background: var(--brand-dark); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2rem 1rem; text-align: center; border-right: 1px solid rgba(255,255,255,.15); }
.stat:last-child { border-right: 0; }
.stat__num { display: block; font-family: var(--font-head); font-size: 2.3rem; font-weight: 700; }
.stat__label { font-size: .88rem; color: #c8d7ea; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 8vw, 6rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--brand); color: #dbe6f3; }
.section--dark h2 { color: #fff; }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.section__head .eyebrow::after { content: ""; display: inline-block; width: 28px; height: 2px; background: currentColor; vertical-align: middle; margin-left: .6rem; }
.section__head p { color: var(--muted); font-size: 1.04rem; }

/* ---------- Media (imagen con respaldo) ---------- */
.media {
  position: relative; aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 60%, var(--brand-2) 140%);
}
.media::after {
  content: attr(data-label); position: absolute; left: 1.2rem; bottom: 1rem;
  font-family: var(--font-head); font-weight: 600; color: rgba(255,255,255,.85); font-size: 1rem;
}
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .6s; }
.media--tall { aspect-ratio: 4/3.4; }
.play {
  position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 78px; height: 78px; border-radius: 50%; background: var(--brand-2); color: #fff;
  display: grid; place-items: center; font-size: 1.6rem; padding-left: 5px;
  box-shadow: 0 0 0 12px rgba(72,199,236,.25); transition: transform .25s;
}
.play:hover { color: #fff; transform: translate(-50%, -50%) scale(1.08); }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.service:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service:hover .media img { transform: scale(1.05); }
.service .media { border-radius: 0; }
.service--featured { border-top: 4px solid var(--brand-2); }
.service__body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.service__body p { color: var(--muted); font-size: .95rem; }
.service__list { list-style: none; padding: 0; margin: 0 0 1.4rem; flex: 1; }
.service__list li { padding: .45rem 0 .45rem 1.3rem; border-bottom: 1px dashed var(--line); position: relative; font-size: .93rem; }
.service__list li::before { content: "›"; position: absolute; left: 0; color: var(--brand-2); font-weight: 700; }
.badge { align-self: flex-start; font-family: var(--font-head); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: .25rem .7rem; border-radius: 3px; background: var(--brand-2); color: #fff; margin-bottom: .8rem; }
.badge--muted { background: var(--bg-alt); color: var(--brand); border: 1px solid var(--line); }

/* ---------- Cards alcance ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.card { background: #fff; border-radius: var(--radius); padding: 2rem; border: 1px solid var(--line); border-bottom: 4px solid var(--brand); display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-bottom-color: var(--brand-2); }
.card__code { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; color: var(--brand); }
.card p { color: var(--muted); font-size: .95rem; }
.card__list { padding-left: 1.1rem; margin: 0 0 1.5rem; flex: 1; font-size: .93rem; }
.card__list li::marker { color: var(--brand-2); }
.card .btn { align-self: flex-start; }

/* ---------- Pasos ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; position: relative; }
.step { position: relative; padding: 2.2rem 1.8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
.step__num { display: block; font-family: var(--font-head); font-size: 2.8rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1.5px var(--brand); line-height: 1; margin-bottom: 1rem; }

/* ---------- Nosotros ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split p { color: var(--muted); }
.why { list-style: none; counter-reset: w; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.4rem; }
.why li { counter-increment: w; display: flex; align-items: center; gap: .7rem; font-size: .95rem; }
.why li::before { content: counter(w); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-size: .85rem; font-weight: 600; }
.why strong { font-weight: 600; color: var(--brand-dark); }

/* ---------- Mapa de oficinas ---------- */
.netmap { display: grid; grid-template-columns: 1fr 340px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.netmap__map { position: relative; min-height: 520px; background: #eef2f7; display: flex; flex-direction: column; overflow: hidden; }
.worldmap { display: block; width: 100%; flex: 1; min-height: 0; cursor: default; }
.worldmap__sea { fill: #eef2f7; }
.worldmap__land-base { fill: var(--brand); fill-opacity: .07; }
.worldmap__land { fill: url(#landDots); }
#landDots circle { fill: var(--brand); fill-opacity: .5; }
.worldmap__water { fill: #eef2f7; }
.worldmap__route { fill: none; stroke: var(--brand-2); stroke-linecap: round; }
.mpin { cursor: pointer; outline: none; }
.mpin__dot { fill: var(--brand); stroke: #fff; stroke-width: 1.6; transition: r .2s; }
.mpin:hover .mpin__dot, .mpin:focus-visible .mpin__dot { fill: var(--brand-2-dark); }
.mpin--hq .mpin__dot { fill: var(--brand-dark); stroke-width: 2.2; }
.mpin--mx .mpin__dot { fill: var(--brand-2); stroke-width: 2.2; }
.mpin__pulse { fill: var(--brand-2); opacity: .5; transform-box: fill-box; transform-origin: center; animation: mpulse 2s ease-out infinite; }
@keyframes mpulse { from { transform: scale(1); opacity: .55; } to { transform: scale(3.2); opacity: 0; } }
.mpin.is-selected .mpin__dot { stroke: var(--brand-2); stroke-width: 3; }
.netmap__zoom { display: flex; flex-wrap: wrap; gap: .4rem; padding: .8rem; position: relative; z-index: 1; }
.netmap__zoom button { font: 600 .78rem var(--font-head); padding: .4rem .85rem; border: 1px solid var(--line); background: #fff; color: var(--brand); cursor: pointer; transition: all .2s; }
.netmap__zoom button:hover { border-color: var(--brand); }
.netmap__zoom button.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.netmap__card { position: absolute; left: 1rem; bottom: 1rem; background: #fff; box-shadow: var(--shadow-lg); border-left: 4px solid var(--brand-2); padding: .9rem 2.4rem .9rem 1rem; max-width: 300px; }
.netmap__card[hidden] { display: none; }
.netmap__card strong { display: block; font-family: var(--font-head); color: var(--brand-dark); }
.netmap__card span { display: block; font-size: .9rem; }
.netmap__card em { display: block; font-size: .8rem; color: var(--muted); margin-top: .2rem; }
.netmap__card-close { position: absolute; top: .3rem; right: .5rem; border: 0; background: none; font-size: 1.3rem; color: var(--muted); cursor: pointer; }
.netmap__side { border-left: 1px solid var(--line); display: flex; flex-direction: column; max-height: 520px; }
.netmap__stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--brand); color: #fff; text-align: center; }
.netmap__stats div { padding: 1rem .5rem; border-right: 1px solid rgba(255,255,255,.15); }
.netmap__stats div:last-child { border: 0; }
.netmap__stats strong { display: block; font-family: var(--font-head); font-size: 1.6rem; line-height: 1.1; }
.netmap__stats span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #c8d3e6; }
.netmap__legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; padding: .8rem 1rem; font-size: .78rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); margin-right: .35rem; vertical-align: -1px; }
.dot--hq { background: var(--brand-dark); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--brand-dark); }
.dot--mx { background: var(--brand-2); }
.netmap__list { overflow-y: auto; flex: 1; }
.netmap__list details { border-bottom: 1px solid var(--line); }
.netmap__list summary { cursor: pointer; padding: .8rem 1rem; font-family: var(--font-head); font-weight: 600; color: var(--brand-dark); display: flex; justify-content: space-between; list-style: none; }
.netmap__list summary::-webkit-details-marker { display: none; }
.netmap__list summary span { font-size: .75rem; background: var(--bg-alt); color: var(--brand); padding: .1rem .5rem; border-radius: 10px; }
.netmap__list ul { list-style: none; margin: 0; padding: 0 0 .5rem; }
.netmap__list button { width: 100%; text-align: left; border: 0; background: none; padding: .45rem 1rem .45rem 1.6rem; cursor: pointer; font: inherit; position: relative; }
.netmap__list button::before { content: ""; position: absolute; left: .8rem; top: .85rem; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.netmap__list button.is-mx::before { background: var(--brand-2); }
.netmap__list button.is-hq::before { background: var(--brand-dark); }
.netmap__list button:hover, .netmap__list button.is-current { background: var(--bg-alt); }
.netmap__list button.is-mx { background: rgba(72,199,236,.1); }
.netmap__list strong { display: block; font-size: .9rem; color: var(--ink); font-weight: 600; }
.netmap__list small { font-size: .78rem; color: var(--muted); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.feature { text-align: center; padding: 2rem 1.5rem; border-radius: var(--radius); transition: background .25s; }
.feature:hover { background: var(--bg-alt); }
.feature p { color: var(--muted); font-size: .95rem; }
.feature__icon { width: 72px; height: 72px; margin: 0 auto 1.2rem; border-radius: 50%; background: rgba(72,199,236,.1); display: grid; place-items: center; }
.feature__icon svg { width: 32px; height: 32px; fill: none; stroke: var(--brand-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buscador ---------- */
.finder { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.finder__controls { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.finder__filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font: 600 .82rem var(--font-head); padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--brand); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--brand); }
.chip.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.finder__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .7rem; max-height: 440px; overflow-y: auto; }
.finder__list li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .8rem 1rem; border-radius: var(--radius); background: var(--bg-alt); border-left: 3px solid var(--brand); font-size: .92rem; }
.finder__list li.is-mx { border-left-color: var(--brand-2); background: rgba(72,199,236,.07); }
.finder__list strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--brand-dark); }
.finder__list small { color: var(--muted); }
.pill { flex: none; font: 600 .7rem var(--font-head); text-transform: uppercase; letter-spacing: .05em; padding: .2rem .55rem; border-radius: 3px; background: #fff; color: var(--brand); border: 1px solid var(--line); }
.pill--mx { background: var(--brand-2); color: #fff; border-color: var(--brand-2); }
.finder__empty { margin: 1rem 0 0; color: var(--muted); }

/* ---------- Acreditaciones ---------- */
.logos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 1rem; }
.logos li {
  height: 92px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 700; color: var(--brand); font-size: .95rem; text-align: center; padding: .8rem;
  filter: grayscale(1); opacity: .8; transition: filter .25s, opacity .25s, box-shadow .25s;
}
.logos li:hover { filter: none; opacity: 1; box-shadow: var(--shadow); }
.logos img { max-height: 60px; width: auto; }
.logos li { height: 120px; filter: none; opacity: 1; background: #fff; }
.logos li img { filter: grayscale(1); opacity: .8; transition: filter .25s, opacity .25s; }
.logos li:hover img { filter: none; opacity: 1; }
.logo-badge { display: none; flex-direction: column; align-items: center; gap: .25rem; }
.logos li.is-text .logo-badge { display: flex; }
.logo-badge svg { width: 34px; height: 34px; fill: none; stroke: var(--brand-2-dark); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.logo-badge strong { font-family: var(--font-head); font-size: 1rem; color: var(--brand-dark); line-height: 1.1; }
.logo-badge small { font-family: var(--font-body); font-weight: 400; font-size: .68rem; color: var(--muted); line-height: 1.2; }
.note { text-align: center; margin-top: 1.8rem; color: var(--muted); font-size: .93rem; }

/* ---------- Verificar ---------- */
.verify { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.verify .eyebrow { color: #48c7ec; }
.verify p { margin: 0; }
.verify__form label { display: block; font-weight: 600; margin-bottom: .5rem; color: #fff; }
.verify__row { display: flex; gap: .7rem; }
.verify__row input { flex: 1; }

/* ---------- Formularios ---------- */
input, select, textarea { width: 100%; padding: .8rem 1rem; border: 1px solid #cdd6e1; border-radius: var(--radius); font: inherit; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(48,73,133,.12); }
.is-invalid { border-color: #d6343f !important; }

.split--contact { align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li { padding: .9rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.contact-list span { display: block; font: 600 .75rem var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--brand-2); }

.form { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand-2); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; margin: .5rem 0 1.25rem; font-size: .9rem; }
.checkbox input { width: auto; margin-top: .3rem; }
.form-msg { display: block; margin-top: .8rem; font-weight: 600; min-height: 1.2em; }
.form-msg.ok { color: var(--brand-2); }
.form-msg.err { color: #d6343f; }
.section--dark .form-msg.ok { color: #48c7ec; }

/* ---------- Footer ---------- */
.footer { background: var(--brand-deep); color: #b8c8dc; padding-top: 4rem; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer h4 { color: #fff; margin-bottom: 1.1rem; position: relative; padding-bottom: .6rem; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--brand-2); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .55rem; }
.footer a { color: #d6e2f1; }
.footer a:hover { color: #48c7ec; }
.footer .logo { margin-bottom: 1.2rem; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid rgba(255,255,255,.12); padding: 1.4rem 0; font-size: .84rem; }

/* ---------- Volver arriba / modal ---------- */
.to-top { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 40; width: 46px; height: 46px; border-radius: var(--radius); border: 0; cursor: pointer; background: var(--brand-2); color: #fff; font-size: 1.2rem; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(28,43,85,.6); display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal__box { background: #fff; border-radius: var(--radius); padding: 2rem; max-width: 560px; width: 100%; position: relative; }
.modal__close { position: absolute; top: .6rem; right: 1rem; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--muted); }

/* ---------- Animaciones ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__slide.is-active .hero__content > * { animation: none; }
  .hero__fallback, .mpin__pulse, .worldmap__route { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  :root { --header-h: 90px; }
  .logo__img { height: 56px; }
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 1rem 4%; box-shadow: var(--shadow-lg); border-top: 1px solid var(--line); max-height: calc(100vh - var(--header-h)); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 1rem; }
}

@media (max-width: 1100px) {
  .logos { grid-template-columns: repeat(4, 1fr); }
  .nav { gap: 1rem; }
  .nav a:not(.btn) { font-size: .9rem; }
  .btn--header { padding: .9rem 1.2rem; }
}
@media (max-width: 1024px) {
  .services, .cards { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .netmap { grid-template-columns: 1fr; }
  .netmap__map { min-height: 0; }
  .netmap__side { border-left: 0; border-top: 1px solid var(--line); max-height: 420px; }
  .hero__arrow { display: none; }
  .hero__more { display: none; }
  .hero__osp-tag { display: none; }
  .split, .verify, .steps, .features { grid-template-columns: 1fr; gap: 2rem; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.15); }
  .topbar__contact a { display: none; }
  .topbar__osp { border: 0; padding: 0; }
  .topbar__inner { justify-content: center; }
}
@media (max-width: 600px) {
  .hero { height: 640px; }
  .hero__content { padding-bottom: 90px; }
  .hero__scope { font-size: .68rem; }
  .hero__actions { gap: .8rem; }
  .hero__tab { flex-basis: 118px; }
  .lead { font-size: 1rem; }
  .osp-band__inner { flex-direction: column; text-align: center; }
  .hero__actions { gap: 1rem; }
  .services, .cards, .form__row, .footer__grid, .why { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .verify__row { flex-direction: column; }
  .topbar__links { gap: 1rem; justify-content: center; }
  .topbar__links a + a::before { display: none; }
  .finder { padding: 1.2rem; }
}

/* ---------- Párrafos informativos justificados ---------- */
main p, .footer__about p {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: none;
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}
/* Encabezados y bloques centrados: texto justificado con la última línea centrada */
.section__head p, .feature p, .note, .stat p, .osp-band p, .finder__empty {
  text-align-last: center;
}
/* Carrusel, cifras y mensajes cortos mantienen su alineación original */
.hero p, .hero__slide p, .stat p, .netmap p, .note, .finder__empty, .form p, .verify p { text-align: inherit; text-align-last: auto; -webkit-hyphens: manual; hyphens: manual; }

/* ---------- Páginas legales (aviso de privacidad, imparcialidad, términos) ---------- */
.legal-top { background: #fff; box-shadow: 0 2px 14px rgba(28,43,85,.08); position: sticky; top: 0; z-index: 20; }
.legal-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; }
.legal-top .logo__img { height: 56px; width: auto; }
.legal-hero { background: linear-gradient(120deg, var(--brand-deep), var(--brand)); color: #fff; padding: 3.2rem 0 2.8rem; }
.legal-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .4rem; }
.legal-hero p { color: #d6e2f1; max-width: 720px; margin: 0; }
.legal { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 3rem; padding: 3rem 0 4rem; align-items: start; }
.legal__nav { position: sticky; top: 110px; display: grid; gap: .35rem; border-left: 2px solid #e1e6ef; }
.legal__nav a { padding: .45rem 0 .45rem 1rem; color: var(--muted, #5d6679); font-weight: 500; font-size: .93rem; margin-left: -2px; border-left: 2px solid transparent; }
.legal__nav a[aria-current=page] { color: var(--brand); border-left-color: var(--brand-2); }
.legal__body { max-width: 820px; }
.legal__body h2 { font-size: 1.3rem; margin: 2.2rem 0 .8rem; }
.legal__body h3 { font-size: 1.05rem; margin: 1.4rem 0 .6rem; color: var(--brand); }
.legal__body p, .legal__body li { text-align: justify; text-justify: inter-word; -webkit-hyphens: none; hyphens: none; line-height: 1.75; }
.legal__body ul, .legal__body ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.legal__body li { margin-bottom: .5rem; }
.legal__date { color: var(--brand-2-dark, #26b0d9); font-weight: 600; font-size: .9rem; text-align: left !important; }
.legal__sign { margin-top: 2.5rem; text-align: left !important; }
.legal__contact { margin-top: 3rem; padding: 1.3rem 1.5rem; background: #f3f6fb; border-left: 4px solid var(--brand-2); }
.legal__contact strong { display: block; color: var(--brand-dark); margin-bottom: .2rem; }
.footer--slim { padding-top: 0; }
@media (max-width: 860px) {
  .legal { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1.5rem; }
  .legal__nav { position: static; border-left: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
  .legal__nav a { border: 1px solid #e1e6ef; padding: .35rem .8rem; margin: 0; font-size: .85rem; }
  .legal__nav a[aria-current=page] { border-color: var(--brand-2); }
  .legal-top .logo__img { height: 44px; }
}

.legal-top__actions { display: flex; align-items: center; gap: .8rem; }
.lang-toggle--light { background: #fff; color: var(--brand); border-color: #c9d3e6; padding: .5rem .85rem; }
.lang-toggle--light:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.legal__note { margin-top: 2rem; font-size: .85rem; color: var(--muted, #5d6679); font-style: italic; }
@media (max-width: 520px) { .legal-top .btn--sm { display: none; } }
