/* ============================================================
   UNIKAL TECH × MasOrange — Space Pitch
   css/styles.css  —  v2 CORPORATIVO
   
   PALETA:
   Primarios:   #FFFFFF (blanco)  |  #00A89C (turquesa)  |  #0E1111 (negro tech)
   Secundarios: #00302C (verde)   |  #7CB6B2 (aguamarina) |  #CFCECE (gris)
   
   TIPOGRAFÍA: Raleway (Google) — fallback Verdana
   ============================================================ */

/* ── 1. VARIABLES Y RESET ────────────────────────────────── */
:root {
  /* Corporativos */
  --teal:      #00A89C;
  --teal-dark: #007A72;
  --teal-glow: rgba(0,168,156,0.35);
  --green-dk:  #00302C;
  --aqua:      #7CB6B2;
  --black:     #0E1111;
  --black2:    #141818;
  --black3:    #1A1F1F;
  --white:     #FFFFFF;
  --gray:      #CFCECE;
  --gray-dk:   #8A9090;
  
  /* Acento retro (para efectos de juego, mínimo) */
  --accent:    #00A89C;
  --accent2:   #7CB6B2;
  --warn:      #E8A020;
  --danger:    #C0392B;
  --success:   #00A89C;

  /* Tipografía */
  --font-title: 'Raleway', Verdana, sans-serif;
  --font-body:  'Raleway', Verdana, sans-serif;
  --font-mono:  'Courier New', monospace;
}

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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  /* Cursor oculto — se usa nave SVG personalizada vía JS */
  cursor: none;
}

/* ── 2. CURSOR NAVE PERSONALIZADO ────────────────────────── */
/* El cursor real es ocultado; un div #ship-cursor sigue al ratón */
#ship-cursor {
  position: fixed;
  width: 36px;
  height: 46px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -60%);
  transition: transform 0.05s linear;
  filter: drop-shadow(0 0 6px var(--teal));
}

#ship-cursor svg {
  width: 100%;
  height: 100%;
}

/* Disparo del cursor */
.cursor-bullet {
  position: fixed;
  width: 3px;
  height: 18px;
  background: linear-gradient(to top, var(--teal), #fff);
  border-radius: 2px;
  pointer-events: none;
  z-index: 9998;
  box-shadow: 0 0 8px var(--teal);
  animation: cursorBulletFly 0.45s ease-out forwards;
}

@keyframes cursorBulletFly {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-180px); }
}

/* Impacto al disparar */
.cursor-impact {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,168,156,0.8) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  animation: impactBurst 0.35s ease-out forwards;
}

@keyframes impactBurst {
  0%   { opacity: 1; transform: translate(-50%,-50%) scale(0.3); }
  60%  { opacity: 0.8; transform: translate(-50%,-50%) scale(1.4); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(2); }
}

/* ── 3. CANVAS ESTRELLADO ────────────────────────────────── */
#game-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── 4. PANTALLA DE INTRO ────────────────────────────────── */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

#intro-screen {
  background: radial-gradient(ellipse at 40% 60%, #001a18 0%, var(--black) 65%);
  flex-direction: column;
  cursor: none;
}

.intro-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: fadeUp 1.1s cubic-bezier(0.22,1,0.36,1) both;
  pointer-events: none;
}

.intro-content .intro-start { pointer-events: all; }

/* Logos en intro */
.logos-combo {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.logo-unikal-img {
  height: 46px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
}

.logo-x {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 300;
  color: var(--aqua);
  opacity: 0.7;
}

.logo-masorange { width: 160px; height: 50px; }

/* Separador decorativo */
.intro-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--teal), transparent);
}

.intro-title {
  font-family: var(--font-title);
  font-size: clamp(22px, 5.5vw, 48px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: 6px;
  text-transform: uppercase;
  line-height: 1.1;
}

.intro-title .highlight {
  color: var(--teal);
}

.intro-sub {
  font-family: var(--font-title);
  font-size: clamp(9px, 1.6vw, 13px);
  font-weight: 500;
  color: var(--aqua);
  letter-spacing: 4px;
  text-transform: uppercase;
}

.intro-sub2 {
  font-size: clamp(8px, 1.3vw, 11px);
  font-weight: 400;
  color: var(--gray-dk);
  letter-spacing: 2px;
}

.intro-start {
  font-family: var(--font-title);
  font-size: clamp(9px, 1.5vw, 12px);
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid var(--teal);
  border-radius: 2px;
  background: rgba(0,168,156,0.06);
  cursor: none;
  transition: background 0.25s, box-shadow 0.25s;
  animation: blink-border 2s ease-in-out infinite;
}

.intro-start:hover {
  background: rgba(0,168,156,0.14);
  box-shadow: 0 0 24px rgba(0,168,156,0.25);
}

@keyframes blink-border {
  0%,100% { border-color: var(--teal); box-shadow: none; }
  50%     { border-color: var(--aqua); box-shadow: 0 0 18px rgba(0,168,156,0.2); }
}

.intro-credits {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: clamp(7px, 1.2vw, 9px);
  color: var(--gray-dk);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.intro-credits span::before {
  content: '—  ';
  color: var(--teal);
}

/* ── 5. HUD ──────────────────────────────────────────────── */
#hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  background: rgba(14,17,17,0.95);
  border-bottom: 1px solid rgba(0,168,156,0.25);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 50;
  font-family: var(--font-title);
}

/* Logo en HUD */
.hud-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

.hud-left, .hud-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
}

.hud-right { justify-content: flex-end; }

.hud-label {
  font-size: 8px;
  font-weight: 600;
  color: var(--gray-dk);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hud-sep { color: rgba(207,206,206,0.3); }

#hud-phase {
  font-size: 20px;
  font-weight: 800;
  color: var(--teal);
}

#hud-score {
  font-size: 13px;
  font-weight: 700;
  color: var(--aqua);
  transition: color 0.3s, transform 0.3s;
}

.hud-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.hud-ship-track {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 24px;
  display: flex;
  align-items: center;
}

.hud-planets {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.hud-planets .hp {
  font-size: 9px;
  color: rgba(207,206,206,0.3);
  transition: color 0.3s;
}

.hud-planets .hp.visited { color: rgba(0,168,156,0.5); }
.hud-planets .hp.current {
  color: var(--teal);
  text-shadow: 0 0 8px var(--teal);
  animation: pulseDot 1.2s ease-in-out infinite;
}

#hud-ship-dot {
  position: absolute;
  top: 50%;
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--teal);
  transform: translateY(-50%);
  transition: left 0.55s cubic-bezier(0.68,-0.55,0.265,1.55);
}

/* Track line */
.hud-ship-track::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: rgba(0,168,156,0.15);
  transform: translateY(-50%);
  z-index: 0;
}

/* ── 6. SISTEMA DE FASES ─────────────────────────────────── */
#phases-container {
  position: fixed;
  inset: 0;
  z-index: 10;
}

.phase {
  position: absolute;
  inset: 0;
  top: 52px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: phaseIn 0.6s cubic-bezier(0.22,1,0.36,1) both;
}

.phase.hidden { display: none; }

/* Fondo por fase */
.phase-bg {
  position: absolute;
  inset: 0;
  opacity: 1;
}

.phase-bg-1 {
  background:
    radial-gradient(ellipse at 15% 80%, rgba(0,48,44,0.6) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(0,168,156,0.08) 0%, transparent 50%),
    var(--black);
}
.phase-bg-2 {
  background:
    radial-gradient(ellipse at 80% 70%, rgba(0,48,44,0.5) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 30%, rgba(0,168,156,0.06) 0%, transparent 45%),
    var(--black);
}
.phase-bg-3 {
  background:
    radial-gradient(ellipse at 50% 90%, rgba(0,168,156,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 10%, rgba(0,48,44,0.4) 0%, transparent 45%),
    var(--black);
}
.phase-bg-4 {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0,48,44,0.55) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 80%, rgba(0,168,156,0.07) 0%, transparent 45%),
    var(--black);
}
.phase-bg-5 {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(0,168,156,0.09) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(0,48,44,0.45) 0%, transparent 50%),
    var(--black);
}
.phase-bg-6 {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0,48,44,0.7) 0%, transparent 60%),
    radial-gradient(ellipse at 90% 90%, rgba(0,168,156,0.12) 0%, transparent 40%),
    var(--black);
}
.phase-bg-7, .phase-bg-8, .phase-bg-9 { background: var(--black); }
.phase-bg-7 { background: radial-gradient(ellipse at 60% 60%, rgba(0,168,156,0.08) 0%, transparent 50%), var(--black); }
.phase-bg-8 { background: radial-gradient(ellipse at 30% 40%, rgba(0,48,44,0.5) 0%, transparent 55%), var(--black); }
.phase-bg-9 {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(0,168,156,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(0,48,44,0.5) 0%, transparent 50%),
    var(--black);
}

.phase-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 36px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--teal) transparent;
}

.phase-inner::-webkit-scrollbar { width: 3px; }
.phase-inner::-webkit-scrollbar-thumb { background: rgba(0,168,156,0.4); border-radius: 2px; }

/* ── 7. NAVE ESTÁTICA EN FASE (decorativa, esquina) ─────── */
/* La nave del jugador ahora ES el cursor, no un elemento fijo */
/* Mantenemos una mini-nave decorativa en header de cada fase */
.phase-ship-deco {
  position: absolute;
  top: 18px;
  right: 28px;
  width: 32px;
  opacity: 0.25;
  pointer-events: none;
  animation: shipHover 4s ease-in-out infinite;
  z-index: 3;
}

/* ── 8. CONTENIDO DE SLIDES ──────────────────────────────── */
.slide-content {
  max-width: 940px;
  margin: 0 auto;
  padding-bottom: 16px;
}

/* Cabecera de slide: line + title */
.slide-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.slide-header-line {
  width: 3px;
  height: 44px;
  background: linear-gradient(to bottom, var(--teal), var(--green-dk));
  border-radius: 2px;
  flex-shrink: 0;
}

.slide-title {
  font-family: var(--font-title);
  font-size: clamp(16px, 3vw, 28px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.subtitle-accent {
  display: block;
  font-size: 0.65em;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 3px;
  margin-top: 2px;
}

.slide-desc {
  font-size: clamp(9px, 1.4vw, 11px);
  font-weight: 500;
  color: var(--gray-dk);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* Bullets */
.slide-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 14px 0;
}

.slide-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: clamp(10px, 1.5vw, 13px);
  font-weight: 400;
  color: var(--gray);
  background: rgba(0,168,156,0.04);
  border-left: 2px solid rgba(0,168,156,0.3);
  border-radius: 0 3px 3px 0;
  padding: 9px 14px;
  line-height: 1.5;
  transition: border-color 0.2s, background 0.2s;
}

.slide-bullets li:hover {
  border-color: var(--teal);
  background: rgba(0,168,156,0.08);
}

.slide-bullets li strong { color: var(--white); font-weight: 700; }
.bullet-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }

