/* ============================================================
   LYTHIUM — HOME  ·  css/main.css
   ============================================================ */

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

:root {
  --bg:            #060814;
  --white:         #ffffff;
  --cyan:          #94fffc;
  --orange:        #fc7749;
  --blue:          #0083ff;
  --blue-deep:     #304bff;
  --blue-dark:     #003993;
  --green:         #0dc38c;
  --green-light:   #76d6b9;
  --purple:        #724ff4;
  --border:        rgba(255,255,255,0.15);
  --border-strong: rgba(255,255,255,0.50);
  --font:          'Space Grotesk', sans-serif;
  --max-w:         1440px;
  --content-w:     1100px;
  --pad-x:         170px;
  --reveal-dur:    0.90s;
  --reveal-ease:   cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-dist-y: 72px;
  --reveal-dist-x: 110px;
}

/* Wide screens */
@media (min-width: 1541px) {
  :root { --content-w: 1440px; --pad-x: 60px; }
}

html  { scroll-behavior: smooth; }
body  { background: var(--bg); color: var(--white); font-family: var(--font); overflow-x: hidden; }
img   { display: block; max-width: 100%; }
a     { text-decoration: none; color: inherit; }
button { font-family: var(--font); cursor: pointer; border: none; }

.container {
  width: 100%; max-width: var(--max-w);
  margin-inline: auto; padding-inline: var(--pad-x);
}


/* ══════════════════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 30px;
  font-size: 14px; font-weight: 500; letter-spacing: 1.4px;
  text-transform: uppercase; white-space: nowrap;
}
.badge--qsort    { background: #0083ff; color: #fff; }
.badge--smolt    { background: #003993; color: #fff; }
.badge--kfactor  { background: #0dc38c; color: #fff; }
.badge--qscan    { background: #fc7749; color: #fff; }
.badge--trim     { background: #724ff4; color: #fff; }
.badge--fishbyte { background: #304bff; color: #fff; }
.badge--section {
  display: inline-flex; align-items: center;
  padding: 8px 18px; border-radius: 24px;
  border: 1px solid var(--border); backdrop-filter: blur(4px);
  font-size: 13px; font-weight: 500; letter-spacing: 1.3px; text-transform: uppercase;
}
.badge--orange { background: var(--orange); color: #1e1e1e; border: none; }


/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.btn-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 24px;
  background: var(--cyan); color: #1e1e1e;
  font-size: 18px; font-weight: 500;
  transition: background 0.25s, color 0.25s; white-space: nowrap;
}
.btn-cta:hover { background: #1e1e1e; color: var(--cyan); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 15px; border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.3); background: transparent;
  color: #fff; font-size: 14px; font-weight: 500;
  letter-spacing: 1.4px; text-transform: uppercase;
  transition: background 0.2s; white-space: nowrap;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* Arrow inside btn-outline (replaces the img) */
.btn-outline__arrow {
  display: inline-block; width: 8px; height: 8px; flex-shrink: 0;
  border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.btn-article {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 30px;
  background: var(--green-light); color: #060814;
  font-size: 14px; font-weight: 500; letter-spacing: 1.4px;
  text-transform: uppercase; border: none; white-space: nowrap;
}
.btn-article:hover { background: #5fc9af; }


/* ══════════════════════════════════════════════════════════
   NAVBAR — desktop
══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; inset-inline: 0; z-index: 200;
  padding-block: 18px;
  transition: backdrop-filter 0.3s, background 0.3s;
}
.navbar.is-scrolled {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.navbar__inner {
  display: flex; align-items: center;
  width: 100%; max-width: var(--max-w);
  margin-inline: auto; padding-inline: var(--pad-x);
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 40px; width: auto; }

.nav-links {
  display: flex; align-items: center; gap: 44px;
  margin-inline-start: auto; margin-inline-end: 36px;
}
.nav-links > a {
  font-size: 16px; font-weight: 600; color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,0.2);
  transition: opacity 0.2s; white-space: nowrap;
}
.nav-links > a:hover { opacity: 0.65; }

/* Dropdown */
.nav-item--dropdown { position: relative; }
.nav-link-wrap {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 16px; font-weight: 600; color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,0.2);
  transition: opacity 0.2s; user-select: none;
}
.nav-item--dropdown:hover > .nav-link-wrap { opacity: 0.65; }

.nav-chevron {
  display: inline-block; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid rgba(255,255,255,0.8);
  transition: transform 0.2s; flex-shrink: 0; margin-top: 1px;
}
.nav-item--dropdown.is-open .nav-chevron { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; top: calc(100% + 16px); left: 0;
  background: #fff; border-radius: 14px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  width: 250px; overflow: hidden;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s; z-index: 300;
}
.nav-item--dropdown.is-open .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.nav-dropdown__item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px 13px 30px;
  font-size: 13px; font-weight: 600; letter-spacing: 1.3px;
  text-transform: uppercase; color: #1e1e1e;
  transition: background 0.15s; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-dropdown__item:last-child { border-bottom: none; }
.nav-dropdown__item:hover { background: rgba(114,255,251,0.40); color: #0a3a3a; }
.nav-dropdown__item--active { background: #72FFFB; color: #0a3a3a; pointer-events: none; cursor: default; }
.nav-dropdown__item--active:hover { background: #72FFFB; }

.nav-dropdown__arrow {
  width: 6px; height: 6px; flex-shrink: 0;
  border-right: 2px solid currentColor; border-top: 2px solid currentColor;
  transform: rotate(45deg); opacity: 0.5; display: inline-block;
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 24px;
  background: #fff; color: #1e1e1e; font-size: 16px; font-weight: 500;
  box-shadow: 0 4px 4px rgba(0,0,0,0.25);
  transition: background 0.25s, color 0.25s; white-space: nowrap;
}
.nav-cta:hover { background: var(--cyan); color: #1e1e1e; }

/* Hamburger — hidden on desktop */
.nav-hamburger { display: none; }

/* Mobile panel — hidden on desktop */
.nav-mobile-panel { display: none; }


/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; overflow: hidden; padding-block-start: 120px;
}
#gradient-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  --gradient-color-1: #060814;
  --gradient-color-2: #003993;
  --gradient-color-3: #FC7749;
  --gradient-color-4: #060814;
  filter: blur(16px) saturate(1.15); transform: scale(1.06);
}
.hero__vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(6,8,20,0.75) 0%, transparent 24%),
    linear-gradient(to top,    rgba(6,8,20,1.00) 0%, transparent 44%),
    linear-gradient(to right,  rgba(6,8,20,0.55) 0%, transparent 30%),
    linear-gradient(to left,   rgba(6,8,20,0.55) 0%, transparent 30%);
}
.hero__dim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: rgba(6,8,20,0.18); }

