/* ============================================================
   GLASSCOR PREMIUM - "Glass Engineered"
   Capa aditiva sobre glasscor-modern.css (cargar DESPUES).
   Fase 0: tokens oscuros + tipografia variable
   Fase 1: hero cinematografico oscuro + topbar + botones
   Reversible: basta con quitar el <link> de este fichero.
   ============================================================ */

/* ---------- FASE 0: TOKENS ---------- */
:root {
  --ink-900: #04101d;
  --ink-800: #07182a;
  --ink-700: #0c2742;
  --glow: #2ec4da;
  --glow-hi: #6ce8ff;
  --platinum: #c8d4dc;
  --on-dark: #eaf3fa;
  --on-muted: #9fb4c4;
  --font-display: "Space Grotesk", "Days", "Highland", "Trebuchet MS", sans-serif;
  --font-body: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* ---------- FASE 0: TIPOGRAFIA ---------- */
body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.section-head h2 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

/* numeros tabulares en contadores y stats */
.trust-bar strong,
.stat-count,
.padel-card strong,
.factory-stat strong {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-display);
}

/* ============================================================
   FASE 1: HERO CINEMATOGRAFICO OSCURO
   ============================================================ */
.hero {
  background: var(--ink-900);
  min-height: 100svh;
}

/* ocultar slideshow legacy: el render + video loop son el protagonista */
.hero .hero-slides,
#hero-caption,
#hero-slide-counter {
  display: none !important;
}
/* hero WebGL (Three.js): canvas sobre el render estatico, bajo el overlay.
   Solo se activa con .hero--3d (lo pone glasscor-hero3d.js si hay soporte). */
#hero3d-canvas { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; }
.hero.hero--3d .hero-video-wrap { display: none !important; }

/* video loop del hero (Veo) sobre el render estatico (fallback/poster).
   Forzamos visibilidad: el poster (hero-glass.png) cubre hasta que llegan frames,
   asi no dependemos de la clase .is-playing de modern.js. */
.hero .hero-video-wrap { z-index: 0; }
.hero .hero-video-wrap video { object-fit: cover; opacity: 1 !important; }

/* capa del render de vidrio (inyectada por glasscor-premium.js) */
.hero-glass-layer {
  position: absolute;
  inset: -6% -4% -6% -4%;
  z-index: 0;
  background: url("../assets/premium/hero-glass.webp") no-repeat right center;
  background-size: cover;
  will-change: transform;
  pointer-events: none;
}

/* overlay de legibilidad + vineta + glow */
.hero .hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg,
      var(--ink-900) 0%,
      rgba(4, 16, 29, 0.9) 26%,
      rgba(4, 16, 29, 0.32) 50%,
      rgba(4, 16, 29, 0) 72%),
    radial-gradient(130% 90% at 78% 42%, rgba(46, 196, 218, 0.12), transparent 60%),
    linear-gradient(0deg, var(--ink-900) 0%, transparent 32%);
}

.hero-content,
.hero-panel {
  z-index: 2;
}

/* eyebrow con luz de marca */
.hero .eyebrow {
  color: var(--glow);
  letter-spacing: 0.24em;
}

/* titular editorial (no mayusculas, display variable) */
.hero h1 {
  font-family: var(--font-display);
  text-transform: none;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.035em;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  line-height: 1.0;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}

.hero-copy {
  color: var(--on-dark);
  max-width: 56ch;
}

/* ---------- ENTRADA: reveal del texto ---------- */
.hero .eyebrow,
.hero h1,
.hero-copy,
.hero-actions,
.hero-tags {
  opacity: 0;
  transform: translateY(22px);
}
.hero.is-revealed .eyebrow { animation: gcpReveal .7s cubic-bezier(.16,1,.3,1) .05s forwards; }
.hero.is-revealed h1 { animation: gcpReveal .8s cubic-bezier(.16,1,.3,1) .15s forwards; }
.hero.is-revealed .hero-copy { animation: gcpReveal .8s cubic-bezier(.16,1,.3,1) .28s forwards; }
.hero.is-revealed .hero-actions { animation: gcpReveal .8s cubic-bezier(.16,1,.3,1) .4s forwards; }
.hero.is-revealed .hero-tags { animation: gcpReveal .8s cubic-bezier(.16,1,.3,1) .5s forwards; }