/* Logos en Fase 1 */
.slide-logos {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.sl-logo-unikal-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.sl-logo-masorange { width: 160px; height: 50px; }
.slide-x {
  font-size: 16px;
  font-weight: 300;
  color: rgba(207,206,206,0.4);
}

/* Speech bubble */
.speech-bubble {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(0,48,44,0.35);
  border: 1px solid rgba(0,168,156,0.2);
  border-radius: 4px;
  padding: 14px 16px;
  margin-top: 14px;
}

.speech-avatar {
  font-size: 22px;
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: rgba(0,168,156,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0,168,156,0.3);
}

.speech-text {
  font-size: clamp(9px, 1.35vw, 11px);
  font-weight: 400;
  color: var(--gray-dk);
  line-height: 1.7;
}

.speech-text strong {
  display: block;
  font-size: clamp(8px, 1.2vw, 10px);
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* ── 9. COMPONENTES POR FASE ─────────────────────────────── */

/* FASE 2 — Pilares */
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.pilar-card {
  background: rgba(14,17,17,0.8);
  border: 1px solid rgba(0,168,156,0.15);
  border-radius: 3px;
  padding: 16px;
  transition: border-color 0.25s, transform 0.25s;
}

.pilar-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.pilar-icon { font-size: 24px; margin-bottom: 10px; }

.pilar-card h3 {
  font-size: clamp(9px, 1.3vw, 11px);
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pilar-card ul { list-style: none; }
.pilar-card ul li {
  font-size: clamp(8px, 1.2vw, 10px);
  color: var(--gray-dk);
  padding: 2px 0;
  font-weight: 400;
}

/* Métricas */
.metrics-bar {
  display: flex;
  gap: 0;
  justify-content: stretch;
  margin: 16px 0;
  border: 1px solid rgba(0,168,156,0.2);
  border-radius: 3px;
  overflow: hidden;
}

.metric-item {
  flex: 1;
  text-align: center;
  padding: 14px 10px;
  background: rgba(0,48,44,0.25);
  border-right: 1px solid rgba(0,168,156,0.15);
}

.metric-item:last-child { border-right: none; }

.metric-num {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  color: var(--teal);
  display: inline-block;
}

.metric-unit {
  font-size: clamp(12px, 1.8vw, 16px);
  font-weight: 600;
  color: var(--aqua);
  margin-left: 2px;
}

.metric-label {
  font-size: clamp(7px, 1.1vw, 9px);
  color: var(--gray-dk);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* FASE 3 — Servicios Orbes */
.services-galaxy {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 14px 0;
  padding: 18px;
  background: rgba(0,48,44,0.15);
  border: 1px solid rgba(0,168,156,0.12);
  border-radius: 4px;
}

.service-orb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 78px;
  cursor: none;
  transition: transform 0.25s;
}

.service-orb:hover { transform: translateY(-4px); }

.orb-icon {
  width: 52px; height: 52px;
  background: rgba(0,168,156,0.08);
  border: 1px solid rgba(0,168,156,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  transition: border-color 0.25s, background 0.25s;
}

.service-orb:hover .orb-icon {
  border-color: var(--teal);
  background: rgba(0,168,156,0.15);
}

.service-orb span {
  font-size: clamp(7px, 1.1vw, 9px);
  font-weight: 600;
  color: var(--gray-dk);
  text-align: center;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* FASE 4 — Superpoderes */
.superpowers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.superpower-card {
  background: rgba(14,17,17,0.85);
  border: 1px solid rgba(0,168,156,0.18);
  border-radius: 3px;
  padding: 18px;
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}

.superpower-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
}

.sp-badge {
  position: absolute;
  top: 12px; right: 14px;
  font-size: 28px;
  font-weight: 900;
  color: rgba(0,168,156,0.07);
  font-family: var(--font-title);
}

.sp-icon { font-size: 28px; margin-bottom: 10px; }

.superpower-card h3 {
  font-size: clamp(9px, 1.3vw, 11px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.superpower-card p {
  font-size: clamp(9px, 1.3vw, 11px);
  color: var(--gray-dk);
  line-height: 1.65;
  margin-bottom: 10px;
}

.sp-stat {
  font-size: clamp(8px, 1.2vw, 10px);
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* VS Banner */
.vs-banner {
  background: rgba(0,48,44,0.2);
  border: 1px solid rgba(0,168,156,0.15);
  border-radius: 3px;
  padding: 14px 16px;
  margin: 12px 0;
}

.vs-label {
  font-size: clamp(8px, 1.2vw, 10px);
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.vs-bars { display: flex; flex-direction: column; gap: 8px; }
.vs-row  { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.vs-cat {
  font-size: clamp(8px, 1.2vw, 10px);
  color: var(--gray-dk);
  min-width: 120px;
  font-weight: 500;
}

.vs-bar-wrap { display: flex; flex-direction: column; gap: 4px; flex: 1; }

.vs-bar {
  height: 20px;
  border-radius: 2px;
  display: flex; align-items: center;
  padding: 0 10px;
  font-size: clamp(7px, 1.1vw, 9px);
  font-weight: 600;
  font-family: var(--font-title);
  letter-spacing: 0.5px;
  animation: barGrow 1.4s cubic-bezier(0.22,1,0.36,1) both;
}

.unikal-bar { background: linear-gradient(to right, var(--teal), var(--aqua)); color: var(--black); }
.comp-bar   { background: rgba(207,206,206,0.1); color: var(--gray-dk); }

/* FASE 5 — Casos */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.case-card {
  background: rgba(14,17,17,0.85);
  border: 1px solid rgba(0,168,156,0.15);
  border-radius: 3px;
  padding: 15px;
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}

.case-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.case-sector {
  font-size: clamp(8px, 1.2vw, 10px);
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.case-card h3 {
  font-size: clamp(9px, 1.3vw, 11px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.4;
}

.case-card ul { list-style: none; }
.case-card ul li {
  font-size: clamp(8px, 1.2vw, 10px);
  color: var(--gray-dk);
  padding: 3px 0;
  line-height: 1.5;
}

.case-badge {
  position: absolute;
  top: 10px; right: 10px;
  font-size: clamp(6px, 1vw, 8px);
  font-weight: 700;
  color: var(--teal);
  background: rgba(0,168,156,0.08);
  border: 1px solid rgba(0,168,156,0.25);
  border-radius: 2px;
  padding: 3px 7px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* FASE 6 — WOW */
.wow-phase { padding-bottom: 8px; }
.wow-header { margin-bottom: 10px; }

.wow-badge {
  font-size: clamp(9px, 1.5vw, 12px);
  font-weight: 800;
  color: var(--teal);
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 1px solid rgba(0,168,156,0.4);
  border-radius: 2px;
  padding: 4px 14px;
  display: inline-block;
  margin-bottom: 8px;
  animation: wowPulse 1.5s ease-in-out infinite alternate;
}

.wow-game-container {
  display: flex;
  gap: 12px;
  height: clamp(160px, 28vh, 240px);
  margin: 10px 0;
}

.wow-game-area {
  flex: 1;
  background: rgba(0,48,44,0.2);
  border: 1px solid rgba(0,168,156,0.3);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  cursor: none;
}

.wow-game-score {
  position: absolute;
  top: 8px; left: 12px;
  font-size: clamp(7px, 1.2vw, 10px);
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 10;
}

.wow-defender {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  transition: left 0.08s linear;
  pointer-events: none;
}

.wow-shield-bar {
  position: absolute;
  bottom: 8px; left: 12px; right: 12px;
}

.wow-shield-label {
  font-size: clamp(6px, 1vw, 8px);
  font-weight: 600;
  color: var(--aqua);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.wow-shield-track {
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  overflow: hidden;
}

.wow-shield-fill {
  height: 100%;
  background: linear-gradient(to right, var(--teal), var(--aqua));
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
}

.asteroid {
  position: absolute;
  border-radius: 50%;
  animation: asteroidFall linear forwards;
  cursor: none;
  z-index: 4;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}

.bullet {
  position: absolute;
  width: 3px; height: 14px;
  background: linear-gradient(to top, var(--teal), #fff);
  border-radius: 2px;
  animation: bulletUp 0.55s linear forwards;
  z-index: 6;
  box-shadow: 0 0 6px var(--teal);
}

/* Copilot Panel */
.wow-copilot-panel {
  width: clamp(155px, 27%, 215px);
  background: rgba(14,17,17,0.9);
  border: 1px solid rgba(0,168,156,0.25);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wow-copilot-header {
  background: rgba(0,168,156,0.08);
  padding: 8px 12px;
  font-size: clamp(7px, 1.1vw, 9px);
  font-weight: 700;
  color: var(--teal);
  display: flex; align-items: center; gap: 7px;
  border-bottom: 1px solid rgba(0,168,156,0.15);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.copilot-dot {
  width: 7px; height: 7px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--teal);
  animation: pulseDot 1.2s infinite;
}

.wow-copilot-chat {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex; flex-direction: column; gap: 5px;
  scrollbar-width: none;
}

.chat-msg {
  padding: 6px 8px;
  border-radius: 2px;
  font-size: clamp(7px, 1.1vw, 9px);
  line-height: 1.5;
  font-weight: 400;
  animation: msgSlide 0.25s ease both;
}

.ai-msg {
  background: rgba(0,168,156,0.07);
  border-left: 2px solid rgba(0,168,156,0.4);
  color: var(--gray-dk);
}

.alert-msg {
  background: rgba(192,57,43,0.1);
  border-left: 2px solid rgba(192,57,43,0.5);
  color: #e08080;
}

.success-msg {
  background: rgba(0,168,156,0.12);
  border-left: 2px solid var(--teal);
  color: var(--aqua);
}

.wow-copilot-actions {
  padding: 8px;
  display: flex; flex-direction: column; gap: 5px;
  border-top: 1px solid rgba(0,168,156,0.15);
}

.wow-btn {
  font-size: clamp(6px, 1vw, 8px);
  font-weight: 700;
  font-family: var(--font-title);
  padding: 7px 8px;
  border: 1px solid rgba(0,168,156,0.4);
  background: rgba(0,168,156,0.07);
  color: var(--teal);
  border-radius: 2px;
  cursor: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.2s;
  text-align: center;
}

.wow-btn:hover { background: rgba(0,168,156,0.18); }
.wow-btn-secondary {
  border-color: rgba(124,182,178,0.35);
  color: var(--aqua);
  background: rgba(124,182,178,0.06);
}

.wow-bullets { margin-top: 8px; }

/* FASE 7 — GTM */
.gtm-pipeline {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 14px 0;
}

.gtm-step {
  background: rgba(14,17,17,0.85);
  border: 1px solid rgba(0,168,156,0.15);
  border-radius: 3px;
  padding: 14px;
  width: 168px;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s;
}

.gtm-step:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
}

.gtm-step-num {
  font-size: 24px;
  font-weight: 900;
  color: rgba(0,168,156,0.12);
  margin-bottom: 4px;
}

.gtm-step-icon { font-size: 24px; margin-bottom: 6px; }

.gtm-step-title {
  font-size: clamp(8px, 1.2vw, 10px);
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.gtm-step-desc {
  font-size: clamp(8px, 1.2vw, 10px);
  color: var(--gray-dk);
  line-height: 1.55;
}

.gtm-arrow {
  font-size: 18px;
  color: rgba(0,168,156,0.35);
  align-self: center;
  padding: 0 2px;
}

.collab-model { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }

.collab-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(0,48,44,0.2);
  border: 1px solid rgba(0,168,156,0.12);
  border-radius: 3px;
  padding: 11px 14px;
}

.collab-icon { font-size: 20px; flex-shrink: 0; }

.collab-item strong {
  display: block;
  font-size: clamp(9px, 1.3vw, 11px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.collab-item p {
  font-size: clamp(8px, 1.2vw, 10px);
  color: var(--gray-dk);
  line-height: 1.55;
}

/* FASE 8 — Roadmap */
.roadmap-timeline {
  display: flex;
  flex-direction: column;
  margin: 12px 0;
  padding-left: 16px;
  border-left: 2px solid rgba(0,168,156,0.2);
}

.rm-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 10px 0;
  position: relative;
}

.rm-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  flex-shrink: 0;
  background: var(--black2);
  border: 2px solid rgba(0,168,156,0.25);
  color: var(--gray-dk);
  margin-left: -17px;
}

.rm-dot.done { border-color: var(--teal); color: var(--teal); }
.rm-dot.next { border-color: var(--aqua); color: var(--aqua); animation: pulseDot 1.2s infinite; }

.rm-content { flex: 1; }
.rm-date { font-size: clamp(7px, 1.1vw, 9px); font-weight: 700; color: var(--teal); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 3px; }
.rm-item h3 { font-size: clamp(10px, 1.4vw, 12px); font-weight: 700; color: var(--white); margin-bottom: 3px; }
.rm-item p  { font-size: clamp(9px, 1.3vw, 11px); color: var(--gray-dk); line-height: 1.5; }
.rm-item.rm-done h3 { color: var(--teal); }
.rm-item.rm-next h3 { color: var(--aqua); }

.kpi-targets { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0; }

.kpi-card {
  background: rgba(14,17,17,0.85);
  border: 1px solid rgba(0,168,156,0.2);
  border-radius: 3px;
  padding: 14px 18px;
  text-align: center;
  min-width: 100px;
  flex: 1;
}

.kpi-icon { font-size: 20px; margin-bottom: 5px; }

.kpi-num {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 800;
  color: var(--teal);
}

.kpi-label {
  font-size: clamp(7px, 1.1vw, 9px);
  font-weight: 600;
  color: var(--gray-dk);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* FASE 9 — Victory */
.golden-title { color: var(--teal) !important; }

.final-tagline {
  font-size: clamp(10px, 1.6vw, 13px);
  font-weight: 500;
  color: var(--aqua);
  letter-spacing: 3px;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.final-logos {
  display: flex; align-items: center; gap: 20px;
  justify-content: center; flex-wrap: wrap;
  margin: 14px 0;
}

.fl-logo-unikal-img { height: 52px; width: auto; object-fit: contain; }
.fl-logo-masorange  { width: 190px; height: 60px; }

.cta-container {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; margin: 14px 0;
}

.cta-card {
  background: rgba(14,17,17,0.85);
  border: 1px solid rgba(0,168,156,0.2);
  border-radius: 3px;
  padding: 16px 20px;
  text-align: center;
  min-width: 150px;
  transition: border-color 0.25s, transform 0.25s;
}

.cta-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.cta-highlight  { border-color: var(--teal); background: rgba(0,168,156,0.06); }

.cta-icon { font-size: 24px; margin-bottom: 6px; }

.cta-title {
  font-size: clamp(7px, 1.1vw, 9px);
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cta-value {
  font-size: clamp(8px, 1.2vw, 10px);
  color: var(--gray-dk);
}

.cta-btn {
  font-family: var(--font-title);
  font-size: clamp(8px, 1.2vw, 10px);
  font-weight: 700;
  background: var(--teal);
  color: var(--black);
  border: none;
  border-radius: 2px;
  padding: 10px 20px;
  cursor: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background 0.2s, opacity 0.2s;
}

.cta-btn:hover { background: var(--aqua); }

.mission-summary {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin: 12px 0;
}

.ms-item {
  display: flex; align-items: center; gap: 7px;
  background: rgba(0,168,156,0.06);
  border: 1px solid rgba(0,168,156,0.18);
  border-radius: 2px;
  padding: 6px 14px;
  font-size: clamp(8px, 1.2vw, 10px);
  font-weight: 600;
  color: var(--aqua);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ms-icon { font-size: 13px; }
.final-speech { border-color: rgba(0,168,156,0.3) !important; }

.victory-sparks {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}

/* ── 10. OVERLAY HIPERESPACIAL ───────────────────────────── */
#hyperspace-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: var(--black);
}

#hyperspace-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

.hyperspace-text {
  position: relative; z-index: 2;
  text-align: center;
  font-family: var(--font-title);
  font-size: clamp(14px, 2.5vw, 20px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: 6px;
  text-transform: uppercase;
  animation: hyperText 0.6s ease-in-out infinite alternate;
}

.hyperspace-text span {
  display: block;
  font-size: 0.55em;
  color: var(--teal);
  margin-top: 8px;
  letter-spacing: 5px;
  font-weight: 500;
}

/* ── NAVEGACIÓN ──────────────────────────────────────────── */
.phase-nav {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px;
  background: rgba(14,17,17,0.95);
  border-top: 1px solid rgba(0,168,156,0.15);
  flex-shrink: 0;
  backdrop-filter: blur(6px);
}

.nav-btn {
  font-family: var(--font-title);
  font-size: clamp(8px, 1.2vw, 10px);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 9px 18px;
  background: transparent;
  border: 1px solid rgba(0,168,156,0.35);
  color: var(--teal);
  border-radius: 2px;
  cursor: none;
  transition: background 0.2s, border-color 0.2s;
}

.nav-btn:hover { background: rgba(0,168,156,0.1); border-color: var(--teal); }
.nav-btn:active { opacity: 0.8; }

.phase-indicator { text-align: center; }

.pi-label {
  font-size: clamp(9px, 1.4vw, 11px);
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
}

.pi-num {
  font-size: clamp(7px, 1.1vw, 9px);
  color: var(--gray-dk);
  letter-spacing: 1px;
  display: block;
  margin-top: 2px;
}

/* ── 11. MODAL ───────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
}

.modal.hidden { display: none; }

.modal-content {
  background: var(--black2);
  border: 1px solid rgba(0,168,156,0.35);
  border-radius: 4px;
  padding: 30px;
  max-width: 400px;
  width: 92%;
  box-shadow: 0 0 40px rgba(0,168,156,0.15);
  animation: fadeUp 0.35s ease both;
  position: relative;
}

.modal-content h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.modal-content p {
  font-size: 11px;
  color: var(--gray-dk);
  margin-bottom: 18px;
  line-height: 1.65;
}

.modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none;
  border: 1px solid rgba(207,206,206,0.25);
  color: var(--gray-dk);
  width: 26px; height: 26px;
  border-radius: 50%;
  cursor: none;
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.modal-close:hover { border-color: var(--danger); color: var(--danger); }

.form-group { margin-bottom: 13px; }

.form-group label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.retro-input {
  width: 100%;
  background: rgba(0,48,44,0.2);
  border: 1px solid rgba(0,168,156,0.25);
  color: var(--white);
  padding: 9px 12px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s;
}

.retro-input:focus { border-color: var(--teal); }

/* ── 12. UTILIDADES ──────────────────────────────────────── */
.hidden { display: none !important; }

/* ── 13. ANIMACIONES ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes phaseIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes shipHover {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-7px); }
}

@keyframes pulseDot {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.35; }
}

@keyframes orbPulse {
  0%,100% { box-shadow: 0 0 4px rgba(0,168,156,0.2); }
  50%     { box-shadow: 0 0 14px rgba(0,168,156,0.5); }
}

@keyframes barGrow {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); }
}

@keyframes wowPulse {
  from { opacity: 0.7; }
  to   { opacity: 1; box-shadow: 0 0 16px rgba(0,168,156,0.3); }
}

@keyframes asteroidFall {
  from { top: -44px; }
  to   { top: 105%; }
}

@keyframes bulletUp {
  from { transform: translateY(0); opacity: 1; }
  to   { transform: translateY(-200px); opacity: 0; }
}

@keyframes msgSlide {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes hyperText {
  from { letter-spacing: 4px; opacity: 0.8; }
  to   { letter-spacing: 14px; opacity: 1; }
}

@keyframes sparkFly {
  0%   { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--sx),var(--sy)) scale(0); opacity: 0; }
}

/* ── FASE 1 — ESPECIALISTA DE ESPECIALISTAS ──────────────── */

/* Inner especial: sin scroll, ocupa todo el espacio */
.phase-inner-f1 {
  padding: 10px 36px 6px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* Onda SVG de fondo corporativa */
.f1-wave-bg {
  position: absolute;
  bottom: 50px;
  left: 0; right: 0;
  height: 200px;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}

.f1-wave-bg svg {
  width: 100%;
  height: 100%;
}

/* Grid principal: columna única, cada pieza apilada */
.f1-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* ── Animación base: cada pieza aparece flotando desde abajo ── */
.f1-piece {
  animation: f1FloatIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--fd, 0s);
}

@keyframes f1FloatIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover ligero en todas las piezas */
.f1-piece:hover {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

/* ── PIEZA 1: Logo ── */
.f1-logo-piece {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  padding-bottom: 4px;
}

.f1-logo-img {
  height: clamp(42px, 7vh, 62px);
  width: auto;
  object-fit: contain;
  filter: brightness(1.05);
  /* Flotación continua suave */
  animation: f1FloatIn 0.7s cubic-bezier(0.22,1,0.36,1) both,
             f1Levitate 5s ease-in-out infinite 0.7s;
}

@keyframes f1Levitate {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-5px); }
}

.f1-somos-tag {
  font-size: clamp(7px, 1.1vw, 9px);
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--gray-dk);
  text-transform: uppercase;
  text-align: right;
  align-self: flex-end;
  margin-right: 2px;
}

/* ── PIEZA 2: Titular ── */
.f1-headline-piece {
  text-align: center;
  max-width: 820px;
  /* Flotación propia */
  animation: f1FloatIn 0.7s cubic-bezier(0.22,1,0.36,1) both,
             f1LevitateB 6s ease-in-out infinite 0.85s;
}

@keyframes f1LevitateB {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-4px); }
}

.f1-headline {
  font-family: var(--font-title);
  font-size: clamp(22px, 4.2vw, 44px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0;
}

.f1-headline-teal {
  color: var(--teal);
  position: relative;
}

/* Underline animado bajo el texto teal */
.f1-headline-teal::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--teal), transparent);
  animation: underlineGrow 1s cubic-bezier(0.22,1,0.36,1) 0.6s both;
  transform-origin: left;
}

@keyframes underlineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.f1-subtitle {
  font-size: clamp(10px, 1.5vw, 14px);
  font-weight: 400;
  color: var(--gray);
  line-height: 1.6;
  margin-top: 8px;
  opacity: 0.85;
}

/* ── PIEZA 3: Métricas ── */
.f1-metrics-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 900px;
}

.f1-metric-card {
  background: rgba(0, 48, 44, 0.25);
  border: 1px solid rgba(0, 168, 156, 0.18);
  border-radius: 4px;
  padding: clamp(10px, 2vh, 16px) clamp(14px, 2.5vw, 26px);
  text-align: center;
  min-width: clamp(110px, 20%, 180px);
  flex: 1;
  max-width: 200px;
  position: relative;
  overflow: hidden;
  /* Flotación individual para cada tarjeta */
  animation: f1FloatIn 0.7s cubic-bezier(0.22,1,0.36,1) both,
             f1LevitateC 5.5s ease-in-out infinite;
  animation-delay: var(--fd, 0s), calc(var(--fd, 0s) + 0.7s);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

@keyframes f1LevitateC {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

.f1-metric-card:hover {
  border-color: var(--teal);
  box-shadow: 0 0 24px rgba(0, 168, 156, 0.18);
  transform: translateY(-5px) !important;
}

/* Brillo de esquina en hover */
.f1-metric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 40px;
  background: radial-gradient(circle at 0% 0%, rgba(0,168,156,0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.f1-metric-card:hover::before { opacity: 1; }

.f1-metric-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  line-height: 1;
}

.f1-metric-plus {
  font-size: clamp(18px, 3vw, 32px);
  font-weight: 800;
  color: var(--white);
  margin-right: 1px;
}

.f1-metric-num {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.f1-metric-unit {
  font-size: clamp(14px, 2.2vw, 24px);
  font-weight: 700;
  color: var(--teal);
  margin-left: 3px;
}

.f1-metric-label {
  font-size: clamp(7px, 1.1vw, 10px);
  font-weight: 600;
  color: var(--gray-dk);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 6px;
  line-height: 1.4;
}

/* Barra decorativa inferior de la tarjeta */
.f1-metric-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--teal), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  animation: f1MetricBar 0.6s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: calc(var(--fd, 0s) + 0.4s);
}

@keyframes f1MetricBar {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ── PIEZA 4: Tagline 100% Know How ── */
.f1-tagline-piece {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  padding: clamp(6px, 1.2vh, 10px) 0;
  /* Flotación propia */
  animation: f1FloatIn 0.7s cubic-bezier(0.22,1,0.36,1) both,
             f1LevitateD 7s ease-in-out infinite 1.5s;
}

@keyframes f1LevitateD {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-3px); }
}

.f1-tagline-pct {
  font-size: clamp(28px, 5.5vw, 58px);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  /* Pulso de brillo */
  animation: f1PctGlow 2.5s ease-in-out infinite 1.5s;
}

@keyframes f1PctGlow {
  0%, 100% { text-shadow: none; }
  50%       { text-shadow: 0 0 30px rgba(0,168,156,0.4), 0 0 60px rgba(0,168,156,0.15); }
}

.f1-tagline-text {
  font-size: clamp(16px, 3vw, 32px);
  font-weight: 600;
  font-style: italic;
  color: var(--teal);
  line-height: 1;
}

/* ── PIEZA 5: Speech ── */
.f1-speech-piece {
  width: 100%;
  max-width: 860px;
}

/* ── RESPONSIVE FASE 1 ── */
@media (max-width: 768px) {
  .phase-inner-f1 { padding: 10px 16px 6px; }
  .f1-metrics-row { gap: 8px; }
  .f1-metric-card { min-width: calc(50% - 8px); max-width: none; }
  .f1-tagline-piece { gap: 8px; }
}

@media (max-width: 480px) {
  .f1-metric-card { min-width: 100%; max-width: none; }
  .f1-headline { font-size: 22px; }
  .f1-tagline-pct { font-size: 32px; }
  .f1-tagline-text { font-size: 18px; }
}

/* ── FASE 2 — SERVICES OVERVIEW (estilo Fase 1) ─────────── */

/* Onda de fondo */
.f2-wave-bg {
  position: absolute;
  bottom: 50px;
  left: 0; right: 0;
  height: 200px;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}
.f2-wave-bg svg { width: 100%; height: 100%; }

/* Inner container */
.phase-inner-f2 {
  padding: 6px 28px 4px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}

/* Grid principal: columna única igual que f1-grid */
.f2-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ── Animación base flotante (igual que f1-piece) ── */
.f2-piece {
  animation: f1FloatIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--fd2, 0s);
}
.f2-piece:hover {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

/* ── PIEZA 1: Título ── */
.f2-title-piece {
  text-align: center;
  animation: f1FloatIn 0.7s cubic-bezier(0.22,1,0.36,1) both,
             f1LevitateB 6s ease-in-out infinite 0.7s;
}

.f2-title-label {
  font-size: clamp(7px, 1.1vw, 9px);
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--gray-dk);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.f2-headline {
  font-family: var(--font-title);
  font-size: clamp(22px, 4.2vw, 44px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0;
}

.f2-headline-teal {
  color: var(--teal);
  position: relative;
}

.f2-headline-teal::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--teal), transparent);
  animation: underlineGrow 1s cubic-bezier(0.22,1,0.36,1) 0.6s both;
  transform-origin: left;
}

.f2-subtitle {
  font-size: clamp(10px, 1.5vw, 13px);
  font-weight: 400;
  color: var(--gray);
  line-height: 1.6;
  margin-top: 6px;
  opacity: 0.85;
}

/* ── PIEZA 2: Fila de 5 tarjetas de servicio ── */
.f2-services-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1020px;
}

.f2-service-card {
  background: rgba(0, 48, 44, 0.25);
  border: 1px solid rgba(0, 168, 156, 0.18);
  border-radius: 4px;
  padding: clamp(10px, 1.8vh, 15px) clamp(10px, 2vw, 18px);
  text-align: center;
  min-width: clamp(100px, 18%, 170px);
  flex: 1;
  max-width: 185px;
  position: relative;
  overflow: hidden;
  /* Flotación individual */
  animation: f1FloatIn 0.7s cubic-bezier(0.22,1,0.36,1) both,
             f2LevCard 5.5s ease-in-out infinite;
  animation-delay: var(--fd2, 0s), calc(var(--fd2, 0s) + 0.7s);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

@keyframes f2LevCard {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

.f2-service-card:hover {
  border-color: var(--teal);
  box-shadow: 0 0 24px rgba(0, 168, 156, 0.18);
  transform: translateY(-5px) !important;
}

/* Brillo de esquina en hover */
.f2-service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 40px;
  background: radial-gradient(circle at 0% 0%, rgba(0,168,156,0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.f2-service-card:hover::before { opacity: 1; }

/* Icono SVG de cada servicio */
.f2-svc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  height: 34px;
}

/* Nombre del servicio */
.f2-svc-name {
  font-family: var(--font-title);
  font-size: clamp(9px, 1.4vw, 12px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 6px;
}

.f2-svc-sub {
  display: block;
  font-size: clamp(8px, 1.1vw, 10px);
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.5px;
}

/* Lista de items por servicio */
.f2-svc-list {
  list-style: none;
  padding: 0; margin: 0;
  text-align: left;
}

.f2-svc-list li {
  font-size: clamp(8px, 1.1vw, 10px);
  color: var(--gray);
  padding: 2px 0 2px 12px;
  position: relative;
  line-height: 1.4;
}

.f2-svc-list li::before {
  content: '·';
  position: absolute;
  left: 2px;
  color: var(--teal);
  font-weight: 700;
}

/* Barra decorativa inferior (igual que f1-metric-bar) */
.f2-svc-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--teal), transparent);
  transform: scaleX(0);
  transform-origin: left;
  animation: f1MetricBar 0.6s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: calc(var(--fd2, 0s) + 0.4s);
}

/* ── PIEZA 3: Tagline "5 Áreas. Un solo partner." ── */
.f2-tagline-piece {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  padding: clamp(4px, 0.8vh, 8px) 0;
  animation: f1FloatIn 0.7s cubic-bezier(0.22,1,0.36,1) both,
             f1LevitateD 7s ease-in-out infinite 1.5s;
}

.f2-tagline-num {
  font-size: clamp(28px, 5.5vw, 54px);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  animation: f1PctGlow 2.5s ease-in-out infinite 1.5s;
}

.f2-tagline-text {
  font-size: clamp(16px, 2.8vw, 30px);
  font-weight: 600;
  font-style: italic;
  color: var(--teal);
  line-height: 1;
}

/* ── PIEZA 4: Speech ── */
.f2-speech-piece {
  width: 100%;
  max-width: 860px;
}

/* ── RESPONSIVE FASE 2 ── */
@media (max-width: 860px) {
  .f2-services-row { gap: 6px; }
  .f2-service-card { max-width: 48%; min-width: 44%; }
}
@media (max-width: 540px) {
  .f2-service-card { max-width: 100%; min-width: 90%; }
  .f2-headline { font-size: 24px; }
  .f2-tagline-num { font-size: 32px; }
  .f2-tagline-text { font-size: 18px; }
}

/* ══════════════════════════════════════════════════════════
   FASE 3 — TECNOLOGÍAS CON LAS QUE TRABAJAMOS
   ══════════════════════════════════════════════════════════ */

/* Onda de fondo */
.f3-wave-bg {
  position: absolute;
  bottom: 50px;
  left: 0; right: 0;
  height: 200px;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}
.f3-wave-bg svg { width: 100%; height: 100%; }

/* Inner container */
.phase-inner-f3 {
  padding: 5px 24px 4px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}

/* Grid principal igual que F1/F2 */
.f3-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

/* ── Animación base flotante (comparte f1FloatIn) ── */
.f3-piece {
  animation: f1FloatIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--fd3, 0s);
}
.f3-piece:hover {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

/* ── PIEZA 1: Título ── */
.f3-title-piece {
  text-align: center;
  animation: f1FloatIn 0.7s cubic-bezier(0.22,1,0.36,1) both,
             f1LevitateB 6s ease-in-out infinite 0.7s;
}

.f3-title-label {
  font-size: clamp(7px, 1.1vw, 9px);
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--gray-dk);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.f3-headline {
  font-family: var(--font-title);
  font-size: clamp(20px, 3.8vw, 40px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0;
}

.f3-headline-teal {
  color: var(--teal);
  position: relative;
}

.f3-headline-teal::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--teal), transparent);
  animation: underlineGrow 1s cubic-bezier(0.22,1,0.36,1) 0.6s both;
  transform-origin: left;
}

.f3-subtitle {
  font-size: clamp(9px, 1.3vw, 12px);
  font-weight: 400;
  color: var(--gray);
  line-height: 1.6;
  margin-top: 4px;
  opacity: 0.85;
}

/* ── PIEZA 2: Layout orbital (diagrama + columnas) ── */
.f3-orbital-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 1060px;
}

/* -- Diagrama orbital -- */
.f3-diagram-piece {
  flex-shrink: 0;
  animation: f1FloatIn 0.7s cubic-bezier(0.22,1,0.36,1) both,
             f1Levitate 9s ease-in-out infinite 0.8s;
}

.f3-orbital-wrap {
  position: relative;
  width: clamp(170px, 24vw, 240px);
  height: clamp(170px, 24vw, 240px);
}

/* Anillos SVG */
.f3-rings-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: f2RingSpin 60s linear infinite;
}

/* Centro hub logo */
.f3-center-hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 48, 44, 0.5);
  border: 1px solid rgba(0, 168, 156, 0.35);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 0 28px rgba(0, 168, 156, 0.15);
}

.f3-hub-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: brightness(1.1);
}

.f3-hub-logo-fallback {
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Iconos de sector sobre el anillo intermedio */
.f3-sector-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: rgba(0, 48, 44, 0.55);
  border: 1px solid rgba(0, 168, 156, 0.30);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  /* Porcentajes calculados para el anillo intermedio r=108/320 ≈ 34% */
}

/* Cloud top: 160-108=52 → top = 52/320*100=16.25%, left=50% */
.f3-s-cloud   { top: 16.5%; left: 50%; }
/* Business top-right: cos(54°)≈0.588, sin(54°)≈0.809 → 160+108*0.809=248 → 77.5%, 160+108*0.588=223 → 69.7% */
.f3-s-biz     { top: 22%; left: 77.5%; }
/* Data bottom-right: cos(18°)≈0.951, sin(18°)≈0.309 → 160+108*0.309=193→60.3%, 160+108*0.951=263→82.2% */
.f3-s-data    { top: 73%; left: 77.5%; }
/* Cyber bottom-left */
.f3-s-cyber   { top: 73%; left: 22.5%; }
/* Digital top-left */
.f3-s-digital { top: 22%; left: 22.5%; }

/* -- Columnas de tech cards -- */
.f3-tech-columns {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

/* Cada tarjeta de tecnología */
.f3-tech-card {
  background: rgba(0, 48, 44, 0.22);
  border: 1px solid rgba(0, 168, 156, 0.15);
  border-radius: 4px;
  padding: clamp(6px, 1vh, 10px) clamp(10px, 1.5vw, 14px);
  position: relative;
  overflow: hidden;
  /* Flotación individual asíncrona */
  animation: f1FloatIn 0.7s cubic-bezier(0.22,1,0.36,1) both,
             f2LevCard 5s ease-in-out infinite;
  animation-delay: var(--fd3, 0s), calc(var(--fd3, 0s) + 0.7s);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.f3-tech-card:hover {
  border-color: var(--teal);
  box-shadow: 0 0 20px rgba(0, 168, 156, 0.15);
  transform: translateY(-3px) !important;
}

/* Brillo de esquina hover */
.f3-tech-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 36px; height: 36px;
  background: radial-gradient(circle at 0% 0%, rgba(0,168,156,0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.f3-tech-card:hover::before { opacity: 1; }

/* Header de la tarjeta */
.f3-card-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}

.f3-card-dot {
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--teal);
  animation: pulseDot 1.8s infinite;
}

.f3-card-title {
  font-family: var(--font-title);
  font-size: clamp(8px, 1.1vw, 10px);
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Tags de tecnología */
.f3-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.f3-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: clamp(7px, 1vw, 9px);
  font-weight: 600;
  color: var(--gray);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(124, 182, 178, 0.20);
  border-radius: 2px;
  padding: 2px 6px;
  letter-spacing: 0.3px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.f3-tag:hover {
  background: rgba(0, 168, 156, 0.12);
  color: var(--white);
  border-color: rgba(0, 168, 156, 0.4);
}

.f3-tag-ms {
  color: var(--aqua);
  border-color: rgba(0, 168, 156, 0.30);
  background: rgba(0, 48, 44, 0.3);
}

/* Barra decorativa inferior (igual que F1/F2) */
.f3-svc-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--teal), transparent);
  transform: scaleX(0);
  transform-origin: left;
  animation: f1MetricBar 0.6s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: calc(var(--fd3, 0s) + 0.4s);
}

/* ── PIEZA 3: Tagline IA ── */
.f3-tagline-piece {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  padding: clamp(3px, 0.6vh, 6px) 0;
  animation: f1FloatIn 0.7s cubic-bezier(0.22,1,0.36,1) both,
             f1LevitateD 7s ease-in-out infinite 1.6s;
}

.f3-tagline-text {
  font-size: clamp(14px, 2.4vw, 26px);
  font-weight: 500;
  font-style: italic;
  color: var(--gray);
  line-height: 1;
}

.f3-tagline-ia {
  font-size: clamp(26px, 4.8vw, 50px);
  font-weight: 900;
  color: var(--teal);
  line-height: 1;
  animation: f1PctGlow 2.5s ease-in-out infinite 1.6s;
}

/* ── PIEZA 4: Speech ── */
.f3-speech-piece {
  width: 100%;
  max-width: 860px;
}

/* ── RESPONSIVE FASE 3 ── */
@media (max-width: 900px) {
  .f3-orbital-layout {
    flex-direction: column;
    gap: 10px;
  }
  .f3-orbital-wrap { width: 160px; height: 160px; }
  .f3-tech-columns { width: 100%; }
  .f3-tech-card { padding: 6px 10px; }
}
@media (max-width: 540px) {
  .f3-headline { font-size: 20px; }
  .f3-tagline-ia { font-size: 30px; }
  .f3-tagline-text { font-size: 14px; }
  .f3-orbital-wrap { width: 130px; height: 130px; }
}

/* ══════════════════════════════════════════════════════════
   FASE 4 — EL ECOSISTEMA INTEGRAL DE SERVICIOS
   ══════════════════════════════════════════════════════════ */

/* Onda de fondo */
.f4-wave-bg {
  position: absolute;
  bottom: 50px;
  left: 0; right: 0;
  height: 200px;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}
.f4-wave-bg svg { width: 100%; height: 100%; }

/* Inner container */
.phase-inner-f4 {
  padding: 5px 24px 4px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}

/* Grid principal igual que F1/F2/F3 */
.f4-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

/* ── Animación base flotante (comparte f1FloatIn) ── */
.f4-piece {
  animation: f1FloatIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--fd4, 0s);
}
.f4-piece:hover {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

/* ── PIEZA 1: Título ── */
.f4-title-piece {
  text-align: center;
  animation: f1FloatIn 0.7s cubic-bezier(0.22,1,0.36,1) both,
             f1LevitateB 6s ease-in-out infinite 0.7s;
}

.f4-headline {
  font-family: var(--font-title);
  font-size: clamp(20px, 3.8vw, 40px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0;
}

.f4-headline-teal {
  color: var(--teal);
  position: relative;
}

.f4-headline-teal::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--teal), transparent);
  animation: underlineGrow 1s cubic-bezier(0.22,1,0.36,1) 0.6s both;
  transform-origin: left;
}

.f4-subtitle {
  font-size: clamp(9px, 1.3vw, 12px);
  font-weight: 400;
  color: var(--gray);
  line-height: 1.6;
  margin-top: 4px;
  opacity: 0.85;
}

.f4-ms-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: clamp(8px, 1.1vw, 10px);
  font-weight: 600;
  color: var(--aqua);
  background: rgba(0, 168, 156, 0.08);
  border: 1px solid rgba(0, 168, 156, 0.2);
  border-radius: 3px;
  padding: 2px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── PIEZA 2: Layout de 3 columnas ── */
.f4-columns-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 1100px;
}

