/* ═══════════════════════════════════════════════
   INVERSIONES NAVIA — v5 "La mejor inversión para tu negocio"
   Claro premium (ref. motionsites/awwwards): base blanca,
   tarjetas flotantes, sombras suaves, azul del logo como acento.
   Oscuro SOLO en Proyectos y la valla "TU MARCA AQUÍ".
   ═══════════════════════════════════════════════ */

:root {
  --paper:      #FBFDFF;
  --paper-2:    #F1F6FB;
  --ink:        #16324F;
  --navy:       #1E4E79;
  --navy-deep:  #173D60;
  --celeste:    #5B9BD5;
  --celeste-txt: #2A72B6; /* celeste legible como texto sobre fondo claro (4.6:1) */
  --muted:      #52667E;
  --faint:      #5F7289;
  --border:     #DCE6F0;

  --screen:     #0A1220;
  --screen-2:   #101B2E;
  --screen-txt: #F2F7FD;
  --screen-mut: #9FB2C8;
  --glow:       #4DA3FF;

  --font: "Figtree", system-ui, sans-serif;
  --display: "Archivo", "Figtree", sans-serif;

  --s1: 8px; --s2: 16px; --s3: 24px;
  --s4: 40px; --s5: 64px; --s6: 110px;
  --radius: 16px;
  --radius-lg: 22px;
  --wrap: 1180px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 92px; } /* las anclas aterrizan debajo de la barra fija */

body {
  font-family: var(--font);
  background-color: #F2F7FC; /* el scroll la lleva del día a la noche (main.js) */
  color: var(--ink);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Capa ambiental: resplandores de "pantalla encendida" + retícula de píxeles.
   Es translúcida para dejar ver el color del día→noche detrás. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55% 38% at 14% 0%, #5b9bd536, transparent 62%),
    radial-gradient(45% 32% at 100% 24%, #1e4e7920, transparent 60%),
    radial-gradient(50% 40% at 50% 108%, #5b9bd52b, transparent 62%),
    radial-gradient(circle, #1e4e7910 1.1px, transparent 1.1px) 0 0 / 26px 26px;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s3); }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.dimzone :focus-visible, .lb :focus-visible, .footer :focus-visible, .hcard :focus-visible { outline-color: var(--glow); }
::selection { background: var(--celeste); color: #fff; }

/* ══════════ INTRO ══════════ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #fff;
  display: grid;
  place-items: center;
}
.intro.is-done { display: none; }
.intro__stage { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.intro__pixel {
  position: absolute;
  top: 0; left: 0;
  width: 18px; height: 18px;
  border-radius: 3px;
  background: var(--celeste);
  box-shadow: 0 0 18px #5b9bd580, 0 0 46px #5b9bd54d;
  opacity: 0;
  will-change: transform;
}
/* wordmark armado con recortes del logo REAL (tipografía original) */
.intro__wordmark {
  display: grid;
  gap: clamp(6px, 1.2vw, 12px);
  width: min(78vw, 600px);
  user-select: none;
}
.intro__over { width: 100%; height: auto; display: block; }
.intro__navia {
  position: relative;
  width: 100%;
  aspect-ratio: 834 / 205;
}
.intro__navia .il {
  position: absolute;
  top: 0;
  height: 100%;
  opacity: 0;
}
.il--a { will-change: filter, opacity; }
.intro__tag { width: 100%; height: auto; display: block; }
.intro__skip {
  position: absolute;
  bottom: 24px; right: 24px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--faint);
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  min-height: 44px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.intro__skip:hover { color: var(--navy); border-color: var(--celeste); }

/* ══════════ TITULARES ══════════ */
.eyebrow {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--celeste-txt);
  margin-bottom: var(--s2);
}
.title {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(32px, 5.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: var(--s4);
  text-wrap: balance;
}
.eyebrow--dim { color: var(--glow); }
.title--dim { color: var(--screen-txt); }

/* ══════════ BOTONES ══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  min-height: 52px;
  transition: transform .2s var(--ease-out), box-shadow .3s var(--ease-out), background .2s, color .2s, border-color .2s;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 22px #1e4e7940;
}
.btn--primary:hover {
  background: #24598a;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px #1e4e794d, 0 0 0 4px #5b9bd526;
}
.btn--outline {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid #b9cde0;
}
.btn--outline:hover { border-color: var(--navy); background: #f5f9fd; }
.btn--glow {
  background: linear-gradient(135deg, var(--glow), var(--navy) 115%);
  color: #fff;
  box-shadow: 0 0 28px #4da3ff59, 0 8px 24px #00000059;
}
.btn--glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px #4da3ff8c, 0 10px 28px #00000073;
}
.btn--full { width: 100%; }

/* ══════════ NAV ══════════ */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: #fbfdffd9;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .3s;
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--border), 0 8px 30px #16324f14; }
.nav__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 12px var(--s3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
}
.nav__logo img { width: 118px; height: auto; }
.nav__links {
  display: none;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 600;
}
.nav__links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--navy); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff !important;
  background: var(--navy);
  padding: 10px 20px;
  border-radius: 999px;
  transition: background .2s, box-shadow .3s;
}
.nav__cta:hover { background: #24598a; box-shadow: 0 6px 18px #1e4e7940; }
.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
}
.nav__burger span {
  width: 24px; height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (max-width: 1023.98px) {
  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* alto del viewport, no del nav: backdrop-filter convierte al .nav en containing block */
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    padding-block: 90px 40px;
    gap: 28px;
    background: #fbfdfff7;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    font-size: 23px;
    font-weight: 800;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform .45s var(--ease-out), visibility 0s .45s;
    z-index: -1;
  }
  /* centrado cuando el contenido cabe; con poco alto (apaisado) colapsan y permiten scroll */
  .nav__links > :first-child { margin-top: auto; }
  .nav__links > :last-child { margin-bottom: auto; }
  .nav__links.is-open { transform: translateY(0); visibility: visible; transition: transform .45s var(--ease-out), visibility 0s; }
  .nav__links a { color: var(--navy); }
}
@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }
}