@keyframes gcpReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- BOTONES PREMIUM ---------- */
.hero-actions .btn-primary {
  background: linear-gradient(125deg, var(--cta0), var(--glow));
  border: 1px solid rgba(108, 232, 255, 0.5);
  box-shadow: 0 6px 26px rgba(46, 196, 218, 0.38);
  position: relative;
  overflow: hidden;
}
.hero-actions .btn-primary:hover {
  box-shadow: 0 12px 40px rgba(46, 196, 218, 0.52);
}
.hero-actions .btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
}
.hero-actions .btn-primary:hover::after { left: 150%; }

.hero-actions .btn-secondary {
  background: rgba(200, 212, 220, 0.07);
  border: 1px solid rgba(200, 212, 220, 0.34);
  backdrop-filter: blur(8px);
  color: #f0fbff;
}
.hero-actions .btn-secondary:hover {
  border-color: var(--glow);
  color: #ffffff;
}

/* ---------- HERO TAGS sobre oscuro ---------- */
.hero-tags { border-top-color: rgba(200, 212, 220, 0.18); }
.hero-tags span {
  background: rgba(200, 212, 220, 0.06);
  border: 1px solid rgba(200, 212, 220, 0.2);
  color: var(--on-dark);
}
.hero-tags span:hover {
  border-color: rgba(46, 196, 218, 0.55);
  color: #fff;
}

/* ---------- HERO PANEL: glassmorphism real ---------- */
.hero-panel {
  background: linear-gradient(160deg, rgba(12, 39, 66, 0.5) 0%, rgba(4, 16, 29, 0.5) 100%);
  border: 1px solid rgba(200, 212, 220, 0.18);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.hero-panel h2 { font-family: var(--font-display); font-weight: 600; }

/* ---------- TOPBAR: refinado (ya era oscuro) ---------- */
.topbar {
  background: rgba(4, 16, 29, 0.62);
  border-bottom: 1px solid rgba(200, 212, 220, 0.1);
}
.topbar.is-scrolled { background: rgba(4, 16, 29, 0.9); }
.menu a.is-active {
  border-color: rgba(46, 196, 218, 0.7);
  background: rgba(46, 196, 218, 0.14);
}
.menu .menu-cta {
  background: linear-gradient(125deg, var(--cta0), var(--glow));
  border-color: rgba(108, 232, 255, 0.5);
}
#scroll-progress { background: linear-gradient(90deg, var(--glow), var(--glow-hi)); }

/* ---------- TRUST BAR: tarjetas flotantes pulidas ---------- */
.trust-bar article {
  box-shadow: 0 18px 48px rgba(2, 10, 20, 0.28), 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}
.trust-bar article:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(2, 10, 20, 0.34);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .hero-glass-layer {
    background-image: url("../assets/premium/hero-glass-mobile.webp");
    background-position: center top;
  }
  .hero .hero-overlay {
    background:
      linear-gradient(0deg, var(--ink-900) 0%, rgba(4, 16, 29, 0.55) 45%, rgba(4, 16, 29, 0.2) 100%),
      radial-gradient(120% 60% at 50% 30%, rgba(46, 196, 218, 0.12), transparent 60%);
  }
}

/* ============================================================
   FASE 2: TARJETAS CON PROFUNDIDAD + TILT 3D + GLASSMORPHISM
   ============================================================ */

/* ---------- TARJETAS DE PRODUCTO ---------- */
.cards { perspective: 1200px; }

.card {
  transform-style: preserve-3d;
  will-change: transform;
}
.card img { transition: transform .5s cubic-bezier(.22,1,.36,1); }
.card.is-tilting { transition: box-shadow .3s ease, border-color .2s ease; }
.card:hover {
  border-color: transparent;
  box-shadow: 0 30px 70px rgba(4, 16, 30, 0.28),
              0 0 0 1px rgba(46, 196, 218, 0.45),
              0 0 34px rgba(46, 196, 218, 0.16);
}
.card:hover img { transform: scale(1.07); }
/* linea de luz superior al pasar */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--glow), transparent);
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 3;
}
.card:hover::before { opacity: 1; }
.card h3 { font-family: var(--font-display); font-weight: 600; }

