/* =========================================================
   CONTROL DECK — Paneles horizontales premium
   ========================================================= */

#control-deck {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
#deck-track {
  display: flex;
  width: max-content;
  height: 100%;
  will-change: transform;
}
.panel {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 720px;
  flex-shrink: 0;
  overflow: hidden;
  padding: calc(var(--header-h) + 16px) clamp(24px, 5vw, 76px) 118px;
  display: flex;
  align-items: center;
}
.panel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(7,11,20,0.98) 0%, rgba(7,11,20,0.88) 34%, rgba(7,11,20,0.36) 70%, rgba(7,11,20,0.88) 100%),
    radial-gradient(ellipse at 25% 50%, rgba(227,43,32,0.12), transparent 42%),
    var(--panel-image, none),
    linear-gradient(130deg, #081323, #03060d 72%);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.panel-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 75%, rgba(227,43,32,0.17), transparent 28%),
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: auto, 80px 80px, 80px 80px;
  opacity: 0.45;
  mask-image: linear-gradient(90deg, black 0%, black 58%, transparent 100%);
}
.panel-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,11,20,0), rgba(7,11,20,0.88));
}
.panel-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(420px, 0.8fr) minmax(440px, 1.05fr);
  gap: clamp(38px, 5vw, 86px);
  align-items: center;
}
.panel-grid.wide { grid-template-columns: minmax(360px, 0.68fr) minmax(620px, 1.25fr); }
.panel-inner { max-width: 680px; }
.panel-index {
  display: block;
  margin-bottom: 16px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.panel-index b { color: var(--red-hot); font-weight: 600; }
.panel h1,
.panel h2 {
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.1vw, 5.7rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-wrap: balance;
}
.panel h1 em,
.panel h2 em {
  font-style: normal;
  color: var(--red-hot);
  text-shadow: 0 0 34px rgba(227,43,32,0.24);
}
.panel p.lede {
  max-width: 560px;
  margin-bottom: 30px;
  color: var(--text-secondary);
  font-size: clamp(0.98rem, 1.2vw, 1.18rem);
  line-height: 1.68;
}
.panel-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0 6px; }
.deck-stats {
  display: flex;
  gap: clamp(22px, 3.2vw, 48px);
  margin-top: 34px;
  flex-wrap: wrap;
}
.deck-stats.compact { gap: 26px; }
.deck-stat {
  min-width: 106px;
  padding-left: 16px;
  border-left: 1px solid var(--line-strong);
}
.deck-stat .num {
  font-family: var(--font-mono);
  font-size: clamp(1.45rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--text-primary);
}
.deck-stat .label {
  max-width: 140px;
  margin-top: 7px;
  color: var(--text-tertiary);
  font-size: 0.74rem;
  line-height: 1.35;
}
.panel-list { display: grid; gap: 13px; margin-top: 24px; }
.panel-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.5;
}
.panel-list li::before {
  content: '';
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: var(--red);
  box-shadow: 0 0 12px var(--red-glow);
  transform: translateY(-1px) rotate(45deg);
}
.panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--red);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: gap 0.28s var(--ease-soft), color 0.28s var(--ease-soft);
}
.panel-cta:hover { gap: 18px; color: var(--red-hot); }

