*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0a1628;
  --navy-mid:    #0d1f3c;
  --blue-accent: #3a8ef6;
  --blue-bright: #5ba4ff;
  --blue-glow:   rgba(58, 142, 246, 0.14);
  --white:       #ffffff;
  --off-white:   #e8eef7;
  --muted:       #8aa3c8;
  --border:      rgba(58, 142, 246, 0.14);
  --border-hard: rgba(58, 142, 246, 0.2);
  --font:        "Plus Jakarta Sans", sans-serif;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  /* repeated text/bg tones */
  --text-soft:   rgba(232, 238, 247, 0.72);
  --text-mid:    rgba(232, 238, 247, 0.82);
  --hover-bg:    rgba(58, 142, 246, 0.06);
  --hover-bg-md: rgba(58, 142, 246, 0.09);
  --card-bg:     rgba(10, 22, 40, 0.75);
  --card-bg-dk:  rgba(8, 18, 36, 0.82);
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--off-white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Utilities ── */
.flex         { display: flex; }
.flex-col     { display: flex; flex-direction: column; }
.flex-center  { display: flex; align-items: center; }
.flex-all     { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* Full-bleed canvas overlay (hero, proceso, diferente-banner, cierre) */
.canvas-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; opacity: 0.28;
}

/* Icon box shared by valor, dif, pq, nav-section, contact */
.icon-box {
  background: var(--blue-glow);
  border: 1px solid var(--border);
  color: var(--blue-accent);
  flex-shrink: 0;
}

/* Scroll-reveal base (cards, steps) */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Section shared */
.section-label {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue-accent); margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700; color: var(--white);
  letter-spacing: -0.02em; line-height: 1.22;
}
.tky-svg { height: auto; width: 60px; vertical-align: middle; }

/* Radial glow deco (::before/::after on sections) */
.glow-deco {
  content: ""; position: absolute;
  background: radial-gradient(ellipse, rgba(58,142,246,0.07) 0%, transparent 65%);
  pointer-events: none;
}

/* ════════════════════════════
       HEADER
   ════════════════════════════ */
header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding: 0 5%; height: 84px;
  background: rgba(10, 22, 40, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.logo { text-decoration: none; flex-shrink: 0; }
.logo img { height: 54px; width: auto; }

nav ul { list-style: none; display: flex; align-items: center; gap: 1.75rem; }
nav ul li a {
  color: var(--text-mid); text-decoration: none;
  font-size: 0.875rem; font-weight: 400;
  padding-bottom: 4px; position: relative;
  transition: color 0.2s;
}
nav ul li a::after {
  content: ""; position: absolute;
  bottom: -2px; left: 50%;
  width: 0; height: 2px;
  background: var(--blue-accent); border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
nav ul li a:hover,
nav ul li a.active { color: var(--white); }
nav ul li a:hover::after,
nav ul li a.active::after { width: 100%; }

nav.open {
  display: block !important; position: fixed;
  top: 84px; left: 0; right: 0;
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0; z-index: 99;
}
nav.open ul { flex-direction: column; gap: 0; }
nav.open ul li { border-bottom: 1px solid var(--border); }
nav.open ul li:last-child { border-bottom: none; }
nav.open ul li a { display: block; padding: 1rem 5%; font-size: 1rem; color: var(--off-white); white-space: nowrap; }
nav.open ul li a::after { display: none; }

.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; flex-direction: column;
  gap: 5px; padding: 6px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--off-white); border-radius: 2px;
  transition: all 0.3s;
}

/* ── Buttons ── */
.btn-primary,
.btn-secondary,
.btn-cta-header {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 8px; font-family: var(--font); font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary,
.btn-cta-header { background: var(--blue-accent); color: white; border: none; }
.btn-primary:hover,
.btn-cta-header:hover { background: var(--blue-bright); transform: translateY(-1px); }

.btn-primary { padding: 0.8rem 1.75rem; font-size: 0.9rem; font-weight: 600; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(58, 142, 246, 0.3); }
.btn-cta-header { padding: 0.55rem 1.35rem; font-size: 0.875rem; flex-shrink: 0; }

.btn-secondary {
  background: transparent; color: var(--off-white);
  border: 1px solid var(--border);
  padding: 0.8rem 1.75rem; font-size: 0.9rem; font-weight: 400;
}
.btn-secondary:hover { border-color: var(--blue-accent); color: var(--blue-bright); background: var(--blue-glow); }


/* Submit shares primary style */
.btn-submit {
  gap: 8px; border: none;
  padding: 0.9rem 2rem; border-radius: 8px;
  background: var(--blue-accent); color: white;
  font-family: var(--font); font-size: 0.92rem; font-weight: 600;
  cursor: pointer; margin-top: 0.25rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-submit:hover {
  background: var(--blue-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(58, 142, 246, 0.3);
}

#conocerMasButton {
  padding: 0.8rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(91,164,255,0.32);
  margin-top: 0;
  align-self: auto;
}

/* ════════════════════════════
       NAV DROPDOWN
   ════════════════════════════ */
.nav-has-dropdown { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + 16px); right: -16px;
  width: 288px; background: rgba(9, 19, 36, 0.97);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-hard); border-radius: 14px;
  padding: 1.25rem;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  pointer-events: none;
  box-shadow: 0 24px 48px rgba(0,0,0,0.45), 0 0 0 1px rgba(58,142,246,0.08);
  z-index: 200;
}
.nav-dropdown::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav-has-dropdown:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }

.nav-dropdown-label {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-accent); margin-bottom: 0.875rem;
}
.nav-dropdown-profiles { gap: 0.3rem; }