/* ---------- SECTORES: BENTO ASIMETRICO ---------- */
.sector-grid {
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 150px;
  gap: 12px;
  perspective: 1400px;
}
.sector-card {
  padding: 18px;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.sector-card:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.sector-card:nth-child(2) { grid-column: span 3; grid-row: span 1; }
.sector-card:nth-child(3) { grid-column: span 3; grid-row: span 1; }
.sector-card:nth-child(4) { grid-column: span 2; grid-row: span 1; }
.sector-card:nth-child(5) { grid-column: span 2; grid-row: span 1; }
.sector-card:nth-child(6) { grid-column: span 2; grid-row: span 1; }

/* gradiente de legibilidad sobre la foto */
.sector-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4,16,29,.9) 0%, rgba(4,16,29,.2) 55%, transparent 100%);
  border-radius: inherit;
  z-index: 0;
}
.sector-card .sector-svg,
.sector-card span { position: relative; z-index: 2; }
.sector-card .sector-svg { color: #fff; opacity: .92; }
.sector-card span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
}
.sector-card:nth-child(1) span { font-size: 1.5rem; letter-spacing: -.02em; }
.sector-card:nth-child(1) .sector-svg { width: 52px; height: 52px; }
.sector-card:hover {
  box-shadow: 0 26px 64px rgba(4, 16, 30, 0.45),
              0 0 0 1px rgba(46, 196, 218, 0.6),
              0 0 34px rgba(46, 196, 218, 0.22);
}

/* ---------- POLISH GENERAL DE TARJETAS (secciones claras) ---------- */
.capacity-card:hover,
.factory-card:hover,
.quality-card:hover {
  border-color: transparent;
  box-shadow: 0 26px 60px rgba(4, 16, 30, 0.24),
              0 0 0 1px rgba(46, 196, 218, 0.4);
}
.capacity-card h3,
.factory-card h3,
.quality-card h3 { font-family: var(--font-display); font-weight: 600; }

.domain-card {
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, border-color .2s ease;
}
.domain-card:hover {
  transform: translateY(-5px);
  border-color: rgba(46, 196, 218, 0.45);
  box-shadow: 0 22px 50px rgba(2, 10, 20, 0.4),
              0 0 26px rgba(46, 196, 218, 0.16);
}

/* ---------- RESPONSIVE BENTO ---------- */
@media (max-width: 760px) {
  .sector-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 128px; }
  .sector-card:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .sector-card:nth-child(1) { grid-column: span 2; }
  .sector-card:nth-child(1) span { font-size: 1.25rem; }
}

/* ============================================================
   FASE 3: SECCIONES OSCURAS FULL-BLEED + RITMO CLARO/OSCURO
   ============================================================ */

/* evita scroll horizontal del truco full-bleed (no rompe sticky) */
html, body { overflow-x: clip; }

/* fondo oscuro a sangre completa detras de #fabrica, #ia y #contacto */
#fabrica, #ia, #contacto { position: relative; }
#fabrica.section-alt, #ia.section-alt { border-color: transparent; }
#fabrica > *, #ia > *, #contacto > * { position: relative; z-index: 1; }

#fabrica::before, #ia::before, #contacto::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0; bottom: 0;
  left: calc(-50vw + 50%);
  width: 100vw;
}
#fabrica::before { background: linear-gradient(180deg, var(--ink-900) 0%, var(--ink-800) 100%); }
#ia::before { background: linear-gradient(180deg, var(--ink-800) 0%, var(--ink-900) 100%); }

/* hairline de luz cian al inicio de cada banda oscura */
#fabrica::after, #ia::after, #contacto::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: calc(-50vw + 50%);
  width: 100vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,196,218,.45), transparent);
}

/* titulares y eyebrow sobre oscuro */
#fabrica .section-head h2, #ia .section-head h2, #contacto h2 { color: #fff; }
#fabrica .section-head .eyebrow, #ia .section-head .eyebrow,
#fabrica .eyebrow, #ia .eyebrow, #contacto .eyebrow { color: var(--glow); }

