/* ============================================================
   A la Primera Soluciones — Landing
   Diseño basado en el dossier del PDF: oscuro + azul técnico,
   marcos angulares, chevrones e iconografía de marca.
   ============================================================ */

:root {
  --bg: #0a0c10;
  --bg-2: #0d1016;
  --surface: #12161d;
  --surface-2: #171c25;

  --border: rgba(120, 170, 220, 0.14);
  --border-strong: rgba(120, 170, 220, 0.3);

  --accent: #2f8fe0;
  --accent-strong: #4aa8f0;
  --accent-dim: rgba(47, 143, 224, 0.16);
  --cyan: #35c3e8;
  --cyan-dim: rgba(53, 195, 232, 0.14);

  --text: #f2f5f8;
  --text-2: #a9b4c2;
  --text-3: #7d8794;

  --font-head: "Saira", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --container: 1400px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-wrap: pretty;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: var(--accent-dim); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #263140; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #35455a; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 110px 0; position: relative; }
.section-alt {
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(47, 143, 224, 0.07), transparent 60%),
    var(--bg-2);
}

/* Fondo técnico: textura de circuitos + resplandor */
.tech-bg { position: relative; overflow: hidden; }
.tech-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 420px at 92% 0%, rgba(53, 195, 232, 0.09), transparent 60%),
    repeating-linear-gradient(135deg, rgba(74, 168, 240, 0.028) 0 1px, transparent 1px 20px);
}
.tech-bg > .container { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; letter-spacing: 0.01em; }
h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.08;
  text-transform: uppercase;
}
em { font-style: normal; color: var(--accent-strong); }
strong { color: #fff; font-weight: 600; }
.accent-text { color: var(--cyan); text-shadow: 0 0 24px rgba(53, 195, 232, 0.45); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 16px; }
.section-sub { color: var(--text-2); font-size: 1.05rem; max-width: 640px; }

.lead { font-size: 1.1rem; margin-bottom: 16px; }
p + p { margin-top: 14px; }
.about-copy p:not(.lead):not(.eyebrow) { color: var(--text-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition),
              border-color var(--transition), box-shadow var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(100deg, var(--accent), #2b7fc9);
  color: #021019;
  box-shadow: 0 8px 30px -8px rgba(47, 143, 224, 0.55);
}
.btn-primary:hover {
  background: linear-gradient(100deg, var(--accent-strong), var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -10px rgba(53, 195, 232, 0.5);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(74, 168, 240, 0.12); border-color: var(--accent); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}
.site-header.scrolled {
  background: rgba(10, 12, 16, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 80px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.02rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.brand-text small { color: var(--text-3); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  font-size: 0.92rem;
  color: var(--text-2);
  transition: color var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.main-nav a:hover { color: #fff; }
.main-nav a.nav-cta {
  color: var(--text);
  padding: 9px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  transition: background var(--transition), border-color var(--transition);
}
.main-nav a.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: #06121e; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (lámina 1) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 0 70px;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(1300px 900px at 50% 40%, #262729 0%, #17181a 42%, #0b0c0d 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.5) 100%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 140px);
}
.hero-content { position: relative; z-index: 2; max-width: 880px; margin-bottom: 56px; }
.hero-logo { width: min(300px, 52vw); margin: 0 auto 50px; }
.hero-logo img.hero-logo-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.45))
          drop-shadow(0 0 44px rgba(53, 195, 232, 0.1));
  animation: logoFade 0.9s ease both, logoFloat 5.6s ease-in-out infinite;
}
@keyframes logoFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-lockup { margin: 0; }
.hero-brand {
  display: block;
  font-family: "Anton", "Saira", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(2.7rem, 8.4vw, 5.7rem);
  line-height: 1;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fbfbfc 0%, #dcdee1 30%, #9aa0a7 55%, #c9cdd2 78%, #7c8188 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.5));
  margin-bottom: 10px;
}
.hero-brand-sub {
  display: block;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(1rem, 2.4vw, 1.65rem);
  letter-spacing: 0.52em;
  margin-right: -0.52em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #eef0f2 0%, #b9bec4 60%, #8d9299 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-tags {
  margin: 26px 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(0.92rem, 2vw, 1.3rem);
  letter-spacing: 0.4em;
  margin-right: -0.4em;
  text-transform: uppercase;
  color: var(--cyan);
}
.hero-sub { margin: 18px auto 0; }
.hero-sub-a {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
  letter-spacing: 0.09em;
  margin-right: -0.09em;
  color: var(--text-2);
}
.hero-sub-b {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.3rem, 4.9vw, 3.2rem);
  letter-spacing: 0.32em;
  margin-right: -0.32em;
  margin-top: 8px;
  color: #eef1f4;
}

.scroll-hint {
  position: absolute; left: 50%; bottom: 28px;
  transform: translateX(-50%);
  width: 28px; height: 46px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px; z-index: 2;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px;
  width: 4px; height: 10px;
  background: var(--cyan);
  border-radius: 4px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 16px); }
}