.nav-profile-pill {
  gap: 0.6rem; width: 100%;
  padding: 0.55rem 0.75rem; border-radius: 7px;
  border: 1px solid var(--border);
  background: rgba(58, 142, 246, 0.03);
  color: var(--text-mid);
  font-family: var(--font); font-size: 0.8rem; font-weight: 400;
  cursor: pointer; text-align: left;
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}
.nav-profile-pill:hover {
  background: rgba(58, 142, 246, 0.12);
  border-color: rgba(58, 142, 246, 0.32);
  color: var(--white);
}
.nav-pill-icon { color: var(--blue-accent); flex-shrink: 0; opacity: 0.85; }

/* Qué es TyK sub-dropdown */
.nav-dropdown-sections { width: 260px; gap: 0.25rem; display: flex; flex-direction: column; }
.nav-section-link {
  gap: 0.75rem; padding: 0.65rem 0.6rem;
  border-radius: 8px; text-decoration: none;
  transition: background 0.16s;
}
.nav-section-link:hover { background: var(--hover-bg-md); }
.nav-section-icon { width: 34px; height: 34px; border-radius: 8px; }
.nav-section-title { display: block; font-size: 0.82rem; font-weight: 600; color: var(--white); line-height: 1.3; }

/* ════════════════════════════
       HERO
   ════════════════════════════ */
#hero {
  min-height: 100vh; display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch; position: relative;
  overflow: hidden; padding-top: 84px; padding-bottom: 110px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before,
.hero-bg::after { content: ""; position: absolute; }
.hero-bg::before {
  top: -15%; left: -8%; width: 60%; height: 75%;
  background: radial-gradient(ellipse, rgba(58,142,246,0.1) 0%, transparent 65%);
}
.hero-bg::after {
  bottom: -10%; right: -5%; width: 50%; height: 60%;
  background: radial-gradient(ellipse, rgba(58,142,246,0.06) 0%, transparent 65%);
}

.hero-left,
.hero-right { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; }
.hero-left  { padding: 50px 4% 60px 15%; align-items: flex-start; }
.hero-right { padding: 40px 5% 40px 3%; }

.hero-title {
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 800; line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--white); margin-bottom: 1.4rem;
}
.hero-title .line { display: block; }
.hero-title .line-3,
.hero-title .line-4 { color: var(--blue-accent); }

.hero-sub {
  font-size: 0.96rem; font-weight: 400;
  color: var(--text-mid); max-width: 460px;
  line-height: 1.8; margin-bottom: 1.75rem;
}
.hero-sub strong { color: var(--white); font-weight: 600; }
.hero-actions { gap: 0.875rem; flex-wrap: wrap; margin-bottom: 2rem; }

/* Hero entry animations */
.hero-title .line,
.hero-sub, .hero-actions, .stats-video-row { opacity: 0; transform: translateY(16px); }
.video-outer { opacity: 0; transform: translateX(20px); }

.hero-title .line-1 { animation: fadeUp .7s var(--ease) .20s forwards; }
.hero-title .line-2 { animation: fadeUp .7s var(--ease) .32s forwards; }
.hero-title .line-3 { animation: fadeUp .7s var(--ease) .44s forwards; }
.hero-title .line-4 { animation: fadeUp .7s var(--ease) .56s forwards; }
.hero-sub            { animation: fadeUp .7s var(--ease) .70s forwards; }
.hero-actions        { animation: fadeUp .7s var(--ease) .84s forwards; }
.video-outer         { animation: fadeRight .9s var(--ease) .35s forwards; }
.stats-video-row     { animation: fadeUp .7s var(--ease) .60s forwards; }

@keyframes fadeUp    { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeRight { to { opacity: 1; transform: translateX(0); } }

/* ── Video ── */
.video-wrapper {
  border-radius: 12px 12px 0 0; overflow: hidden;
  border: 1px solid var(--border-hard); border-bottom: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 0 60px rgba(58,142,246,0.07);
  position: relative; background: var(--navy-mid);
  aspect-ratio: 16 / 9;
}
.video-wrapper::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(58,142,246,0.04) 0%, transparent 50%, rgba(10,22,40,0.15) 100%);
  pointer-events: none;
}
.video-wrapper video { width: 100%; height: 100%; object-fit: cover; display: block; }

.video-play-btn {
  position: absolute; inset: 0; z-index: 2;
  background: rgba(10,22,40,0.28);
  border: none; cursor: pointer;
  transition: background 0.25s;
}
.video-play-btn:hover { background: rgba(10,22,40,0.12); }
.video-play-btn.hidden { display: none; }

.video-play-ring {
  width: 76px; height: 76px;
  background: rgba(58,142,246,0.92);
  border-radius: 50%; color: white;
  box-shadow: 0 0 0 14px rgba(58,142,246,0.18), 0 8px 32px rgba(0,0,0,0.4);
  transition: transform 0.22s var(--ease), background 0.22s, box-shadow 0.22s;
}
.video-play-ring svg { transform: translateX(3px); }
.video-play-btn:hover .video-play-ring {
  transform: scale(1.1); background: var(--blue-bright);
  box-shadow: 0 0 0 18px rgba(91,164,255,0.22), 0 12px 40px rgba(0,0,0,0.45);
}

/* ── Stats 2×2 ── */
.stats-video-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border);
  border: 1px solid var(--border-hard); border-top: none;
  border-radius: 0 0 12px 12px; overflow: hidden;
}
.stat-item { background: rgba(10,22,40,0.7); padding: 0.9rem 1.25rem; gap: 4px; transition: background 0.2s; }
.stat-item:hover { background: var(--hover-bg); }
.stat-key { font-size: 0.67rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-accent); }
.stat-value { font-size: 0.84rem; font-weight: 500; color: var(--off-white); line-height: 1.4; }
.stat-value-big { font-size: 1.45rem; font-weight: 800; color: var(--white); letter-spacing: -0.02em; line-height: 1; }