/* Visual home */
.hero-command {
  position: relative;
  min-height: 540px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background:
    radial-gradient(circle at 54% 54%, rgba(227,43,32,0.18), transparent 20%),
    linear-gradient(140deg, rgba(18,33,59,0.88), rgba(8,14,26,0.58));
  box-shadow: 0 38px 100px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.12);
  overflow: hidden;
  transform-style: preserve-3d;
}
.hero-command::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--panel-image, none) center/cover;
  opacity: 0.38;
  mix-blend-mode: screen;
  filter: saturate(0.95) contrast(1.12);
}
.hero-command::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(4,7,14,0.68));
}
.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.38;
}
.hero-route {
  position: absolute;
  height: 1px;
  width: 72%;
  left: 14%;
  top: 45%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.82), var(--red), transparent);
  transform-origin: 18% 50%;
  filter: drop-shadow(0 0 10px rgba(227,43,32,0.5));
}
.route-one { transform: rotate(-22deg); animation: routeScan 3.2s linear infinite; }
.route-two { top: 57%; transform: rotate(18deg); animation: routeScan 4.4s linear infinite reverse; }
@keyframes routeScan {
  0% { clip-path: inset(0 100% 0 0); }
  48%, 100% { clip-path: inset(0 0 0 0); }
}
.origin-pulse {
  position: absolute;
  left: 27%;
  top: 55%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 10px rgba(227,43,32,0.12), 0 0 42px var(--red-glow);
  z-index: 2;
}
.origin-pulse::after {
  content: '';
  position: absolute;
  inset: -18px;
  border: 1px solid var(--red);
  border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
}
.floating-chip {
  position: absolute;
  z-index: 3;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(5, 10, 18, 0.66);
  backdrop-filter: blur(14px);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.chip-top { top: 28px; left: 28px; }
.chip-bottom { right: 26px; bottom: 28px; }

.ecosystem-stack { display: grid; gap: 16px; perspective: 1000px; }
.ecosystem-card,
.service-card,
.industry-card,
.lead-form {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(14,25,45,0.82), rgba(8,14,26,0.62));
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.ecosystem-card {
  min-height: 136px;
  padding: 28px;
  border-radius: 20px;
  transition: transform 0.32s var(--ease-soft), border-color 0.32s var(--ease-soft), background 0.32s var(--ease-soft);
}
.ecosystem-card:nth-child(2) { transform: translateX(42px); }
.ecosystem-card:nth-child(3) { transform: translateX(84px); }
.ecosystem-card:hover { border-color: rgba(227,43,32,0.65); background: linear-gradient(145deg, rgba(18,32,58,0.92), rgba(10,17,31,0.76)); }
.ecosystem-card:nth-child(2):hover { transform: translateX(42px) translateY(-5px); }
.ecosystem-card:nth-child(3):hover { transform: translateX(84px) translateY(-5px); }
.ecosystem-card span,
.service-card span {
  color: var(--red-hot);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
}
.ecosystem-card h3,
.service-card h3 {
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  line-height: 1.15;
  text-transform: uppercase;
}
.ecosystem-card p,
.service-card p { color: var(--text-secondary); line-height: 1.55; font-size: 0.92rem; }

.service-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.service-card {
  min-height: 190px;
  padding: 24px;
  border-radius: 18px;
  transition: transform 0.32s var(--ease-soft), border-color 0.32s var(--ease-soft), background 0.32s var(--ease-soft);
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(227,43,32,0.65);
  background: linear-gradient(145deg, rgba(18,32,58,0.92), rgba(10,17,31,0.78));
}

.industry-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.industry-card {
  position: relative;
  min-height: 180px;
  border-radius: 20px;
  padding: 22px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  transition: transform 0.34s var(--ease-soft), border-color 0.34s var(--ease-soft);
}
.industry-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--card-image, linear-gradient(135deg,#13233e,#07101e)) center/cover;
  filter: saturate(0.82) brightness(0.76);
  transition: transform 0.5s var(--ease-soft), filter 0.5s var(--ease-soft);
}
.industry-card::before {
  z-index: -1;
  opacity: 1;
  background: linear-gradient(180deg, transparent 10%, rgba(4,7,14,0.8) 100%), radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(227,43,32,0.22), transparent 40%);
}
.industry-card:hover { transform: translateY(-7px); border-color: rgba(227,43,32,0.58); }
.industry-card:hover::after { transform: scale(1.08); filter: saturate(1) brightness(0.86); }
.industry-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.dashboard-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  min-height: 520px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: rgba(8,14,26,0.74);
  backdrop-filter: blur(20px);
  overflow: hidden;
  box-shadow: 0 38px 100px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.09);
}
.dash-sidebar {
  padding: 28px 18px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(255,255,255,0.025);
}
.dash-sidebar b { font-family: var(--font-display); font-size: 0.9rem; }
.dash-sidebar span {
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}
.dash-sidebar span:nth-child(2) { color: var(--text-primary); border-color: var(--line); background: rgba(255,255,255,0.045); }
.dash-main { padding: 24px; display: grid; grid-template-rows: auto 1fr auto; gap: 16px; }
.dash-header { font-family: var(--font-mono); color: var(--text-secondary); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; }
.dash-map {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 65%, rgba(227,43,32,0.24), transparent 10%),
    radial-gradient(circle at 78% 31%, rgba(255,255,255,0.18), transparent 8%),
    linear-gradient(135deg, rgba(22,38,69,0.8), rgba(7,12,22,0.95));
}
.dash-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 38px 38px;
}
.dash-path {
  position: absolute;
  left: 18%;
  top: 58%;
  width: 64%;
  height: 1px;
  background: linear-gradient(90deg, var(--red), rgba(255,255,255,0.85), transparent);
  transform: rotate(-18deg);
  animation: routeScan 3.8s linear infinite;
}
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dash-kpis div {
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
}
.dash-kpis b { display: block; font-family: var(--font-mono); font-size: 1.6rem; margin-bottom: 4px; }
.dash-kpis span { color: var(--text-tertiary); font-size: 0.72rem; }

