/* Secciones nuevas de SECORP (fuera del bundle compilado):
   rueda de servicios con isotipo al centro, ventana de detalle (formato SECORP y formato Secorp Alarmas)
   y certificaciones. */

:root {
  --sx-blue: #0a2f73;
  --sx-primary: #004bb7;
  --sx-ink: #0b1220;
  --sx-muted: #5b6475;
  --sx-line: #e3e8f0;
  --sx-red: #e63439;            /* rojo Secorp Alarmas */
  --sx-display: "Futura XBlk Cn", "Tracklister", "Basote", "Manrope", sans-serif;
}

/* ---------- Orden de secciones ---------- */
.ui-layer > #clientes-sx { order: 2; }
.ui-layer > .clients-marquee { order: 3; }
.ui-layer > #servicios { order: 4; }
.ui-layer > #certificaciones-sx { order: 5; }
.ui-layer > #clients { order: 6; }
.ui-layer > #certificaciones { order: 7; }
.ui-layer > #contact { order: 8; }
.ui-layer > .footer { order: 9; }

/* Secciones originales que se quitan: «Más de 23 años…» con sus 3 recuadros, el video
   «Campo probado. Confianza ganada.» y «Eleve la protección. Reduzca el riesgo.» */
.ui-layer > #manifesto,
.ui-layer > #video-scroll,
.ui-layer > .statement { display: none !important; }

/* La rueda sustituye la sección de servicios anterior */
.ui-layer > #services { display: none !important; }
/* La sección original de certificaciones se conserva (de ella depende el fondo azul de «clientes»)
   pero sin contenido: las certificaciones ahora se muestran en #certificaciones-sx */
.ui-layer > #certificaciones {
  height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important;
  overflow: hidden !important; visibility: hidden !important;
}

/* ---------- Utilidades ---------- */
.sx-kicker {
  margin: 0 0 .6rem;
  font: 700 .78rem/1.2 var(--font, "Manrope", sans-serif);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sx-primary);
}
.sx-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.sx-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Rueda de servicios ---------- */
.sx-svc {
  position: relative;
  background: #fff;
  padding: clamp(3.5rem, 9vh, 6rem) 0 0;
  overflow: hidden;
}
.sx-svc__head { text-align: center; padding: 0 16px; margin-bottom: clamp(1.5rem, 4vh, 3rem); }
.sx-svc__title {
  margin: 0;
  font-family: var(--sx-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: .95;
  text-transform: uppercase;
  color: var(--sx-blue);
}
.sx-svc__lead { margin: .8rem auto 0; max-width: 36rem; color: var(--sx-muted); font-size: 1.02rem; }

.sx-fan {
  --R: 560px;
  position: relative;
  width: calc(var(--R) * 2);
  height: var(--R);
  margin: 0 auto;
}
.sx-wedge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #dfe5ee;
  cursor: pointer;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .3s;
  -webkit-tap-highlight-color: transparent;
}
.sx-wedge:hover, .sx-wedge:focus-visible { transform: translate(var(--dx, 0), var(--dy, 0)); }
.sx-wedge:focus-visible { outline: none; filter: brightness(1.04); }
.sx-wedge__img { position: absolute; overflow: hidden; }
.sx-wedge__img img {
  width: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
  filter: saturate(.92);
}
.sx-wedge:hover .sx-wedge__img img, .sx-wedge:focus-visible .sx-wedge__img img { transform: scale(1.07); filter: saturate(1.05); }
/* velo claro en la parte exterior, donde van ícono y nombre */
.sx-wedge__fade {
  position: absolute; inset: 0;
  background: radial-gradient(circle var(--R) at 50% 100%, rgba(255,255,255,0) 60%, rgba(255,255,255,.6) 69%, rgba(246,248,251,.96) 82%);
  pointer-events: none;
}
.sx-wedge__label {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  width: calc(var(--R) * .3);
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}
.sx-wedge__ico {
  display: grid; place-items: center;
  width: calc(var(--R) * .1); height: calc(var(--R) * .1);
  min-width: 46px; min-height: 46px;
  border-radius: 50%;
  background: var(--sx-blue);
  color: #fff;
  font-size: calc(var(--R) * .042);
  box-shadow: 0 6px 18px rgba(10, 47, 115, .28);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background .3s;
}
.sx-wedge:hover .sx-wedge__ico, .sx-wedge:focus-visible .sx-wedge__ico { transform: scale(1.12); background: var(--sx-primary); }
.sx-wedge__txt {
  font-family: var(--font, "Manrope", sans-serif);
  font-weight: 800;
  font-size: clamp(.78rem, calc(var(--R) * .03), 1.12rem);
  line-height: 1.12;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--sx-ink);
}
/* Servicios de Secorp Alarmas: ícono rojo y logo */
.sx-wedge--al .sx-wedge__ico { background: var(--sx-red); box-shadow: 0 6px 18px rgba(230, 52, 57, .3); }
.sx-wedge--al:hover .sx-wedge__ico, .sx-wedge--al:focus-visible .sx-wedge__ico { background: #c8242a; }
.sx-wedge__brand {
  display: block;
  padding: 4px 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.sx-wedge__brand img { display: block; height: calc(var(--R) * .05) !important; min-height: 22px; width: auto !important; max-width: calc(var(--R) * .2) !important; object-fit: contain; }
.sx-wedge__txt small {
  display: block;
  margin-top: .2rem;
  font-weight: 600;
  font-size: .78em;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--sx-muted);
}

/* Isotipo al centro, con parpadeo */
.sx-fan__iso {
  position: absolute;
  left: 50%;
  bottom: calc(var(--R) * .035);
  width: calc(var(--R) * .27);
  aspect-ratio: 304 / 291;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 12px 22px rgba(10, 47, 115, .25));
}
.sx-fan__iso svg { display: block; width: 100%; height: 100%; }
.sx-fan__iso .sx-flid { transform: translateY(0); }
.sx-fan__iso.is-blink .sx-flid { animation: sx-fblink .55s ease-in-out; }
@keyframes sx-fblink {
  0%, 100% { transform: translateY(0); }
  45%, 55% { transform: translateY(140px); }
}