/* ════════════════════════════
       VALOR / POR QUÉ TYK
   ════════════════════════════ */
#valor {
  background: var(--navy-mid);
  padding: 0 5% 110px;
  position: relative; overflow: hidden;
}
#valor::before {
  content: ""; position: absolute;
  top: 0; left: -8%; width: 55%; height: 70%;
  background: radial-gradient(ellipse, rgba(58,142,246,0.08) 0%, transparent 65%);
  pointer-events: none;
}
#valor::after {
  content: ""; position: absolute;
  bottom: -15%; right: -5%; width: 40%; height: 55%;
  background: radial-gradient(ellipse, rgba(58,142,246,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.hero-wave {
  position: absolute; left: 0; right: 0; bottom: 0;
  line-height: 0; z-index: 3; pointer-events: none;
}
.hero-wave svg { display: block; width: 100%; height: 100px; }
.hero-wave path { fill: var(--navy-mid); }

.valor-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; padding-top: 52px; }
.valor-header { text-align: center; margin-bottom: 4rem; }
.valor-header .section-title { max-width: 700px; margin: 0.5rem auto 0; }
.valor-desc {
  max-width: 620px; margin: 1.25rem auto 0;
  color: var(--text-soft); font-size: 0.94rem; line-height: 1.8;
}
.valor-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }

.valor-card {
  background: var(--card-bg);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 1.74rem 1.1rem;
  display: flex; flex-direction: column; gap: 0.65rem;
  min-height: 200px;
  transition: border-color 0.22s, background 0.22s, box-shadow 0.22s;
}
.valor-card:hover {
  border-color: var(--border-hard);
  background: rgba(58,142,246,0.07);
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.22), 0 0 0 1px rgba(58,142,246,0.12);
}

.valor-icon { width: 48px; height: 48px; border-radius: 10px; }
.valor-card:hover .valor-icon { animation: floatIcon 1.8s ease-in-out infinite; }
.valor-card-title { font-size: 0.9rem; font-weight: 700; color: var(--white); line-height: 1.35; }
.valor-card-desc  { font-size: 0.79rem; font-weight: 300; color: var(--muted); line-height: 1.65; }

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

/* ════════════════════════════
       DIFERENTE
   ════════════════════════════ */