.f4-service-column {
  background: rgba(0, 48, 44, 0.22);
  border: 1px solid rgba(0, 168, 156, 0.18);
  border-radius: 5px;
  padding: clamp(10px, 1.5vh, 14px) clamp(10px, 1.8vw, 16px);
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 7px;
  /* Flotación individual */
  animation: f1FloatIn 0.7s cubic-bezier(0.22,1,0.36,1) both,
             f2LevCard 5.5s ease-in-out infinite;
  animation-delay: var(--fd4, 0s), calc(var(--fd4, 0s) + 0.7s);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.f4-service-column:hover {
  border-color: var(--teal);
  box-shadow: 0 0 22px rgba(0, 168, 156, 0.18);
  transform: translateY(-3px) !important;
}

/* Brillo de esquina en hover */
.f4-service-column::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 40px;
  background: radial-gradient(circle at 0% 0%, rgba(0,168,156,0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.f4-service-column:hover::before { opacity: 1; }

/* Header de cada columna */
.f4-col-header {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
}

.f4-col-num {
  font-family: var(--font-title);
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 900;
  color: var(--teal);
  line-height: 1;
  flex-shrink: 0;
}

.f4-col-title {
  font-family: var(--font-title);
  font-size: clamp(10px, 1.4vw, 13px);
  font-weight: 800;
  color: var(--white);
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.3px;
}

.f4-col-subtitle {
  font-size: clamp(8px, 1.1vw, 10px);
  font-weight: 500;
  color: var(--gray-dk);
  margin: 2px 0 0 0;
  line-height: 1.3;
  font-style: italic;
}

/* ──────────────────────────────────────────────────────────
   COLUMNA 1: Tarjetas de Tier (Essential, Advance, Elite)
   ────────────────────────────────────────────────────────── */

.f4-tier-card {
  background: rgba(0, 48, 44, 0.3);
  border: 1px solid rgba(124, 182, 178, 0.25);
  border-radius: 3px;
  padding: 8px 10px;
  position: relative;
  margin-bottom: 5px;
  transition: border-color 0.3s, background 0.3s;
}

.f4-tier-card:hover {
  border-color: rgba(0, 168, 156, 0.5);
  background: rgba(0, 168, 156, 0.08);
}

.f4-tier-badge {
  font-family: var(--font-title);
  font-size: clamp(8px, 1.1vw, 10px);
  font-weight: 700;
  color: var(--white);
  background: var(--teal);
  padding: 2px 8px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

.f4-tier-advance .f4-tier-badge {
  background: linear-gradient(135deg, var(--teal), var(--aqua));
}

.f4-tier-elite .f4-tier-badge {
  background: linear-gradient(135deg, var(--teal), var(--green-dk));
}

.f4-tier-list {
  list-style: none;
  padding: 0; margin: 0;
  font-size: clamp(8px, 1.1vw, 10px);
  color: var(--gray);
  line-height: 1.6;
}

.f4-tier-list li {
  padding: 2px 0 2px 12px;
  position: relative;
}

.f4-tier-list li::before {
  content: '•';
  position: absolute;
  left: 2px;
  color: var(--teal);
  font-weight: 700;
}

.f4-tier-list strong {
  color: var(--white);
  font-weight: 700;
}

.f4-tier-icon {
  position: absolute;
  top: 8px; right: 8px;
  font-size: clamp(16px, 2.5vw, 22px);
  opacity: 0.3;
}

/* ──────────────────────────────────────────────────────────
   COLUMNA 2: Áreas de servicio (4 bloques: Seguridad, Infraestructura, IA, Colaboración)
   ────────────────────────────────────────────────────────── */

.f4-service-area {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
}

.f4-area-icon {
  font-size: clamp(14px, 2vw, 18px);
  flex-shrink: 0;
  line-height: 1;
}

.f4-area-content {
  flex: 1;
  min-width: 0;
}

.f4-area-title {
  font-family: var(--font-title);
  font-size: clamp(8px, 1.1vw, 10px);
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 3px 0;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.f4-area-list {
  list-style: none;
  padding: 0; margin: 0;
  font-size: clamp(7px, 1vw, 9px);
  color: var(--gray-dk);
  line-height: 1.5;
}

.f4-area-list li {
  padding: 1px 0 1px 10px;
  position: relative;
}

.f4-area-list li::before {
  content: '·';
  position: absolute;
  left: 2px;
  color: var(--aqua);
  font-weight: 700;
}

/* ──────────────────────────────────────────────────────────
   COLUMNA 3: Formación (Cursos Básicos, Avanzados, A Medida)
   ────────────────────────────────────────────────────────── */

.f4-training-group {
  margin-bottom: 7px;
}

.f4-training-title {
  font-family: var(--font-title);
  font-size: clamp(8px, 1.1vw, 10px);
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 4px 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.f4-training-list {
  list-style: none;
  padding: 0; margin: 0;
  font-size: clamp(7px, 1vw, 9px);
  color: var(--gray);
  line-height: 1.6;
}

.f4-training-list li {
  padding: 2px 0;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.f4-course-check {
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}

/* Barra decorativa inferior (igual que otras fases) */
.f4-svc-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--teal), transparent);
  transform: scaleX(0);
  transform-origin: left;
  animation: f1MetricBar 0.6s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: calc(var(--fd4, 0s) + 0.4s);
}

/* ── PIEZA 3: Tagline ── */
.f4-tagline-piece {
  text-align: center;
  padding: clamp(3px, 0.6vh, 6px) 0;
  animation: f1FloatIn 0.7s cubic-bezier(0.22,1,0.36,1) both,
             f1LevitateD 7s ease-in-out infinite 1.5s;
}

.f4-tagline-text {
  font-size: clamp(12px, 2vw, 22px);
  font-weight: 600;
  font-style: italic;
  color: var(--gray);
  line-height: 1.2;
}

/* ── PIEZA 4: Speech ── */
.f4-speech-piece {
  width: 100%;
  max-width: 860px;
}

/* ── RESPONSIVE FASE 4 ── */
@media (max-width: 900px) {
  .f4-columns-layout {
    flex-direction: column;
    align-items: stretch;
  }
  .f4-service-column { width: 100%; }
}
@media (max-width: 540px) {
  .f4-headline { font-size: 20px; }
  .f4-tagline-text { font-size: 13px; }
  .f4-service-column { padding: 8px 10px; }
}

/* ══════════════════════════════════════════════════════════
   FASE 5 — EL CABALLO DE TROYA: ASSESSMENT ESTRATÉGICO
   ══════════════════════════════════════════════════════════ */

/* Onda de fondo */
.f5-wave-bg {
  position: absolute;
  bottom: 50px;
  left: 0; right: 0;
  height: 200px;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}
.f5-wave-bg svg { width: 100%; height: 100%; }

/* Inner container */
.phase-inner-f5 {
  padding: 5px 24px 4px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}

/* Grid principal igual que F1/F2/F3/F4 */
.f5-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ── Animación base flotante (comparte f1FloatIn) ── */
.f5-piece {
  animation: f1FloatIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--fd5, 0s);
}
.f5-piece:hover {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

/* ── PIEZA 1: Título ── */
.f5-title-piece {
  text-align: center;
  animation: f1FloatIn 0.7s cubic-bezier(0.22,1,0.36,1) both,
             f1LevitateB 6s ease-in-out infinite 0.7s;
}

.f5-headline {
  font-family: var(--font-title);
  font-size: clamp(19px, 3.6vw, 38px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0;
}

.f5-headline-teal {
  color: var(--teal);
  position: relative;
}

.f5-headline-teal::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--teal), transparent);
  animation: underlineGrow 1s cubic-bezier(0.22,1,0.36,1) 0.6s both;
  transform-origin: left;
}

.f5-subtitle {
  font-size: clamp(9px, 1.3vw, 12px);
  font-weight: 400;
  color: var(--gray);
  line-height: 1.6;
  margin-top: 4px;
  opacity: 0.85;
}

.f5-ms-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: clamp(8px, 1.1vw, 10px);
  font-weight: 600;
  color: var(--aqua);
  background: rgba(0, 168, 156, 0.08);
  border: 1px solid rgba(0, 168, 156, 0.2);
  border-radius: 3px;
  padding: 2px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── PIEZA 2: Layout del proceso (3 tarjetas + flechas) ── */
.f5-process-layout {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 1100px;
}

.f5-step-card {
  background: rgba(0, 48, 44, 0.22);
  border: 1px solid rgba(0, 168, 156, 0.18);
  border-radius: 5px;
  padding: clamp(10px, 1.5vh, 14px) clamp(10px, 1.8vw, 15px);
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* Flotación individual */
  animation: f1FloatIn 0.7s cubic-bezier(0.22,1,0.36,1) both,
             f2LevCard 5.5s ease-in-out infinite;
  animation-delay: var(--fd5, 0s), calc(var(--fd5, 0s) + 0.7s);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.f5-step-card:hover {
  border-color: var(--teal);
  box-shadow: 0 0 22px rgba(0, 168, 156, 0.18);
  transform: translateY(-3px) !important;
}

/* Brillo de esquina en hover */
.f5-step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 40px;
  background: radial-gradient(circle at 0% 0%, rgba(0,168,156,0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.f5-step-card:hover::before { opacity: 1; }

/* Icono de paso (emoji grande) */
.f5-step-icon {
  font-size: clamp(24px, 3.5vw, 34px);
  text-align: center;
  margin-bottom: 4px;
  line-height: 1;
}

/* Header de paso */
.f5-step-header {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-bottom: 5px;
}

.f5-step-num {
  font-family: var(--font-title);
  font-size: clamp(13px, 1.8vw, 17px);
  font-weight: 900;
  color: var(--teal);
  line-height: 1;
  flex-shrink: 0;
}

.f5-step-title {
  font-family: var(--font-title);
  font-size: clamp(10px, 1.4vw, 13px);
  font-weight: 800;
  color: var(--white);
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.3px;
}

.f5-step-subtitle {
  font-size: clamp(8px, 1.1vw, 10px);
  font-weight: 500;
  color: var(--gray-dk);
  margin: 2px 0 0 0;
  line-height: 1.3;
  font-style: italic;
}

/* Descripción del paso */
.f5-step-desc {
  font-size: clamp(8px, 1.1vw, 10px);
  color: var(--gray);
  line-height: 1.5;
  margin: 0 0 6px 0;
}

/* Lista de checks */
.f5-step-list {
  list-style: none;
  padding: 0; margin: 0;
  font-size: clamp(8px, 1.05vw, 9px);
  color: var(--gray);
  line-height: 1.6;
  flex: 1;
}

.f5-step-list li {
  padding: 2px 0;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.f5-check {
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}

/* Barra decorativa inferior */
.f5-svc-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--teal), transparent);
  transform: scaleX(0);
  transform-origin: left;
  animation: f1MetricBar 0.6s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: calc(var(--fd5, 0s) + 0.4s);
}

/* Flecha de progresión entre pasos */
.f5-arrow {
  font-size: clamp(20px, 3vw, 32px);
  color: rgba(0, 168, 156, 0.3);
  display: flex;
  align-items: center;
  animation: f1FloatIn 0.5s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: var(--fd5, 0s);
  flex-shrink: 0;
}

/* ── PIEZA 3: Banner de propuesta de valor (inversión + entregable) ── */
.f5-value-banner {
  background: linear-gradient(135deg, rgba(0, 168, 156, 0.15) 0%, rgba(0, 48, 44, 0.3) 100%);
  border: 1px solid rgba(0, 168, 156, 0.25);
  border-radius: 5px;
  padding: clamp(10px, 1.5vh, 14px) clamp(14px, 2vw, 20px);
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  /* Flotación */
  animation: f1FloatIn 0.7s cubic-bezier(0.22,1,0.36,1) both,
             f1LevitateD 6.5s ease-in-out infinite 1.5s;
  animation-delay: var(--fd5, 0s), calc(var(--fd5, 0s) + 0.7s);
}

.f5-value-quote {
  flex: 1;
  min-width: 0;
}

.f5-quote-text {
  font-size: clamp(11px, 1.8vw, 18px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  font-style: italic;
}

.f5-value-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 1.2vh, 12px) clamp(12px, 1.5vw, 18px);
  border-radius: 4px;
  flex-shrink: 0;
}

.f5-value-invest {
  background: rgba(0, 168, 156, 0.12);
  border: 1px solid rgba(0, 168, 156, 0.3);
}

.f5-value-deliver {
  background: rgba(0, 48, 44, 0.3);
  border: 1px solid rgba(124, 182, 178, 0.25);
}

.f5-value-label {
  font-family: var(--font-title);
  font-size: clamp(7px, 1vw, 9px);
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.f5-value-amount {
  font-family: var(--font-title);
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 2px;
}

.f5-value-note {
  font-size: clamp(7px, 1vw, 9px);
  color: var(--gray-dk);
  font-style: italic;
}

.f5-value-detail {
  font-size: clamp(9px, 1.3vw, 12px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  text-align: center;
  max-width: 180px;
}

/* ── PIEZA 4: Speech ── */
.f5-speech-piece {
  width: 100%;
  max-width: 900px;
}

/* ── RESPONSIVE FASE 5 ── */
@media (max-width: 950px) {
  .f5-process-layout {
    flex-direction: column;
    align-items: stretch;
  }
  .f5-arrow {
    transform: rotate(90deg);
    justify-content: center;
  }
  .f5-value-banner {
    flex-direction: column;
    text-align: center;
  }
  .f5-value-box { width: 100%; max-width: 300px; }
}
@media (max-width: 540px) {
  .f5-headline { font-size: 18px; }
  .f5-quote-text { font-size: 12px; }
  .f5-step-card { padding: 8px 10px; }
}

/* ══════════════════════════════════════════════════════════
   FASE 8 — CERTIFICACIONES Y ALIANZAS: CONFIANZA TOTAL
   ══════════════════════════════════════════════════════════ */

/* Onda de fondo */
.f8-wave-bg {
  position: absolute;
  bottom: 50px;
  left: 0; right: 0;
  height: 200px;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}
.f8-wave-bg svg { width: 100%; height: 100%; }

/* Inner container */
.phase-inner-f8 {
  padding: 5px 24px 4px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}

/* Grid principal igual que F1/F2/F3/F4/F5 */
.f8-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ── Animación base flotante (comparte f1FloatIn) ── */
.f8-piece {
  animation: f1FloatIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--fd8, 0s);
}
.f8-piece:hover {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

/* ── PIEZA 1: Título ── */
.f8-title-piece {
  text-align: center;
  animation: f1FloatIn 0.7s cubic-bezier(0.22,1,0.36,1) both,
             f1LevitateB 6s ease-in-out infinite 0.7s;
}

.f8-headline {
  font-family: var(--font-title);
  font-size: clamp(19px, 3.6vw, 38px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0;
}

.f8-headline-teal {
  color: var(--teal);
  position: relative;
}

.f8-headline-teal::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--teal), transparent);
  animation: underlineGrow 1s cubic-bezier(0.22,1,0.36,1) 0.6s both;
  transform-origin: left;
}

.f8-subtitle {
  font-size: clamp(9px, 1.3vw, 12px);
  font-weight: 400;
  color: var(--gray);
  line-height: 1.6;
  margin-top: 4px;
  opacity: 0.85;
}

/* ── PIEZA 2: Layout de 2 columnas (Certificaciones + Fabricantes) ── */
.f8-dual-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 1100px;
}

.f8-cert-column,
.f8-partners-column {
  background: rgba(0, 48, 44, 0.22);
  border: 1px solid rgba(0, 168, 156, 0.18);
  border-radius: 5px;
  padding: clamp(12px, 1.8vh, 16px) clamp(12px, 2vw, 18px);
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* Flotación individual */
  animation: f1FloatIn 0.7s cubic-bezier(0.22,1,0.36,1) both,
             f2LevCard 5.5s ease-in-out infinite;
  animation-delay: var(--fd8, 0s), calc(var(--fd8, 0s) + 0.7s);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.f8-cert-column:hover,
.f8-partners-column:hover {
  border-color: var(--teal);
  box-shadow: 0 0 22px rgba(0, 168, 156, 0.18);
  transform: translateY(-3px) !important;
}

/* Brillo de esquina en hover */
.f8-cert-column::before,
.f8-partners-column::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 40px;
  background: radial-gradient(circle at 0% 0%, rgba(0,168,156,0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.f8-cert-column:hover::before,
.f8-partners-column:hover::before { opacity: 1; }

/* Header de columna */
.f8-col-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.f8-col-title {
  font-family: var(--font-title);
  font-size: clamp(11px, 1.6vw, 14px);
  font-weight: 800;
  color: var(--white);
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.3px;
}

.f8-col-subtitle {
  font-size: clamp(8px, 1.1vw, 10px);
  font-weight: 500;
  color: var(--gray-dk);
  margin: 2px 0 0 0;
  line-height: 1.3;
  font-style: italic;
}

.f8-badge {
  font-family: var(--font-title);
  font-size: clamp(7px, 1vw, 9px);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.f8-badge-max {
  background: linear-gradient(135deg, var(--teal), var(--aqua));
  color: var(--white);
}

.f8-badge-partners {
  background: rgba(0, 168, 156, 0.15);
  color: var(--teal);
  border: 1px solid var(--teal);
}

/* ──────────────────────────────────────────────────────────
   CERTIFICACIONES: Tarjetas con iconos y categorías
   ────────────────────────────────────────────────────────── */

.f8-cert-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  background: rgba(0, 48, 44, 0.3);
  border: 1px solid rgba(124, 182, 178, 0.2);
  border-radius: 4px;
  transition: border-color 0.3s, background 0.3s;
}

.f8-cert-card:hover {
  border-color: rgba(0, 168, 156, 0.4);
  background: rgba(0, 168, 156, 0.08);
}

.f8-cert-microsoft {
  border-color: rgba(0, 168, 156, 0.3);
  background: rgba(0, 168, 156, 0.06);
}

.f8-cert-icon {
  font-size: clamp(20px, 3vw, 28px);
  flex-shrink: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.f8-cert-content {
  flex: 1;
  min-width: 0;
}

.f8-cert-name {
  font-family: var(--font-title);
  font-size: clamp(10px, 1.4vw, 12px);
  font-weight: 800;
  color: var(--white);
  margin: 0 0 2px 0;
  letter-spacing: 0.3px;
}

.f8-cert-org {
  font-size: clamp(8px, 1.1vw, 10px);
  color: var(--gray-dk);
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.f8-cert-level {
  font-size: clamp(8px, 1.05vw, 9px);
  color: var(--gray);
  margin: 0;
  line-height: 1.4;
}

.f8-cert-level strong {
  color: var(--teal);
  font-weight: 700;
}

/* Categorías de Microsoft Solutions Partner */
.f8-cert-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.f8-cat-tag {
  display: inline-block;
  font-size: clamp(7px, 0.95vw, 8px);
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, rgba(0, 168, 156, 0.3), rgba(124, 182, 178, 0.2));
  border: 1px solid rgba(0, 168, 156, 0.4);
  border-radius: 2px;
  padding: 2px 6px;
  letter-spacing: 0.3px;
  transition: background 0.2s, border-color 0.2s;
}

.f8-cat-tag:hover {
  background: linear-gradient(135deg, rgba(0, 168, 156, 0.5), rgba(124, 182, 178, 0.3));
  border-color: var(--teal);
}

/* ──────────────────────────────────────────────────────────
   FABRICANTES/PARTNERS: Tarjetas simples con icono + nombre
   ────────────────────────────────────────────────────────── */

.f8-partner-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(0, 48, 44, 0.25);
  border: 1px solid rgba(124, 182, 178, 0.18);
  border-left: 3px solid var(--teal);
  border-radius: 4px;
  transition: border-color 0.3s, background 0.3s, transform 0.2s;
}

.f8-partner-card:hover {
  border-left-color: var(--aqua);
  background: rgba(0, 168, 156, 0.1);
  transform: translateX(4px);
}

.f8-partner-icon {
  font-size: clamp(18px, 2.5vw, 24px);
  flex-shrink: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.f8-partner-name {
  font-family: var(--font-title);
  font-size: clamp(10px, 1.3vw, 12px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.3px;
}

/* Barra decorativa inferior */
.f8-svc-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--teal), transparent);
  transform: scaleX(0);
  transform-origin: left;
  animation: f1MetricBar 0.6s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: calc(var(--fd8, 0s) + 0.4s);
}

/* ── PIEZA 3: Banner de cita ── */
.f8-quote-banner {
  background: linear-gradient(135deg, rgba(0, 168, 156, 0.12) 0%, rgba(0, 48, 44, 0.25) 100%);
  border: 1px solid rgba(0, 168, 156, 0.25);
  border-left: 4px solid var(--teal);
  border-radius: 5px;
  padding: clamp(12px, 2vh, 18px) clamp(16px, 2.5vw, 24px);
  width: 100%;
  max-width: 1100px;
  /* Flotación */
  animation: f1FloatIn 0.7s cubic-bezier(0.22,1,0.36,1) both,
             f1LevitateD 6.5s ease-in-out infinite 1.5s;
  animation-delay: var(--fd8, 0s), calc(var(--fd8, 0s) + 0.7s);
}

.f8-quote-text {
  font-size: clamp(11px, 1.7vw, 16px);
  font-weight: 500;
  color: var(--gray);
  line-height: 1.5;
  font-style: italic;
}

.f8-quote-text strong {
  color: var(--white);
  font-weight: 700;
}

.f8-quote-text em {
  color: var(--teal);
  font-style: italic;
}

/* ── PIEZA 4: Speech ── */
.f8-speech-piece {
  width: 100%;
  max-width: 900px;
}

/* ── RESPONSIVE FASE 8 ── */
@media (max-width: 950px) {
  .f8-dual-layout {
    flex-direction: column;
    align-items: stretch;
  }
  .f8-cert-column,
  .f8-partners-column { width: 100%; }
}
@media (max-width: 540px) {
  .f8-headline { font-size: 18px; }
  .f8-quote-text { font-size: 11px; }
  .f8-cert-card,
  .f8-partner-card { padding: 8px 10px; }
  .f8-cert-categories { gap: 3px; }
  .f8-cat-tag { padding: 2px 4px; font-size: 7px; }
}

/* ══════════════════════════════════════════════════════════
   FASE 6 — COPILOT M365 — Dashboard 3 columnas + Security Score
   ══════════════════════════════════════════════════════════ */

/* Onda decorativa de fondo */
.f6-wave-bg {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}
.f6-wave-bg svg { width: 100%; height: 100%; }

/* Contenedor principal */
.phase-inner-f6 {
  padding: 4px 16px 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative; /* anchor for overlay panel */
  box-sizing: border-box;
}

/* Grid principal — columna única que contiene header + body */
.f6-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  gap: 5px;
  position: relative;
  z-index: 1;
}

/* Piezas flotantes base */
.f6-piece {
  animation: f1FloatIn 0.65s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: var(--fd6, 0s);
}

/* ──────────────────────────────────────────────
   CABECERA — badge + título + tab único
   ────────────────────────────────────────────── */
.f6-header-piece {
  width: 100%;
  flex-shrink: 0;
  animation: f1FloatIn 0.65s cubic-bezier(0.22,1,0.36,1) both,
             f1LevitateB 6s ease-in-out infinite;
  animation-delay: var(--fd6,0s), calc(var(--fd6,0s) + 0.65s);
}

.f6-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0,168,156,0.12);
}