/* ---------- Quiénes somos + valores (lámina 2) ---------- */
.intro-head {
  position: relative;
  max-width: 1000px;
  margin-bottom: 60px;
  padding: 36px 44px 36px 48px;
  background: linear-gradient(165deg, rgba(23, 28, 37, 0.72), rgba(13, 16, 22, 0.4));
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--cyan);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}
.intro-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 20px; }
.intro-head .lead { max-width: 620px; color: var(--text-2); }
.intro-head::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 48px;
  right: 44px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent 70%);
}

/* Valores en fila (5 iconos + etiqueta) */
.values-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.value-item {
  text-align: center;
  padding: 30px 12px 26px;
  border-left: 1px solid var(--border);
}
.value-item:first-child { border-left: 0; }
.value-item svg {
  width: 56px; height: 56px;
  color: var(--accent-strong);
  filter: drop-shadow(0 0 12px rgba(74, 168, 240, 0.4));
  margin-bottom: 16px;
}
.value-item span {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.values-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 36px;
}
.values-head h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.values-head p {
  color: var(--text-2);
  font-size: 1rem;
}

/* ---------- Statement (lámina 3) ---------- */
.statement {
  position: relative;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(53, 195, 232, 0.13), transparent 60%),
    var(--bg-2);
}
.statement h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.04;
  margin-bottom: 24px;
}
.statement p { max-width: 760px; margin: 0 auto; color: var(--text-2); font-size: 1.1rem; }
.statement::before,
.statement::after {
  content: "";
  position: absolute;
  width: 90px; height: 90px;
  border: 1.5px solid rgba(53, 195, 232, 0.4);
  pointer-events: none;
}
.statement::before { top: 26px; left: 26px; border-right: 0; border-bottom: 0; }
.statement::after { bottom: 26px; right: 26px; border-left: 0; border-top: 0; }

/* ---------- Especialistas en LED (lámina 4) ---------- */
#led {
  background:
    linear-gradient(180deg, rgba(7, 9, 12, 0.99) 0%, rgba(7, 9, 12, 0.97) 45%, rgba(7, 9, 12, 0.99) 100%),
    url("../img/hero-pixels.jpg") center 30% / cover no-repeat fixed;
}
.led-grid { align-items: start; }
.led-copy p { color: var(--text-2); }
.led-grid .tech-frame { align-self: start; }
.led-grid .tech-frame img {
  aspect-ratio: 17 / 20;
  object-fit: cover;
  object-position: top;
}

.led-subtitle {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: -6px 0 18px;
}

/* Tres líneas de servicio (Venta · Alquiler · Instalación) */
.led-lines {
  display: grid;
  gap: 12px;
  margin: 14px 0 8px;
}
.led-line {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 22px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.led-line:hover {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(47, 143, 224, 0.16), var(--surface));
  transform: translateX(4px);
}
.line-ico {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  filter: drop-shadow(0 0 12px rgba(53, 195, 232, 0.5));
}
.line-ico svg { width: 100%; height: 100%; }
.line-txt strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 2px;
}
.line-txt small {
  display: block;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ---------- Formatos de pantalla (grid) ---------- */
.formats-band {
  grid-column: 1 / -1;
  margin-top: 70px;
}
.formats-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 22px;
}
.formats-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.formats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.format-card {
  margin: 0;
  position: relative;
  padding: 10px 10px 14px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.format-card:hover {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(47, 143, 224, 0.14), var(--surface));
  transform: translateY(-4px);
}
.format-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.format-card figcaption {
  margin-top: 10px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-2);
}
.format-card figcaption strong { color: var(--cyan); }