#diferente {
  background: var(--navy);
  padding: 80px 5% 110px;
  border-top: 1px solid var(--border);
  position: relative; overflow: hidden;
}
#diferente::after {
  content: ""; position: absolute;
  top: 10%; right: -8%; width: 52%; height: 65%;
  background: radial-gradient(ellipse, rgba(58,142,246,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.dif-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 5rem; row-gap: 2.5rem;
  align-items: start; position: relative; z-index: 1;
}
.dif-header       { grid-column: 1; grid-row: 1; }
.dif-visual       { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.dif-items        { grid-column: 1; grid-row: 2; }
.dif-close-banner { grid-column: 1 / -1; grid-row: 3; }

.dif-header .section-title { margin-top: 0.5rem; }
.dif-desc { margin-top: 1.25rem; color: rgba(232,238,247,0.75); font-size: 0.94rem; line-height: 1.8; }

/* Dif items */
.dif-items { display: flex; flex-direction: column; gap: 1rem; }
.dif-item {
  gap: 1rem; align-items: flex-start;
  padding: 1.1rem 1.25rem;
  background: rgba(58,142,246,0.04);
  border: 1px solid var(--border); border-radius: 12px;
  /* reveal-X variant */
  opacity: 0; transform: translateX(-22px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), background 0.2s, border-color 0.2s;
}
.dif-item.visible { opacity: 1; transform: translateX(0); }
.dif-item:hover { background: var(--hover-bg-md); border-color: var(--border-hard); }

.dif-item-icon { width: 42px; height: 42px; border-radius: 10px; }
.dif-item-title { font-size: 0.88rem; font-weight: 700; color: var(--white); margin-bottom: 0.22rem; line-height: 1.35; }
.dif-item-desc  { font-size: 0.79rem; font-weight: 300; color: var(--muted); line-height: 1.65; }

/* Closing banner */
.dif-close-banner {
  max-width: 800px; justify-self: center;
  position: relative; overflow: hidden;
  text-align: center; padding: 4rem 4.5rem;
  background: linear-gradient(135deg, rgba(58,142,246,0.1) 0%, rgba(10,22,40,0.4) 100%), #060e1c;
  border: 1px solid var(--border-hard); border-radius: 20px;
}
.dif-close-banner::before {
  content: ""; position: absolute; top: -60%; left: 50%;
  transform: translateX(-50%); width: 60%; height: 220%;
  background: radial-gradient(ellipse, rgba(58,142,246,0.12) 0%, transparent 65%);
  pointer-events: none;
}
#banner-canvas { opacity: 0.18; }

.dif-close-pillars { gap: 2.5rem; justify-content: center; align-items: flex-start; margin-bottom: 2.5rem; position: relative; z-index: 1; }
.dif-pillar { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0.85rem; flex: 1; padding: 0 1.5rem; }
.dif-pillar-icon { width: 64px; height: 64px; border: 1px solid var(--border-hard); border-radius: 16px; }
.dif-pillar-label { font-size: 0.9rem; font-weight: 600; color: var(--off-white); letter-spacing: 0.01em; }
.dif-pillar-sep {
  width: 64px; height: 64px; flex-shrink: 0;
  color: rgba(91,164,255,0.55);
  font-size: 2rem; font-weight: 200; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}

.dif-close-text {
  font-size: 1.05rem; font-weight: 400;
  color: var(--text-mid); line-height: 1.85;
  max-width: 720px; margin: 0 auto 2rem;
  position: relative; z-index: 1;
}
.dif-close-text strong { color: var(--blue-bright); font-weight: 700; }

/* Venn diagram */
.dif-visual { display: flex; justify-content: center; align-items: center; }
.db-wrap { width: 100%; max-width: 900px; }
.db-svg  { width: 100%; height: auto; overflow: visible; }

.db-c { fill-opacity: 1; stroke-width: 1.2; }
.db-c0 { fill: rgba(120,170,245,0.10); stroke: rgba(150,190,250,0.45); }
.db-c1 { fill: rgba(58,142,246,0.13);  stroke: rgba(91,164,255,0.5);   }
.db-c2 { fill: rgba(128,72,220,0.13);  stroke: rgba(160,100,255,0.45); }
.db-c3 { fill: rgba(18,168,152,0.13);  stroke: rgba(40,210,190,0.42);  }
.db-c4 { fill: rgba(20,148,228,0.13);  stroke: rgba(55,195,255,0.45);  }
.db-c5 { fill: rgba(215,225,250,0.14); stroke: rgba(230,238,255,0.55); }
.db-c0, .db-c1, .db-c2, .db-c3, .db-c4 { animation: dbPulse 9s ease-in-out infinite; }
.db-c0 { animation-delay: 3.3s; }
.db-c2 { animation-delay: 2.2s; }
.db-c3 { animation-delay: 4.5s; }
.db-c4 { animation-delay: 1.1s; }
.db-c5 { animation: dbPulse 7s 3s ease-in-out infinite; }
@keyframes dbPulse { 0%, 100% { opacity: 0.78; } 50% { opacity: 1; } }

.db-lbl { font-family: var(--font); font-size: 12px; font-weight: 600; text-anchor: middle; pointer-events: none; }
.db-lbl0 { fill: rgba(220,235,255,0.92); }
.db-logo { opacity: 0.92; pointer-events: none; }
.db-lbl1 { fill: rgba(140,190,255,0.90); }
.db-lbl2 { fill: rgba(195,155,255,0.90); }
.db-lbl3 { fill: rgba(60,215,195,0.90);  }
.db-lbl4 { fill: rgba(90,210,255,0.90);  }
.db-lbl5 { fill: rgba(225,233,255,0.92); font-size: 11px; }

.db-n0 { animation: dbDrift0 14s 2s ease-in-out infinite; }
.db-n1 { animation: dbDrift1 12s ease-in-out infinite; }
.db-n2 { animation: dbDrift2 10s 0.8s ease-in-out infinite; }
.db-n3 { animation: dbDrift3 11s 2.2s ease-in-out infinite; }
.db-n4 { animation: dbDrift4  9s 1.4s ease-in-out infinite; }
.db-n5 { animation: dbDrift5  8s 3s ease-in-out infinite; }

@keyframes dbDrift0 { 0%{transform:translate(0,0)} 33%{transform:translate(3px,4px)} 66%{transform:translate(-3px,-3px)} 100%{transform:translate(0,0)} }
@keyframes dbDrift1 { 0%{transform:translate(0,0)} 30%{transform:translate(4px,-5px)} 60%{transform:translate(-3px,-6px)} 100%{transform:translate(0,0)} }
@keyframes dbDrift2 { 0%{transform:translate(0,0)} 35%{transform:translate(7px,-6px)} 68%{transform:translate(3px,5px)}  100%{transform:translate(0,0)} }
@keyframes dbDrift3 { 0%{transform:translate(0,0)} 38%{transform:translate(6px,6px)}  65%{transform:translate(-4px,4px)} 100%{transform:translate(0,0)} }
@keyframes dbDrift4 { 0%{transform:translate(0,0)} 32%{transform:translate(-7px,-5px)} 62%{transform:translate(3px,-7px)} 100%{transform:translate(0,0)} }
@keyframes dbDrift5 { 0%{transform:translate(0,0)} 35%{transform:translate(-7px,6px)} 68%{transform:translate(6px,-5px)} 100%{transform:translate(0,0)} }

/* ════════════════════════════
       PRODUCTOS
   ════════════════════════════ */
#productos {
  background: var(--navy-mid);
  padding: 90px 5% 110px;
  border-top: 1px solid var(--border);
}
.prod-inner  { max-width: 1160px; margin: 0 auto; }
.prod-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.prod-intro  { color: var(--muted); font-size: 1rem; font-weight: 300; line-height: 1.75; margin-top: 1rem; }
.prod-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.prod-card {
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.prod-card:nth-child(2) { transition-delay: 0.1s; }
.prod-card:nth-child(3) { transition-delay: 0.2s; }
.prod-card:nth-child(4) { transition-delay: 0.3s; }
.prod-card:hover { border-color: var(--border-hard); box-shadow: 0 8px 36px rgba(58,142,246,0.13); }
.prod-card.visible:hover { transform: translateY(-4px); }

.prod-visual {
  background: rgba(10, 22, 40, 0.85);
  border-bottom: 1px solid var(--border);
  height: 220px; display: flex; align-items: center; justify-content: center;
  padding: 0.5rem; padding-bottom: 0;
  position: relative; overflow: hidden;
}
.prod-svg { width: 100%; height: 100%; max-height: 196px; }
.prod-visual > :not(canvas) { position: relative; z-index: 1; }

.prod-body { padding: 1.25rem 1.75rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.prod-title { font-size: 1.05rem; font-weight: 600; color: var(--white); line-height: 1.4; margin: 0; }
.prod-desc  { font-size: 0.875rem; font-weight: 300; color: var(--muted); line-height: 1.7; margin-top: 0.15rem; flex: 1; }

.prod-example-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.75rem; align-self: flex-start;
  padding: 0.38rem 0.9rem;
  border: 1px solid rgba(91,164,255,0.32); border-radius: 8px;
  font-size: 0.78rem; font-weight: 500;
  color: rgba(130,185,255,0.88); text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.prod-example-link:hover {
  border-color: rgba(91,164,255,0.65);
  color: rgba(175,215,255,0.98);
  background: var(--hover-bg);
}

/* ── Card 01: Cluster SVG ── */
.cl-edge { stroke-width: 1.2; fill: none; }
.cl-cross { stroke: rgba(58,142,246,0.18); }
.cl-a     { stroke: rgba(58,142,246,0.55); }
.cl-b     { stroke: rgba(91,164,255,0.55); }
.cl-c     { stroke: rgba(100,180,255,0.5); }

.cl-node       { stroke: none; }
.cl-node.cl-a  { fill: rgba(58,142,246,0.75); }
.cl-node.cl-b  { fill: rgba(91,164,255,0.75); }
.cl-node.cl-c  { fill: rgba(120,190,255,0.75); }
.cl-hub { animation: nodePulse 2.8s ease-in-out infinite; }
@keyframes nodePulse {
  0%, 100% { opacity: 0.75; r: var(--base-r, 7); }
  50%       { opacity: 1; filter: drop-shadow(0 0 5px rgba(91,164,255,0.8)); }
}
.cl-anchor { fill: rgba(91,164,255,0.85); animation: anchorPulse 2.4s ease-in-out infinite; }
@keyframes anchorPulse { 0%, 100% { opacity: 0.35; r: 2.5; } 50% { opacity: 1; r: 4.5; } }

/* Hub node compound animations */
.cl-hub.nw-2 { animation: nodePulse 2.8s ease-in-out infinite, nwobble2 3.8s 0.6s ease-in-out infinite; }
.cl-hub.nw-3 { animation: nodePulse 2.8s ease-in-out infinite, nwobble3 5.1s 1.2s ease-in-out infinite; }
.cl-hub.nw-4 { animation: nodePulse 2.8s ease-in-out infinite, nwobble4 4.6s 0.3s ease-in-out infinite; }

.nw-1, .nw-2, .nw-3, .nw-4 { transform-box: fill-box; transform-origin: center; }
.nw-1 { animation: nwobble1 4.2s ease-in-out infinite; }
.nw-2 { animation: nwobble2 3.8s 0.6s ease-in-out infinite; }
.nw-3 { animation: nwobble3 5.1s 1.2s ease-in-out infinite; }
.nw-4 { animation: nwobble4 4.6s 0.3s ease-in-out infinite; }

@keyframes nwobble1 { 0%,100%{transform:translate(0,0)} 25%{transform:translate(1.2px,-1px)} 75%{transform:translate(-1px,.8px)} }
@keyframes nwobble2 { 0%,100%{transform:translate(0,0)} 30%{transform:translate(-1.5px,.8px)} 70%{transform:translate(1px,-1.2px)} }
@keyframes nwobble3 { 0%,100%{transform:translate(0,0)} 40%{transform:translate(1px,1.5px)} 80%{transform:translate(-1.2px,-.8px)} }
@keyframes nwobble4 { 0%,100%{transform:translate(0,0)} 20%{transform:translate(-.8px,-1.5px)} 60%{transform:translate(1.2px,1px)} }

.cl-label { font-family: var(--font); font-size: 10px; font-weight: 500; fill: var(--muted); text-anchor: middle; }

/* ── Card 02: Report SVG ── */
.rep-doc       { fill: rgba(13,31,60,0.9); stroke: rgba(58,142,246,0.25); stroke-width: 1; }
.rep-title-bar { fill: rgba(58,142,246,0.35); }
.rep-divider   { stroke: rgba(58,142,246,0.18); stroke-width: 0.8; }
.rep-line      { fill: rgba(140,170,210,0.3); transform-origin: left center; transform: scaleX(0); }
.rep-line.rl-1 { fill: rgba(140,170,210,0.4); }
.rep-line.rl-4, .rep-line.rl-5, .rep-line.rl-6 { fill: rgba(140,170,210,0.22); }

.prod-card.visible .rep-line { animation: lineReveal 0.6s var(--ease) forwards; }
.prod-card.visible .rep-line.rl-1 { animation-delay: 0.15s; }
.prod-card.visible .rep-line.rl-2 { animation-delay: 0.25s; }
.prod-card.visible .rep-line.rl-3 { animation-delay: 0.32s; }
.prod-card.visible .rep-line.rl-4 { animation-delay: 0.42s; }
.prod-card.visible .rep-line.rl-5 { animation-delay: 0.50s; }
.prod-card.visible .rep-line.rl-6 { animation-delay: 0.57s; }
@keyframes lineReveal { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }

.rep-badge     { fill: rgba(58,142,246,0.18); stroke: rgba(58,142,246,0.3); stroke-width: 0.8; }
.rep-badge-txt { font-family: var(--font); font-size: 7.5px; font-weight: 500; fill: var(--blue-bright); text-anchor: middle; }
.rep-axis      { stroke: rgba(58,142,246,0.22); stroke-width: 0.8; }
.rep-axis-lbl  { font-family: var(--font); font-size: 8px; fill: var(--muted); text-anchor: middle; }
.rep-bar {
  fill: rgba(58,142,246,0.65); transform-box: fill-box;
  transform-origin: bottom; transform: scaleY(0);
  transition: transform 0.9s ease, opacity 0.9s ease; opacity: 0;
}

/* ── Card 03: Gauges ── */
.gauge-bg   { fill: none; stroke: rgba(58,142,246,0.12); stroke-width: 10; }
.gauge-fill { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.1s var(--ease); }
.gauge-val  { font-family: var(--font); font-size: 19px; font-weight: 700; fill: var(--white); text-anchor: middle; }
.gauge-sub  { font-family: var(--font); font-size: 11px; font-weight: 400; fill: var(--muted); text-anchor: middle; }
.gauge-lbl  { font-family: var(--font); font-size: 10px; font-weight: 500; fill: rgba(140,170,210,0.7); text-anchor: middle; }

/* ── Card 04: Notebook ── */
.nb-frame {
  width: 100%; max-width: 340px;
  background: rgba(6,14,28,0.95);
  border: 1px solid rgba(58,142,246,0.22); border-radius: 10px;
  overflow: hidden;
  font-family: "Cascadia Code","Fira Code","Consolas",monospace;
  font-size: 11.5px; line-height: 1.65;
}
.nb-topbar { background: rgba(10,22,40,0.95); border-bottom: 1px solid rgba(58,142,246,0.15); padding: 0.5rem 0.9rem; }
.nb-filename { font-size: 10px; font-weight: 500; color: var(--muted); font-family: var(--font); }
.nb-dots { gap: 5px; }
.nb-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(58,142,246,0.22); display: block; }
.nb-dots .nb-run { background: rgba(58,142,246,0.7); }
.nb-body { padding: 0.6rem 0; }
.nb-cell { padding: 0.3rem 0.9rem; gap: 0.6rem; align-items: flex-start; }
.nb-cell.nb-active { background: var(--hover-bg); border-left: 2px solid var(--blue-accent); }
.nb-out { padding: 0.15rem 0.9rem 0.4rem; gap: 0.6rem; font-size: 10.5px; color: rgba(140,170,210,0.8); align-items: flex-start; }
.nb-prompt { color: rgba(58,142,246,0.6); font-size: 10px; min-width: 26px; flex-shrink: 0; padding-top: 1px; }
.nb-out-prompt { color: transparent; }
.nb-lines { color: rgba(232,238,247,0.85); }
.nb-kw { color: #7dd3fc; } .nb-fn { color: #93c5fd; } .nb-str { color: #86efac; }
.nb-num { color: #fca5a5; } .nb-ok { color: #4ade80; margin-right: 4px; }
.nb-cursor { display: inline-block; color: var(--blue-bright); animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ════════════════════════════
       CÓMO TRABAJAMOS
   ════════════════════════════ */
#proceso { position: relative; overflow: hidden; padding: 90px 5% 110px; border-top: 1px solid var(--border); }
.proceso-mesh { opacity: 0.38; }
.proceso-inner { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; }
.proceso-header { max-width: 640px; margin-bottom: 3.5rem; }
#proceso .section-title {
  background: linear-gradient(100deg, #e8eef7 40%, rgba(120,185,255,0.85) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.proceso-intro { margin-top: 1rem; color: rgba(232,238,247,0.7); font-size: 0.95rem; line-height: 1.8; }

.proceso-pipeline { display: flex; flex-direction: row; align-items: stretch; gap: 0; }

.proceso-step { flex: 1; }
.proceso-step-inner {
  position: relative; height: 100%;
  display: flex; flex-direction: column; gap: 0.85rem;
  padding: 1.75rem 1.5rem;
  background: var(--card-bg-dk);
  border: 1px solid rgba(91,164,255,0.14); border-radius: 14px;
  box-shadow: 0 4px 28px rgba(0,0,0,0.28);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  cursor: default;
}
.proceso-step-inner::after {
  content: ""; position: absolute; inset: 0; border-radius: 14px;
  background: radial-gradient(ellipse at 50% 110%, rgba(58,142,246,0.12) 0%, transparent 65%);
  opacity: 0; transition: opacity 0.35s var(--ease); pointer-events: none;
}
.proceso-step-inner:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 52px rgba(0,0,0,0.38), 0 0 0 1px rgba(91,164,255,0.16), 0 8px 28px rgba(58,142,246,0.1);
}
.proceso-step-inner:hover::after { opacity: 1; }

.proceso-step-title {
  font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin: 0;
  padding-bottom: 0.8rem; border-bottom: 1px solid rgba(91,164,255,0.12);
  color: rgba(148,205,255,0.92); text-shadow: 0 0 18px rgba(91,164,255,0.28);
  transition: color 0.3s, text-shadow 0.3s;
}
.proceso-step-inner:hover .proceso-step-title {
  color: rgba(175,220,255,0.98); text-shadow: 0 0 24px rgba(91,164,255,0.45);
}
.proceso-step-desc {
  flex: 1; font-size: 0.875rem;
  color: rgba(232,238,247,0.65); line-height: 1.78; margin: 0;
}

/* Connectors */
.proceso-connector {
  flex: 0 0 56px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.45rem; padding: 0 2px;
}
.proceso-connector svg { width: 100%; height: 20px; overflow: visible; flex-shrink: 0; }
.proc-time { font-size: 0.7rem; font-weight: 500; color: rgba(91,164,255,0.55); white-space: nowrap; letter-spacing: 0.02em; }
.proc-line  { stroke: rgba(91,164,255,0.3); stroke-width: 1.5; stroke-dasharray: 4 3; }
.proc-arrow { fill: none; stroke: rgba(91,164,255,0.5); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.proceso-highlight {
  display: flex; align-items: center; justify-content: center;
  gap: 0.6rem; margin-top: 2.5rem; padding: 1rem 1.75rem;
  background: rgba(58,142,246,0.08);
  border: 1px solid rgba(91,164,255,0.22); border-radius: 12px;
  font-size: 0.95rem; color: rgba(232,238,247,0.75);
  text-align: center; box-shadow: 0 0 32px rgba(58,142,246,0.06);
}
.proceso-highlight strong { color: var(--white); font-weight: 600; }
.proceso-highlight-icon { display: flex; align-items: center; color: rgba(91,164,255,0.7); flex-shrink: 0; }

/* ════════════════════════════
       PARA QUIÉN
   ════════════════════════════ */
#para-quien { padding: 90px 5% 100px; border-top: 1px solid var(--border); background: var(--navy-mid); }

.pq-inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 3.5rem; }
.pq-header { max-width: 760px; }
#para-quien .section-title { margin: 0.5rem 0 1.1rem; }
.pq-intro { font-size: 0.93rem; color: var(--text-soft); line-height: 1.8; }

.pq-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.pq-card {
  background: var(--card-bg-dk);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: border-color 0.22s, background 0.22s, box-shadow 0.22s;
}
.pq-card:hover {
  border-color: rgba(91,164,255,0.28);
  background: var(--hover-bg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.22), 0 0 0 1px rgba(91,164,255,0.1);
  transform: translateY(-5px);
}

.pq-card-icon { width: 46px; height: 46px; border-radius: 11px; transition: background 0.22s, border-color 0.22s; }
.pq-card:hover .pq-card-icon { background: rgba(58,142,246,0.18); border-color: var(--border-hard); }
.pq-card-title { font-size: 0.95rem; font-weight: 700; color: var(--white); line-height: 1.3; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }

.pq-card-list { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.pq-card-list li { font-size: 0.82rem; color: var(--text-soft); line-height: 1.5; padding-left: 1.1rem; position: relative; }
.pq-card-list li::before {
  content: ""; position: absolute; left: 0; top: 0.52em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue-accent); opacity: 0.7;
}

/* Acompañamiento humano */
.pq-human {
  display: flex; align-items: flex-start; gap: 1.25rem;
  background: var(--hover-bg); border: 1px solid rgba(91,164,255,0.18);
  border-radius: 16px; padding: 1.75rem 2rem;
}
.pq-human-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(58,142,246,0.12); border: 1px solid rgba(91,164,255,0.22); color: var(--blue-bright); flex-shrink: 0; }
.pq-human-text { display: flex; flex-direction: column; gap: 0.45rem; }
.pq-human-heading { font-size: 0.95rem; font-weight: 700; color: rgba(175,220,255,0.95); }
.pq-human-desc { font-size: 0.85rem; color: rgba(232,238,247,0.68); line-height: 1.75; max-width: 680px; }

/* ════════════════════════════
       CIERRE COMERCIAL
   ════════════════════════════ */
#cierre {
  position: relative; overflow: hidden;
  padding: 120px 5% 130px;
  background: var(--navy);
  border-top: 1px solid var(--border);
  text-align: center;
}

.cierre-inner {
  position: relative; z-index: 1;
  max-width: 740px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  gap: 1.8rem;
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.cierre-inner.visible { opacity: 1; transform: translateY(0); }

.cierre-kicker { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-accent); }
.cierre-headline { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; color: var(--white); line-height: 1.15; letter-spacing: -0.03em; }
.cierre-body { font-size: 1.05rem; color: var(--text-soft); line-height: 1.85; max-width: 600px; }
.cierre-arrow {
  display: flex; color: rgba(91,164,255,0.5);
  margin-top: 1.5rem; text-decoration: none;
  transition: color 0.2s; animation: arrowBounce 2s ease-in-out infinite;
}
.cierre-arrow:hover { color: rgba(91,164,255,0.9); }
@keyframes arrowBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }

/* ════════════════════════════
       CONTACTO
   ════════════════════════════ */
#contacto {
  padding: 65px 5% 100px;
  background: var(--navy-mid);
  position: relative; overflow: hidden;
  border-top: 1px solid var(--border);
}
#contacto::before {
  content: ""; position: absolute;
  top: -30%; right: -10%; width: 45%; height: 80%;
  background: radial-gradient(ellipse, rgba(58,142,246,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.contact-inner {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.35fr;
  gap: 6rem; align-items: start;
  position: relative; z-index: 2;
}
.contact-info p:not(.section-label) {
  color: var(--muted); font-weight: 300;
  margin-top: 1rem; margin-bottom: 2rem;
  line-height: 1.75; font-size: 0.93rem;
}
.contact-detail { gap: 0.875rem; }
.contact-detail a {
  gap: 10px; color: var(--muted); text-decoration: none;
  font-size: 0.88rem; transition: color 0.2s;
}
.contact-detail a:hover { color: var(--blue-bright); }
.icon-wrap { width: 32px; height: 32px; border-radius: 8px; }

/* ── Form ── */
form { gap: 1rem; }
.form-group { gap: 0.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

label { font-size: 0.72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

input[type="text"],
input[type="email"],
select, textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--off-white); font-family: var(--font);
  font-size: 0.9rem; font-weight: 300;
  outline: none; width: 100%;
  transition: border-color 0.2s, background 0.2s;
}
input::placeholder, textarea::placeholder { color: rgba(138,163,200,0.4); }
input:focus, select:focus, textarea:focus { border-color: var(--blue-accent); background: rgba(58,142,246,0.05); }

select {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238aa3c8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 2.5rem;
}
select option { background: var(--navy-mid); color: var(--off-white); }
textarea { resize: vertical; min-height: 120px; }

.form-check { gap: 10px; align-items: flex-start; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; accent-color: var(--blue-accent); cursor: pointer; }
.form-check label { font-size: 0.78rem; text-transform: none; letter-spacing: 0; font-weight: 300; color: var(--muted); cursor: pointer; }
#form-message {
  margin-top: 1rem;
  padding: 0.9rem 1.25rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
}
#form-message.success {
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.25);
  color: #4ade80;
}
#form-message.error {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: #f87171;
}