/* Film-grain noise overlay — animated, behind content (z-index 1) */
.hero__noise {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  width: 100%; height: 100%; overflow: hidden;
  opacity: 0.06; mix-blend-mode: overlay;
  animation: hero-noise-shift 0.15s steps(1) infinite;
}
@keyframes hero-noise-shift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-4px,  5px); }
  40%  { transform: translate( 5px, -3px); }
  60%  { transform: translate(-3px, -5px); }
  80%  { transform: translate( 4px,  3px); }
}

.hero__content {
  position: relative; z-index: 2;
  max-width: 1100px;
  padding-inline: 80px;
  display: flex; flex-direction: column; align-items: center;
}

/* FIGMA: 90px / 100px line-height, weight 500 */
.hero__title {
  font-size: 90px;
  font-weight: 500;
  line-height: 100px;
  letter-spacing: -2.7px;
  margin-block-end: 36px;
}
.hero__subtitle {
  font-size: 18px; font-weight: 300; line-height: 25px;
  letter-spacing: -0.54px; max-width: 700px; margin-inline: auto;
}

.hero__line-row {
  display: flex; align-items: flex-start;
  width: 100%; margin-block-start: 52px;
}
.hero__line-bar {
  flex-shrink: 0;
  margin-inline-start: calc(50% - 1px);
  width: 1px; height: 230px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.25), transparent);
}
.hero__sol-label {
  font-size: 30px; line-height: 35px; font-weight: 300; letter-spacing: 0.9px;
  padding-inline-start: 40px;
  margin-block-start: calc(230px / 2 - 35px);
  text-align: left; white-space: nowrap;
}
.hero__sol-label strong { font-weight: 700; }


/* ══════════════════════════════════════════════════════════
   SOLUCIONES
══════════════════════════════════════════════════════════ */
.section-soluciones { padding-block-end: 100px; position: relative; overflow: hidden; }
.section-soluciones__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.section-soluciones__bg-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.45; transform: scaleY(-1);
}
.section-soluciones__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,8,19,1) 4.9%, rgba(6,8,20,0) 30.9%),
    linear-gradient(180deg, rgba(6,8,20,0) 58.2%, rgba(6,8,20,1) 94.3%);
}
.section-soluciones > *:not(.section-soluciones__bg) { position: relative; z-index: 1; }

.sol-grid-outer { display: flex; justify-content: center; }
.sol-grid-inner { width: 100%; max-width: var(--max-w); padding-inline: var(--pad-x); }

/* ── DESKTOP MASONRY GRID ─────────────────────────────────
   Columns: Q-Sort (340px) | Col2 (1fr) | Col3 (1fr)
   Rows:    Row1 (320px = Q-Scan height) | Row2 (440px = Smolt/KFactor height)
   Q-Sort spans rows 1-2, align-self:end → floats to bottom (180px from top)
   Q-Scan: col 2/4 row 1 (wide, top-right)
   Smolt:  col 2    row 2
   KFact:  col 3    row 2
───────────────────────────────────────────────────────── */
.sol-masonry {
  display: grid;
  grid-template-columns: 340px 1fr 1fr;
  grid-template-rows: 320px 440px;
  gap: 40px;
}
.card--qsort-pos   { grid-column: 1;   grid-row: 1 / 3; align-self: end; height: 600px; }
.card--qscan-pos   { grid-column: 2/4; grid-row: 1; width: calc(100% - 60px); justify-self: start; min-height: 320px; }
.card--smolt-pos   { grid-column: 2;   grid-row: 2; }
.card--kfactor-pos { grid-column: 3;   grid-row: 2; }