/* Entrada de la rueda */
.sx-fan .sx-wedge { opacity: 0; }
.sx-fan.is-in .sx-wedge { animation: sx-wedge-in .7s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i) * 80ms); }
@keyframes sx-wedge-in {
  from { opacity: 0; transform: translate(calc(var(--dx) * -6), calc(var(--dy) * -6)) scale(.92); }
  to   { opacity: 1; transform: none; }
}
.sx-fan .sx-fan__iso { opacity: 0; transform: translate(-50%, 30px) scale(.9); transition: opacity .9s .5s, transform .9s .5s cubic-bezier(.2,.8,.2,1); }
.sx-fan.is-in .sx-fan__iso { opacity: 1; transform: translate(-50%, 0); }

/* Banda inferior */
.sx-band {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1rem, 2.6vw, 1.6rem) max(16px, 4vw);
  background: var(--sx-blue);
  color: #fff;
}
.sx-band strong {
  font-family: var(--sx-display);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.sx-band__msg {
  display: flex; align-items: center; gap: 1rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255,255,255,.35);
  font-weight: 600;
  font-size: clamp(.95rem, 1.4vw, 1.2rem);
  line-height: 1.25;
  max-width: 15rem;
}
.sx-band__msg i {
  display: grid; place-items: center; flex: none;
  width: 3.2rem; height: 3.2rem; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.8);
  font-size: 1.35rem;
}