/* ════════════════════════════
       FOOTER
   ════════════════════════════ */
footer { background: #060e1c; padding: 44px 5% 32px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-brand { margin-bottom: 2rem; }
.last-logo { height: 261px; width: auto; margin-top: 2.9rem; margin-left: 6rem;}
.footer-brand p { color: var(--muted); font-size: 0.84rem; font-weight: 300; line-height: 1.65; max-width: 340px; }
.footer-bottom { flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { color: var(--muted); font-size: 0.8rem; font-weight: 300; }
.social-links { gap: 0.75rem; }
.social-links a {
  width: 40px; height: 40px;
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--muted); text-decoration: none;
  font-size: 1rem; font-weight: 600;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.social-links a:hover { border-color: var(--blue-accent); color: var(--blue-accent); background: var(--blue-glow); }
.social-links svg{
  height: auto;
  width: 1.2rem;
}


/* ════════════════════════════
       MODAL
   ════════════════════════════ */
.pmod-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(2,8,20,0.92);
  backdrop-filter: blur(6px); padding: 1rem;
  opacity: 0; transition: opacity 0.25s var(--ease);
  pointer-events: none;
}
.pmod-overlay.pmod-open { opacity: 1; pointer-events: auto; }
.pmod-overlay[hidden] { display: none; }

.pmod-box {
  position: relative; display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
  background: rgba(6,15,32,0.98);
  border: 1px solid rgba(91,164,255,0.2); border-radius: 18px;
  padding: 0.4rem;
  max-width: min(92vw, 960px); width: fit-content;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(91,164,255,0.08);
  transform: translateY(12px); transition: transform 0.28s var(--ease);
}
.pmod-open .pmod-box { transform: translateY(0); }

.pmod-img {
  display: block; max-width: 100%; max-height: 82vh;
  width: auto; height: auto;
  border-radius: 16px; cursor: pointer; user-select: none;
}
.pmod-dots { display: flex; gap: 0.45rem; align-items: center; min-height: 10px; }
.pmod-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(91,164,255,0.28);
  border: none; cursor: pointer; padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.pmod-dot.pmod-dot-active { background: rgba(91,164,255,0.85); transform: scale(1.3); }

.pmod-box-video { padding: 0; overflow: hidden; }

.pmod-caption {
  margin: 0; align-self: stretch;
  padding: 0.8rem 1.25rem;
  font-family: var(--font);
  font-size: 0.95rem; font-weight: 500;
  line-height: 1.45; letter-spacing: 0.01em;
  color: var(--white); text-align: center;
  background: linear-gradient(180deg, rgba(91,164,255,0.10) 0%, rgba(91,164,255,0.04) 100%);
  border: 1px solid rgba(91,164,255,0.22);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  box-sizing: border-box;
}
.pmod-caption:empty { display: none; }
.pmod-caption-video { margin: 0 0.5rem 0.5rem; }
.vmod-wrap { position: relative; line-height: 0; }
.vmod-video {
  display: block; max-width: 100%; max-height: 82vh;
  width: auto; height: auto;
  border-radius: 18px; cursor: pointer;
}

/* ════════════════════════════
       RESPONSIVE
   ════════════════════════════ */
@media (max-width: 1100px) { nav ul { gap: 1.25rem; } }

@media (max-width: 960px) {
  nav { display: none; }
  .logo img { width: 100px; }
  .nav-toggle { display: flex; }
  .nav-dropdown { display: none; }
  .btn-cta-header { padding: 0.5rem 1rem; font-size: 0.8rem; }
  .tky-svg { width: 43px; }

  #hero { grid-template-columns: 1fr; }
  .hero-left  { order: 1; padding: 40px 5% 50px; align-items: center; }
  .hero-right { order: 2; padding: 0 5% 50px; justify-content: flex-start; }
  .hero-title { font-size: clamp(2.7rem, 5vw, 2.4rem); }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { justify-content: center; }

  .stats-video-row { grid-template-columns: 1fr; }
  #hero { padding-bottom: 0; }
  .hero-wave { display: none; }
  .valor-grid { grid-template-columns: 1fr; }

  .dif-inner { grid-template-columns: 1fr; grid-template-rows: none; column-gap: 0; row-gap: 2rem; }
  .dif-header, .dif-visual, .dif-items, .dif-close-banner { grid-column: 1; grid-row: auto; }
  .db-wrap { max-width: 420px; margin: 0 auto; }
  .dif-close-banner { padding: 2.5rem 1.5rem; }
  .dif-close-pillars { flex-direction: column; align-items: center; gap: 2rem; }
  .dif-pillar { flex: none; width: 100%; max-width: 240px; padding: 0; align-items: center; }
  .dif-pillar-icon { width: 52px; height: 52px; }
  .dif-close-text { font-size: 0.94rem; }

  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .last-logo { display: none; }

  .prod-grid { grid-template-columns: 1fr; }
  .prod-visual { height: 190px; }
  .nb-frame { font-size: 10.5px; }

  .proceso-pipeline { flex-direction: column; gap: 0; }
  .proceso-step { flex: none; margin-bottom: 1.25rem; }
  .proceso-connector { flex: 0 0 auto; flex-direction: column; align-items: center; justify-content: center; transform: none; padding: 0.4rem 0; margin-bottom: 1.25rem; }
  .proceso-connector svg { width: 20px; height: 20px; transform: rotate(90deg); overflow: visible; }
  .proc-time { margin-top: 0.3rem; }

  .pq-cards { grid-template-columns: 1fr; gap: 1rem; }
  .pq-human { flex-direction: column; gap: 1rem; padding: 1.4rem; }
}

@media (max-width: 600px) {
  #para-quien { padding: 70px 5% 80px; }
  .pmod-box { border-radius: 14px; }
  .pmod-img { max-height: 60vh; }
  .vmod-video { max-height: 60vh; border-radius: 14px; }
}