.sol-row3 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-block-start: 20px; }

.sol-cta-wrap { display: flex; justify-content: center; margin-block-start: 48px; }

/* ── PRODUCT CARD ─────────────────────────────────────── */
@keyframes cardFloat {
  0%, 100% { transform: translateY(-10px); }
  50%       { transform: translateY(-18px); }
}

.p-card {
  position: relative; border-radius: 34px;
  border: 1px solid var(--border); overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  cursor: pointer;
  transition:
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.p-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 32px 72px rgba(0,0,0,0.70);
}

/* Full-card clickable overlay (sits above bg/overlay, below body) */
.p-card__link {
  position: absolute; inset: 0; z-index: 2;
  display: block;
}
/* Trigger btn-outline hover state when card is hovered */
.p-card:hover .btn-outline { background: rgba(255,255,255,0.1); }

/* Row3 cards fixed height */
.sol-row3 .p-card { height: 380px; }

.p-card__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center top;
  transition:
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    filter    0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, filter;
}
.p-card:hover .p-card__bg { transform: scale(1.08); filter: blur(4px); }

/* Overlay — default: no blur; hover: backdrop-blur */
.p-card__overlay {
  position: absolute; inset: 0; z-index: 1;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: backdrop-filter 0.65s ease, -webkit-backdrop-filter 0.65s ease;
  background: linear-gradient(
    198.27deg,
    rgba(6,8,20,0.1)  4.41%,
    rgba(6,8,20,0.7)  32.31%,
    rgba(6,8,20,1)    67.23%
  );
}
.p-card:hover .p-card__overlay {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.p-card__body  { position: relative; z-index: 3; padding: 28px 40px 34px; }
.p-card__title { font-size: 36px; font-weight: 400; line-height: 40px; margin-block: 12px 10px; }
.p-card__type  {
  font-size: 14px; font-weight: 500; letter-spacing: 1.4px;
  text-transform: uppercase; opacity: 0.6; margin-block-end: 8px; display: block;
}
.p-card__desc  {
  font-size: 16px; font-weight: 300; line-height: 20px;
  letter-spacing: -0.48px; margin-block-end: 20px;
}


/* ══════════════════════════════════════════════════════════
   ESTANDARIZAMOS
══════════════════════════════════════════════════════════ */
.section-about { padding-block: 100px; }
.about-grid { display: grid; grid-template-columns: 500px 1fr; gap: 80px; align-items: center; }
.about-img {
  height: 460px; border-radius: 35px; overflow: hidden;
  border: 1px solid rgba(6,8,20,0.5); box-shadow: 0 5px 100px rgba(0,0,0,0.5);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-label { margin-block-end: 28px; }
.about-title { font-size: 50px; font-weight: 500; line-height: 55px; margin-block-end: 24px; }
.about-text  { font-size: 20px; font-weight: 300; line-height: 25px; letter-spacing: -0.6px; margin-block-end: 44px; }


/* ══════════════════════════════════════════════════════════
   CICLO PROCESO
══════════════════════════════════════════════════════════ */
.section-ciclo { padding-block: 60px 80px; }
.ciclo-diagram { width: 100%; max-width: 815px; margin-inline: auto; }
.ciclo-mobile  { display: none; }


/* ══════════════════════════════════════════════════════════
   PLATAFORMA Q-SORT
══════════════════════════════════════════════════════════ */
.section-qsort { padding-block: 100px; overflow: visible; }
.qsort-grid {
  display: grid; grid-template-columns: 680px 1fr;
  gap: 60px; align-items: center;
  max-width: var(--max-w); margin-inline: auto;
  padding-inline-end: var(--pad-x);
}
.qsort-img {
  position: relative;
  margin-inline-start: -150px;
  width: calc(100% + 150px);
  height: 594px; overflow: visible;
}
.qsort-img__inner {
  position: relative; width: 100%; height: 100%;
  overflow: hidden; border-radius: 0 20px 20px 0;
}
.qsort-img__inner img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.qsort-img__overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(108deg, rgba(6,8,20,1) 11.2%, rgba(6,8,20,0) 50.5%),
    linear-gradient(123deg, rgba(6,8,20,0) 55.8%, rgba(6,8,20,0.4) 72.8%, rgba(6,8,20,1) 81.9%),
    linear-gradient(155deg, rgba(6,8,20,1) 11.1%, rgba(6,8,20,0.85) 17.3%, rgba(6,8,20,0.3) 22.4%, rgba(6,8,20,0) 28.8%);
}
.qsort-title { font-size: 50px; font-weight: 500; line-height: 55px; margin-block-end: 6px; }
.qsort-sub   { font-size: 32px; font-weight: 300; line-height: 1.35; margin-block-end: 28px; }
.qsort-text  { font-size: 20px; font-weight: 300; line-height: 25px; letter-spacing: -0.6px; white-space: pre-line; margin-block-end: 44px; }


/* ══════════════════════════════════════════════════════════
   GENERACIÓN DE DATOS
══════════════════════════════════════════════════════════ */
.section-data { padding-block: 100px 50px; overflow: visible; }

/* Two-column layout — text left, image right (true mirror of Q-Sort) */
.data-layout {
  display: grid;
  grid-template-columns: 1fr 680px;
  gap: 60px; align-items: start;
  max-width: var(--max-w); margin-inline: auto;
  padding-inline-start: var(--pad-x);
}
.data-text-col { display: flex; flex-direction: column; }

/* Desktop floating image — right side, extends 150px outside container */
.data-float-img {
  position: relative;
  margin-inline-end: -150px;
  width: calc(100% + 150px);
  height: 594px; overflow: visible;
  pointer-events: none;
}
.data-float-img__inner {
  position: relative; width: 100%; height: 100%;
  overflow: hidden; border-radius: 20px 0 0 20px;
}
.data-float-img__inner img {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
}
.data-float-img__overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, rgba(6,8,20,1) 0%, rgba(6,8,20,0.5) 14%, rgba(6,8,20,0) 38%),
    linear-gradient(to bottom, rgba(6,8,20,0) 55%, rgba(6,8,20,0.7) 82%, rgba(6,8,20,1) 100%);
}

