/* ==========================================================================
   Life Saver Go — sitio de producto
   Estructura tomada de las páginas de producto de DJI: barra fija con CTA
   permanente, antetítulo + titular enorme, cifras sueltas grandes, secciones
   claras y oscuras alternadas. Paleta y tipografía, las de la marca LSG.
   ========================================================================== */

:root {
  /* Marca, muestreada de los logotipos reales */
  --navy: #0b1b2b;
  --violet: #494db1;
  --violet-lt: #716dc1;
  --violet-pl: #837dc8;
  --iflu-blue: #0074bd;

  /* Superficies */
  --bg: #05070f;
  --bg-2: #080d1c;
  --bg-3: #0d1327;
  --light: #f2f3f9;
  --light-2: #e6e8f4;

  /* Texto */
  --ice: #dde3ff;
  --mist: #8c96c6;
  --dim: #5a6288;

  --alarm: #ff3b30;
  --line: rgba(140, 150, 230, 0.14);

  --sans: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 64px;
  --pad: clamp(20px, 5vw, 80px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ice);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Acabado metálico violeta para titulares de acento */
.metal {
  background: linear-gradient(115deg,
    #8f84e6 0%, #cfc8ff 22%, #f4f1ff 40%, #9a8ef0 58%, #6a5fd0 78%, #b9aefc 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none !important;
}

/* ---------------------------------------------------------------- tipografía */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #a89df0;
}
.section-light .eyebrow { color: var(--violet); }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }

.h-xl { font-size: clamp(44px, 8.5vw, 118px); }
.h-lg { font-size: clamp(34px, 5.4vw, 76px); }
.h-md { font-size: clamp(26px, 3.2vw, 44px); }

.lead {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--mist);
  max-width: 62ch;
}
.section-light .lead { color: #4b5478; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ layout */
section { position: relative; padding: clamp(80px, 11vw, 160px) var(--pad); }
.wrap { max-width: 1320px; margin: 0 auto; }

.section-light {
  background: linear-gradient(165deg, var(--light) 0%, var(--light-2) 100%);
  color: var(--navy);
}
.section-light .h-lg, .section-light .h-md { color: var(--navy); }

/* Rejilla técnica de fondo */
.grid-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(140, 150, 230, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 150, 230, 0.05) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000, transparent 75%);
  pointer-events: none;
}

/* ------------------------------------------------------- barra de progreso */
#progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--violet), var(--violet-pl));
  z-index: 200; transition: width 0.1s linear;
}

/* --------------------------------------------------------------- navegación */
#nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 var(--pad);
  z-index: 150;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s,
              border-color 0.4s;
  border-bottom: 1px solid transparent;
}
#nav.solid {
  background: rgba(5, 7, 15, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
#nav .brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
#nav .brand img { height: 22px; }
#nav .brand span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  color: var(--mist); border-left: 1px solid var(--line); padding-left: 12px;
}
#nav ul { display: flex; gap: 26px; list-style: none; margin-left: auto; }
#nav ul a {
  font-size: 13.5px; color: var(--mist); position: relative;
  transition: color 0.25s;
}
#nav ul a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1.5px; background: var(--violet-lt);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
#nav ul a:hover { color: var(--ice); }
#nav ul a:hover::after { transform: scaleX(1); transform-origin: left; }
#nav ul a.active { color: var(--ice); }
#nav ul a.active::after { transform: scaleX(1); }

#navToggle { display: none; }

/* --------------------------------------------------------------- botones */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.btn-primary {
  background: var(--violet); color: #fff;
  box-shadow: 0 8px 26px rgba(73, 77, 177, 0.42);
}
.btn-primary:hover {
  background: var(--violet-lt); transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(73, 77, 177, 0.55);
}
.btn-ghost { border: 1px solid rgba(221, 227, 255, 0.28); color: var(--ice); }
.btn-ghost:hover { border-color: var(--violet-lt); background: rgba(113, 109, 193, 0.12); }
.btn-sm { padding: 9px 20px; font-size: 13px; }
.section-light .btn-ghost { border-color: rgba(11, 27, 43, 0.2); color: var(--navy); }
.section-light .btn-ghost:hover { border-color: var(--violet); background: rgba(73, 77, 177, 0.07); }