/* ---------- FABRICA ---------- */
#fabrica .factory-image { border-color: rgba(200,212,220,.18); }
#fabrica .factory-card {
  background: linear-gradient(160deg, rgba(12,39,66,.5) 0%, rgba(4,16,29,.5) 100%);
  border: 1px solid rgba(200,212,220,.16);
  backdrop-filter: blur(12px) saturate(130%);
}
#fabrica .factory-card h3 { color: #fff; }
#fabrica .factory-card p { color: var(--on-muted); }
#fabrica .factory-card a { color: var(--glow); }
#fabrica .factory-card:hover {
  border-color: transparent;
  box-shadow: 0 24px 56px rgba(0,0,0,.45), 0 0 0 1px rgba(46,196,218,.45);
}

/* ---------- IA / DIGITALIZACION ---------- */
#ia .ia-intro { color: var(--on-dark); }
#ia .ia-list li {
  background: linear-gradient(160deg, rgba(12,39,66,.45) 0%, rgba(4,16,29,.45) 100%);
  border: 1px solid rgba(200,212,220,.14);
  backdrop-filter: blur(10px);
}
#ia .ia-list li:hover { border-color: rgba(46,196,218,.45); }
#ia .ia-list strong { color: #fff; }
#ia .ia-list p { color: var(--on-muted); }
#ia .ia-icon { color: var(--glow); }
#ia .ia-split-image { border-color: rgba(200,212,220,.18); }
#ia .ia-badge {
  background: rgba(4,16,29,.7);
  border: 1px solid rgba(200,212,220,.2);
  backdrop-filter: blur(8px);
}
#ia .btn-ia {
  color: #fff;
  border: 2px solid var(--glow);
  background: transparent;
}
#ia .btn-ia:hover { background: var(--glow); color: var(--ink-900); }

/* ---------- CONTACTO: BANDA CTA con video de fondo (gc-bg-video inyectado) ---------- */
#contacto .gc-bg-video {
  position: absolute;
  top: 0; bottom: 0;
  left: calc(-50vw + 50%);
  width: 100vw;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
#contacto > * { z-index: 2; }
#contacto > .gc-bg-video { z-index: 0; }
#contacto::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4,16,29,.86) 0%, rgba(4,16,29,.5) 42%, rgba(4,16,29,.34) 100%);
}
#contacto .contact h2 {
  color: #fff; font-family: var(--font-display); font-weight: 600;
  text-shadow: 0 1px 10px rgba(0,0,0,.55);
}
#contacto .contact p { color: var(--on-dark); text-shadow: 0 1px 8px rgba(0,0,0,.5); }

/* ============================================================
   VIDEO LOOPS DE SECCION (Veo) — fabrica, IA, padel
   El <video> sustituye al <img>; mantiene el encuadre cover.
   ============================================================ */
.gc-sec-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.factory-image .gc-sec-video { min-height: 340px; }
.ia-split-image .gc-sec-video { min-height: 400px; }
@media (prefers-reduced-motion: reduce) {
  /* mostrar solo el poster: sin reproduccion */
  .gc-sec-video { pointer-events: none; }
}

/* ============================================================
   FASE 4: ICONOGRAFIA DE MARCA
   ============================================================ */

/* clase reutilizable para iconos del sprite assets/premium/brand-icons.svg */
.gc-ico {
  display: inline-block;
  width: 24px;
  height: 24px;
  color: var(--glow);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* glow de marca en iconos de las secciones oscuras */
#ia .ia-icon {
  color: var(--glow);
  filter: drop-shadow(0 0 6px rgba(46, 196, 218, 0.5));
  transition: filter .25s ease, transform .25s ease;
}
#ia .ia-list li:hover .ia-icon {
  filter: drop-shadow(0 0 10px rgba(46, 196, 218, 0.85));
  transform: scale(1.08);
}

/* ============================================================
   FASE 5: LIMPIEZA DE INLINE (CANAL ETICO) + MICROINTERACCIONES
   ============================================================ */