.contact-grid { grid-template-columns: minmax(390px, 0.8fr) minmax(420px, 0.88fr); }
.contact-points {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin-top: 26px;
}
.contact-points a,
.contact-points span {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.035);
}
.lead-form {
  padding: 28px;
  border-radius: 24px;
  display: grid;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px;
  color: var(--text-primary);
  background: rgba(4, 8, 15, 0.72);
  outline: none;
  transition: border-color 0.2s var(--ease-soft), background 0.2s var(--ease-soft), box-shadow 0.2s var(--ease-soft);
}
.lead-form textarea { resize: vertical; min-height: 112px; }
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: rgba(227,43,32,0.78);
  box-shadow: 0 0 0 4px rgba(227,43,32,0.11);
  background: rgba(5, 10, 18, 0.92);
}
.lead-form p { color: var(--text-tertiary); font-size: 0.78rem; line-height: 1.55; }

#scroll-hint {
  position: absolute;
  right: clamp(24px, 4vw, 56px);
  bottom: 128px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
#scroll-hint .hint-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--red), transparent);
}

#deck-controls {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 150;
  width: 100%;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  padding: 20px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: linear-gradient(to top, rgba(5,9,17,0.96), rgba(5,9,17,0.74));
  backdrop-filter: blur(16px);
}
.deck-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.035);
  transition: transform 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft), background 0.25s var(--ease-soft);
}
.deck-arrow:hover { transform: translateY(-2px); border-color: var(--red); background: rgba(227,43,32,0.1); }
.deck-arrow:disabled { opacity: 0.28; pointer-events: none; }
.deck-arrow svg { width: 18px; height: 18px; }
#deck-progress {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  position: relative;
}
#deck-progress::-webkit-scrollbar { display: none; }
#deck-progress::before {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.26) 0 3px, transparent 3px 9px);
  z-index: -1;
}
.deck-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(5, 9, 17, 0.86);
  transition: color 0.25s var(--ease-soft), background 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft);
}
.dot-num {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft), color 0.25s var(--ease-soft);
}
.dot-label { display: none; }
.deck-dot.is-active {
  color: var(--text-primary);
  background: rgba(227,43,32,0.08);
  outline: 1px solid rgba(227,43,32,0.45);
}
.deck-dot.is-active .dot-num { border-color: var(--red); background: var(--red); color: #fff; }
.deck-dot.is-active .dot-label { display: inline; }
@media (min-width: 920px) { .dot-label { display: inline; opacity: 0.68; } }

@media (max-width: 1180px) {
  .panel-grid,
  .panel-grid.wide { grid-template-columns: 1fr 1fr; gap: 38px; }
  .service-matrix, .industry-board { grid-template-columns: repeat(2, 1fr); }
  .dashboard-card { grid-template-columns: 135px 1fr; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  #control-deck { height: auto; overflow: visible; }
  #deck-track { display: block; width: 100%; height: auto; transform: none !important; }
  .panel {
    width: 100%;
    height: auto;
    min-height: 100svh;
    padding: 118px 22px 70px;
  }
  .panel-grid,
  .panel-grid.wide,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .panel h1,
  .panel h2 { font-size: clamp(2.05rem, 11vw, 3.6rem); }
  .panel p.lede { font-size: 0.98rem; }
  .hero-command { min-height: 360px; }
  .ecosystem-card:nth-child(2),
  .ecosystem-card:nth-child(3),
  .ecosystem-card:nth-child(2):hover,
  .ecosystem-card:nth-child(3):hover { transform: none; }
  .service-matrix, .industry-board, .form-row { grid-template-columns: 1fr; }
  .dashboard-card { grid-template-columns: 1fr; min-height: auto; }
  .dash-sidebar { display: none; }
  .dash-map { min-height: 240px; }
  .network-map { width: min(100%, 520px); margin: 0 auto; }
  #deck-controls, #scroll-hint { display: none; }
}
/* =========================================================
   HOME MAPA GLOBAL — Conexiones desde Ecuador
   ========================================================= */

.global-command-map {
  position: relative;
  overflow: hidden;
}

.global-command-map .floating-chip {
  z-index: 8;
}

.global-routes {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  overflow: visible;
}

.global-route {
  fill: none;
  stroke: rgba(227, 43, 32, 0.72);
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-dasharray: 9 11;
  filter: drop-shadow(0 0 8px rgba(227, 43, 32, 0.38));
  animation: impoex-route-flow 4.2s linear infinite;
}

.route-usa,
.route-china {
  stroke: rgba(210, 228, 255, 0.64);
  filter: drop-shadow(0 0 8px rgba(150, 190, 255, 0.25));
}

.route-corea {
  stroke: rgba(227, 43, 32, 0.58);
}

.route-brasil {
  stroke: rgba(255, 255, 255, 0.46);
}

.route-argentina {
  stroke: rgba(227, 43, 32, 0.7);
}

.global-routes .node-dot {
  fill: #e32b20;
  filter:
    drop-shadow(0 0 8px rgba(227, 43, 32, 0.8))
    drop-shadow(0 0 18px rgba(227, 43, 32, 0.42));
  animation: impoex-node-blink 2.4s ease-in-out infinite;
  animation-delay: var(--delay);
}

.global-routes .hub-dot {
  fill: #ff342b;
  filter:
    drop-shadow(0 0 10px rgba(255, 52, 43, 0.95))
    drop-shadow(0 0 30px rgba(255, 52, 43, 0.6));
}

.global-routes .node-pulse,
.global-routes .node-pulse-big {
  fill: none;
  stroke: rgba(227, 43, 32, 0.55);
  stroke-width: 1.15;
  transform-box: fill-box;
  transform-origin: center;
  animation: impoex-node-pulse 2.8s ease-out infinite;
  animation-delay: var(--delay);
}

.global-routes .node-pulse-big {
  stroke-width: 1.45;
  animation-duration: 3.9s;
}

.global-routes .country-node text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: rgba(244, 246, 250, 0.82);
  paint-order: stroke;
  stroke: rgba(5, 9, 17, 0.78);
  stroke-width: 3px;
  opacity: 0.88;
}

@keyframes impoex-route-flow {
  from { stroke-dashoffset: 110; }
  to { stroke-dashoffset: 0; }
}

@keyframes impoex-node-pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.35);
  }
  70% {
    opacity: 0.14;
  }
  100% {
    opacity: 0;
    transform: scale(1.95);
  }
}