/* ---------- Marcos angulares (imágenes estilo PDF) ---------- */
.tech-frame {
  position: relative;
  margin: 0;
  padding: 1px;
  background: linear-gradient(160deg, rgba(74, 168, 240, 0.9), rgba(53, 195, 232, 0.4) 55%, rgba(74, 168, 240, 0.85));
  clip-path: polygon(3% 0, 100% 0, 100% 92%, 94% 100%, 0 100%, 0 8%);
}
.tech-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inherit;
  background: var(--surface);
}
.tech-frame .frame-caption {
  position: absolute;
  left: 16px; bottom: 16px;
  max-width: 70%;
  background: rgba(8, 12, 16, 0.82);
  border-left: 3px solid var(--cyan);
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--text-2);
  z-index: 2;
}

/* ---------- Resultados impecables (lámina 5) ---------- */
.results-head { max-width: 100%; margin-bottom: 56px; }
.results-title {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  letter-spacing: 0.01em;
  margin-bottom: 18px;
  position: relative;
  display: inline-block;
}
.results-title::after {
  content: "";
  display: block;
  margin-top: 16px;
  width: 96px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-strong), transparent);
  border-radius: 2px;
}
.results-head .section-sub { color: var(--text-2); }

.results-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

/* Ambos marcos con la misma altura (proporción de la imagen derecha, 1.36:1) */
.result-card .tech-frame { aspect-ratio: 1.36; }
.result-card .tech-frame img { object-position: center; }

.result-card figcaption {
  margin-top: 16px;
  padding-left: 18px;
  position: relative;
  color: var(--text-2);
  font-size: 0.98rem;
}
.result-card figcaption::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 9px; height: 9px;
  background: var(--cyan);
  transform: skewX(-20deg);
}

/* ---------- Taller propio (lámina 6) ---------- */
.about-media-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-2);
}
.accent-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px rgba(53, 195, 232, 0.6); }

/* ---------- Taller propio · Panel (lámina 6) — fiel a la lámina ---------- */
.taller-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 41%) 1fr;
  align-items: stretch;
  padding: 1px;
  background: linear-gradient(
    165deg,
    rgba(130, 195, 248, 0.95),
    rgba(60, 140, 210, 0.8) 45%,
    rgba(130, 195, 248, 0.95)
  );
  clip-path: polygon(
    0 18px, 18px 0,
    calc(100% - 18px) 0, 100% 18px,
    100% calc(100% - 18px), calc(100% - 18px) 100%,
    18px 100%, 0 calc(100% - 18px)
  );
  filter: drop-shadow(0 0 28px rgba(53, 195, 232, 0.2));
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.75);
}
.taller-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: clamp(34px, 4.4vw, 68px);
  background:
    radial-gradient(480px 340px at 0% 0%, rgba(53, 195, 232, 0.09), transparent 60%),
    radial-gradient(520px 380px at 100% 100%, rgba(47, 143, 224, 0.1), transparent 60%),
    linear-gradient(200deg, #202a37 0%, #141b25 55%, #0e141d 100%);
}
.taller-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  text-shadow: 0 0 28px rgba(53, 195, 232, 0.25);
  position: relative;
  padding-bottom: 22px;
  margin-bottom: 0;
}
.taller-title::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 0;
  width: 128px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-strong), rgba(53, 195, 232, 0));
  border-radius: 2px;
}
.taller-text p {
  margin: 0;
  color: var(--text-2);
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
  max-width: 44ch;
}
.taller-media {
  position: relative;
  margin: 0;
  min-height: clamp(440px, 64vh, 620px);
  overflow: hidden;
  background: var(--surface);
}
.taller-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(10, 14, 20, 0.35), transparent 30%);
  pointer-events: none;
}
.taller-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------- Montaje en altura (lámina 7) — fiel a la lámina ---------- */
.montaje-title {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.08;
  text-transform: none;
  letter-spacing: 0;
  color: #fff;
  margin-bottom: 0;
  text-shadow: 0 0 32px rgba(53, 195, 232, 0.28);
}