.ce-wrap {
  background: linear-gradient(135deg, #031120 0%, #041d38 60%, #031120 100%);
  border-radius: 16px;
  padding: clamp(1.8rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
}
.ce-main { flex: 1; min-width: 260px; }
.ce-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(46, 196, 218, 0.12);
  border: 1px solid rgba(46, 196, 218, 0.3);
  color: var(--glow);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin: 0 0 1.1rem;
}
.ce-title {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 0.9rem;
  line-height: 1.15;
}
.ce-lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.97rem;
  line-height: 1.75;
  max-width: 52ch;
  margin: 0 0 1.5rem;
}
.ce-lead strong { color: var(--glow-hi); }
.ce-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.ce-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glow);
  color: var(--ink-900);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.8rem 1.7rem;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.ce-cta-primary:hover { box-shadow: 0 8px 26px rgba(46, 196, 218, 0.4); transform: translateY(-2px); }
.ce-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.ce-cta-secondary:hover { border-color: var(--glow); color: #fff; }
.ce-cards { display: flex; flex-direction: column; gap: 0.8rem; min-width: 220px; }
.ce-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(46, 196, 218, 0.2);
  border-radius: 10px;
  padding: 0.95rem 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.ce-card:hover { border-color: rgba(46, 196, 218, 0.5); transform: translateX(4px); }
.ce-card-ico { font-size: 1.25rem; line-height: 1; flex-shrink: 0; }
.ce-card strong { color: #fff; font-size: 0.84rem; display: block; margin-bottom: 0.25rem; }
.ce-card span { color: rgba(255, 255, 255, 0.58); font-size: 0.76rem; line-height: 1.5; display: block; }

/* ============================================================
   COMPARADOR ANTES/DESPUES "cortina de vidrio"
   ============================================================ */
.gc-compare {
  position: relative; margin: 30px auto 0; max-width: 1000px;
  aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(46,196,218,.28);
  box-shadow: 0 40px 90px rgba(2,10,20,.4), inset 0 1px 0 rgba(255,255,255,.1);
  cursor: ew-resize; user-select: none; touch-action: pan-y;
  --pos: 50%;
}
.gc-cmp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.gc-cmp-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); z-index: 1; }
.gc-cmp-divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; z-index: 3;
  background: linear-gradient(180deg, transparent, var(--glow-hi), var(--glow), var(--glow-hi), transparent);
  box-shadow: 0 0 18px rgba(46,196,218,.8), 0 0 40px rgba(46,196,218,.4);
  transform: translateX(-50%);
}
/* barrido de luz/refraccion junto a la linea */
.gc-cmp-divider::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -28px; width: 56px;
  background: linear-gradient(90deg, transparent, rgba(108,232,255,.18), transparent);
  pointer-events: none;
}
.gc-cmp-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(4,16,29,.7); border: 1px solid var(--glow);
  backdrop-filter: blur(6px); color: var(--glow);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 24px rgba(46,196,218,.5); font-size: 1.1rem;
}
.gc-cmp-handle svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gc-cmp-label {
  position: absolute; bottom: 14px; z-index: 4;
  font-family: var(--font-display); font-weight: 600; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .3rem .8rem; border-radius: 4px; color: #fff;
  background: rgba(4,16,29,.6); border: 1px solid rgba(200,212,220,.22); backdrop-filter: blur(4px);
}
.gc-cmp-label-b { left: 14px; }
.gc-cmp-label-a { right: 14px; color: var(--glow); border-color: rgba(46,196,218,.45); }

/* ============================================================
   SECTORES — parallax multicapa + brillo especular
   (la capa .sector-bg la inyecta glasscor-premium.js)
   ============================================================ */
.sector-bg {
  position: absolute; inset: -8%;
  background-size: cover; background-position: center;
  z-index: 0; pointer-events: none;
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  will-change: transform;
}
.sector-shine {
  position: absolute; inset: 0; z-index: 2; border-radius: inherit;
  pointer-events: none; opacity: 0; transition: opacity .35s ease;
  mix-blend-mode: screen;
  background: radial-gradient(340px circle at var(--sx,50%) var(--sy,50%), rgba(108,232,255,.30), transparent 46%);
}
.sector-card:hover .sector-shine { opacity: 1; }
.sector-card .sector-svg,
.sector-card span { z-index: 3; }