/* ------------------------------------------------------------------- hero */
#hero {
  position: relative; isolation: isolate;
  height: 100svh; min-height: 620px;
  display: flex; align-items: center;
  padding: 0 var(--pad);
  overflow: hidden;
}
#hero video, #hero .hero-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
#hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(5,7,15,0.86) 0%, rgba(5,7,15,0.52) 34%, rgba(5,7,15,0.05) 62%),
    linear-gradient(0deg, var(--bg) 2%, transparent 26%);
}
.hero-inner { position: relative; z-index: 2; max-width: 620px; }
.hero-inner h1, .hero-inner p { text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55); }
.hero-inner .h-xl { margin: 18px 0 6px; }
.hero-tag {
  font-size: clamp(20px, 2.6vw, 34px); font-weight: 300;
  color: var(--violet-pl); letter-spacing: -0.02em; margin-bottom: 26px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-foot {
  position: absolute; z-index: 2; left: var(--pad); bottom: 34px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.26em;
  color: rgba(221, 227, 255, 0.55);
}
.scroll-hint {
  position: absolute; z-index: 2; left: 50%; bottom: 30px; transform: translateX(-50%);
  width: 22px; height: 36px; border: 1.5px solid rgba(221,227,255,0.3);
  border-radius: 12px;
}
.scroll-hint::after {
  content: ""; position: absolute; left: 50%; top: 7px;
  width: 3px; height: 7px; border-radius: 2px; background: var(--violet-pl);
  transform: translateX(-50%); animation: scrollDot 1.9s infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  35% { opacity: 1; }
  70%, 100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ------------------------------------------------- tira de specs del hero */
#glance { padding: 0 var(--pad) clamp(60px, 8vw, 110px); }
#glance .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 1160px;
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
@media (max-width: 900px) { #glance .wrap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 430px) { #glance .wrap { grid-template-columns: 1fr; } }
.glance-item {
  background: var(--bg); padding: 32px 20px; text-align: center;
  transition: background 0.35s;
}
.glance-item:hover { background: var(--bg-3); }
/* Cifras con acabado metálico violeta: degradado recortado al texto que
   se desliza al pasar el cursor, como un reflejo sobre metal pulido. */
.glance-item b {
  display: inline-block; font-family: var(--mono); font-size: 30px;
  font-weight: 700; letter-spacing: -0.04em; margin-bottom: 8px;
  background: linear-gradient(115deg,
    #8f84e6 0%, #cfc8ff 22%, #f4f1ff 40%, #9a8ef0 58%, #6a5fd0 78%, #b9aefc 100%);
  background-size: 220% 100%; background-position: 0% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: background-position 0.8s var(--ease);
}
.glance-item:hover b { background-position: 100% 0; }
.glance-item b i { font-style: normal; font-size: 16px; color: var(--violet-lt); }
.glance-item span { display: block; font-size: 13px; color: var(--mist); }

/* ------------------------------------------------------- bloque de equipo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.equipo-media { position: relative; display: flex; justify-content: center; }
.equipo-media img { position: relative; z-index: 1; max-height: 74vh; filter: drop-shadow(0 40px 70px rgba(0,0,0,0.8)); }
.equipo-media { isolation: isolate; }
.equipo-glow {
  position: absolute; inset: -10% -20%; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(73,77,177,0.34) 0%, transparent 66%);
}
.cota {
  position: absolute; z-index: 2; left: 4%; top: 6%; bottom: 6%; width: 60px;
  border-left: 1.5px solid rgba(155,143,245,0.45);
}
.cota::before, .cota::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px;
  background: rgba(155,143,245,0.7);
}
.cota::before { top: 0; } .cota::after { bottom: 0; }
.cota span {
  position: absolute; left: 8px; top: 50%; transform-origin: left center;
  transform: rotate(-90deg) translateX(-50%);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.24em;
  color: rgba(221,227,255,0.7); white-space: nowrap;
}

.feat { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.feat:last-child { border-bottom: 1px solid var(--line); }
.feat .dash { width: 40px; height: 2px; background: var(--violet); margin-top: 16px; flex-shrink: 0; }
.feat .n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; color: var(--violet-lt); }
.feat h3 { font-size: clamp(19px, 2vw, 26px); font-weight: 600; margin: 4px 0 3px; }
.feat p { font-size: 15px; color: var(--mist); }

/* ------------------------------------------------------- especificaciones */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); margin-bottom: 76px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 44px; } }
@media (max-width: 460px) { .stats { grid-template-columns: 1fr; } }
.stat { border-top: 1.5px solid var(--line); padding-top: 22px; }
.stat b span, .stat b i { display: inline; white-space: nowrap; }
.stat b {
  display: block; font-family: var(--mono); font-size: clamp(30px, 3.6vw, 58px);
  font-weight: 700; letter-spacing: -0.045em; color: #fff; line-height: 1;
}
.stat b i { font-style: normal; font-size: 0.5em; color: var(--violet-lt); }
.stat > span { display: block; margin-top: 14px; font-size: 15px; color: var(--mist); }

table.specs { width: 100%; border-collapse: collapse; }
table.specs td { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
table.specs td:first-child { color: var(--mist); }
table.specs td:last-child {
  text-align: right; font-family: var(--mono); font-weight: 500; color: #fff;
  font-variant-numeric: tabular-nums;
}
table.specs tr { transition: background 0.25s; }
table.specs tr:hover { background: rgba(113,109,193,0.06); }

/* ----------------------------------------------------------- interfaz HMI */
.hmi-stage {
  position: relative; perspective: 1700px; aspect-ratio: 1024 / 600;
  border-radius: 14px;
}
.hmi-inner {
  position: relative; width: 100%; height: 100%;
  transform: rotateY(-14deg) rotateX(3deg);
  transform-style: preserve-3d;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 50px 110px rgba(0,0,0,0.75), 0 0 0 1.5px rgba(221,227,255,0.18);
  transition: transform 0.7s var(--ease);
}
.hmi-stage:hover .hmi-inner { transform: rotateY(-7deg) rotateX(1.5deg); }
.hmi-inner img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.035);
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
}
.hmi-inner img.on { opacity: 1; transform: none; }
.hmi-inner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.14) 0%, transparent 38%,
              transparent 72%, rgba(255,255,255,0.06) 100%);
}
.hmi-tabs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 10px; margin-top: 28px;
}
.hmi-tab {
  padding: 11px 6px; text-align: center; border-radius: 10px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mist); border: 1px solid var(--line);
  transition: all 0.35s var(--ease);
}
.hmi-tab:hover { color: var(--ice); border-color: rgba(113, 109, 193, 0.45); }
.hmi-tab.on {
  color: #fff; background: rgba(73, 77, 177, 0.26);
  border-color: var(--violet-lt);
  box-shadow: 0 0 20px rgba(113, 109, 193, 0.28);
}