/* ══════════ HERO (claro, centrado, tarjetas flotantes) ══════════ */
.hero {
  position: relative;
  padding-top: clamp(120px, 16vh, 170px);
  padding-bottom: var(--s5);
  overflow: hidden;
  background: radial-gradient(ellipse 58% 40% at 50% 20%, #5b9bd51f, transparent 70%);
}
.hero__inner { text-align: center; position: relative; z-index: 1; }

/* NAVIA gigante deslizándose detrás del hero */
.hero__giant {
  position: absolute;
  top: clamp(40px, 8vh, 90px);
  left: 50%;
  z-index: 0;
  font-family: var(--display);
  font-stretch: 122%;
  font-weight: 900;
  font-size: clamp(160px, 30vw, 480px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px #1e4e7918;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  animation: giantDrift 26s ease-in-out infinite alternate;
}
@keyframes giantDrift {
  from { transform: translateX(-56%); }
  to   { transform: translateX(-44%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__giant { animation: none; transform: translateX(-50%); }
}

/* titular que se enciende como panel LED */
.hero__title .hl { display: inline; }
.hero__title.is-lit em {
  text-shadow: 0 0 22px #5b9bd573, 0 0 70px #5b9bd540;
  transition: text-shadow .6s ease;
}
.hero__title {
  font-family: var(--display);
  font-stretch: 114%;
  font-weight: 900;
  font-size: clamp(42px, 7.6vw, 92px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: var(--s3);
  text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  color: var(--celeste);
  position: relative;
}
.hero__sub {
  font-size: clamp(16.5px, 2.3vw, 19px);
  color: var(--muted);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--s4);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  justify-content: center;
}

/* tarjetas flotantes en abanico */
.hero__cards {
  margin-top: clamp(44px, 6vw, 72px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.hcard {
  background: var(--screen);
  border-radius: 14px;
  padding: 8px;
  width: min(330px, 82vw);
  box-shadow: 0 26px 60px #16324f30, 0 4px 16px #16324f1c, 0 0 44px #4da3ff21;
  will-change: transform;
}
.hcard__screen {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: var(--screen-2);
}
.hcard__screen img, .hcard__screen video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hcard__loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 9px 4px 3px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #C9DAEA;
}
.hcard--left  { transform: rotate(-7deg) translateY(26px); margin-right: -64px; z-index: 1; }
.hcard--right { transform: rotate(7deg)  translateY(26px); margin-left:  -64px; z-index: 1; }
.hcard--center { z-index: 3; width: min(400px, 88vw); }
@media (max-width: 820px) {
  .hcard--left, .hcard--right { display: none; }
}

/* ══════════ TICKER de marcas ══════════ */
.ticker { padding-block: var(--s4) var(--s5); }
.ticker__intro {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.ticker__belt {
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  animation: ticker 58s linear infinite;
  will-change: transform;
}
.ticker__belt:hover .ticker__track { animation-play-state: paused; }
.ticker__track span {
  font-family: var(--display);
  font-stretch: 106%;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #5F7289;
}
.ticker__track i { color: var(--celeste); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; flex-wrap: wrap; white-space: normal; justify-content: center; }
  .ticker__belt { mask-image: none; -webkit-mask-image: none; }
}

/* ══════════ CREDIBILIDAD ══════════ */
/* ── corte diagonal con filo de luz (compartido) ── */
.cut {
  position: relative;
  clip-path: polygon(0 28px, 100% 0, 100% calc(100% - 28px), 0 100%);
}
.cut::before, .cut::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 28px;
  pointer-events: none;
  background: linear-gradient(to top right,
    transparent calc(50% - 2px), #5b9bd5b3 calc(50% - .5px),
    #7DC0FF calc(50% + .5px), transparent calc(50% + 2px));
}
.cut::before { top: 0; }
.cut::after { bottom: 0; transform: scaleY(-1); }
.cut--top {
  position: relative;
  clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%);
}
.cut--top::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 28px;
  pointer-events: none;
  background: linear-gradient(to top right,
    transparent calc(50% - 2px), #5b9bd5b3 calc(50% - .5px),
    #7DC0FF calc(50% + .5px), transparent calc(50% + 2px));
}

.cred { background: #ffffffd9; }
.cred__mpled {
  display: block;
  height: 46px;
  width: auto;
  margin: 8px auto 10px;
}
.cred__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4) var(--s3);
  padding-block: var(--s5);
}
@media (min-width: 800px) { .cred__grid { grid-template-columns: repeat(4, 1fr); } }
.cred__item { text-align: center; }
.cred__num {
  display: block;
  font-family: var(--display);
  font-stretch: 115%;
  font-weight: 800;
  font-size: clamp(40px, 6vw, 62px);
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.cred__num--brand { color: var(--celeste); }
.cred__label { font-size: 14px; color: var(--muted); }

/* ══════════ SECCIONES ══════════ */
.sol, .mpled, .cases, .about, .contact { padding-block: var(--s6); }

/* ══════════ SOLUCIONES ══════════ */
.sol__lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
  margin-top: calc(var(--s4) * -0.5);
  margin-bottom: var(--s4);
}
.sol__grid {
  display: grid;
  gap: var(--s3);
  grid-template-columns: 1fr;
}
@media (min-width: 680px)  { .sol__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sol__grid { grid-template-columns: repeat(3, 1fr); } }
/* tarjetas fotográficas con overlay: la imagen manda */
.scard {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow: clip; /* si el contenido supera el alto (320px), la tarjeta crece en vez de recortar el botón */
  min-width: 0;
  aspect-ratio: 4 / 4.7;
  display: flex;
  background: var(--screen);
  box-shadow: 0 14px 36px #16324f1c;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.scard:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px #16324f30, 0 0 48px #4da3ff1f;
}
.scard__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.scard:hover .scard__bg { transform: scale(1.06); }
.scard__bg--demo {
  background:
    radial-gradient(circle at 32% 30%, #4da3ff40, transparent 55%),
    radial-gradient(circle at 72% 62%, #1e4e7980, transparent 60%),
    radial-gradient(circle, #4da3ff2e 1px, transparent 1px) 0 0 / 12px 12px,
    var(--screen-2);
}
.scard__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0a122005 22%, #0a1220a8 58%, #0a1220f5 100%);
  transition: background .3s;
}
.scard__loc {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #EAF3FC;
  background: #0a1220b8;
  border: 1px solid #4da3ff40;
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.scard__content {
  position: relative;
  z-index: 1;
  margin-top: auto;
  width: 100%;
  padding: var(--s3);
  padding-top: 56px; /* reserva la franja del chip de ubicación cuando el contenido llena la tarjeta */
  display: grid;
  gap: 10px;
}
.scard__content h3 {
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.01em;
}
.scard__content > p { font-size: 14px; color: #C9DAEA; }
.scard__lines {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.scard__lines li {
  font-size: 11.5px;
  font-weight: 700;
  color: #EAF3FC;
  background: #ffffff1a;
  border: 1px solid #ffffff30;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.scard__cta {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--navy);
  background: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: gap .25s var(--ease-out), box-shadow .3s, transform .2s var(--ease-out);
}
.scard__cta:hover { gap: 12px; box-shadow: 0 0 0 4px #ffffff2e, 0 8px 20px #00000059; }
.scard__cta:active { transform: scale(0.97); }
.sol__note {
  margin-top: var(--s4);
  font-size: 14.5px;
  color: var(--muted);
  max-width: 720px;
}
.sol__note a { color: var(--celeste-txt); font-weight: 700; text-decoration: none; }
.sol__note a:hover { color: var(--navy); }

/* ══════════ RESPALDO MPLED (bento claro) ══════════ */
.mpled { background: #f1f6fbcc; }
.mpled__head { max-width: 720px; }
.mpled__bento {
  display: grid;
  gap: var(--s3);
  grid-template-columns: 1fr;
}
@media (min-width: 680px) { .mpled__bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .mpled__bento { grid-template-columns: 1.15fr 1fr 1fr; }
  .mpled__feature { grid-row: 1 / 3; }
}
.mpled__feature {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #E7F0F9;
  border-radius: var(--radius-lg);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  box-shadow: 0 24px 54px #1e4e7938;
}
@media (min-width: 680px) and (max-width: 999.98px) { .mpled__feature { grid-column: 1 / -1; } }
.mpled__brandimg {
  width: min(250px, 70%);
  height: auto;
  filter: drop-shadow(0 0 26px #4da3ff4d);
}
.mpled__featureTxt { font-size: 16.5px; color: #C6DAEB; }
.mpled__featureTxt strong { color: #fff; }
.mpled__proceso {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.mpled__proceso span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #E7F0F9;
  background: #ffffff14;
  border: 1px solid #ffffff2e;
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
}
.mpled__proceso b {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #ffffff24;
  color: #fff;
  font-size: 13px;
}
.mpled__card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s3);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.mpled__card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px #16324f17; }
.mpled__icon {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: #5b9bd521;
  color: var(--navy);
  margin-bottom: var(--s2);
}
.mpled__card h3 { font-size: 17.5px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.mpled__card p { font-size: 14.5px; color: var(--muted); }

/* ══════════ ZONA OSCURA: PROYECTOS + VALLA ══════════ */
.dimzone {
  background: var(--screen);
  color: var(--screen-txt);
  border-radius: 28px;
  margin: var(--s5) clamp(8px, 1.6vw, 20px);
  box-shadow: 0 0 90px #4da3ff21 inset, 0 30px 80px #16324f33;
}
.cases__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s3) var(--s4);
  flex-wrap: wrap;
  margin-bottom: var(--s4);
}
.cases__head .title { margin-bottom: var(--s2); }
.cases__lead {
  font-size: 17.5px;
  color: var(--screen-mut);
  max-width: 520px;
}
.cases__stat { text-align: right; }
.cases__stat b {
  display: block;
  font-family: var(--display);
  font-stretch: 120%;
  font-weight: 900;
  font-size: clamp(64px, 9vw, 118px);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 2px #4da3ff80;
}
.cases__stat span {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--screen-mut);
}
.cases__grid {
  display: grid;
  gap: var(--s3);
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .cases__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cases__grid { grid-template-columns: repeat(3, 1fr); } }
.case {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 0 0 1px #ffffff14, 0 14px 40px #00000059;
}
.case img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.case:hover img { transform: scale(1.06); }
.case figcaption {
  position: absolute;
  inset-inline: 0; bottom: 0;
  padding: 48px var(--s3) var(--s2);
  background: linear-gradient(180deg, transparent, #060b14ed);
  display: grid;
}
.case figcaption b {
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.01em;
  color: #fff;
}
.case figcaption span {
  font-size: 13px;
  font-weight: 600;
  color: var(--screen-mut);
}

/* punto LED de estado (carrusel de Quiénes somos) */
.ledframe__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 8px var(--glow);
  animation: blink 2.4s infinite;
}
@keyframes blink { 50% { opacity: 0.3; } }

/* ══════════ MARCO LED (Quiénes somos) ══════════ */
.ledframe {
  background: var(--screen);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow:
    0 30px 70px #16324f2e,
    0 6px 20px #16324f1f,
    0 0 60px #4da3ff2b;
  position: relative;
}
.ledframe::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 8px;
  background: linear-gradient(115deg, #ffffff14 0%, transparent 28%);
  pointer-events: none;
}
.ledframe__viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--screen-2);
}
.ledframe__viewport img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}
.ledframe__viewport img.is-active { opacity: 1; }
.ledframe__status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 6px 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--screen-mut);
}
.ledframe--tilt { transform: rotate(1.2deg); }

/* ══════════ QUIÉNES SOMOS ══════════ */
.about__cols { display: grid; gap: var(--s5); }
@media (min-width: 940px) { .about__cols { grid-template-columns: 1.08fr 0.92fr; align-items: center; } }
.about__text p { margin-bottom: var(--s3); color: var(--muted); font-size: 17px; }
.about__text strong { color: var(--ink); }
.about__closing {
  font-weight: 700;
  font-size: 19px !important;
  color: var(--navy) !important;
  border-left: 3px solid var(--celeste);
  padding-left: var(--s2);
}
.about__media figcaption { font-size: 13px; color: var(--faint); margin-top: 12px; }

/* ══════════ CONTACTO ══════════ */
.contact { background: var(--paper-2); }
.contact__cols { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .contact__cols { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: var(--s3); }
.field label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  min-height: 50px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--celeste);
  box-shadow: 0 0 0 4px #5b9bd52e;
}
.contact__formNote { font-size: 13px; color: var(--faint); margin-top: 10px; text-align: center; }
.form__ok {
  background: #e8f5ec;
  border: 1.5px solid #34a05366;
  color: #1d6b38;
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: var(--s3);
}
.contact__list { list-style: none; display: grid; gap: var(--s3); }
.contact__list li { display: grid; gap: 2px; }
.contact__k {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--faint);
}
.contact__list a { color: var(--navy); font-weight: 700; text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }
.contact__soporte { margin-top: var(--s3); }
.contact__map { margin-top: var(--s3); }
.contact__map iframe {
  width: 100%;
  height: 250px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 16px 44px #16324f21;
}

/* ══════════ FOOTER ══════════ */
.footer {
  background: var(--navy-deep);
  color: #E7F0F9;
  padding-block: var(--s5);
}
.footer__inner { display: grid; gap: var(--s4); }
@media (min-width: 800px) {
  .footer__inner { grid-template-columns: auto 1fr auto; align-items: center; }
  .footer__links { justify-content: center; }
}
.footer__brand img {
  width: 150px;
  height: auto;
  margin-bottom: var(--s2);
}
.footer__brand p { font-size: 13.5px; color: #B8CCDE; }
.footer__social { display: flex; gap: 12px; margin-top: var(--s2); }
.footer__social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #C9DAEA; text-decoration: none; transition: color .2s; }
.footer__social a:hover { color: #fff; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
  font-size: 14.5px;
  font-weight: 600;
}
.footer__links a { color: #C9DAEA; text-decoration: none; transition: color .2s; }
.footer__links a:hover { color: #fff; }
.footer__note { font-size: 13px; color: #9FB9D1; }

/* ══════════ WHATSAPP FLOTANTE ══════════ */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 60px; height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 26px #0a122040;
  transition: transform .25s var(--ease-out), box-shadow .3s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 12px 32px #0a122059, 0 0 0 6px #25d3662b; }
.wa-float:active { transform: scale(0.95); }

/* ══════════ LIGHTBOX DE PROYECTOS ══════════ */
.case { cursor: zoom-in; }
.lb[hidden] { display: none; } /* CRÍTICO: oculto de verdad; si no, bloquea todos los clics de la página */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #05090fe6;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  opacity: 0;
  transition: opacity .3s ease;
}
.lb.is-open { opacity: 1; }
.lb__figure { max-width: min(1100px, 94vw); max-height: 88vh; display: grid; gap: 12px; }
.lb__figure img {
  max-width: 100%;
  max-height: 78vh;
  width: auto; height: auto;
  margin-inline: auto;
  border-radius: 12px;
  box-shadow: 0 0 0 1px #ffffff1f, 0 30px 90px #000000a6, 0 0 80px #4da3ff2e;
}
.lb__figure figcaption {
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  color: #EAF3FC;
}
.lb__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #fff;
  background: #ffffff1a;
  border: 1px solid #ffffff33;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s;
}
.lb__close:hover { background: #ffffff30; }

/* ══════════ FAQ ══════════ */
.faq { padding-block: var(--s6); }
.faq__list {
  max-width: 780px;
  display: grid;
  gap: 12px;
}
.faq__item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .3s;
}
.faq__item[open] { box-shadow: 0 14px 34px #16324f14; }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
  font-size: 16.5px;
  color: var(--navy);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { flex-shrink: 0; color: var(--celeste); transition: transform .3s var(--ease-out); }
.faq__item[open] summary svg { transform: rotate(180deg); }
.faq__item p {
  padding: 0 20px 18px;
  font-size: 15px;
  color: var(--muted);
}
.faq__item p strong { color: var(--ink); }

/* ══════════ BARRA FIJA MÓVIL ══════════ */
.mobilebar { display: none; }
@media (max-width: 760px) {
  .mobilebar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 95;
    display: flex;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: #fbfdfff0;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 30px #16324f1c;
  }
  .mobilebar__quote {
    flex: 1;
    display: grid;
    place-items: center;
    min-height: 50px;
    font-weight: 800;
    font-size: 16px;
    color: #fff;
    background: var(--navy);
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 6px 18px #1e4e7940;
  }
  .mobilebar__wa {
    width: 50px; height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
  }
  .wa-float { display: none; } /* la barra lo reemplaza en móvil */
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ══════════ MOVIMIENTO ══════════ */

@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; }
  .intro { display: none !important; }
  .ledframe__dot { animation: none; }
  .ticker__track > :nth-child(n + 31) { display: none; }
}

/* legibilidad del texto de las tarjetas sobre zonas claras de la foto */
.scard__content h3, .scard__content > p, .scard__lines li { text-shadow: 0 1px 2px #0a1220e6, 0 0 16px #0a1220b3; }

/* enlace "saltar al contenido": solo visible al navegar con teclado */
.skip { position: absolute; top: 8px; left: 8px; z-index: 1000; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 999px; font-weight: 700; text-decoration: none; transform: translateY(-200%); transition: transform .2s; }
.skip:focus-visible { transform: translateY(0); outline-color: #fff; }