/* ============================================================
   VITRINA 3D DE PROYECTOS (coverflow) — pieza estrella
   Fallback sin JS / reduced-motion: fila con scroll-snap.
   ============================================================ */
.vitrina { position: relative; margin-top: 26px; }
.vitrina-stage {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 4px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.vitrina-stage::-webkit-scrollbar { display: none; }
.vitrina-card { flex: 0 0 78%; scroll-snap-align: center; text-decoration: none; -webkit-user-drag: none; }
@media (min-width: 760px) { .vitrina-card { flex-basis: 46%; } }
.vitrina-stage { touch-action: pan-y; }
.vitrina-glass img { -webkit-user-drag: none; user-select: none; pointer-events: none; }

/* ---- modo 3D (activado por JS) ---- */
.vitrina.is-3d .vitrina-stage {
  display: block; overflow: visible;
  height: clamp(330px, 44vw, 470px);
  perspective: 1900px;
}
.vitrina.is-3d .vitrina-card {
  position: absolute; top: 0; left: 50%;
  width: clamp(300px, 46vw, 600px); height: 100%;
  transform: translateX(-50%);
  transition: transform .7s cubic-bezier(.16,1,.3,1), opacity .6s ease, filter .6s ease;
  transform-style: preserve-3d; will-change: transform;
}
.vitrina-glass {
  position: relative; height: 76%; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(200,212,220,.18); background: var(--ink-800);
  box-shadow: 0 40px 90px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.1);
}
.vitrina-glass img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vitrina-shine {
  position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease;
  mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 32%, rgba(108,232,255,.18) 50%, transparent 72%);
}
.vitrina.is-3d .vitrina-card.is-active .vitrina-glass {
  border-color: rgba(46,196,218,.5);
  box-shadow: 0 50px 110px rgba(0,0,0,.6), 0 0 0 1px rgba(46,196,218,.5),
              0 0 54px rgba(46,196,218,.22), inset 0 1px 0 rgba(255,255,255,.14);
}
.vitrina-card.is-active:hover .vitrina-shine { opacity: 1; }
.vitrina-cap { padding: 14px 6px 0; text-align: center; }
.vitrina-tag {
  display: inline-block; background: rgba(46,196,218,.14); border: 1px solid rgba(46,196,218,.4);
  color: #0e6f93; font-size: .62rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; padding: .22rem .7rem; border-radius: 3px;
}
.vitrina-cap h3 { font-family: var(--font-display); font-weight: 600; color: var(--title); margin: .55rem 0 .15rem; font-size: 1.15rem; }
.vitrina-cap p { margin: 0; color: var(--muted); font-size: .84rem; }

.vitrina-nav {
  position: absolute; top: 38%; transform: translateY(-50%); z-index: 30;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(46,196,218,.4); background: rgba(4,16,29,.55);
  color: var(--glow); font-size: 1.7rem; line-height: 1; cursor: pointer;
  backdrop-filter: blur(6px); transition: background .2s ease, transform .2s ease;
  display: none; align-items: center; justify-content: center;
}
.vitrina.is-3d .vitrina-nav { display: flex; }
.vitrina-nav.prev { left: 1%; } .vitrina-nav.next { right: 1%; }
.vitrina-nav:hover { background: rgba(46,196,218,.28); }
.vitrina-dots { display: none; justify-content: center; gap: .5rem; margin-top: 16px; }
.vitrina.is-3d .vitrina-dots { display: flex; }
.vitrina-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(21,112,166,.3); cursor: pointer; padding: 0; transition: background .2s ease, transform .2s ease; }
.vitrina-dot.is-active { background: var(--glow); transform: scale(1.35); }

/* ============================================================
   2. CLIENTES — cilindro 3D girando (marquee curvado infinito)
   ============================================================ */