.chip { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: 17px; }
.chip svg { flex-shrink: 0; }

/* ------------------------------------------------------------ alarma */
#alarma { background: #06070e; overflow: hidden; }
#alarma .halo {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 60% at 30% 50%, rgba(255,59,48,0.17) 0%, transparent 70%);
  animation: pulseHalo 2.4s ease-in-out infinite;
}
@keyframes pulseHalo { 0%,100% { opacity: 0.45 } 50% { opacity: 1 } }
.gauge-wrap { position: relative; display: flex; justify-content: center; }
#gaugeArc { transition: stroke-dashoffset 1.7s var(--ease); }
#gaugeNeedle { transform-origin: 300px 300px; transition: transform 1.7s var(--ease); }
#gaugeNum { paint-order: stroke; }

/* ------------------------------------------------------------ galería */
.gal { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; }
.gal figure { position: relative; overflow: hidden; border-radius: 12px; cursor: zoom-in; }
.gal figure:first-child { grid-row: span 2; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.gal figure:hover img { transform: scale(1.06); }
.gal figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: #fff; background: linear-gradient(transparent, rgba(0,0,0,0.8));
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s var(--ease);
}
.gal figure:hover figcaption { opacity: 1; transform: none; }

#lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: rgba(3,4,10,0.96); backdrop-filter: blur(10px);
  align-items: center; justify-content: center; padding: 40px;
}
#lightbox.on { display: flex; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
#lightbox img { max-height: 88vh; max-width: 100%; border-radius: 10px; }
#lightbox .lb-close, #lightbox .lb-nav {
  position: absolute; color: #fff; font-size: 30px; width: 52px; height: 52px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,0.07); transition: background 0.25s;
}
#lightbox .lb-close:hover, #lightbox .lb-nav:hover { background: rgba(255,255,255,0.18); }
#lightbox .lb-close { top: 24px; right: 24px; }
#lightbox .lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
#lightbox .lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------------- video */
.player {
  position: relative; max-width: 1120px; margin: 0 auto;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 50px 120px rgba(0,0,0,0.8);
}
.player video { width: 100%; }
.player .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(5,7,15,0.35); transition: opacity 0.45s;
}
.player.playing .play { opacity: 0; pointer-events: none; }
.play-btn {
  width: 92px; height: 92px; border-radius: 50%;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.5);
  display: grid; place-items: center; transition: transform 0.35s var(--ease);
}
.play-btn::before {
  content: ""; border-left: 20px solid #fff;
  border-top: 13px solid transparent; border-bottom: 13px solid transparent;
  margin-left: 6px;
}
.play-btn::after {
  content: ""; position: absolute; inset: -12px; border-radius: 50%;
  border: 1.5px solid var(--violet-lt); animation: ring 2.2s var(--ease) infinite;
}
@keyframes ring {
  0% { transform: scale(0.9); opacity: 0.9 }
  100% { transform: scale(1.35); opacity: 0 }
}
.player:hover .play-btn { transform: scale(1.07); }