.f6-wow-badge {
  font-size: clamp(7px, 1vw, 9px);
  font-weight: 800;
  color: var(--teal);
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 1px solid rgba(0,168,156,0.4);
  border-radius: 2px;
  padding: 2px 8px;
  white-space: nowrap;
  animation: wowPulse 1.5s ease-in-out infinite alternate;
  flex-shrink: 0;
}

.f6-headline {
  font-size: clamp(14px, 2.4vw, 24px);
  font-weight: 900;
  color: var(--white);
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.f6-headline-teal {
  color: var(--teal);
  position: relative;
}

.f6-headline-teal::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--teal);
  animation: underlineGrow 0.8s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.5s;
}

.f6-subtitle {
  font-size: clamp(6px, 1vw, 9px);
  color: var(--aqua);
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
}

/* Tab único "Security Score" */
.f6-tabs-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.f6-tab {
  font-family: var(--font-title);
  font-size: clamp(7px, 1.1vw, 10px);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  background: rgba(0,48,44,0.3);
  border: 1px solid rgba(0,168,156,0.35);
  border-radius: 2px;
  color: var(--teal);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  animation: wowPulse 2s ease-in-out infinite alternate;
}
.f6-tab:hover {
  background: rgba(0,168,156,0.18);
  border-color: var(--teal);
  box-shadow: 0 0 10px rgba(0,168,156,0.3);
}