/* Mobile image (hidden on desktop) */
.data-mobile-img { display: none; }

.data-label { margin-block-end: 16px; align-self: flex-start; }
.data-title { font-size: 60px; font-weight: 500; line-height: 62px; max-width: 600px; margin-block-end: 28px; }
.data-intro { font-size: 20px; font-weight: 300; line-height: 25px; letter-spacing: -0.6px; max-width: 560px; margin-block-end: 52px; }

.del-title { font-size: 35px; font-weight: 300; line-height: 35px; letter-spacing: -1.05px; margin-block-end: 32px; }
.del-item  { display: flex; gap: 18px; margin-block-end: 28px; }
.del-arrow { flex-shrink: 0; margin-block-start: 4px; width: 14px; height: 14px; }
.del-text  { font-size: 20px; font-weight: 300; line-height: 25px; letter-spacing: -0.6px; }

/* Entregamos two-column layout: text left, image right — mirrors section-about */
.section-entregamos { padding-block: 50px 100px; }
.entregamos-grid {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 80px; align-items: center;
}
.entregamos-img {
  height: 460px; border-radius: 35px; overflow: hidden;
  border: 1px solid rgba(6,8,20,0.5); box-shadow: 0 5px 100px rgba(0,0,0,0.5);
}
.entregamos-img img { width: 100%; height: 100%; object-fit: cover; }


/* ══════════════════════════════════════════════════════════
   CLIENTES
══════════════════════════════════════════════════════════ */
.section-clientes { padding-block: 100px; position: relative; overflow: hidden; }
.clientes-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.clientes-bg-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.60; transform: scaleY(-1);
}
.clientes-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,8,19,1) 4.9%, rgba(6,8,20,0) 30.9%),
    linear-gradient(180deg, rgba(6,8,20,0) 58.2%, rgba(6,8,20,1) 94.3%);
}
.section-clientes .container { position: relative; z-index: 2; }
.clientes-grid { display: grid; grid-template-columns: 500px 1fr; gap: 80px; align-items: center; margin-block-end: 72px; }
.clientes-img {
  height: 460px; border-radius: 40px; overflow: hidden;
  border: 1px solid rgba(6,8,20,0.5); box-shadow: 0 5px 100px rgba(0,0,0,0.5);
}
.clientes-img img { width: 100%; height: 100%; object-fit: cover; }
.clientes-label { margin-block-end: 28px; }
.clientes-title { font-size: 50px; font-weight: 400; line-height: 52px; }

.logos-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 48px 40px;
  padding-block: 48px;
}
.logos-grid img {
  height: 36px; width: auto; max-width: 140px;
  object-fit: contain; margin-inline: auto;
  opacity: 0.75; transition: opacity 0.2s;
}
.logos-grid img:hover { opacity: 1; }


/* ══════════════════════════════════════════════════════════
   PRENSA — carrusel
══════════════════════════════════════════════════════════ */
.section-prensa { padding-block: 80px; }

.prensa-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-block-end: 36px;
}
.prensa-label { /* badge--section */ }

.carousel-wrap { overflow: hidden; }
.carousel-track {
  display: flex; gap: 28px;
  transition: transform 0.60s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.press-featured {
  min-width: 100%; flex-shrink: 0;
  position: relative;
  border-radius: 40px; overflow: hidden;
  height: 439px;
  border: 1px solid rgba(217,217,217,0.3);
  box-shadow: 0 5px 50px rgba(0,0,0,0.25);
}
.press-featured__bg { position: absolute; inset: 0; z-index: 0; }
.press-featured__bg img  { width: 100%; height: 100%; object-fit: cover; }
.press-featured__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6,8,20,0) 30%, rgba(6,8,20,0.80) 58%, rgba(6,8,20,0.97) 78%);
}
.press-featured__content {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 44px 56px;
}
.press-featured__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-block-end: 18px; }
.press-featured__tag {
  padding: 8px 14px; border-radius: 30px;
  border: 1px solid var(--border); font-size: 14px; font-weight: 300;
}
.press-featured__title {
  font-size: 36px; font-weight: 400; line-height: 42px;
  max-width: 760px; margin-block-end: 28px;
}

