:root {
  --hero-blue: #1687ff;
  --hero-ink: #030b14;
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
body > .sidebar,
body > .menu-toggle { display: none !important; }
.pagina,
main.pagina { margin-left: 0 !important; width: 100% !important; max-width: none !important; }

/* Header del remix, oscuro sobre el hero y claro al llegar a Servicios. */
.hero-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1200;
  padding: 14px clamp(14px, 2.5vw, 48px) 0;
  pointer-events: none;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.hero-nav__barra {
  width: 100%;
  height: 60px;
  margin: 0 auto;
  padding: 0 18px;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  align-items: center;
  gap: 22px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  background: rgba(3,11,20,.80);
  box-shadow: 0 14px 38px rgba(0,0,0,.34);
  backdrop-filter: blur(18px);
  transition: color .45s ease, background .45s ease, border-color .45s ease, box-shadow .45s ease;
  pointer-events: auto;
}
.hero-nav.is-light .hero-nav__barra {
  color: #081725;
  background: rgba(255,255,255,.93);
  border-color: rgba(15,35,55,.12);
  box-shadow: 0 10px 28px rgba(12,28,48,.10);
}
.hero-nav__marca { min-width: 0; display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.hero-nav__marca img { width: 38px; height: 38px; flex: 0 0 38px; object-fit: cover; border-radius: 50%; border: 1px solid rgba(22,135,255,.45); }
.hero-nav__marca > span { display: grid; gap: 4px; line-height: 1; }
.hero-nav__marca strong { font-size: 14px; font-weight: 800; white-space: nowrap; }
.hero-nav__marca strong b { color: var(--hero-blue); }
.hero-nav__marca small { color: #96a6b8; font-size: 7.5px; font-weight: 650; letter-spacing: .18em; white-space: nowrap; }
.hero-nav.is-light .hero-nav__marca small { color: #5d6c7b; }
.hero-nav__enlaces { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 2.1vw, 34px); }
.hero-nav__enlaces a { position: relative; padding: 7px 0; color: #cad3df; font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: color .2s ease; }
.hero-nav.is-light .hero-nav__enlaces a { color: #334253; }
.hero-nav__enlaces a:hover,
.hero-nav__enlaces a.activo { color: var(--hero-blue); }
.hero-nav__enlaces a.activo::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 24px; height: 2px; border-radius: 2px; background: var(--hero-blue); box-shadow: 0 0 6px rgba(22,135,255,.35); transform: translateX(-50%); }
.hero-nav__acciones { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.hero-nav__agenda { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; color: #80e6bd; border: 1px solid rgba(52,211,153,.28); border-radius: 999px; background: rgba(16,185,129,.09); font-size: 10.5px; font-weight: 650; white-space: nowrap; }
.hero-nav.is-light .hero-nav__agenda { color: #087b59; background: #edfdf6; border-color: #bcebd9; }
.hero-nav__agenda i { position:relative; width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,.10); }
.hero-nav__agenda i::after { content:""; position:absolute; inset:-5px; border:1px solid rgba(16,185,129,.62); border-radius:50%; animation:hero-agenda-pulso 1.9s ease-out infinite; }
@keyframes hero-agenda-pulso { 0% { transform:scale(.45); opacity:.9; } 72%,100% { transform:scale(1.6); opacity:0; } }
.hero-nav__acciones > a { width: 34px; height: 34px; display: grid; place-items: center; color: #dae3ee; border-radius: 50%; text-decoration: none; font-size: 18px; transition: color .2s ease, background .2s ease; }
.hero-nav__acciones > a svg { width: 19px; height: 19px; display: block; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.hero-nav__acciones > a[aria-label="WhatsApp"] svg { width: 19px; height: 19px; fill: none; stroke: currentColor; }
.hero-nav__acciones .hero-nav__icon-dot { fill: currentColor; stroke: none; }
.hero-nav.is-light .hero-nav__acciones > a { color: #344457; }
.hero-nav__acciones > a:hover { color: var(--hero-blue); background: rgba(22,135,255,.08); }
.hero-nav__menu { display: none; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); cursor: pointer; }
.hero-nav__menu span { display: block; width: 18px; height: 1.5px; margin: 3.5px auto; border-radius: 99px; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
.hero-nav.menu-open .hero-nav__menu span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.hero-nav.menu-open .hero-nav__menu span:nth-child(2) { opacity: 0; }
.hero-nav.menu-open .hero-nav__menu span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.hero-nav__panel { display: none; pointer-events: auto; }

/* Hero panorámico: una sola imagen, sin duplicados ni capas de paisaje. */
.hero-pin { position: relative; background: #fff; }
.hero-montana {
  position: sticky;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  color: #fff;
  background: #04101d;
  isolation: isolate;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.hero-montana__imagen { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 57% center; filter: brightness(.88) contrast(1.04); transform: scale(calc(1 + var(--hero-progress, 0) * .035)); transform-origin: 62% 55%; will-change: transform; }
.hero-montana__velo { position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse 80% 92% at 0% 48%, rgba(3,12,23,.94) 0%, rgba(3,14,27,.73) 42%, rgba(3,14,27,.20) 68%, rgba(3,14,27,.03) 100%), linear-gradient(180deg,rgba(3,12,23,.16),rgba(3,12,23,.03) 52%,rgba(3,12,23,.18)); }
.hero-montana__particulas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-montana__contenido { position: relative; width: min(660px, calc(100% - 48px)); height: 100%; padding-top: 126px; margin-left: clamp(28px, 8.7vw, 178px); display: flex; flex-direction: column; justify-content: center; transform: translateY(calc(var(--hero-progress, 0) * -78px)); opacity: calc(1 - var(--hero-progress, 0) * 2.25); will-change: transform, opacity; }
.hero-montana h1 { margin: 0; color: #fff; font-size: clamp(42px, 4vw, 68px); font-weight: 800; line-height: 1.06; letter-spacing: -.045em; text-wrap: balance; text-shadow: 0 3px 24px rgba(0,0,0,.35); }
.hero-montana h1 em { display: block; margin-top: 8px; color: var(--hero-blue); font: inherit; background: linear-gradient(90deg,#1687ff 0%,#60b2ff 58%,#f8fbff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-montana__texto { max-width: 610px; margin: 22px 0 0; color: #d2dce8; font-size: clamp(15px, 1.1vw, 17px); font-weight: 400; line-height: 1.65; text-shadow: 0 2px 12px rgba(0,0,0,.65); }
.hero-montana__ventajas { max-width: 720px; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; }
.hero-montana__ventajas li { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 13.5px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; text-shadow: 0 2px 7px rgba(0,0,0,.95), 0 0 18px rgba(2,12,24,.88); }
.hero-montana__ventajas li > span { width: 17px; height: 17px; display: grid; place-items: center; flex: 0 0 17px; color: #9bd2ff; border: 1.5px solid var(--hero-blue); border-radius: 50%; background: rgba(2,15,30,.72); box-shadow: 0 2px 10px rgba(0,0,0,.55); font-size: 10px; font-weight: 900; }
.hero-montana__acciones { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-montana__boton { min-height: 48px; padding: 0 25px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 999px; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.hero-montana__boton:hover { transform: translateY(-2px); }
.hero-montana__boton--primario { background: var(--hero-blue); box-shadow: 0 13px 34px rgba(22,135,255,.42); }
.hero-montana__boton--primario:hover { background: #0877ea; }
.hero-montana__avion { width: 19px; height: 15px; flex: 0 0 19px; overflow: visible; }
.hero-montana__avion-cuerpo { fill: #fff; stroke: #fff; stroke-width: .7; stroke-linejoin: round; }
.hero-montana__avion-pliegue { fill: none; stroke: var(--hero-blue); stroke-width: 1.8; stroke-linecap: round; }
.hero-montana__boton--secundario { border: 1px solid rgba(230,239,248,.62); background: rgba(80,101,124,.64); box-shadow: inset 0 1px rgba(255,255,255,.22), 0 8px 24px rgba(0,0,0,.18); backdrop-filter: blur(24px) saturate(.62); -webkit-backdrop-filter: blur(24px) saturate(.62); }
.hero-montana__boton--secundario:hover { border-color: rgba(255,255,255,.76); background: rgba(91,112,135,.72); }
.hero-montana__descubre { position: absolute; left: 50%; bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #c9d3df; text-decoration: none; transform: translateX(-50%); white-space: nowrap; }
.hero-montana__descubre span { font-size: 9px; font-weight: 650; letter-spacing: .25em; text-transform: uppercase; }
.hero-montana__descubre b { display: none; color: #dce6ef; font-size: 18px; font-weight: 400; line-height: 1; animation: hero-bajar 1.8s ease-in-out infinite; }
.hero-montana__raton { position: relative; width: 16px; height: 25px; border: 1.5px solid currentColor; border-radius: 9px; }
.hero-montana__raton::after { content: ""; position: absolute; left: 50%; top: 5px; width: 2px; height: 5px; border-radius: 2px; background: currentColor; transform: translateX(-50%); animation: hero-rueda 1.8s ease-in-out infinite; }
@keyframes hero-bajar { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes hero-rueda { 0%,100% { transform: translate(-50%,0); opacity: .35; } 50% { transform: translate(-50%,5px); opacity: 1; } }

/* Nubes originales del remix: suben y disuelven el hero hacia el blanco. */
.transicion-nubes { position: relative; z-index: 6; height: clamp(430px, 45vw, 760px); margin-top: -1px; overflow: hidden; pointer-events: none; }
.transicion-nubes__placas { position: absolute; inset: 0; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom,transparent 0%,#000 16%,#000 72%,transparent 98%); mask-image: linear-gradient(to bottom,transparent 0%,#000 16%,#000 72%,transparent 98%); transform: translateY(calc((1 - var(--cloud-progress, 0)) * 80px)); opacity: calc(.55 + var(--cloud-progress, 0) * .45); }
.transicion-nubes__placas img { position: absolute; max-width: none; }
.transicion-nubes__a { left: -1%; top: 24%; width: 102%; height: 66%; filter: blur(clamp(5px, .6vw, 10px)) contrast(1.08) brightness(.91); }
.transicion-nubes__b { left: 59%; top: 27%; width: 52%; height: 74%; filter: contrast(1.08) brightness(.93); }
.transicion-nubes__c { left: -12%; top: 34%; width: 92%; height: 56%; filter: contrast(1.08) brightness(.93); }
.transicion-nubes__blanco { position: absolute; inset: 38% 0 -1px; background: linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.34) 34%,rgba(255,255,255,.88) 68%,#fff 92%); }

/* El control de ambiente conserva su funcionalidad y se integra con el hero. */
.sonido-toggle { top: 94px !important; right: auto !important; left: clamp(28px, 8.7vw, 178px) !important; z-index: 1180 !important; min-height: 38px !important; padding: 0 14px !important; font-family: Inter, ui-sans-serif, system-ui, sans-serif !important; }
.sonido-toggle[aria-pressed="true"] { border-color: rgba(22,135,255,.72) !important; box-shadow: 0 0 22px rgba(22,135,255,.22) !important; }
.sonido-toggle[hidden] { display: none !important; }

/* Solo cambia el fondo general y los textos de Servicios; las tarjetas no se tocan. */
.servicios { position: relative; z-index: 10; margin-top: -2px; background: #fff !important; border-top: 0 !important; }
.servicios .seccion-cabecera .eyebrow { color: #0877df !important; }
.servicios .seccion-cabecera h2 { color: #07192a !important; }
.servicios .seccion-cabecera > p:last-child { color: #526579 !important; }

@media (min-aspect-ratio: 21/9) and (min-width: 1900px) {
  .hero-montana__imagen { object-position: 58% center; }
  .hero-montana__contenido { margin-left: clamp(180px, 9vw, 340px); }
  .sonido-toggle { left: clamp(180px, 9vw, 340px) !important; }
}

@media (max-width: 1279px) {
  .hero-nav__barra { grid-template-columns: 1fr auto; }
  .hero-nav__enlaces,
  .hero-nav__acciones { display: none; }
  .hero-nav__menu { display: block; color: inherit; justify-self: end; }
  .hero-nav__panel { position: absolute; top: 82px; right: clamp(14px,2.5vw,48px); width: min(390px, calc(100vw - 28px)); max-height: calc(100svh - 96px); overflow-y: auto; padding: 18px; grid-template-columns: 1fr; gap: 4px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: rgba(3,11,20,.97); box-shadow: 0 22px 70px rgba(0,0,0,.42); backdrop-filter: blur(18px); }
  .hero-nav.menu-open .hero-nav__panel { display: grid; }
  .hero-nav__panel > a { padding: 11px 12px; color: #dbe5f0; border-radius: 10px; font-size: 16px; font-weight: 650; text-decoration: none; }
  .hero-nav__panel > a:hover { color: var(--hero-blue); background: rgba(255,255,255,.06); }
  .hero-nav__panel > a.activo { position: relative; color: var(--hero-blue); }
  .hero-nav__panel > a.activo::after { content: ""; position: absolute; left: 12px; bottom: 4px; width: 24px; height: 2px; border-radius: 2px; background: var(--hero-blue); box-shadow: 0 0 6px rgba(22,135,255,.35); }
  .hero-nav__panel-contacto { margin-top: 18px; padding: 18px 10px 2px; display: grid; gap: 11px; border-top: 1px solid rgba(255,255,255,.16); }
  .hero-nav__panel-contacto .hero-nav__agenda { width: max-content; max-width: 100%; margin: 0 0 5px; }
  .hero-nav__panel-contacto > a { display: flex; align-items: center; gap: 11px; min-height: 36px; color: #dbe5f0; font-size: 13.5px; text-decoration: none; }
  .hero-nav__panel-contacto > a:hover { color: var(--hero-blue); }
  .hero-nav__panel-contacto svg { width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .hero-nav__panel-contacto .hero-nav__icon-dot { fill: currentColor; stroke: none; }
  .hero-nav.is-light .hero-nav__panel { background: rgba(3,11,20,.97); color: #fff; }
}

@media (max-width: 767px) {
  .hero-nav { padding: 10px 10px 0; }
  .hero-nav__barra { height: 56px; padding: 0 12px; }
  .hero-nav__marca img { width: 34px; height: 34px; flex-basis: 34px; }
  .hero-nav__marca strong { font-size: 12.5px; }
  .hero-nav__marca small { font-size: 6.5px; letter-spacing: .13em; }
  .hero-nav__panel { top: 74px; right: 10px; width: calc(100vw - 20px); }
  .hero-montana { min-height: 620px; }
  .hero-montana__imagen { object-position: 63% center; }
  .hero-montana__velo { background: linear-gradient(90deg,rgba(3,12,23,.89) 0%,rgba(3,12,23,.63) 62%,rgba(3,12,23,.25) 100%), linear-gradient(180deg,rgba(3,12,23,.12),rgba(3,12,23,.15)); }
  .hero-montana__contenido { width: calc(100% - 36px); margin-left: 18px; padding-top: 112px; padding-bottom: 56px; justify-content: center; }
  .hero-montana h1 { max-width: 520px; font-size: clamp(34px, 9.5vw, 47px); }
  .hero-montana__texto { max-width: 520px; margin-top: 17px; font-size: 14px; line-height: 1.55; }
  .hero-montana__ventajas { margin-top: 18px; display: grid; gap: 8px; }
  .hero-montana__ventajas li { font-size: 12.5px; }
  .hero-montana__acciones { margin-top: 22px; gap: 10px; }
  .hero-montana__boton { min-height: 44px; padding: 0 18px; font-size: 13px; }
  .hero-montana__descubre { bottom: 13px; display: flex; gap: 8px; }
  .hero-montana__descubre .hero-montana__raton { display: none; }
  .hero-montana__descubre b { display: block; }
  .hero-montana__descubre span { font-size: 7.5px; letter-spacing: .20em; }
  .sonido-toggle { top: 78px !important; right: 14px !important; left: auto !important; min-height: 36px !important; padding: 0 12px !important; }
  .transicion-nubes { height: clamp(360px, 74vw, 520px); }
}

@media (max-width: 430px) {
  .hero-montana__contenido { padding-top: 154px; justify-content: flex-start; }
  .hero-montana h1 { font-size: clamp(32px, 9vw, 39px); line-height: 1.08; }
  .hero-montana__texto { font-size: 13.5px; }
  .hero-montana__acciones { flex-direction: column; align-items: flex-start; }
  .hero-montana__boton { min-width: 205px; }
}

@media (max-height: 690px) and (max-width: 767px) {
  .hero-montana__contenido { padding-top: 128px; }
  .hero-montana__texto { margin-top: 13px; line-height: 1.45; }
  .hero-montana__ventajas { margin-top: 13px; }
  .hero-montana__acciones { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-montana__imagen,
  .hero-montana__contenido,
  .transicion-nubes__placas { transform: none !important; }
  .hero-montana__contenido,
  .transicion-nubes__placas { opacity: 1 !important; }
  .hero-montana__descubre b { animation: none; }
  .hero-nav__agenda i::after { animation:none; opacity:0; }
}

/* Menú inmersivo para tablet y móvil. */
@media (max-width: 1279px) {
  .hero-nav__barra { position:relative; z-index:2; }
  .hero-nav__panel {
    position:fixed;
    inset:0;
    width:auto;
    max-height:none;
    padding:104px clamp(34px,8vw,150px) 38px;
    align-content:start;
    gap:12px;
    border:0;
    border-radius:0;
    background:rgba(3,11,20,.82);
    box-shadow:none;
    backdrop-filter:blur(18px) saturate(.72);
    -webkit-backdrop-filter:blur(18px) saturate(.72);
  }
  .hero-nav__panel > a { padding:10px 0; color:#eef4fa; font-size:clamp(17px,2vw,22px); font-weight:700; }
  .hero-nav__panel > a.activo::after { left:0; bottom:3px; width:26px; }
  .hero-nav__panel-contacto { margin-top:auto; padding:26px 0 2px; gap:13px; }
  .hero-nav__panel-contacto > a { gap:12px; min-height:38px; color:#f3f7fb; font-size:15px; }
  .hero-nav__panel-contacto svg { box-sizing:content-box; width:18px; height:18px; padding:8px; flex:0 0 18px; color:#f4f8fc; border-radius:50%; background:#1c2835; }
  .hero-nav__panel-contacto > a[href*="wa.me"] svg { color:#25d366; }
  .hero-nav__panel-contacto .hero-nav__agenda { padding:8px 15px; gap:9px; color:#63e4b3; border-color:rgba(52,211,153,.46); background:rgba(16,185,129,.17); font-size:14px; font-weight:700; }
  .hero-nav__panel-contacto .hero-nav__agenda i { width:9px; height:9px; }
  .hero-nav__panel-contacto > a { min-height:46px; font-size:16px; }
  .hero-nav__panel-contacto svg { width:20px; height:20px; padding:9px; flex-basis:20px; }
}

@media (max-width: 767px) {
  .hero-nav__panel { padding:88px 24px 28px; }
  .hero-nav__panel > a { font-size:17px; }
  .hero-nav__panel-contacto { gap:10px; }
  .hero-nav__panel-contacto .hero-nav__agenda { padding:7px 13px; font-size:12.5px; }
  .hero-nav__panel-contacto > a { min-height:42px; font-size:14.5px; }
  .hero-nav__panel-contacto svg { width:18px; height:18px; padding:8px; flex-basis:18px; }
}

.servicio-card--identidad { overflow:hidden; }
.servicio-card__motivo-identidad { position:absolute; right:25px; bottom:20px; width:78px; height:78px; object-fit:contain; opacity:.18; pointer-events:none; filter:grayscale(1) brightness(2.2) contrast(.7); }