/* ──────────────────────────────────────────────
   DASHBOARD PRINCIPAL — 3 columnas siempre visibles
   ────────────────────────────────────────────── */
.f6-main-dashboard {
  display: flex;
  gap: 8px;
  align-items: stretch;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.f6-dash-col {
  flex: 1;
  min-width: 0;
  background: rgba(0,48,44,0.22);
  border: 1px solid rgba(0,168,156,0.18);
  border-radius: 5px;
  padding: clamp(7px,1.2vh,11px) clamp(7px,1.1vw,11px);
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.2s;
  animation: f1FloatIn 0.65s cubic-bezier(0.22,1,0.36,1) both,
             f1LevitateC 5.5s ease-in-out infinite;
  animation-delay: var(--fd6,0s), calc(var(--fd6,0s) + 0.65s);
}

.f6-dash-col:hover {
  border-color: rgba(0,168,156,0.4);
  transform: translateY(-2px);
}

/* Barra animada inferior */
.f6-eco-bar {
  height: 2px;
  background: linear-gradient(to right, var(--teal), transparent);
  transform: scaleX(0);
  transform-origin: left;
  animation: f1MetricBar 0.6s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: calc(var(--fd6, 0s) + 0.5s);
  width: 100%;
  border-radius: 1px;
  margin-top: auto;
  flex-shrink: 0;
}

/* Brillo esquina */
.f6-dash-col::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 70px; height: 70px;
  background: radial-gradient(circle at top left, rgba(0,168,156,0.1), transparent 70%);
  pointer-events: none;
}