/* ------------------------------------------------------------ tarjetas */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card {
  padding: 30px 26px; border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(160deg, rgba(13,19,39,0.7), rgba(8,13,28,0.4));
  transition: transform 0.45s var(--ease), border-color 0.45s, background 0.45s;
}
.card:hover {
  transform: translateY(-6px); border-color: rgba(113,109,193,0.5);
  background: linear-gradient(160deg, rgba(20,26,52,0.9), rgba(11,17,36,0.6));
}
.card svg { margin-bottom: 18px; }
.card h3 { font-size: 20px; font-weight: 600; margin-bottom: 7px; }
.card p { font-size: 14.5px; color: var(--mist); }

/* ------------------------------------------------------------ documentos */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 22px; }
.doc {
  border: 1px solid rgba(11,27,43,0.12); border-radius: 14px; overflow: hidden;
  background: #fff; transition: transform 0.45s var(--ease), box-shadow 0.45s;
  display: flex; flex-direction: column;
}
.doc:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(11,27,43,0.16); }
.doc-thumb { position: relative; aspect-ratio: 3/4; overflow: hidden; background: #eceef7; cursor: zoom-in; }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.8s var(--ease); }
.doc:hover .doc-thumb img { transform: scale(1.05); }
.doc-thumb .peek {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(11,27,43,0.55); color: #fff; opacity: 0;
  font-size: 13px; letter-spacing: 0.05em; transition: opacity 0.35s;
}
.doc-thumb:hover .peek { opacity: 1; }
.doc-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.doc-body h3 { font-size: 16.5px; font-weight: 600; color: var(--navy); }
.doc-body p { font-size: 13px; color: #5b6483; flex: 1; }
.doc-meta {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  color: #8990ab; text-transform: uppercase;
}
.doc-dl {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  font-size: 13.5px; font-weight: 500; color: var(--violet);
}
.doc-dl svg { transition: transform 0.3s var(--ease); }
.doc:hover .doc-dl svg { transform: translateY(2px); }

#pdfview {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: rgba(3,4,10,0.94); backdrop-filter: blur(8px);
  flex-direction: column; padding: 22px;
}
#pdfview.on { display: flex; animation: fadeIn 0.3s; }
#pdfview header { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; color: #fff; }
#pdfview h4 { font-size: 16px; font-weight: 600; }
#pdfview iframe { flex: 1; width: 100%; border: 0; border-radius: 10px; background: #fff; }

/* ------------------------------------------------------------ contacto */
.form { display: grid; gap: 20px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 12px 2px; font: inherit; font-size: 15.5px;
  color: var(--navy); background: none; border: 0;
  border-bottom: 1.5px solid rgba(11,27,43,0.18);
  transition: border-color 0.35s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field label {
  position: absolute; left: 2px; top: 12px; font-size: 15.5px; color: #78809f;
  pointer-events: none; transition: all 0.3s var(--ease);
}
.field input:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--violet); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: -12px; font-size: 11.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--violet); font-family: var(--mono);
}