@keyframes impoex-node-blink {
  0%, 100% { opacity: 0.95; }
  50% { opacity: 0.55; }
}

@media (max-width: 760px) {
  .global-routes .country-node text {
    font-size: 9px;
  }

  .global-route {
    stroke-width: 1.1;
  }
}

/* =========================================================
   PANEL CERTIFICACIONES / ALIANZAS
   ========================================================= */

.panel-certifications {
  position: relative;
  overflow: hidden;
}

.panel-certifications::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 30%, rgba(227,43,32,0.12), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(36,108,255,0.12), transparent 30%);
  pointer-events: none;
  z-index: 1;
}

.certifications-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(620px, 1.08fr);
  gap: clamp(34px, 4vw, 80px);
  align-items: center;
  width: 100%;
}

.certifications-copy h2 {
  margin: 18px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 4.5vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.certifications-copy h2 em {
  font-style: normal;
  color: var(--red);
  text-shadow: 0 0 34px rgba(227,43,32,0.26);
}

.certifications-copy .lede {
  max-width: 660px;
  color: var(--text-secondary);
}

.cert-highlights {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  max-width: 760px;
}

.cert-highlight-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cert-highlight-item span {
  width: 9px;
  height: 9px;
  min-width: 9px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 18px rgba(227,43,32,0.65);
}

.cert-highlight-item p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cert-highlight-item strong {
  color: var(--text-primary);
}

.cert-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
  max-width: 760px;
}