.proof-row--clients.is-cyl { overflow: hidden; }
.proof-row--clients.is-cyl .proof-cyl-view {
  flex: 1; overflow: hidden; perspective: 620px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.proof-row--clients.is-cyl .proof-logos {
  width: max-content; flex-wrap: nowrap; transform-style: preserve-3d;
  animation: gcpRoll 32s linear infinite; will-change: transform;
}
.proof-row--clients.is-cyl:hover .proof-logos { animation-play-state: paused; }
@keyframes gcpRoll {
  from { transform: rotateX(11deg) translateX(0); }
  to   { transform: rotateX(11deg) translateX(-50%); }
}
.proof-row--clients.is-cyl .proof-logo { filter: grayscale(1); transition: filter .3s ease; }
.proof-row--clients.is-cyl .proof-logo-wrap {
  opacity: .82; transition: transform .3s ease, box-shadow .3s ease, opacity .3s ease;
}
.proof-row--clients.is-cyl .proof-logo-wrap:hover {
  opacity: 1; transform: translateY(-3px) scale(1.07);
  box-shadow: 0 10px 26px rgba(46,196,218,.42);
}
.proof-row--clients.is-cyl .proof-logo-wrap:hover .proof-logo { filter: none; }

/* ============================================================
   5. CAPACIDAD / CALIDAD — iconos 3D con relieve
   ============================================================ */
.capacity-grid, .quality-grid { perspective: 1200px; }
.capacity-card, .quality-card { transform-style: preserve-3d; }
.capacity-card .cap-icon, .quality-card .quality-icon {
  transition: transform .45s cubic-bezier(.16,1,.3,1), filter .35s ease;
  transform: translateZ(20px);
}
.capacity-card:hover .cap-icon,
.quality-card:hover .quality-icon {
  transform: translateZ(52px) rotateY(14deg) rotateX(6deg);
  filter: drop-shadow(0 8px 16px rgba(46,196,218,.55));
}

/* ============================================================
   6. NUMEROS — flip 3D al entrar (trust bar)
   ============================================================ */
.trust-bar.gcp-flip article {
  opacity: 0; transform: perspective(900px) rotateX(-62deg); transform-origin: top center;
  transition: opacity .6s ease, transform .75s cubic-bezier(.16,1,.3,1);
}
.trust-bar.gcp-flip.is-in article { opacity: 1; transform: perspective(900px) rotateX(0deg); }
.trust-bar.gcp-flip.is-in article:nth-child(1) { transition-delay: .05s; }
.trust-bar.gcp-flip.is-in article:nth-child(2) { transition-delay: .16s; }
.trust-bar.gcp-flip.is-in article:nth-child(3) { transition-delay: .27s; }
.trust-bar.gcp-flip.is-in article:nth-child(4) { transition-delay: .38s; }

/* ============================================================
   7. FAQ — panel de vidrio oscuro que se pliega en 3D
   ============================================================ */
#faq { background: transparent !important; position: relative; }
#faq > * { position: relative; z-index: 1; }
#faq::before {
  content: ""; position: absolute; z-index: 0; top: 0; bottom: 0;
  left: calc(-50vw + 50%); width: 100vw;
  background: linear-gradient(180deg, var(--ink-900), var(--ink-800));
}
#faq::after {
  content: ""; position: absolute; z-index: 1; top: 0; left: calc(-50vw + 50%);
  width: 100vw; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,196,218,.45), transparent);
}
#faq .section-head h2 { color: #fff; }
#faq .eyebrow { color: var(--glow); }
#faq .faq-item {
  background: linear-gradient(160deg, rgba(12,39,66,.5), rgba(4,16,29,.5)) !important;
  border: 1px solid rgba(200,212,220,.14) !important;
  backdrop-filter: blur(10px);
}
#faq .faq-item summary { color: #eaf3fa !important; }
#faq .faq-item summary svg { color: var(--glow); }
#faq .faq-item p { color: var(--on-muted) !important; }
#faq .faq-item[open] { border-color: rgba(46,196,218,.45) !important; }
#faq .faq-item[open] > p { animation: gcpFold .45s cubic-bezier(.16,1,.3,1); transform-origin: top; }
@keyframes gcpFold {
  from { opacity: 0; transform: perspective(700px) rotateX(-32deg); }
  to   { opacity: 1; transform: perspective(700px) rotateX(0); }
}

/* ============================================================
   8. RED DE EMPRESAS — constelacion 3D oscura
   ============================================================ */