/* Título de sección */
.f6-dash-section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: clamp(7.5px, 1.15vw, 10.5px);
  font-weight: 800;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(0,168,156,0.15);
  flex-shrink: 0;
}

/* ── Col 1: Logo Copilot ── */
.f6-eco-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  background: rgba(0,48,44,0.3);
  border-radius: 3px;
  flex-shrink: 0;
}
.f6-eco-logo-label {
  font-size: clamp(7px, 1vw, 9px);
  color: var(--gray-dk);
  line-height: 1.4;
}
.f6-eco-logo-label strong {
  color: var(--white);
  font-weight: 800;
  display: block;
  font-size: clamp(8px, 1.15vw, 10px);
}

/* ── Col 1: Ecosistema items ── */
.f6-dash-eco-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.f6-dash-eco-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  background: rgba(0,48,44,0.3);
  border: 1px solid rgba(0,168,156,0.1);
  border-radius: 3px;
  padding: 5px 7px;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.f6-dash-eco-item:hover { border-color: rgba(0,168,156,0.3); }

.f6-dash-eco-icon {
  font-size: clamp(13px, 1.8vw, 16px);
  flex-shrink: 0;
  line-height: 1;
}

.f6-dash-eco-name {
  font-size: clamp(7.5px, 1.05vw, 9.5px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.f6-dash-eco-desc {
  font-size: clamp(6.5px, 0.95vw, 8px);
  color: var(--gray-dk);
  line-height: 1.35;
}

.f6-dash-req {
  background: rgba(255,185,0,0.05);
  border: 1px solid rgba(255,185,0,0.2);
  border-radius: 3px;
  padding: 5px 7px;
  flex-shrink: 0;
}

.f6-dash-req-title {
  font-size: clamp(6.5px, 1vw, 8.5px);
  font-weight: 700;
  color: #FFB900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.f6-dash-req-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.f6-dash-req-list li {
  font-size: clamp(6.5px, 0.95vw, 8px);
  color: var(--gray-dk);
  padding-left: 10px;
  position: relative;
  line-height: 1.35;
}
.f6-dash-req-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #FFB900;
  font-size: 8px;
}

/* ── Col 2: Implementación ── */
.f6-dash-impl-subtitle {
  font-size: clamp(6.5px, 0.95vw, 8px);
  color: var(--aqua);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
  flex-shrink: 0;
}

.f6-dash-impl-steps {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.f6-dash-impl-step {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14,17,17,0.7);
  border: 1px solid rgba(0,168,156,0.15);
  border-radius: 3px;
  padding: 5px 8px;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.f6-dash-impl-step:hover { border-color: rgba(0,168,156,0.4); }
.f6-dash-impl-step.f6-impl-active {
  border-color: rgba(0,168,156,0.5);
  background: rgba(0,48,44,0.4);
}
.f6-dash-impl-step.f6-impl-active .f6-dash-impl-num {
  background: rgba(0,168,156,0.25);
  border-color: var(--teal);
}

.f6-dash-impl-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,168,156,0.15);
  border: 1px solid rgba(0,168,156,0.4);
  color: var(--teal);
  font-size: clamp(8px, 1.1vw, 10px);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.f6-dash-impl-body { flex: 1; min-width: 0; }

.f6-dash-impl-name {
  font-size: clamp(7.5px, 1.1vw, 9.5px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.f6-impl-tag {
  display: inline-block;
  font-size: clamp(6px, 0.85vw, 7.5px);
  color: var(--aqua);
  background: rgba(0,168,156,0.1);
  border: 1px solid rgba(0,168,156,0.2);
  border-radius: 2px;
  padding: 0px 4px;
  vertical-align: middle;
  margin-left: 3px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.f6-dash-impl-desc {
  font-size: clamp(6px, 0.9vw, 7.5px);
  color: var(--gray-dk);
  line-height: 1.3;
}

.f6-dash-impl-connector {
  font-size: 9px;
  color: rgba(0,168,156,0.35);
  text-align: left;
  line-height: 1;
  padding-left: 10px;
  flex-shrink: 0;
}

.f6-dash-tagline {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 5px 8px;
  background: rgba(0,168,156,0.07);
  border: 1px solid rgba(0,168,156,0.2);
  border-radius: 3px;
  flex-shrink: 0;
}

.f6-tl-text {
  font-size: clamp(6.5px, 1vw, 8.5px);
  color: var(--gray-dk);
  font-weight: 500;
}

.f6-tl-num {
  font-size: clamp(11px, 1.8vw, 16px);
  font-weight: 900;
  color: var(--teal);
  letter-spacing: 1px;
}

/* ── Col 3: KPIs + Tabla ── */
.f6-dash-kpi-row {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.f6-dash-kpi {
  flex: 1;
  background: rgba(14,17,17,0.7);
  border: 1px solid rgba(0,168,156,0.18);
  border-radius: 3px;
  padding: 5px 3px;
  text-align: center;
  transition: border-color 0.2s;
}
.f6-dash-kpi:hover { border-color: var(--teal); }

.f6-dash-kpi-num {
  font-size: clamp(13px, 2.2vw, 20px);
  font-weight: 900;
  color: var(--teal);
  line-height: 1.1;
}

.f6-dash-kpi-label {
  font-size: clamp(5.5px, 0.85vw, 7.5px);
  font-weight: 700;
  color: var(--gray-dk);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 2px;
  line-height: 1.3;
}

.f6-dash-table-wrap {
  flex: 1;
  overflow: auto;
  scrollbar-width: none;
  min-height: 0;
}

.f6-dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(6px, 0.95vw, 8.5px);
}

.f6-dash-table th {
  background: rgba(0,168,156,0.1);
  border: 1px solid rgba(0,168,156,0.2);
  padding: 4px 5px;
  text-align: center;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.f6-dash-table td {
  border: 1px solid rgba(255,255,255,0.05);
  padding: 3px 4px;
  text-align: center;
  color: var(--gray-dk);
}

.f6-dash-table tbody tr:nth-child(even) td {
  background: rgba(0,48,44,0.15);
}

.f6-dash-table td:first-child {
  text-align: left;
  color: var(--gray);
  font-size: clamp(5.5px, 0.9vw, 7.5px);
  white-space: nowrap;
}

/* Badges de licencia */
.f6-lic-row {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.f6-lic-badge {
  flex: 1;
  text-align: center;
  font-size: clamp(6px, 0.9vw, 8px);
  font-weight: 700;
  padding: 3px 4px;
  border-radius: 2px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.f6-lic-ms  { background: rgba(0,164,239,0.1); border: 1px solid rgba(0,164,239,0.3); color: #00A4EF; }
.f6-lic-cop { background: rgba(0,168,156,0.1); border: 1px solid rgba(0,168,156,0.3); color: var(--teal); }
.f6-lic-def { background: rgba(127,186,0,0.1);  border: 1px solid rgba(127,186,0,0.3);  color: #7FBA00; }

/* Helpers de tabla */
.f6-check-teal {
  color: var(--teal);
  font-weight: 700;
  font-size: clamp(10px, 1.5vw, 13px);
}
.f6-check-sm {
  color: var(--aqua);
  font-size: clamp(5.5px, 0.85vw, 7px);
  font-weight: 600;
}
.f6-na {
  color: rgba(255,255,255,0.2);
  font-size: clamp(5.5px, 0.85vw, 7px);
  font-style: italic;
}

/* ──────────────────────────────────────────────
   TAB PANEL: SECURITY SCORE — juego overlay
   ────────────────────────────────────────────── */
.f6-tab-panel {
  display: none;
  animation: f1FloatIn 0.3s ease both;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 20;
  background: var(--black);
  border: 1px solid rgba(0,168,156,0.2);
  border-radius: 4px;
}
.f6-tab-panel.active { display: flex; flex-direction: column; }

.f6-score-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 8px;
  gap: 6px;
  box-sizing: border-box;
}

.f6-score-game-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  min-height: 0;
}

/* Cabecera del juego */
.f6-score-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  background: rgba(0,168,156,0.08);
  border: 1px solid rgba(0,168,156,0.2);
  border-radius: 3px;
  flex-shrink: 0;
}

.f6-score-label {
  font-size: clamp(8px, 1.2vw, 10px);
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 1px;
  flex: 1;
}

.f6-score-count {
  font-size: clamp(7px, 1.1vw, 9px);
  color: var(--gray-dk);
  font-weight: 600;
}
.f6-score-count strong {
  color: var(--teal);
  font-size: clamp(10px, 1.5vw, 13px);
}

.f6-score-close {
  font-family: var(--font-title);
  font-size: clamp(7px, 1vw, 9px);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  background: rgba(0,48,44,0.5);
  border: 1px solid rgba(0,168,156,0.3);
  border-radius: 2px;
  color: var(--aqua);
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
  margin-left: auto;
}
.f6-score-close:hover {
  background: rgba(0,168,156,0.2);
  color: var(--teal);
}

/* Área de juego ampliada */
.f6-game-full {
  flex: 1;
  min-height: 0;
  width: 100%;
  background: rgba(0,48,44,0.2);
  border: 1px solid rgba(0,168,156,0.3);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  cursor: none;
}

/* Fila inferior: chat + botones */
.f6-score-chat-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-shrink: 0;
  height: clamp(60px, 10vh, 90px);
}

.f6-score-chat {
  flex: 1;
  overflow-y: auto;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: none;
  background: rgba(14,17,17,0.85);
  border: 1px solid rgba(0,168,156,0.2);
  border-radius: 3px;
}

.f6-score-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  flex-shrink: 0;
  min-width: 130px;
}

/* Animación badge */
@keyframes wowPulse {
  from { box-shadow: 0 0 4px rgba(0,168,156,0.15); }
  to   { box-shadow: 0 0 14px rgba(0,168,156,0.5), 0 0 24px rgba(0,168,156,0.2); }
}

/* ── RESPONSIVE FASE 6 ── */
@media (max-width: 900px) {
  .f6-main-dashboard { flex-direction: column; gap: 5px; }
  .f6-dash-col       { width: 100%; flex: none; }
  .f6-header-row     { gap: 8px; }
  .f6-headline       { font-size: 20px; }
  .f6-tabs-nav       { margin-left: 0; }
}

@media (max-width: 540px) {
  .f6-headline       { font-size: 16px; }
  .f6-tabs-nav       { gap: 3px; }
  .f6-tab            { font-size: 7px; padding: 3px 8px; }
  .f6-dash-col       { padding: 6px 7px; }
  .f6-score-actions  { min-width: 100px; }
  .f6-dash-kpi-num   { font-size: 14px; }
}

/* ── 14. RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  .phase-inner { padding: 14px 18px 8px; }
  .phase-ship-deco { display: none; }
  .pilares-grid    { grid-template-columns: 1fr 1fr; }
  .cases-grid      { grid-template-columns: 1fr 1fr; }
  .superpowers-grid { grid-template-columns: 1fr; }
  .gtm-pipeline    { flex-direction: column; align-items: center; }
  .gtm-arrow       { transform: rotate(90deg); }
  .gtm-step        { width: 100%; max-width: 320px; }
  .wow-game-container { flex-direction: column; height: auto; }
  .wow-game-area   { height: 160px; }
  .wow-copilot-panel { width: 100%; height: 150px; }
  .final-logos     { flex-direction: column; align-items: center; }
  .hud-center      { display: none; }
  .phase-nav       { padding: 8px 12px; }
  .nav-btn         { padding: 7px 12px; }
  .metrics-bar     { flex-direction: column; }
  .metric-item     { border-right: none; border-bottom: 1px solid rgba(0,168,156,0.15); }
  .metric-item:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
  .pilares-grid  { grid-template-columns: 1fr; }
  .cases-grid    { grid-template-columns: 1fr; }
  .logos-combo   { flex-direction: column; gap: 12px; }
  .slide-logos   { flex-direction: column; }
  .speech-bubble { flex-direction: column; }
  .cta-container { flex-direction: column; align-items: center; }
  .kpi-targets   { flex-direction: column; }
  .mission-summary { flex-direction: column; align-items: center; }
}

/* Fuerza cursor none en todos los elementos interactivos */
button, a, [onclick], .service-orb, .nav-btn, .wow-btn, .cta-btn, .modal-close, .intro-start {
  cursor: none !important;
}