.cert-mini-stat {
  padding: 18px 16px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(13,21,38,0.84), rgba(8,13,24,0.64));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.cert-mini-stat strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 1.05rem;
  text-transform: uppercase;
}

.cert-mini-stat small {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Escenario derecho */
.certifications-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 26px);
  align-items: stretch;
  min-width: 0;
}

.cert-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: clamp(22px, 2vw, 28px);
  border-radius: 28px;
  background:
    linear-gradient(155deg, rgba(13,21,38,0.94), rgba(8,13,24,0.80));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 28px 90px rgba(0,0,0,0.32),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.cert-card-glow {
  position: absolute;
  inset: auto;
  width: 220px;
  height: 220px;
  top: -40px;
  right: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,120,255,0.24), transparent 65%);
  filter: blur(8px);
  pointer-events: none;
}

.cert-card-glow.is-red {
  background: radial-gradient(circle, rgba(227,43,32,0.24), transparent 65%);
}

.cert-card-head {
  position: relative;
  z-index: 2;
  margin-bottom: 18px;
}

.cert-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.1);
}

.cert-chip.is-blue {
  color: #8fc1ff;
  background: rgba(36,108,255,0.12);
  border-color: rgba(36,108,255,0.24);
}

.cert-chip.is-red {
  color: #ff9e98;
  background: rgba(227,43,32,0.12);
  border-color: rgba(227,43,32,0.24);
}

.cert-card-head h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.05;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.cert-logo-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 18px;
  overflow: hidden;
}

.cert-logo-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.08), transparent 58%);
  opacity: 0.8;
}

.cert-logo {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
}

.cert-logo-pangea {
  width: min(100%, 250px);
}

.cert-logo-basc {
  width: min(100%, 110px);
}

.logo-float {
  animation: certFloat 4.2s ease-in-out infinite;
}

.pangea-logo-wrap:hover .cert-logo-pangea {
  transform: scale(1.04);
}

.cert-card-copy {
  position: relative;
  z-index: 2;
  margin: 0 0 18px;
  color: var(--text-secondary);
  line-height: 1.62;
}

.cert-card-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cert-card-footer span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =========================================================
   CERTIFICACIONES SIMPLE — Pangea + BASC
   Responsive premium IMPOEX
   ========================================================= */

.panel-certifications-simple,
.panel-certifications-simple * {
  box-sizing: border-box;
  min-width: 0;
}

.panel-certifications-simple {
  position: relative;
  overflow: hidden;
}

.panel-certifications-simple::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(227, 43, 32, 0.16), transparent 30%),
    radial-gradient(circle at 82% 24%, rgba(72, 120, 255, 0.12), transparent 34%),
    linear-gradient(90deg, rgba(5, 9, 17, 0.86), rgba(5, 9, 17, 0.42), rgba(5, 9, 17, 0.82));
}

/* Layout principal */
.cert-simple-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(560px, 1.1fr);
  gap: clamp(32px, 5vw, 86px);
  align-items: center;
}

/* Texto */
.cert-simple-copy h2 {
  margin: 18px 0 24px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.cert-simple-copy h2 em {
  font-style: normal;
  color: var(--red);
  text-shadow: 0 0 34px rgba(227, 43, 32, 0.28);
}

.cert-simple-copy .lede {
  max-width: 720px;
  color: var(--text-secondary);
  font-size: clamp(0.98rem, 1.12vw, 1.16rem);
  line-height: 1.62;
}

/* Puntos */
.cert-simple-points {
  display: grid;
  gap: 16px;
  margin-top: 34px;
  max-width: 760px;
}

.cert-simple-points article {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(13, 21, 38, 0.86), rgba(8, 13, 24, 0.68));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 24px 70px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
}