footer { background: var(--light-2); color: var(--navy); text-align: center; padding: 60px var(--pad) 44px; }
footer .rule { width: 260px; height: 1px; background: rgba(11,27,43,0.16); margin: 26px auto; }
footer .credit { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; color: #5b6483; }
footer img.lsg { height: 46px; margin: 0 auto; }
footer img.iflu { height: 40px; margin: 18px auto 0; }
footer .legal { margin-top: 26px; font-size: 12px; color: #78809f; }

/* ------------------------------------------------------------ clientes */
.clients { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 44px; }
.client-logo {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px;
  width: min(252px, 100%); height: 116px;
  background: #fff; border-radius: 14px; padding: 20px 30px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
}
.client-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(73, 77, 177, 0.3);
}
.client-logo img { max-height: 52px; max-width: 180px; width: auto; }
.client-cap {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.34em; color: #8a92a8;
}
/* Si el logo no carga, se muestra el nombre tipografico */
.client-logo.sinlogo img, .client-logo.sinlogo .client-cap { display: none; }
.client-logo.sinlogo::after {
  content: attr(data-name);
  font-weight: 600; font-size: 17px; letter-spacing: 0.18em; color: #4b5478;
}

/* ------------------------------------------- acceso a documentos (OC+serie) */
#gate {
  position: fixed; inset: 0; z-index: 320; display: none;
  background: rgba(3, 4, 10, 0.72); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 24px;
}
#gate.on { display: flex; animation: fadeIn 0.3s; }
.gate-card {
  background: #fff; color: var(--navy); border-radius: 16px;
  padding: 34px 32px 26px; max-width: 430px; width: 100%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.gate-card h4 { font-size: 21px; font-weight: 700; margin: 10px 0 8px; }
.gate-sub { font-size: 14px; color: #5b6483; margin-bottom: 30px; }
.gate-card .field { margin-bottom: 30px; }
.gate-err { display: none; color: #c0272d; font-size: 13px; margin: -8px 0 14px; }
.gate-actions { display: flex; gap: 12px; margin-top: 4px; }
.gate-actions .btn { flex: 1; justify-content: center; }
.gate-cancel { border-color: rgba(11, 27, 43, 0.25); color: var(--navy); }
.gate-note {
  margin-top: 22px; font-size: 12.5px; line-height: 1.7;
  color: #78809f; text-align: center;
}
.gate-note b {
  font-family: var(--mono); font-weight: 700; font-size: 12px;
  letter-spacing: 0.08em; color: var(--violet);
}

/* --------------------------------------------------------- animaciones */
.reveal { opacity: 0; transform: translateY(30px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.d1.in { transition-delay: 0.08s }
.reveal.d2.in { transition-delay: 0.16s }
.reveal.d3.in { transition-delay: 0.24s }
.reveal.d4.in { transition-delay: 0.32s }

.mask { overflow: hidden; }
/* Altura de linea que contiene ascendentes y descendentes de Inter (1.21em):
   el titular cabe entero dentro de su caja y la mascara no puede cortarlo. */
.mask > * { transform: translateY(112%); line-height: 1.24; }
.mask.in > * { transform: none; transition: transform 0.95s var(--ease); }
.mask.d1.in > * { transition-delay: 0.1s }
.mask.d2.in > * { transition-delay: 0.2s }

/* --------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .gal { grid-template-columns: 1fr 1fr; }
  .gal figure:first-child { grid-row: span 1; }
  .gal figure:last-child { grid-column: span 2; }
  #nav ul { display: none; }
  #navToggle { display: grid; margin-left: auto; }
  .equipo-media img { max-height: 52vh; }
  .cota { display: none; }
}
@media (max-width: 620px) {
  .gal { grid-template-columns: 1fr; }
  /* El CTA del nav no debe partirse ni empujar la barra */
  #nav { gap: 10px; }
  #nav .brand span { display: none; }
  #nav > .btn { margin-left: auto !important; padding: 8px 14px; font-size: 12px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-foot { font-size: 9.5px; letter-spacing: 0.18em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .mask > * { opacity: 1 !important; transform: none !important; }
}

/* ------------------------------------------------------ boton de WhatsApp */
#wsp {
  position: fixed; right: 26px; bottom: 26px; z-index: 140;
  width: 62px; height: 62px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s var(--ease);
}
#wsp:hover { transform: scale(1.08); }
#wsp::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366;
  animation: wspPulse 2s var(--ease) infinite;
}
@keyframes wspPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.55); opacity: 0; }
}
@media (max-width: 620px) { #wsp { width: 54px; height: 54px; right: 16px; bottom: 16px; } }

/* --------------------------------------------------- estado del formulario */
#formMsg { font-size: 13.5px; min-height: 18px; }
#formMsg.ok { color: #1a7f4e; }
#formMsg.err { color: #c0272d; }