/* Rueda en pantallas angostas: isotipo arriba y tarjetas en cuadrícula */
@media (max-width: 899px) {
  .sx-fan {
    width: auto; height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 16px 1.5rem;
  }
  .sx-fan__iso {
    position: relative; left: auto; bottom: auto;
    grid-column: 1 / -1;
    justify-self: center;
    width: 112px;
    margin-bottom: .75rem;
    order: -1;
  }
  .sx-fan .sx-fan__iso { transform: translateY(20px) scale(.9); }
  .sx-fan.is-in .sx-fan__iso { transform: none; }
  .sx-wedge {
    position: relative; inset: auto;
    height: auto;
    aspect-ratio: 4 / 3.4;
    border-radius: 16px;
    overflow: hidden;
    clip-path: none !important;
    background: #0b1220;
  }
  .sx-wedge:last-of-type:nth-of-type(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
  .sx-wedge__img { inset: 0 !important; width: auto !important; height: auto !important; }
  .sx-wedge__fade { background: linear-gradient(180deg, rgba(5,12,28,0) 25%, rgba(5,12,28,.85) 100%); }
  .sx-wedge__label {
    left: 12px !important; right: 12px; bottom: 12px; top: auto !important;
    width: auto;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    text-align: left;
    gap: .5rem;
  }
  .sx-wedge__ico { width: 36px; height: 36px; min-width: 36px; min-height: 36px; font-size: .95rem; }
  .sx-wedge__txt { color: #fff; font-size: .82rem; flex: 1 1 0; min-width: 0; }
  .sx-wedge__brand { position: absolute; left: -2px; bottom: calc(100% + 8px); padding: 3px 6px; }
  .sx-wedge__brand img { height: 15px !important; min-height: 0; }
  .sx-fan.is-in .sx-wedge { animation-name: sx-card-in; }
  @keyframes sx-card-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  .sx-band { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .sx-band__msg { border-left: 0; padding-left: 0; max-width: none; }
}

/* ---------- Ventana de detalle (mismo esquema para las 7 divisiones) ---------- */
.sx-modal {
  --m-bg: #fff;
  --m-ink: #0b1220;
  --m-muted: #5b6475;
  --m-line: #e3e8f0;
  --m-accent: var(--sx-primary);
  --m-title: var(--sx-blue);
  --m-chip: var(--sx-blue);
  --m-btn: #fff;
  --m-btn-line: #e3e8f0;
  --m-btn-ink: var(--sx-blue);
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 16px;
}
/* Secorp Alarmas: formato de su presentación 2026 (oscuro, rojo) */
.sx-modal--al {
  --m-bg: #0e0e10;
  --m-ink: #fff;
  --m-muted: #a8a8b0;
  --m-line: #26262b;
  --m-accent: var(--sx-red);
  --m-title: #fff;
  --m-chip: #fff;
  --m-btn: #1b1b1f;
  --m-btn-line: #2c2c31;
  --m-btn-ink: #fff;
}
.sx-modal[hidden] { display: none; }
.sx-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 14, 32, .62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .35s;
}
.sx-modal__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  width: min(1080px, 100%);
  max-height: min(88vh, 800px);
  overflow: hidden;
  border-radius: 22px;
  background: var(--m-bg);
  color: var(--m-ink);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  opacity: 0;
  transform: translateY(26px) scale(.97);
  transition: opacity .35s, transform .45s cubic-bezier(.2,.8,.2,1), background .3s;
}
.sx-modal.is-open .sx-modal__backdrop { opacity: 1; }
.sx-modal.is-open .sx-modal__card { opacity: 1; transform: none; }
.sx-modal__media { position: relative; background: #e9edf3; min-height: 100%; overflow: hidden; }
.sx-modal__media > img { position: absolute; inset: 0; width: 100%; object-fit: cover; }
.sx-modal__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,47,115,0) 60%, rgba(10,47,115,.35) 100%);
}
.sx-modal--al .sx-modal__media { background: #000; }
.sx-modal--al .sx-modal__media::after { background: linear-gradient(90deg, rgba(14,14,16,0) 55%, rgba(14,14,16,.9) 100%); }
.sx-modal__brand {
  position: absolute; left: 18px; top: 18px; z-index: 1;
  display: block;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.sx-modal__brand img { display: block; height: 48px !important; width: auto !important; max-width: 180px !important; object-fit: contain; }
.sx-modal__body {
  overflow-y: auto;
  overscroll-behavior: contain;
  max-height: min(88vh, 800px);
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.sx-dv__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 3rem 1.3rem 0; }
.sx-dv__tab {
  padding: .5rem .95rem;
  border-radius: 999px;
  border: 1px solid var(--m-btn-line);
  background: transparent;
  color: var(--m-muted);
  font: 700 .74rem/1 var(--font, "Manrope", sans-serif);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.sx-dv__tab:hover { border-color: var(--m-accent); color: var(--m-ink); }
.sx-dv__tab.is-on { background: var(--m-accent); border-color: var(--m-accent); color: #fff; }
.sx-dv__tab--web { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; border-color: var(--m-accent); color: var(--m-ink); }
.sx-dv__tab--web i { font-size: .68rem; }
.sx-dv__tab--web:hover { background: var(--m-accent); color: #fff; }
.sx-dv__kicker {
  margin: 0 3rem .5rem 0;
  font: 700 .72rem/1.3 var(--font, "Manrope", sans-serif);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--m-accent);
}
.sx-dv__tabs + .sx-dv__kicker { margin-right: 0; }
.sx-dv__title {
  margin: 0 0 .8rem;
  font-family: var(--sx-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  line-height: .92;
  text-transform: uppercase;
  color: var(--m-title);
}
.sx-dv__title em { font-style: normal; color: var(--m-accent); }
.sx-dv__lead { margin: 0 0 1.3rem; color: var(--m-muted); line-height: 1.55; font-weight: 500; }
.sx-dv__items { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; }
.sx-dv__items li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: .6rem;
  align-items: start;
  padding: .7rem 0;
  border-top: 1px solid var(--m-line);
}
.sx-dv__items li:last-child { border-bottom: 1px solid var(--m-line); }
.sx-dv__n { font-family: var(--sx-display); font-size: 1.65rem; line-height: 1; color: var(--m-accent); }
.sx-dv__items strong { display: block; font-family: var(--sx-display); font-weight: 400; font-size: 1.15rem; letter-spacing: .02em; text-transform: uppercase; color: var(--m-title); line-height: 1.1; }
.sx-dv__items small { display: block; margin-top: .2rem; font-size: .88rem; color: var(--m-muted); line-height: 1.4; }
.sx-dv__stats { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; margin: 0 0 1.1rem; }
.sx-dv__stats div { min-width: 7rem; max-width: 13rem; }
.sx-dv__stats b { display: block; font-family: var(--sx-display); font-weight: 400; font-size: clamp(2.2rem, 3.8vw, 3.1rem); line-height: 1; color: var(--m-title); }
.sx-dv__stats b.is-accent { color: var(--m-accent); }
.sx-dv__stats span { display: block; margin-top: .3rem; font-size: .8rem; color: var(--m-muted); line-height: 1.3; }
.sx-dv__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.4rem; }
.sx-dv__chips span {
  padding: .38rem .8rem;
  border: 1px solid var(--m-chip);
  border-radius: 999px;
  color: var(--m-chip);
  font: 700 .7rem/1 var(--font, "Manrope", sans-serif);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.sx-dv__social { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.3rem; }
.sx-dv__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px;
  padding: .7rem 1.15rem;
  border: 0;
  border-radius: 999px;
  font: 700 .92rem/1 var(--font, "Manrope", sans-serif);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, filter .2s;
}
.sx-dv__btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.sx-dv__btn--main { background: var(--sx-blue); box-shadow: 0 10px 24px rgba(10,47,115,.28); }
.sx-dv__btn--fb { background: #1877f2; }
.sx-dv__btn--ig { background: linear-gradient(45deg, #f09433, #e6683c 30%, #dc2743 55%, #cc2366 75%, #bc1888); }
.sx-dv__btn--wa { background: #1fa855; }
.sx-dv__btn--web { background: var(--m-accent); }
.sx-dv__contact { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: .8rem 1.6rem; margin-bottom: 1rem; }
.sx-dv__contact small { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--m-muted); margin-bottom: .2rem; }
.sx-dv__contact a { color: var(--m-accent); text-decoration: none; font-family: var(--sx-display); font-size: 1.35rem; line-height: 1.05; word-break: break-word; }
.sx-dv__contact div:last-child a { font-family: var(--font, "Manrope", sans-serif); font-size: .92rem; font-weight: 700; color: var(--m-ink); }
.sx-dv__quote { margin: 0; font-style: italic; color: var(--m-muted); font-size: .92rem; }

.sx-modal__nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1.6rem; padding-top: 1rem;
  border-top: 1px solid var(--m-line);
  color: var(--m-muted); font-size: .82rem; font-weight: 600; text-align: center;
}
.sx-modal__nav span i { font-size: .7rem; margin-left: .2rem; }
.sx-modal__nav button, .sx-modal__close {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--m-btn-line);
  background: var(--m-btn);
  color: var(--m-btn-ink);
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.sx-modal__nav button:hover, .sx-modal__close:hover { background: var(--m-accent); border-color: var(--m-accent); color: #fff; }
.sx-modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.sx-modal button:focus-visible, .sx-modal a:focus-visible { outline: 3px solid var(--m-accent); outline-offset: 2px; }

@media (max-width: 760px) {
  .sx-modal { padding: 0; place-items: end center; }
  .sx-modal__card {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    width: 100%;
    max-height: 92svh;
    border-radius: 22px 22px 0 0;
    transform: translateY(60px);
  }
  .sx-modal__media { min-height: 0; height: 28svh; }
  .sx-modal--al .sx-modal__media::after { background: linear-gradient(180deg, rgba(14,14,16,0) 50%, rgba(14,14,16,.95) 100%); }
  .sx-modal__brand { left: 12px; top: 12px; padding: 6px 9px; }
  .sx-modal__brand img { height: 34px !important; max-width: 130px !important; }
  .sx-modal__body { max-height: calc(92svh - 28svh); padding-bottom: max(1.4rem, env(safe-area-inset-bottom)); }
  .sx-dv__tabs, .sx-dv__kicker { margin-right: 0; }
  .sx-dv__contact { grid-template-columns: 1fr 1fr; }
  .sx-dv__contact div:last-child { grid-column: 1 / -1; }
  .sx-dv__btn { flex: 1 1 calc(50% - .6rem); }
}

/* ---------- Certificaciones ---------- */
.sx-certs {
  position: relative;
  background: #f4f6fa;
  padding: clamp(4rem, 10vh, 7rem) 16px;
}
.sx-certs__head { text-align: center; max-width: 44rem; margin: 0 auto clamp(2rem, 5vh, 3.2rem); }
.sx-certs__title {
  margin: 0;
  font-family: var(--sx-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: .95;
  text-transform: uppercase;
  color: var(--sx-blue);
}
.sx-certs__lead { margin: .8rem 0 0; color: var(--sx-muted); font-size: 1.02rem; line-height: 1.55; }
.sx-certs__grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1180px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.sx-cert {
  flex: 0 1 calc((100% - 48px) / 4);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.6rem 1.2rem 1.4rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--sx-line);
  box-shadow: 0 1px 2px rgba(10,47,115,.04);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
}
.sx-cert:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(10,47,115,.12); border-color: #c9d5ea; }
.sx-cert__logo { height: 96px; width: 100%; display: grid; place-items: center; margin-bottom: 1.1rem; }
.sx-cert__logo img { max-height: 96px; width: auto; object-fit: contain; }
.sx-cert__name { margin: 0 0 .25rem; font-weight: 800; font-size: 1.05rem; color: var(--sx-ink); }
.sx-cert__full { margin: 0 0 .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sx-primary); }
.sx-cert__desc { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--sx-muted); }
@media (max-width: 1023px) { .sx-cert { flex-basis: calc((100% - 32px) / 3); } }
@media (max-width: 760px) {
  .sx-certs__grid { gap: 10px; }
  .sx-cert { flex-basis: calc((100% - 10px) / 2); padding: 1.1rem .8rem 1rem; }
  .sx-cert__logo { height: 70px; }
  .sx-cert__logo img { max-height: 70px; }
  .sx-cert__desc { font-size: .82rem; }
}

/* El CSS del sitio trae una regla global muy específica para img (max-width:100%; height:auto):
   aquí se fuerzan los tamaños de las imágenes de estas secciones. */
.sx-wedge__img img, .sx-modal__media > img { height: 100% !important; max-width: none !important; }
.sx-wedge__brand img { max-width: none !important; }
.sx-cert__logo img { max-width: 80% !important; height: auto !important; }

@media (prefers-reduced-motion: reduce) {
  .sx-reveal, .sx-fan .sx-wedge {
    opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important;
  }
  .sx-fan .sx-fan__iso { opacity: 1 !important; transform: translateX(-50%) !important; transition: none !important; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 899px) {
  .sx-fan .sx-fan__iso { transform: none !important; }
}


@media (max-width: 899px) {
  .sx-wedge__txt small { color: rgba(255,255,255,.78); }
  .sx-wedge__brand img { height: 20px !important; min-height: 0; max-width: 90px !important; }
}

/* ---------- Título de la barra de clientes ---------- */
.sx-clients-head {
  background: #fff;
  text-align: center;
  padding: clamp(3rem, 8vh, 5rem) 16px clamp(1rem, 2.5vh, 1.6rem);
}
.sx-clients-head h2 {
  margin: 0;
  font-family: var(--sx-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: .95;
  text-transform: uppercase;
  color: var(--sx-blue);
}
.sx-clients-head p { margin: .7rem auto 0; max-width: 34rem; color: var(--sx-muted); font-size: 1rem; }

/* ---------- Rueda: fotos completas, sin degradado; rótulo en tarjeta ---------- */
.sx-wedge__fade { display: none !important; }
.sx-wedge__img img { filter: none; }
.sx-wedge:hover .sx-wedge__img img, .sx-wedge:focus-visible .sx-wedge__img img { filter: none; }
.sx-wedge__label {
  width: auto;
  max-width: calc(var(--R) * .27);
  gap: .35rem;
  padding: .6rem .75rem .65rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 8px 22px rgba(6, 14, 32, .22);
}
.sx-wedge__ico { width: calc(var(--R) * .072); height: calc(var(--R) * .072); min-width: 38px; min-height: 38px; font-size: calc(var(--R) * .03); }
.sx-wedge__txt { font-size: clamp(.74rem, calc(var(--R) * .024), 1rem); }
.sx-wedge__brand { padding: 0; background: none; box-shadow: none; border-radius: 0; }
.sx-wedge__brand img { height: calc(var(--R) * .04) !important; max-width: calc(var(--R) * .17) !important; }
@media (max-width: 899px) {
  .sx-wedge__label {
    max-width: none;
    padding: .5rem .6rem;
    border-radius: 12px;
  }
  .sx-wedge__txt { color: var(--sx-ink); }
  .sx-wedge__txt small { color: var(--sx-muted); }
  .sx-wedge__brand { position: static; flex-basis: 100%; order: -1; }
  .sx-wedge__brand img { height: 18px !important; max-width: 90px !important; }
}

/* Celular: foto completa arriba y rótulo debajo (sin tapar la imagen) */
@media (max-width: 899px) {
  .sx-wedge {
    display: flex; flex-direction: column;
    aspect-ratio: auto !important;
    background: #fff;
    border: 1px solid var(--sx-line);
    box-shadow: 0 6px 18px rgba(6, 14, 32, .08);
  }
  .sx-wedge__img {
    position: relative !important; inset: auto !important;
    width: 100% !important; height: auto !important;
    aspect-ratio: 4 / 3.3;
  }
  .sx-wedge:last-of-type:nth-of-type(odd) .sx-wedge__img { aspect-ratio: 16 / 8; }
  .sx-wedge__img img { position: absolute; inset: 0; }
  .sx-wedge__label {
    position: static !important;
    flex: 1;
    align-items: flex-start;
    padding: .65rem .7rem .75rem;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }
}

/* ---------- Certificaciones como barra deslizante ---------- */
.sx-certs { padding: clamp(3rem, 8vh, 5rem) 0 clamp(2.5rem, 6vh, 4rem); background: #fff; }
.sx-certs__head { padding: 0 16px; margin-bottom: clamp(1.2rem, 3vh, 2rem); }
.sx-certs-marquee { overflow: hidden; padding: .5rem 0; }
.sx-certs-marquee .marquee { overflow: hidden; padding: .25rem 0; }
.sx-certs-marquee .marquee__track { animation: 38s linear infinite marquee; }
.sx-certs-marquee:hover .marquee__track { animation-play-state: paused; }
.sx-certs-marquee .marquee__item { height: 96px; padding: .9rem 1.8rem; }
.sx-certs-marquee .marquee__item img { height: 64px !important; max-height: 64px; width: auto !important; max-width: 160px !important; object-fit: contain; }
@media (max-width: 760px) {
  .sx-certs-marquee .marquee__item { height: 76px; padding: .7rem 1.2rem; }
  .sx-certs-marquee .marquee__item img { height: 48px !important; max-height: 48px; max-width: 120px !important; }
}
@media (prefers-reduced-motion: reduce) { .sx-certs-marquee .marquee__track { animation-duration: 90s; } }
.sx-certs-marquee .marquee__item img { filter: none !important; opacity: 1 !important; }

/* Barra de clientes: se desliza hacia la derecha (la de certificaciones va al otro lado) */
.clients-marquee .marquee__track { animation-direction: reverse !important; }

/* Socios Comerciales e Industriales: fondo totalmente blanco (sin el velo azul que aparecía al llegar) */
.clients-blue-overlay { display: none !important; }
.ui-layer > #clients { background: #fff !important; }

/* Menos espacio entre Certificaciones → Socios comerciales → Cotización/Vacantes */
.ui-layer > #certificaciones-sx { padding-bottom: clamp(1.25rem, 3vh, 2rem) !important; }
.ui-layer > #clients { padding-top: clamp(1.5rem, 4vh, 2.75rem) !important; padding-bottom: clamp(1.5rem, 4vh, 2.75rem) !important; }
.ui-layer > #clients .section__header { margin-bottom: clamp(1.5rem, 3.5vh, 2.5rem) !important; }
.ui-layer > #clients .stats { margin-bottom: 0 !important; }
.ui-layer > #clients .clients__note { margin-top: 1.75rem !important; }
.ui-layer > #contact { padding-top: clamp(1.5rem, 4vh, 3rem) !important; }
/* Sin la línea entre el cotizador y «Cobertura y sucursales» */
.ui-layer > #contact .contact-presence { border-top: 0 !important; margin-top: clamp(2.5rem, 6vh, 4rem) !important; padding-top: 0 !important; }

/* Barras de clientes y certificaciones: casillas del mismo tamaño; el JS iguala el área de cada logo */
.clients-marquee .marquee__item,
.sx-certs-marquee .marquee__item {
  width: 200px !important;
  height: 92px !important;
  padding: 0 !important;
  justify-content: center;
  align-items: center;
  flex: none;
}
.clients-marquee .marquee__item img,
.sx-certs-marquee .marquee__item img { object-fit: contain; }
/* «Peñoles» no tiene logo en el sitio: se muestra como texto con un tamaño parecido */
.clients-marquee .marquee__item:not(.marquee__item--logo) {
  font-family: var(--sx-display);
  font-size: 1.9rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .clients-marquee .marquee__item,
  .sx-certs-marquee .marquee__item { width: 150px !important; height: 72px !important; }
  .clients-marquee .marquee__item:not(.marquee__item--logo) { font-size: 1.45rem; }
}

/* Títulos de «Socios Comerciales e Industriales», «Seguridad corporativa lista para escalar» y
   «Cobertura y Sucursales» con la misma tipografía, tamaño y color que «Nuestros servicios»
   (sin el efecto de palabras en tono claro que se van encendiendo) */
.ui-layer > #clients .section__title,
.ui-layer > #contact .contact-enterprise__title,
.ui-layer > #contact .contact-presence__title {
  font-family: var(--sx-display) !important;
  font-weight: 400 !important;
  font-size: clamp(2.6rem, 6vw, 4.6rem) !important;
  line-height: .95 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  color: var(--sx-blue) !important;
}
.ui-layer > #clients .section__title .scroll-word,
.ui-layer > #contact .contact-enterprise__title .scroll-word,
.ui-layer > #contact .contact-presence__title .scroll-word {
  color: var(--sx-blue) !important;
  opacity: 1 !important;
}

/* ---------- Misión, visión y valores (va pegado a «Socios comerciales», mismo fondo blanco) ---------- */
.ui-layer > #nosotros-sx { order: 6; }
.sx-mvv {
  background: #fff;
  padding: 0 clamp(16px, 5vw, 64px) clamp(2rem, 6vh, 3.5rem);
  margin-top: -1px;
}
.sx-mvv__card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  border: 1px solid #e3e8f0;
  border-radius: 24px;
  background: linear-gradient(180deg, #f6f8fc, #fff);
  box-shadow: 0 18px 50px rgba(10, 47, 115, .08);
}
.sx-mvv__title {
  margin: .2rem 0 .9rem;
  font-family: var(--sx-display); font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.1rem); line-height: .95;
  text-transform: uppercase; color: var(--sx-blue);
}
.sx-mvv__title em { font-style: normal; color: var(--sx-primary); }
.sx-mvv__intro > p:not(.sx-kicker) { margin: 0 0 1.3rem; color: #5b6475; line-height: 1.6; font-weight: 500; }
.sx-mvv__box {
  border-radius: 20px;
  background: var(--sx-blue);
  color: #fff;
  padding: clamp(1.1rem, 2.5vw, 1.8rem);
  min-height: 300px;
}
.sx-mvv__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.08); margin-bottom: 1.4rem; }
.sx-mvv__tab {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .55rem .6rem;
  border: 0; border-radius: 999px;
  background: transparent; color: rgba(255,255,255,.75);
  font: 800 .82rem/1 var(--font, "Manrope", sans-serif); letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; transition: background .25s, color .25s;
}
.sx-mvv__tab:hover { color: #fff; background: rgba(255,255,255,.08); }
.sx-mvv__tab.is-on { background: #fff; color: var(--sx-blue); }
.sx-mvv__tab:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.sx-mvv__panel.is-on { animation: sxMvvIn .45s cubic-bezier(.2,.8,.2,1); }
@keyframes sxMvvIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sx-mvv__text {
  margin: 0; padding: .4rem .3rem;
  font-family: var(--sx-display); font-weight: 400;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem); line-height: 1.12;
  text-transform: uppercase; letter-spacing: .01em;
}
.sx-mvv__sub { margin: 0 0 .9rem; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.sx-mvv__values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sx-mvv__values li {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem .85rem; border-radius: 14px;
  background: rgba(255,255,255,.08);
  font-family: var(--sx-display); font-size: 1.2rem; line-height: 1; text-transform: uppercase;
}
.sx-mvv__values i { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--sx-blue); font-size: .9rem; }
@media (max-width: 860px) {
  .sx-mvv__card { grid-template-columns: 1fr; }
  .sx-mvv__box { min-height: 0; }
}
@media (max-width: 420px) {
  .sx-mvv__tab { font-size: .72rem; letter-spacing: .05em; gap: .35rem; }
  .sx-mvv__values li { font-size: 1.05rem; padding: .6rem .65rem; gap: .5rem; }
  .sx-mvv__values i { width: 28px; height: 28px; font-size: .78rem; }
}

/* ---------- Contacto directo al final de la ventana (K9) ---------- */
.sx-dv__person { margin-top: 1.4rem; padding: 1.1rem 1.2rem; border: 1px solid var(--m-line); border-radius: 16px; background: rgba(10,47,115,.04); }
.sx-dv__person-name { margin: 0 0 .9rem; font-family: var(--sx-display); font-size: 1.5rem; line-height: 1; text-transform: uppercase; color: var(--m-title); }
.sx-dv__person-name small { display: block; margin-bottom: .3rem; font-family: var(--font, "Manrope", sans-serif); font-size: .66rem; font-weight: 700; letter-spacing: .18em; color: var(--m-accent); }
.sx-dv__person-name span { display: block; margin-top: .25rem; font-family: var(--font, "Manrope", sans-serif); font-size: .85rem; font-weight: 600; text-transform: none; color: var(--m-muted); }
.sx-dv__person .sx-dv__contact { margin-bottom: 0; }
.sx-dv__person .sx-dv__contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sx-dv__person .sx-dv__contact div:last-child { grid-column: 1 / -1; }
.sx-dv__person .sx-dv__contact a { white-space: nowrap; }
.sx-dv__person .sx-dv__contact div:last-child a { color: var(--m-accent); }
.sx-mvv__values li { min-width: 0; }
@media (max-width: 560px) {
  .sx-mvv { padding-left: 12px; padding-right: 12px; }
  .sx-mvv__card { padding: 1.25rem 1rem; border-radius: 20px; }
  .sx-mvv__box { padding: .9rem; border-radius: 16px; }
  .sx-mvv__values li { font-size: .98rem; padding: .55rem .55rem; gap: .45rem; }
  .sx-mvv__values i { width: 26px; height: 26px; font-size: .72rem; }
  .sx-mvv__text { font-size: 1.35rem; }
}
@media (max-width: 440px) {
  .sx-mvv__values { grid-template-columns: 1fr; gap: 6px; }
  .sx-mvv__values li { font-size: 1.05rem; padding: .5rem .7rem; }
}

/* ---------- Pie de página más compacto (2026-11-30 f) ---------- */
.ui-layer > .footer { padding-top: clamp(2.25rem, 4.5vw, 3.25rem) !important; }
.footer .footer__inner { grid-template-columns: minmax(200px, .65fr) minmax(0, 1.7fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
.footer .footer__logo { width: min(250px, 70vw) !important; }
.footer .footer__brand { padding-top: .4rem; }
.footer .footer__main { gap: 1.5rem; }
.footer .footer__cols { grid-template-columns: minmax(0, .8fr) minmax(0, .95fr) minmax(12rem, 1.35fr) minmax(0, 1.7fr); gap: 1.25rem clamp(1.25rem, 2.5vw, 2.25rem); }
.footer .footer__col h5 {
  font-family: var(--sx-display) !important;
  font-weight: 400 !important;
  font-size: clamp(1.25rem, 1.7vw, 1.6rem) !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  color: #fff !important;
  opacity: 1 !important;
  margin: 0 0 .85rem !important;
}
.footer .footer__col--offices ul { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem 1.1rem !important; }
.footer .footer__col--offices li { line-height: 1.25; }
.footer .footer__bottom { margin-top: 1.75rem; padding-top: 1rem; padding-bottom: 1.1rem; }
@media (max-width: 1100px) {
  .footer .footer__inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .footer .footer__logo { width: min(200px, 60vw) !important; }
  .footer .footer__cols { grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; }
  .footer .footer__col--support, .footer .footer__col--offices { grid-column: 1 / -1; }
  .footer .footer__col--offices ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .footer .footer__col--offices ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Selector de idioma con banderas: México = español, EE. UU. = inglés ----------
   El botón original (cambia todo el sitio) se conserva; solo cambia cómo se ve.
   La bandera del idioma activo se ve completa y la otra atenuada. */
.lang-toggle {
  font-size: 0 !important;
  line-height: 0 !important;
  white-space: nowrap;
  padding: 4px !important;
  background: #fff !important;
  border: 1px solid rgba(0, 75, 183, .2) !important;
}
.lang-toggle::before, .lang-toggle::after {
  display: inline-flex; align-items: center; vertical-align: middle;
  height: 26px; padding: 0 9px 0 36px;
  border-radius: 100px;
  font: 800 11px/1 var(--font, "Manrope", sans-serif);
  letter-spacing: .06em;
  color: var(--sx-blue, #0a2f73);
  background-repeat: no-repeat; background-position: 9px center; background-size: 21px 14px;
  transition: background-color .3s, opacity .3s, filter .3s;
}
.lang-toggle::before {
  content: "ES";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Crect width='10' height='20' fill='%23006847'/%3E%3Crect x='10' width='10' height='20' fill='%23fff'/%3E%3Crect x='20' width='10' height='20' fill='%23ce1126'/%3E%3Ccircle cx='15' cy='10' r='3.2' fill='%238c5a2b'/%3E%3Cpath d='M12.6 11.6q2.4 2 4.8 0' stroke='%23006847' stroke-width='.9' fill='none'/%3E%3Crect x='.25' y='.25' width='29.5' height='19.5' fill='none' stroke='%23000' stroke-opacity='.15' stroke-width='.5'/%3E%3C/svg%3E");
}
.lang-toggle::after {
  content: "EN";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 20'%3E%3Crect width='38' height='20' fill='%23fff'/%3E%3Cg fill='%23b22234'%3E%3Crect width='38' height='1.54'/%3E%3Crect y='3.08' width='38' height='1.54'/%3E%3Crect y='6.15' width='38' height='1.54'/%3E%3Crect y='9.23' width='38' height='1.54'/%3E%3Crect y='12.31' width='38' height='1.54'/%3E%3Crect y='15.38' width='38' height='1.54'/%3E%3Crect y='18.46' width='38' height='1.54'/%3E%3C/g%3E%3Crect width='15.2' height='10.77' fill='%233c3b6e'/%3E%3Cg fill='%23fff'%3E%3Ccircle cx='2.5' cy='2' r='.6'/%3E%3Ccircle cx='6' cy='2' r='.6'/%3E%3Ccircle cx='9.5' cy='2' r='.6'/%3E%3Ccircle cx='13' cy='2' r='.6'/%3E%3Ccircle cx='4.2' cy='4.2' r='.6'/%3E%3Ccircle cx='7.7' cy='4.2' r='.6'/%3E%3Ccircle cx='11.2' cy='4.2' r='.6'/%3E%3Ccircle cx='2.5' cy='6.4' r='.6'/%3E%3Ccircle cx='6' cy='6.4' r='.6'/%3E%3Ccircle cx='9.5' cy='6.4' r='.6'/%3E%3Ccircle cx='13' cy='6.4' r='.6'/%3E%3Ccircle cx='4.2' cy='8.6' r='.6'/%3E%3Ccircle cx='7.7' cy='8.6' r='.6'/%3E%3Ccircle cx='11.2' cy='8.6' r='.6'/%3E%3C/g%3E%3Crect x='.25' y='.25' width='37.5' height='19.5' fill='none' stroke='%23000' stroke-opacity='.15' stroke-width='.5'/%3E%3C/svg%3E");
}
html[lang="es"] .lang-toggle::before, html:not([lang="en"]) .lang-toggle::before,
html[lang="en"] .lang-toggle::after { background-color: rgba(0, 75, 183, .12); opacity: 1; filter: none; }
html:not([lang="en"]) .lang-toggle::after, html[lang="en"] .lang-toggle::before { opacity: .55; filter: grayscale(.6); background-color: transparent; }
.lang-toggle:hover { transform: none !important; background: #fff !important; }
.lang-toggle:hover::before, .lang-toggle:hover::after { opacity: 1; filter: none; }

/* ---------- Menú superior con la tipografía de «Nuestros servicios» ---------- */
.nav .nav__link, .nav__links a {
  font-family: var(--sx-display) !important;
  font-weight: 400 !important;
  font-size: 1.08rem !important;
  line-height: 1 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  color: var(--sx-blue) !important;
  padding: .5rem .7rem !important;
}
.nav__mobile a:not(.nav__mobile-call) {
  font-family: var(--sx-display) !important;
  font-weight: 400 !important;
  font-size: 1.55rem !important;
  line-height: 1 !important;
  letter-spacing: .03em !important;
  color: var(--sx-blue) !important;
}