.cert-simple-points article::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 30%, rgba(227, 43, 32, 0.18), transparent 34%);
  opacity: 0;
  transition: opacity 0.35s var(--ease-soft);
}

.cert-simple-points article:hover::before {
  opacity: 1;
}

.cert-simple-points article > span {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(227, 43, 32, 0.12);
  border: 1px solid rgba(227, 43, 32, 0.28);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
}

.cert-simple-points h3,
.cert-simple-points p {
  position: relative;
  z-index: 2;
}

.cert-simple-points h3 {
  margin: 2px 0 8px;
  color: var(--text-primary);
  font-size: clamp(1rem, 1.25vw, 1.28rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.cert-simple-points p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
  font-size: 0.96rem;
}

/* Tags */
.cert-simple-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.cert-simple-tags span {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Visual derecha */
.cert-simple-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  align-items: stretch;
}

.cert-simple-box {
  position: relative;
  min-height: clamp(420px, 54vh, 590px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 2.3vw, 34px);
  border-radius: 34px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(155deg, rgba(13, 21, 38, 0.94), rgba(8, 13, 24, 0.78));
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow:
    0 34px 100px rgba(0,0,0,0.36),
    inset 0 1px 0 rgba(255,255,255,0.07);
  transition:
    transform 0.45s var(--ease-soft),
    border-color 0.45s var(--ease-soft),
    box-shadow 0.45s var(--ease-soft);
}

.cert-simple-box::before {
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 18%, rgba(255,255,255,0.12), transparent 28%),
    radial-gradient(circle at 30% 82%, rgba(227,43,32,0.16), transparent 34%);
  opacity: 0.7;
}

.cert-box-pangea::before {
  background:
    radial-gradient(circle at 70% 18%, rgba(70, 130, 255, 0.22), transparent 32%),
    radial-gradient(circle at 30% 82%, rgba(255,255,255,0.07), transparent 34%);
}

.cert-box-basc::before {
  background:
    radial-gradient(circle at 70% 18%, rgba(227,43,32,0.24), transparent 32%),
    radial-gradient(circle at 30% 82%, rgba(255,255,255,0.07), transparent 34%);
}

.cert-simple-box:hover {
  transform: translateY(-7px);
  border-color: rgba(227,43,32,0.38);
  box-shadow:
    0 42px 120px rgba(0,0,0,0.48),
    0 0 46px rgba(227,43,32,0.12);
}

/* Header box */
.cert-box-header {
  position: relative;
  z-index: 2;
}

.cert-box-header span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(227,43,32,0.1);
  border: 1px solid rgba(227,43,32,0.24);
  color: #ff9e98;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cert-box-header strong {
  display: block;
  color: var(--text-primary);
  font-size: clamp(1.6rem, 2.4vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

/* Logo Pangea */
.cert-box-logo {
  position: relative;
  z-index: 2;
  min-height: clamp(160px, 24vh, 240px);
  display: grid;
  place-items: center;
  padding: 26px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.1);
  animation: certBoxFloat 4.3s ease-in-out infinite;
}

.cert-box-logo img {
  max-width: min(100%, 300px);
  max-height: 170px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 22px rgba(255,255,255,0.12))
    drop-shadow(0 0 34px rgba(70,130,255,0.14));
}

/* Certificado BASC */
.cert-box-certificate {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, #7a4524, #c17a43, #87502d);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.36),
    inset 0 2px 0 rgba(255,255,255,0.16);
  animation: certBoxFloat 4.3s ease-in-out infinite;
  animation-delay: 0.35s;
}

.cert-box-certificate::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 58%;
  height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-18deg);
  transition: left 0.9s var(--ease-soft);
}

.cert-simple-box:hover .cert-box-certificate::after {
  left: 140%;
}

.cert-box-certificate img {
  width: 100%;
  height: clamp(220px, 32vh, 340px);
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  background: #fff;
}

/* Footer box */
.cert-simple-box small {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 20px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  line-height: 1.45;
  text-transform: uppercase;
}

@keyframes certBoxFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

/* =========================================================
   RESPONSIVE TOTAL
   ========================================================= */