.carousel-controls { display: flex; gap: 12px; }
.carousel-btn {
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent; color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s;
}
.carousel-btn:hover { background: rgba(255,255,255,0.1); }
.carousel-btn:disabled { opacity: 0.3; cursor: not-allowed; }


/* ══════════════════════════════════════════════════════════
   FAQS + FOOTER WRAPPER
══════════════════════════════════════════════════════════ */
.faqs-footer-wrap { position: relative; overflow: clip; }
.faqs-footer-wrap__bg {
  position: absolute; top: 0; left: 0; right: 0; z-index: 0; pointer-events: none; line-height: 0;
}
.faqs-footer-wrap__bg img {
  display: block;
  width: -webkit-fill-available;
  height: auto;
  margin-inline: auto;
  -webkit-mask-image:
    linear-gradient(to left, rgba(0,0,0,0.9) 40%, rgba(0,0,0,0) 85%),
    linear-gradient(to top,  rgba(0,0,0,0.9) 35%, rgba(0,0,0,0) 80%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to left, rgba(0,0,0,0.9) 40%, rgba(0,0,0,0) 85%),
    linear-gradient(to top,  rgba(0,0,0,0.9) 35%, rgba(0,0,0,0) 80%);
  mask-composite: intersect;
}
.faqs-footer-wrap > *:not(.faqs-footer-wrap__bg) { position: relative; z-index: 1; }

/* FAQs */
.section-faqs { padding-block: 80px; }
.faqs-label { margin-block-end: 36px; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
.faq-item:first-of-type { border-top: 1px solid rgba(255,255,255,0.1); }
.faq-trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding-block: 26px;
  background: transparent; border: none; color: #fff;
  text-align: left; cursor: pointer; transition: opacity 0.2s;
}
.faq-trigger:hover { opacity: 0.75; }
.faq-question { font-size: 20px; font-weight: 300; line-height: 25px; letter-spacing: -0.6px; }
.faq-icon { flex-shrink: 0; margin-inline-start: 24px; width: 16px; height: 16px; }
.faq-icon--up   { display: none; }
.faq-icon--down { display: block; }
.faq-item.is-open .faq-icon--down { display: none; }
.faq-item.is-open .faq-icon--up   { display: block; }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.22, 1, 0.36, 1),
              padding 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-answer > p { overflow: hidden; }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; padding-block-end: 24px; }
.faq-answer-text { font-size: 18px; font-weight: 300; line-height: 28px; color: rgba(255,255,255,0.72); }