.montaje-slide {
  display: grid;
  grid-template-columns: 1.12fr 0.95fr;
  gap: 52px;
  align-items: stretch;
}
.montaje-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
}
.montage-items { display: flex; flex-direction: column; gap: 40px; }

.montage-item {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  color: rgba(74, 168, 240, 0.85);
}
.target-ico { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; }
.target-ico svg { width: 100%; height: 100%; filter: drop-shadow(0 0 10px rgba(53, 195, 232, 0.45)); }
.m-text { position: relative; z-index: 1; }
.m-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 6px;
}
.m-text p { margin: 0; color: var(--text-3); font-size: 0.95rem; }

/* Fotos del bloque: marcos finos con chaflán y brillo */
.montaje-slide .tech-frame.tall,
.montaje-slide .tech-frame.wide {
  padding: 1px;
  clip-path: polygon(0 0, 88% 0, 100% 5%, 100% 100%, 12% 100%, 0 95%);
  background: linear-gradient(160deg, rgba(111, 180, 238, 0.98), rgba(63, 143, 212, 0.75) 55%, rgba(111, 180, 238, 0.98));
  filter: drop-shadow(0 0 16px rgba(53, 195, 232, 0.3));
}
.montaje-slide .tech-frame.tall { min-height: 640px; }
.montaje-slide .tech-frame.tall img { height: 100%; min-height: 628px; }

.montaje-left .tech-frame.wide { margin-top: 0; }
.montaje-left .tech-frame.wide img { aspect-ratio: 2 / 1; }

/* ---------- CCTV (lámina 8) · fiel a la lámina ---------- */
.cctv-section {
  background:
    radial-gradient(950px 720px at 78% 45%, rgba(53, 195, 232, 0.12), transparent 62%),
    var(--bg-2);
}
.cctv-title {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  text-shadow: 0 0 30px rgba(53, 195, 232, 0.3);
  margin-bottom: 14px;
}
.cctv-sub {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--cyan);
  margin-bottom: 36px;
}
.cctv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 0 34px;
  max-width: 560px;
}
.cctv-grid li {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px 18px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(160deg, rgba(195, 220, 246, 0.95), rgba(56, 128, 202, 0.5) 42%, rgba(150, 200, 240, 0.85)) border-box,
    linear-gradient(160deg, #0d141d, #090e15) padding-box;
  background-origin: border-box, padding-box;
  background-clip: border-box, padding-box;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}
.cctv-grid li:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px -14px rgba(53, 195, 232, 0.55);
  filter: brightness(1.15);
}

/* Hexágono brillante */
.cctv-hex {
  position: relative;
  margin: 0;
  justify-self: center;
  width: min(100%, 520px);
  filter: drop-shadow(0 0 36px rgba(53, 195, 232, 0.42));
}
.hex-frame {
  position: relative;
  padding: 7px;
  clip-path: polygon(50% 0, 96% 25%, 96% 75%, 50% 100%, 4% 75%, 4% 25%);
  background: linear-gradient(160deg, #a3d9f7 0%, #2f8fe0 48%, #7cc8f0 100%);
}
.hex-frame::after {
  content: "";
  position: absolute;
  inset: 7px;
  clip-path: inherit;
  background: rgba(53, 195, 232, 0.14);
  pointer-events: none;
}
.hex-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1.82;
  object-fit: contain;
  object-position: center;
  background: #0a1016;
  clip-path: inherit;
}

/* ---------- Alianza Spiideo (lámina 9) · fiel a la lámina ---------- */
.spiideo-grid { align-items: center; }
.spiideo-copy p {
  color: var(--text-2);
  font-size: 1.08rem;
  max-width: 560px;
}
.spiideo-title {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(2.3rem, 4.8vw, 3.6rem);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.14;
  color: #fff;
  margin-bottom: 30px;
}