/* Desktop dentro del deck */
@media (min-width: 1081px) {
  .panel-certifications-simple {
    height: 100vh !important;
    min-height: 100vh !important;
    padding:
      clamp(96px, 11vh, 126px)
      clamp(24px, 4vw, 76px)
      clamp(102px, 12vh, 132px) !important;
    display: flex !important;
    align-items: center !important;
  }
}

/* Laptop pequeña */
@media (min-width: 1081px) and (max-width: 1450px) {
  .cert-simple-grid {
    grid-template-columns: minmax(330px, 0.84fr) minmax(560px, 1.16fr);
    gap: 30px;
  }

  .cert-simple-copy h2 {
    font-size: clamp(2rem, 3.7vw, 4.1rem);
  }

  .cert-simple-points {
    gap: 11px;
    margin-top: 22px;
  }

  .cert-simple-points article {
    padding: 15px;
  }

  .cert-simple-points p {
    font-size: 0.84rem;
    line-height: 1.42;
  }

  .cert-simple-tags {
    margin-top: 20px;
  }

  .cert-simple-box {
    min-height: clamp(370px, 50vh, 500px);
    padding: 22px;
  }

  .cert-box-header strong {
    font-size: clamp(1.35rem, 2.1vw, 2.2rem);
  }
}

/* Pantallas bajitas */
@media (min-width: 1081px) and (max-height: 820px) {
  .panel-certifications-simple {
    padding-top: 88px !important;
    padding-bottom: 112px !important;
    align-items: flex-start !important;
  }

  .cert-simple-copy h2 {
    font-size: clamp(1.9rem, 3.25vw, 3.5rem);
    margin-bottom: 12px;
  }

  .cert-simple-copy .lede {
    font-size: 0.84rem;
    line-height: 1.38;
  }

  .cert-simple-points {
    margin-top: 16px;
    gap: 8px;
  }

  .cert-simple-points article {
    padding: 12px;
    grid-template-columns: 38px 1fr;
  }

  .cert-simple-points article > span {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .cert-simple-points h3 {
    font-size: 0.9rem;
    margin-bottom: 4px;
  }

  .cert-simple-points p {
    font-size: 0.74rem;
    line-height: 1.34;
  }

  .cert-simple-tags {
    display: none;
  }

  .cert-simple-box {
    min-height: 390px;
    padding: 18px;
  }

  .cert-box-logo {
    min-height: 130px;
  }

  .cert-box-logo img {
    max-height: 120px;
  }

  .cert-box-certificate img {
    height: 210px;
  }

  .cert-simple-box small {
    font-size: 0.58rem;
  }
}

/* Tablet: una columna */
@media (max-width: 1080px) {
  .panel-certifications-simple {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    padding: 108px 22px 86px !important;
    display: block !important;
  }

  .cert-simple-grid {
    grid-template-columns: 1fr;
    max-width: 860px;
  }

  .cert-simple-visual {
    grid-template-columns: 1fr;
  }

  .cert-simple-box {
    min-height: auto;
  }

  .cert-box-logo {
    min-height: 190px;
  }

  .cert-box-certificate img {
    height: 320px;
  }
}

/* Celular */
@media (max-width: 680px) {
  .panel-certifications-simple {
    padding: 96px 18px 74px !important;
  }

  .cert-simple-copy h2 {
    font-size: clamp(2rem, 11vw, 3.1rem);
    line-height: 1;
  }

  .cert-simple-copy .lede {
    font-size: 0.94rem;
  }

  .cert-simple-points article {
    grid-template-columns: 1fr;
  }

  .cert-simple-points article > span {
    width: 42px;
    height: 42px;
  }

  .cert-simple-tags {
    gap: 8px;
  }

  .cert-simple-box {
    padding: 20px;
    border-radius: 24px;
  }

  .cert-box-header strong {
    font-size: 1.55rem;
  }

  .cert-box-logo {
    min-height: 150px;
  }

  .cert-box-logo img {
    max-height: 120px;
  }

  .cert-box-certificate img {
    height: 230px;
  }
}

/* Celular muy pequeño */
@media (max-width: 380px) {
  .panel-certifications-simple {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .cert-simple-copy h2 {
    font-size: clamp(1.75rem, 10vw, 2.55rem);
  }

  .cert-simple-box {
    padding: 16px;
  }

  .cert-box-certificate img {
    height: 190px;
  }
}