/* Footer */
.footer { padding-block: 40px 48px; }
.footer__card {
  max-width: var(--content-w); width: 100%;
  margin-inline: auto; padding: 48px 60px;
  background: rgba(6,8,20,0.85);
  border: 1px solid rgba(255,255,255,0.15); /* matches --border variable */
  border-radius: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.footer__logo img { height: 40px; width: auto; }
.footer__address {
  font-size: 13px; font-weight: 300; line-height: 20px; max-width: 180px;
  display: flex; align-items: flex-start; gap: 8px;
}
.footer__pin-icon { width: 13px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.footer__contact-email { display: flex; align-items: center; gap: 8px; }
.footer__email-icon { width: 16px; height: 16px; flex-shrink: 0; }
.footer__email-link { font-size: 13px; font-weight: 300; color: var(--white); transition: opacity 0.2s; }
.footer__email-link:hover { opacity: 0.7; }
.footer__social { display: flex; flex-direction: column; gap: 18px; }
.footer__social a { font-size: 13px; font-weight: 300; display: flex; align-items: center; gap: 8px; transition: opacity 0.2s; }
.footer__social a:hover { opacity: 0.7; }
.footer__social-icon { width: 16px; height: 16px; flex-shrink: 0; }
.footer__cta { white-space: nowrap; }

.footer__suma {
  max-width: var(--content-w); width: 100%;
  margin-inline: auto; margin-block-start: 28px;
  display: flex; justify-content: flex-end; padding-inline: 60px;
}
.footer__suma-link { display: inline-block; opacity: 0.5; transition: opacity 0.25s; line-height: 0; }
.footer__suma-link:hover { opacity: 1; }
.footer__suma-logo { height: 15px; width: auto; }


/* ══════════════════════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transition:
    opacity   var(--reveal-dur) var(--reveal-ease),
    transform var(--reveal-dur) var(--reveal-ease);
}
[data-reveal="up"]    { transform: translateY(var(--reveal-dist-y)); }
[data-reveal="down"]  { transform: translateY(calc(-1 * var(--reveal-dist-y))); }
[data-reveal="left"]  { transform: translateX(calc(-1 * var(--reveal-dist-x))); }
[data-reveal="right"] { transform: translateX(var(--reveal-dist-x)); }
[data-reveal="scale"] { transform: translateY(var(--reveal-dist-y)) scale(0.96); }
[data-reveal="fade"]  { transform: none; }
[data-reveal].is-visible { opacity: 1; transform: none; }

[data-delay="1"] { transition-delay: 0.10s; }
[data-delay="2"] { transition-delay: 0.22s; }
[data-delay="3"] { transition-delay: 0.34s; }
[data-delay="4"] { transition-delay: 0.46s; }
[data-delay="5"] { transition-delay: 0.58s; }
[data-delay="6"] { transition-delay: 0.70s; }


/* ══════════════════════════════════════════════════════════
   ██████████████████  RESPONSIVE  ██████████████████████
══════════════════════════════════════════════════════════ */

/* Mobile hero label: hidden on desktop */
.hero__sol-label-mobile { display: none; }

/* Mobile press info: hidden on desktop */
.press-mobile-info { display: none; }

/* ── Tablet (≤1200px) ────────────────────────────────── */
@media (max-width: 1200px) {
  :root { --pad-x: 40px; }

  .hero__title { font-size: 72px; line-height: 80px; }

  .sol-masonry {
    grid-template-columns: 280px 1fr 1fr;
    grid-template-rows: 280px 380px;
    gap: 32px;
  }
  .card--qsort-pos { height: 520px; }
  .card--qscan-pos { width: calc(100% - 48px); }
  .p-card__title   { font-size: 28px; line-height: 34px; }

  .about-grid  { grid-template-columns: 380px 1fr; gap: 48px; }
  .about-title { font-size: 38px; line-height: 44px; }

  .qsort-grid  { grid-template-columns: 500px 1fr; }
  .qsort-img   { margin-inline-start: -80px; width: calc(100% + 80px); }
  .qsort-title { font-size: 38px; line-height: 44px; }
  .qsort-sub   { font-size: 24px; }

  .data-layout { grid-template-columns: 1fr 500px; gap: 40px; padding-inline-start: var(--pad-x); }
  .data-float-img { margin-inline-end: -80px; width: calc(100% + 80px); }
  .data-title  { font-size: 46px; line-height: 50px; }

  .entregamos-grid { grid-template-columns: 1fr 380px; gap: 48px; }
  .entregamos-img  { height: 380px; }

  .clientes-grid  { grid-template-columns: 380px 1fr; gap: 48px; }
  .clientes-title { font-size: 38px; line-height: 44px; }

  .footer__card { padding: 36px 40px; gap: 24px; }
}

/* ── Mobile (≤768px) ─────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --pad-x: 20px;
    --reveal-dist-y: 50px;
    --reveal-dist-x: 60px;
  }

  /* ── Navbar ── */
  .navbar { padding-block: 0; }
  .navbar__inner {
    padding-inline: 20px;
    height: 68px;
  }
  .nav-logo img { height: 36px; }

  /* Hide desktop nav */
  .nav-links        { display: none; }
  .nav-cta--desktop { display: none; }

  /* Hamburger */
  .nav-hamburger {
    display: flex; flex-direction: column;
    gap: 6px; justify-content: center; align-items: center;
    width: 42px; height: 42px;
    background: transparent; border: none; cursor: pointer;
    margin-inline-start: auto; flex-shrink: 0;
  }
  .nav-hamburger span {
    display: block; width: 26px; height: 2px;
    background: #fff; border-radius: 2px;
    transition: opacity 0.2s, transform 0.2s;
  }
  .nav-hamburger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-hamburger.is-active span:nth-child(2) { opacity: 0; }
  .nav-hamburger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* Mobile panel */
  .nav-mobile-panel {
    display: flex; flex-direction: column;
    position: fixed; inset: 0; z-index: 201;
    background: var(--bg); color: #fff;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
    overflow-y: auto;
  }
  .nav-mobile-panel.is-open {
    transform: translateY(0);
  }

  .nav-mobile-panel__top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px;
    height: 68px; flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-mobile-panel__top .nav-logo img { height: 36px; }

  .nav-mobile-close {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; background: none; border: none;
    cursor: pointer; color: #fff;
  }

  .nav-mobile-panel__items { flex: 1; }

  /* Group header label (Soluciones) — flat, no toggle */
  .nav-mobile-group__label {
    display: flex; align-items: center;
    padding: 0 24px; height: 52px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 16px; font-weight: 700; color: rgba(255,255,255,0.45);
    text-transform: uppercase; letter-spacing: 1px;
  }

  /* Sub items always visible */
  .nav-mobile-group__sub--always-open {
    max-height: none !important;
    overflow: visible !important;
  }
  .nav-mobile-sub__item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px 0 44px; height: 44px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 13px; font-weight: 600; letter-spacing: 1.3px;
    text-transform: uppercase; color: rgba(255,255,255,0.75);
  }
  .nav-mobile-sub__item:hover { background: rgba(114,255,251,0.40); color: #0a3a3a; }
  .nav-mobile-sub__item:hover .nav-dropdown__arrow { color: #0a3a3a; }
  .nav-mobile-sub__item--active {
    background: #72FFFB; color: #0a3a3a;
    pointer-events: none; cursor: default;
  }
  .nav-mobile-sub__item--active .nav-dropdown__arrow { opacity: 1; color: #0a3a3a; }
  .nav-mobile-sub__item .nav-dropdown__arrow { opacity: 0.4; }

  /* Top-level links */
  .nav-mobile-link {
    display: flex; align-items: center;
    padding: 0 24px; height: 52px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 16px; font-weight: 700; color: #fff;
  }
  .nav-mobile-link:hover { background: rgba(255,255,255,0.05); }

  .nav-mobile-panel__cta {
    padding: 24px 20px 40px;
    display: flex; justify-content: center;
  }
  .btn-cta--mobile-nav { font-size: 16px; }

  /* ── Hero ── */
  .hero { padding-block: 60px 40px; min-height: unset; max-height: 750px; }
  .hero__content { padding-inline: 20px; max-width: 100%; }

  .hero__title {
    font-size: 45px;
    line-height: 50px;
    letter-spacing: -1.35px;
    margin-block-end: 24px;
  }
  .hero__subtitle {
    font-size: 18px; line-height: 25px;
    max-width: 320px;
  }
  .hero__line-row { display: none; }

  /* "Soluciones de Visión Artificial" on mobile: show as centered label below subtitle */
  .hero__sol-label-mobile {
    display: block;
    font-size: 25px; line-height: 30px; font-weight: 300;
    letter-spacing: 0.75px; text-align: center;
    margin-block-start: 40px;
  }
  .hero__sol-label-mobile strong { font-weight: 700; }

  /* ── Soluciones ── */
  .section-soluciones { padding-block-end: 60px; }

  /* Stack cards vertically on mobile */
  .sol-masonry {
    display: flex; flex-direction: column; gap: 15px;
  }
  .card--qsort-pos,
  .card--qscan-pos,
  .card--smolt-pos,
  .card--kfactor-pos { grid-column: unset; grid-row: unset; align-self: unset; height: auto; }

  /* Mobile card heights from Figma */
  .card--qsort-pos   { height: 300px; border-radius: 30px; }
  .card--qscan-pos   { height: 300px; border-radius: 30px; }
  .card--smolt-pos   { height: 236px; border-radius: 30px; }
  .card--kfactor-pos { height: 306px; border-radius: 30px; }

  .sol-row3 { display: flex; flex-direction: column; gap: 15px; margin-block-start: 15px; }
  .sol-row3 .p-card { height: auto; border-radius: 30px; }
  .sol-row3 .p-card:first-child { height: 360px; } /* TRIM — tall content needs breathing room above badge */
  .sol-row3 .p-card:last-child  { height: 254px; }

  .p-card__body  { padding: 24px 30px 28px; }
  .p-card__title { font-size: 25px; line-height: 30px; margin-block: 8px 8px; }
  .p-card__desc  { font-size: 14px; line-height: 18px; margin-block-end: 16px; }

  .sol-cta-wrap { margin-block-start: 32px; justify-content: flex-start; padding-inline: 0; }

  /* ── About ── */
  .section-about { padding-block: 60px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-img  { height: 340px; border-radius: 35px; }
  .about-label { margin-block-end: 20px; }
  .about-title { font-size: 30px; line-height: 35px; margin-block-end: 20px; }
  .about-text  { font-size: 20px; line-height: 25px; margin-block-end: 32px; }

  /* ── Ciclo ── */
  .section-ciclo { padding-block: 40px 60px; }
  #ciclo-desktop { display: none; }
  .ciclo-mobile {
    display: flex; flex-direction: column; align-items: center;
    padding-inline: 4px;
  }
  .ciclo-pill {
    display: inline-flex; align-items: center;
    padding: 10px 16px; border-radius: 30px;
    font-size: 14px; font-weight: 500; letter-spacing: 1.4px;
    text-transform: uppercase; color: #fff; white-space: nowrap;
  }
  .ciclo-arrow-down {
    width: 2px; height: 20px; background: rgba(255,255,255,0.3);
    margin-inline-start: 0; flex-shrink: 0;
    position: relative;
  }
  .ciclo-arrow-down::after {
    content: '';
    position: absolute; bottom: -5px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(255,255,255,0.35);
  }

  /* ── Q-Sort ── */
  .section-qsort { padding-block: 60px 0; }
  .qsort-grid { grid-template-columns: 1fr; gap: 0; padding-inline-end: 0; }
  .qsort-img {
    margin-inline-start: 0; width: 100%;
    height: 349px;
  }
  .qsort-img__inner { border-radius: 0; }
  .qsort-img__overlay {
    background:
      linear-gradient(180deg, rgba(6,8,20,0) 30%, rgba(6,8,20,0.8) 60%, rgba(6,8,20,1) 100%);
  }
  .qsort-text-col { padding: 32px var(--pad-x) 60px; }
  .qsort-title { font-size: 30px; line-height: 35px; }
  .qsort-sub   { font-size: 25px; line-height: 30px; margin-block-end: 20px; }
  .qsort-text  { font-size: 20px; line-height: 25px; margin-block-end: 32px; }

  /* ── Generación de datos ── */
  .section-data { padding-block: 60px 30px; overflow: visible; }
  .data-layout { grid-template-columns: 1fr; gap: 0; padding-inline-end: 0; }
  .data-float-img { display: none; }
  /* On mobile, the image floats to the top above the section heading */
  .data-mobile-img {
    display: block;
    order: -1;
    width: calc(100% + 40px);
    margin-inline: -20px;
    height: 320px;
    margin-block: 28px 0;
    overflow: hidden;
  }
  .data-mobile-img__inner { position: relative; width: 100%; height: 100%; }
  .data-mobile-img__inner img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
  .data-mobile-img__inner .data-float-img__overlay { display: block; }

  .data-title { font-size: 30px; line-height: 35px; margin-block-end: 20px; max-width: none; }
  .data-intro { font-size: 18px; margin-block-end: 32px; max-width: none; }
  .del-title  { font-size: 28px; }
  .del-text   { font-size: 18px; }

  /* ── Entregamos ── */
  .section-entregamos { padding-block: 30px 60px; }
  .entregamos-grid { grid-template-columns: 1fr; gap: 32px; }
  .entregamos-img  { height: 300px; border-radius: 24px; }

  /* ── Clientes ── */
  .section-clientes { padding-block: 60px; }
  .clientes-grid { grid-template-columns: 1fr; gap: 32px; margin-block-end: 40px; }
  .clientes-img  { height: 322px; }
  .clientes-label { margin-block-end: 20px; }
  .clientes-title { font-size: 30px; line-height: 35px; }
  .logos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px; padding-block: 32px;
  }
  .logos-grid img { height: 28px; max-width: 100px; }

  /* ── Prensa ── */
  .section-prensa { padding-block: 60px; }
  .press-featured { height: 140px; border-radius: 20px; }
  .press-featured__overlay {
    background: linear-gradient(180deg, rgba(6,8,20,0) 0%, rgba(6,8,20,0.7) 100%);
  }
  .press-featured__content { padding: 16px 20px; }
  .press-featured__tags { margin-block-end: 0; display: none; }
  .press-featured__title { display: none; }
  /* Hide button INSIDE the card on mobile; show it below via press-mobile-info */
  .press-featured__content .btn-article { display: none; }

  /* On mobile show title + tags + button OUTSIDE the card */
  .press-featured__content-below {
    display: block;
    margin-block-start: 20px;
  }

  .prensa-header { margin-block-end: 20px; }

  /* ── Prensa mobile info ── */
  .press-mobile-info {
    display: block;
    margin-block-start: 20px;
  }
  .press-mobile-info__tags {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-block-end: 14px;
  }
  .press-mobile-info__title {
    font-size: 30px; font-weight: 400; line-height: 35px;
    margin-block-end: 20px;
  }

  /* ── FAQs ── */
  .section-faqs { padding-block: 60px; }
  .faq-question { font-size: 16px; line-height: 20px; letter-spacing: -0.48px; }
  .faq-answer-text { font-size: 16px; line-height: 24px; }
  .faq-trigger { padding-block: 20px; }
  .faqs-label { margin-block-end: 24px; }

  /* ── Footer ── */
  .footer { padding-block: 24px 48px; }
  .footer__card {
    flex-direction: column; align-items: flex-start;
    padding: 36px 28px 40px; gap: 0;
    margin-inline: 20px; width: auto;
    border-radius: 24px;
  }
  .footer__logo { margin-block-end: 32px; }
  .footer__logo img { height: 34px; }
  .footer__address { margin-block-end: 20px; font-size: 14px; }
  .footer__contact-email { margin-block-end: 24px; }
  .footer__email-link { font-size: 14px; }
  .footer__social {
    flex-direction: row; gap: 28px;
    margin-block-end: 32px;
  }
  .footer__social a { font-size: 14px; }
  .footer__cta { align-self: stretch; justify-content: center; }
  .footer__suma { padding-inline: 0; justify-content: flex-end; margin-inline: 20px; margin-block-start: 16px; }

  /* FAQs footer bg */
  .faqs-footer-wrap__bg img { width: 100%; height: auto; opacity: 0.6; margin-inline: 0; }
}

/* ── Very small (≤390px) ─────────────────────────────── */
@media (max-width: 390px) {
  .hero__title { font-size: 38px; line-height: 44px; }
  .logos-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer__card { margin-inline: 15px; }
}

/* ══════════════════════════════════════════════════════════
   PERFORMANCE
══════════════════════════════════════════════════════════ */
/* Skip rendering off-screen sections until they enter the viewport */
.section-about,
.section-ciclo,
.section-qsort,
.section-data,
.section-entregamos,
.section-clientes,
.section-prensa {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}
/* FAQs excluded from content-visibility to prevent layout jank during accordion animation */