.alliance-box {
  position: relative;
  margin-top: 36px;
  padding: 24px 34px;
  border: 1.5px solid rgba(74, 168, 240, 0.95);
  border-radius: 16px;
  background: rgba(10, 30, 50, 0.45);
  box-shadow:
    0 0 0 1px rgba(53, 195, 232, 0.25),
    0 0 30px rgba(58, 169, 245, 0.35),
    inset 0 0 26px rgba(58, 169, 245, 0.12);
  color: #fff;
  font-size: 1rem;
}
.alliance-box::after {
  content: "";
  position: absolute;
  right: -11px;
  top: 50%;
  width: 18px;
  height: 18px;
  background: rgba(12, 34, 54, 0.95);
  border-top: 1.5px solid rgba(74, 168, 240, 0.95);
  border-right: 1.5px solid rgba(74, 168, 240, 0.95);
  transform: translateY(-50%) rotate(45deg);
}
.alliance-box strong { color: #fff; }

.spiideo-figure { margin: 0; justify-self: end; max-width: 480px; }
.spiideo-figure img {
  width: 100%;
  height: auto;
  display: block;
  -webkit-mask-image: radial-gradient(115% 115% at 68% 50%, #000 58%, transparent 97%);
  mask-image: radial-gradient(115% 115% at 68% 50%, #000 58%, transparent 97%);
}

/* ---------- Contacto (lámina 10) ---------- */
.contact-grid { align-items: start; }
.contact-copy h2 { margin-bottom: 14px; }

.contact-list { margin-top: 34px; display: grid; gap: 22px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-ico {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent-strong);
  font-size: 1.05rem;
  border: 1px solid var(--border-strong);
}
.contact-list small { display: block; color: var(--text-3); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2px; }
.contact-list a, .contact-list div span { color: var(--text); transition: color var(--transition); }
.contact-list a:hover { color: var(--accent-strong); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 36px;
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--text-2); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 13px 15px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.field select { appearance: none; cursor: pointer; }
.field input.invalid, .field textarea.invalid { border-color: #ff6b6b; }
.form-note { font-size: 0.8rem; color: var(--text-3); margin: -4px 0 18px; }
.form-status { margin-top: 14px; font-size: 0.92rem; text-align: center; min-height: 1.4em; }
.form-status.ok { color: #6fe3a0; }
.form-status.err { color: #ff8a8a; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-top: 70px; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-logo { width: 150px; height: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--text-3); max-width: 260px; font-size: 0.94rem; }
.footer-col h4 { font-family: var(--font-head); font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.footer-col a, .footer-col span { display: block; color: var(--text-2); font-size: 0.94rem; margin-bottom: 11px; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 24px; text-align: center; }
.footer-bottom p { color: var(--text-3); font-size: 0.85rem; }

/* ---------- Animaciones ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); }
.reveal { transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-2 { gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 80px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(10, 12, 16, 0.97);
    backdrop-filter: blur(14px);
    padding: 18px 24px 26px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    transition: transform var(--transition);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .main-nav a.nav-cta { text-align: center; border: 1px solid var(--border-strong); border-radius: 6px; margin-top: 8px; }
  .nav-toggle { display: flex; }

  .grid-2 { grid-template-columns: 1fr; }
  .spiideo-figure { justify-self: start; max-width: 100%; }
  .values-row { grid-template-columns: repeat(2, 1fr); }
  .value-item:nth-child(3) { border-left: 0; }
  .value-item { border-top: 1px solid var(--border); }
  .values-row { border-top: 0; }
  .results-2 { grid-template-columns: 1fr; }
  .montaje-slide { grid-template-columns: 1fr; }
  .montaje-left { justify-content: flex-start; }
  .montaje-title { margin-bottom: 26px; }
  .montage-items { margin-bottom: 30px; }
  .montaje-slide .tech-frame.tall { min-height: 0; }
  .montaje-slide .tech-frame.tall img { min-height: 0; }
  .cctv-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .taller-panel { grid-template-columns: 1fr; }
  .taller-panel { clip-path: polygon(0 12px, 12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px)); }
  .taller-media { min-height: 320px; }
  .taller-text { padding: 30px 26px; }
  .formats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .intro-head { padding: 26px 22px 26px 28px; }
  .intro-head::after { left: 28px; right: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .values-row { grid-template-columns: 1fr 1fr; gap: 0; }
  .contact-form { padding: 26px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .led-line { padding: 14px 16px; gap: 15px; }
  .line-ico { width: 44px; height: 44px; }
  .line-txt strong { font-size: 0.95rem; }
  .line-txt small { font-size: 0.86rem; }
  .formats-grid { grid-template-columns: repeat(2, 1fr); }
}