#red-empresas { position: relative; }
#red-empresas.section-alt { border-color: transparent; background: transparent; }
#red-empresas > * { position: relative; z-index: 1; }
#red-empresas::before {
  content: ""; position: absolute; z-index: 0; top: 0; bottom: 0;
  left: calc(-50vw + 50%); width: 100vw;
  background:
    radial-gradient(rgba(46,196,218,.10) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(180deg, var(--ink-800), var(--ink-900));
}
#red-empresas .section-head h2 { color: #fff; }
#red-empresas .eyebrow { color: var(--glow); }
#red-empresas .section-lead { color: var(--on-muted); }
#red-empresas .network-grid { perspective: 1400px; transition: transform .3s ease; transform-style: preserve-3d; }
#red-empresas .domain-card {
  background: rgba(12,39,66,.42) !important;
  border: 1px solid rgba(200,212,220,.14) !important;
  backdrop-filter: blur(8px); transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, border-color .2s ease;
}
#red-empresas .domain-card strong { color: #fff !important; }
#red-empresas .domain-card span { color: var(--on-muted) !important; }
#red-empresas .domain-icon { color: var(--glow) !important; }
#red-empresas.is-tilt .domain-card:nth-child(odd) { transform: translateZ(18px); }
#red-empresas.is-tilt .domain-card:nth-child(3n) { transform: translateZ(36px); }
#red-empresas .domain-card:hover {
  transform: translateZ(55px) translateY(-4px) !important;
  border-color: rgba(46,196,218,.5) !important;
  box-shadow: 0 0 0 1px rgba(46,196,218,.5), 0 24px 50px rgba(0,0,0,.5), 0 0 44px rgba(46,196,218,.25) !important;
}

/* ============================================================
   9. TRANSICIONES CINEMATOGRAFICAS (reveal blur-in + escala)
   ============================================================ */
.reveal { transform: translateY(34px) scale(.985); filter: blur(7px); }
.reveal.is-visible {
  transform: none; filter: blur(0);
  transition: opacity .85s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1), filter .8s ease;
}
/* barrido de luz cian al entrar cada seccion (barra inyectada por JS) */
.gcp-sweepbar {
  position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 6;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--glow), var(--glow-hi), var(--glow), transparent);
  background-size: 38% 100%; background-repeat: no-repeat;
  animation: gcpSweepBar 1.15s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes gcpSweepBar {
  0% { background-position: -45% 0; opacity: 0; }
  18% { opacity: 1; }
  100% { background-position: 150% 0; opacity: 0; }
}

/* ============================================================
   KPIs (trust bar) — tarjetas glass oscuras + cifras cian 3D
   ============================================================ */
.trust-bar { perspective: 1100px; }
.trust-bar article {
  background: linear-gradient(160deg, rgba(12,39,66,.62), rgba(4,16,29,.62)) !important;
  border: 1px solid rgba(46,196,218,.22) !important;
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 24px 60px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.1) !important;
  transform-style: preserve-3d;
}
.trust-bar .trust-icon { color: var(--glow) !important; transform: translateZ(16px); }
.trust-bar strong {
  background: linear-gradient(120deg, var(--glow), var(--glow-hi)) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent; color: transparent !important;
  transform: translateZ(26px); text-shadow: none;
}
.trust-bar span { color: var(--on-muted) !important; transform: translateZ(10px); }
.trust-bar article:hover {
  border-color: rgba(46,196,218,.5) !important;
  box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(46,196,218,.45), 0 0 40px rgba(46,196,218,.22) !important;
}

/* ============================================================
   ACCESIBILIDAD: sin movimiento
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow,
  .hero h1,
  .hero-copy,
  .hero-actions,
  .hero-tags {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .hero-glass-layer { transition: none !important; }
  .card, .sector-card { transition: box-shadow .2s ease !important; }
  .trust-bar.gcp-flip article { opacity: 1 !important; transform: none !important; }
  #faq .faq-item[open] > p { animation: none !important; }
  .reveal { filter: none !important; transform: none !important; }
  #fabrica.is-visible::after, #ia.is-visible::after, #contacto.is-visible::after { animation: none !important; }
}