@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Neiva Fest Reto Innova & Fundación Brand Palette */
  --fest-orange: #ea580c;
  --fest-orange-bright: #f97316;
  --fest-orange-glow: rgba(249, 115, 22, 0.24);
  --fest-orange-dark: #c2410c;
  --fest-cream: #fff7ed;
  --fest-sand: #ffedd5;
  --fest-gold: #f59e0b;
  --fest-gold-light: #fbbf24;
  --fest-gold-glow: rgba(245, 158, 11, 0.25);
  
  --navy: #091e36;
  --navy2: #051324;
  --navy-light: #133355;
  --teal: #0d9488;
  --teal-light: #14b8a6;
  --teal-glow: rgba(20, 184, 166, 0.18);
  --cyan: #0284c7;
  --cyan-light: #38bdf8;
  --gold: #d97706;
  --gold-light: #fbbf24;
  --gold-glow: rgba(251, 191, 36, 0.22);
  --ink: #091e36;
  --muted: #334155;
  --muted-light: #475569;
  --soft: #f8fafc;
  --soft-alt: #f1f5f9;
  --card-bg: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --white: #ffffff;
  --success: #10b981;
  --success-bg: #ecfdf5;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 4px rgba(9, 30, 54, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(9, 30, 54, 0.08), 0 8px 10px -6px rgba(9, 30, 54, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(9, 30, 54, 0.12), 0 10px 15px -8px rgba(9, 30, 54, 0.06);
  --shadow-glow: 0 0 35px rgba(234, 88, 12, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background-color: #fcfdfe;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand b, .eyebrow, .btn, .stat-value {
  font-family: 'Outfit', 'Inter', sans-serif;
}

a {
  color: var(--fest-orange-bright);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--fest-orange-dark);
}

.wrap {
  width: min(1220px, 92%);
  margin: auto;
}

.narrow {
  width: min(800px, 92%);
  margin: auto;
}

/* Header & Navigation */
.top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1.5px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.3s ease;
}

.top:hover {
  box-shadow: 0 4px 20px rgba(9, 30, 54, 0.06);
}

.nav {
  min-height: 84px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Dual Brand Logos in Header */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.brand-logos-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-img {
  height: 44px;
  max-width: 140px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.brand-logo-img.fest {
  height: 48px;
  border-radius: 8px;
}

.brand-logo-img.fundacion {
  height: 40px;
  border-radius: 6px;
  background: #ffffff;
  padding: 2px 4px;
  border: 1px solid #e2e8f0;
}

.brand:hover .brand-logo-img {
  transform: scale(1.04);
}

.brand-divider {
  width: 1.5px;
  height: 32px;
  background: var(--line-strong);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text-block b {
  font-size: 17px;
  letter-spacing: -0.3px;
  color: var(--navy);
  font-weight: 800;
}

.brand-text-block small {
  font-size: 10.5px;
  letter-spacing: 1.2px;
  color: var(--fest-orange);
  font-weight: 800;
  text-transform: uppercase;
}

.mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--fest-orange), var(--fest-orange-bright), var(--navy));
  color: white;
  font-weight: 900;
  font-size: 17px;
  box-shadow: 0 6px 16px var(--fest-orange-glow);
  transition: transform 0.3s ease;
}

.brand:hover .mark {
  transform: rotate(5deg) scale(1.05);
}

.mark.big {
  width: 76px;
  height: 76px;
  font-size: 28px;
  border-radius: 20px;
  margin: auto;
}

.nav nav {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.nav nav a:not(.btn) {
  color: var(--navy);
  font-weight: 600;
  font-size: 14.5px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav nav a:not(.btn):hover,
.nav nav a:not(.btn):focus,
.nav nav a:not(.btn):focus-visible {
  background: var(--fest-cream);
  color: var(--fest-orange);
  outline: none;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.role-tag {
  background: var(--fest-orange-glow);
  color: var(--fest-orange);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: linear-gradient(135deg, var(--fest-orange) 0%, var(--fest-orange-bright) 100%) !important;
  color: #ffffff !important;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(234, 88, 12, 0.32);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.btn:hover,
.btn:focus,
.btn:focus-visible,
.nav nav a.btn:hover,
.nav nav a.btn:focus,
.nav nav a.btn:focus-visible {
  background: linear-gradient(135deg, var(--fest-orange-dark) 0%, var(--fest-orange) 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.45);
  filter: brightness(1.05);
  outline: 2px solid var(--fest-orange-bright) !important;
  outline-offset: 2px;
}

.btn:active,
.nav nav a.btn:active {
  transform: translateY(0);
}

.btn.small {
  padding: 8px 18px !important;
  font-size: 13.5px !important;
  border-radius: 9px !important;
}

.btn.ghost {
  background: white !important;
  color: var(--navy) !important;
  border: 1.5px solid var(--line-strong) !important;
  box-shadow: var(--shadow-sm);
}

.btn.ghost:hover,
.btn.ghost:focus,
.btn.ghost:focus-visible,
.nav nav a.btn.ghost:hover,
.nav nav a.btn.ghost:focus,
.nav nav a.btn.ghost:focus-visible {
  border-color: var(--fest-orange) !important;
  color: var(--fest-orange) !important;
  background: var(--fest-cream) !important;
  box-shadow: var(--shadow-md);
  outline: 2px solid var(--fest-orange) !important;
  outline-offset: 2px;
}

.btn.gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.28);
}

.btn.gold:hover {
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.38);
}

.btn.danger {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 8px 22px rgba(239, 68, 68, 0.25);
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 85% 15%, rgba(249, 115, 22, 0.22) 0%, transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(234, 88, 12, 0.15) 0%, transparent 40%),
              linear-gradient(170deg, rgba(255, 252, 249, 0.94) 0%, rgba(255, 246, 238, 0.92) 100%),
              url('poster_neiva_conecta.jpg') center/cover no-repeat;
  padding: 85px 0 75px;
  border-bottom: 1.5px solid var(--line);
}

.tech-page-bg {
  position: relative;
  min-height: 85vh;
  padding: 40px 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--fest-orange);
  font-weight: 800;
  text-transform: uppercase;
  background: var(--fest-orange-glow);
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 16px;
}

.eyebrow-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fest-orange-bright);
  box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
  margin: 10px 0 18px;
  color: var(--navy2);
  letter-spacing: -1.2px;
  font-weight: 900;
}

.hero h1 em {
  background: linear-gradient(135deg, var(--fest-orange), var(--fest-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}

.hero p {
  font-size: 18px;
  line-height: 1.7;
  color: #334155;
  max-width: 680px;
}

.actions {
  display: flex;
  gap: 14px;
  margin: 28px 0;
  flex-wrap: wrap;
}

/* Live Dynamic Countdown */
.countdown-box {
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(10px);
}

.countdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.countdown-digits {
  display: flex;
  gap: 10px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--navy);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 10px;
  min-width: 58px;
  box-shadow: 0 4px 12px rgba(9, 30, 54, 0.15);
}

.countdown-item strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--fest-gold-light);
  line-height: 1.1;
  font-family: 'Outfit', sans-serif;
}

.countdown-item span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Prize & Podium Showcase */
.prize {
  position: relative;
  background: linear-gradient(145deg, #091e36, #051324);
  color: white;
  border-radius: var(--radius-xl);
  padding: 38px 28px;
  text-align: center;
  box-shadow: 0 25px 60px -15px rgba(9, 30, 54, 0.4), var(--shadow-glow);
  border: 1.5px solid rgba(249, 115, 22, 0.3);
  overflow: hidden;
}

.prize::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.prize small {
  font-size: 11.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--fest-sand);
  font-weight: 800;
}

.prize strong {
  display: block;
  font-size: clamp(38px, 4.5vw, 52px);
  margin: 8px 0 0;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #ffffff 40%, var(--fest-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.prize > span {
  font-size: 13.5px;
  color: #cbd5e1;
  font-weight: 700;
  letter-spacing: 2px;
}

.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.podium-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 8px;
  border-radius: 16px;
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, background 0.3s ease;
}

.podium-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.14);
}

.podium-card.first {
  border-color: rgba(251, 191, 36, 0.6);
  background: rgba(251, 191, 36, 0.15);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.2);
  transform: scale(1.05);
}

.podium-card.first:hover {
  transform: scale(1.05) translateY(-4px);
}

.podium-card b {
  display: block;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 4px;
}

.podium-card.first b { color: #ffd86a; }
.podium-card.second b { color: #e2e8f0; }
.podium-card.third b { color: #fdba74; }

.podium-card div {
  font-size: 15px;
  font-weight: 800;
}

.podium-card small {
  font-size: 10.5px;
  color: #cbd5e1;
  display: block;
  margin-top: 2px;
}

/* Format Header Compact Logos */
.format-header-logos {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.format-logo-sm {
  height: 32px;
  max-width: 100px;
  object-fit: contain;
}

/* Sections */
.section {
  padding: 85px 0;
}

.section.soft {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 780px;
  margin-bottom: 38px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  color: var(--navy2);
  font-size: clamp(28px, 3.5vw, 42px);
  margin: 10px 0;
  letter-spacing: -1px;
  font-weight: 800;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

/* Cards */
.cards {
  display: grid;
  gap: 24px;
}

.cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.cards.four {
  grid-template-columns: repeat(4, 1fr);
}

.cards.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 18px;
  background: var(--teal-glow);
  color: var(--teal);
}

.card h3 {
  color: var(--navy);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card p {
  color: #475569;
  line-height: 1.65;
  font-size: 15px;
}

/* Interactive Area Explorer */
.areas-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.area-tab {
  border: 1.5px solid var(--line);
  background: white;
  color: var(--navy);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.area-tab:hover {
  border-color: var(--teal);
  background: var(--soft);
}

.area-tab.active {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.area-content-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

/* Steps Section */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  position: relative;
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
}

.step-num {
  font-size: 36px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: #cbd5e1;
  line-height: 1;
  margin-bottom: 12px;
}

.step-card h3 {
  color: var(--navy);
  font-size: 18px;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Timeline / Cronograma */
.timeline-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
  margin-top: 30px;
}

.timeline-node {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 22px 18px;
  position: relative;
  box-shadow: 0 4px 14px rgba(9, 30, 54, 0.05);
  border-top: 5px solid #0284c7;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.timeline-node:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(9, 30, 54, 0.1);
}

.timeline-node.fase-node-1 { border-top-color: #0284c7; }
.timeline-node.fase-node-2, .timeline-node.active { 
  border-top-color: #d97706; 
  border-color: #fde68a; 
  border-top-width: 5px;
  background: #fffdf5; 
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.15);
}
.timeline-node.fase-node-3 { border-top-color: #6366f1; }
.timeline-node.fase-node-4 { border-top-color: #ea580c; }
.timeline-node.fase-node-5 { border-top-color: #059669; }

.timeline-node b, .timeline-date {
  color: #051324 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  font-family: 'Outfit', sans-serif !important;
  display: block !important;
  margin: 10px 0 6px !important;
}

.timeline-desc, .timeline-node p {
  color: #1e293b !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  font-weight: 500 !important;
  margin: 0 !important;
}

/* Timeline Badges with 100% Guaranteed High Contrast */
.timeline-node .timeline-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  padding: 5px 14px !important;
  border-radius: 999px !important;
  margin-bottom: 4px !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}

.timeline-node .timeline-badge.badge-fase-1 {
  background: #0284c7 !important;
  color: #ffffff !important;
}

.timeline-node .timeline-badge.badge-fase-2 {
  background: #d97706 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4) !important;
}

.timeline-node .timeline-badge.badge-fase-3 {
  background: #6366f1 !important;
  color: #ffffff !important;
}

.timeline-node .timeline-badge.badge-fase-4 {
  background: #ea580c !important;
  color: #ffffff !important;
}

.timeline-node .timeline-badge.badge-fase-5 {
  background: #059669 !important;
  color: #ffffff !important;
}

/* Interactive Status Tracker on Index */
.tracker-box {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  color: white;
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-lg);
  margin-top: 40px;
}

.tracker-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.tracker-search {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.tracker-search input {
  flex: 1;
  background: rgba(255, 255, 255, 0.95);
  border: 0;
  color: var(--ink);
  font-weight: 600;
  padding: 14px 18px;
  border-radius: 12px;
}

/* Interactive Rubric Simulator */
.rubric-simulator {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.rubric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.rubric-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: var(--soft);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.rubric-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.rubric-slider {
  width: 100%;
  accent-color: var(--teal);
  cursor: pointer;
}

.rubric-total-card {
  background: linear-gradient(145deg, var(--navy), var(--navy2));
  color: white;
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.rubric-score-display {
  font-size: 64px;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
  margin: 16px 0 8px;
  font-family: 'Outfit', sans-serif;
}

/* FAQ Accordion */
.faq-grid {
  display: grid;
  gap: 16px;
  max-width: 900px;
  margin: auto;
}

.faq-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item.active {
  border-color: var(--teal);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  font-size: 16px;
}

.faq-question:hover {
  background: var(--soft);
}

.faq-icon {
  font-size: 18px;
  color: var(--teal);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  color: #475569;
  font-size: 15px;
  line-height: 1.65;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Form Styles & Stepper Wizard */
.form-page {
  padding-top: 40px;
}

/* Contenedor Procesos con Scroll */
.contenedor-procesos {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 10px 8px 18px;
  margin-bottom: 30px;
  scrollbar-width: thin;
  scrollbar-color: var(--teal) #e2e8f0;
}

.contenedor-procesos::-webkit-scrollbar {
  height: 6px;
}

.contenedor-procesos::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.contenedor-procesos::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: 10px;
}

.contenedor-procesos::-webkit-scrollbar-thumb:hover {
  background: var(--teal2);
}

.stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  min-width: 760px;
  padding: 0 10px;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 40px;
  right: 40px;
  height: 3px;
  background: var(--line);
  z-index: 1;
}

.stepper-progress {
  position: absolute;
  top: 22px;
  left: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), #059669);
  z-index: 2;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-indicator {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: transparent;
  padding: 0 4px;
  transition: transform 0.2s ease;
  user-select: none;
}

.step-indicator:hover {
  transform: translateY(-2px);
}

.step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--line);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.step-indicator.active .step-circle {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
  box-shadow: 0 0 0 6px var(--teal-glow);
}

.step-indicator.done .step-circle {
  border-color: #059669;
  background: #ecfdf5;
  color: #059669;
  font-weight: 900;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
}

.step-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.step-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.step-indicator.active .step-label {
  color: #0284c7;
  font-weight: 800;
}

.step-indicator.done .step-label {
  color: #047857;
  font-weight: 800;
}

.step-status-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f1f5f9;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
}

.step-status-tag.active {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}

.step-status-tag.finalized {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.step-status-tag.pending {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* =========================================================
   STAGE CURRENT HUB & DYNAMIC COLOR THEMES
   ========================================================= */
.stage-current-hub {
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  background: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.stage-current-hub::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--stage-gradient, linear-gradient(90deg, #0284c7, #0d9488));
  transition: background 0.4s ease;
}

.stage-hub-content {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.stage-hub-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  flex-shrink: 0;
  background: var(--stage-icon-bg, linear-gradient(135deg, #0284c7, #0d9488));
  color: white;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

.stage-hub-text {
  flex: 1;
}

.stage-hub-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.stage-hub-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--stage-tag-bg, #e0f2fe);
  color: var(--stage-tag-color, #0369a1);
  border: 1px solid var(--stage-tag-border, #bae6fd);
  transition: all 0.3s ease;
}

.stage-hub-progress-text {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.stage-hub-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  font-family: 'Outfit', sans-serif;
  transition: color 0.3s ease;
}

.stage-hub-desc {
  margin: 0;
  font-size: 14.5px;
  color: #0f172a;
  font-weight: 500;
  line-height: 1.55;
}

.stage-hub-bar-wrap {
  width: 100%;
  height: 7px;
  background: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.stage-hub-bar-fill {
  height: 100%;
  background: var(--stage-gradient, linear-gradient(90deg, #0284c7, #0d9488));
  border-radius: 10px;
  transition: width 0.4s ease, background 0.4s ease;
}

.stage-hub-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stage-pill {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.stage-pill:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.stage-pill.active {
  background: var(--stage-pill-active-bg, #f0f9ff);
  border-color: var(--stage-pill-active-border, #0284c7);
  box-shadow: 0 4px 12px var(--stage-pill-shadow, rgba(2, 132, 199, 0.12));
}

.stage-pill.done {
  background: #f0fdf4;
  border-color: #86efac;
}

.pill-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.stage-pill.active .pill-dot {
  background: var(--stage-color, #0284c7);
  color: white;
}

.stage-pill.done .pill-dot {
  background: #16a34a;
  color: white;
}

.pill-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.pill-badge {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
}

.stage-pill.active .pill-badge {
  color: var(--stage-color, #0284c7);
  font-weight: 800;
}

.stage-pill.done .pill-badge {
  color: #15803d;
}

/* THEME 1: Azul / Teal (Iniciativa) */
.stage-theme-1 {
  --stage-color: #0284c7;
  --stage-gradient: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
  --stage-icon-bg: linear-gradient(135deg, #0284c7, #0d9488);
  --stage-tag-bg: #e0f2fe;
  --stage-tag-color: #0369a1;
  --stage-tag-border: #bae6fd;
  --stage-pill-active-bg: #f0f9ff;
  --stage-pill-active-border: #0284c7;
  --stage-pill-shadow: rgba(2, 132, 199, 0.18);
  border-color: rgba(2, 132, 199, 0.25);
  box-shadow: 0 10px 28px -6px rgba(2, 132, 199, 0.12);
}

/* THEME 2: Índigo / Púrpura (Equipo) */
.stage-theme-2 {
  --stage-color: #6366f1;
  --stage-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --stage-icon-bg: linear-gradient(135deg, #6366f1, #8b5cf6);
  --stage-tag-bg: #ede9fe;
  --stage-tag-color: #5b21b6;
  --stage-tag-border: #ddd6fe;
  --stage-pill-active-bg: #f5f3ff;
  --stage-pill-active-border: #6366f1;
  --stage-pill-shadow: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 10px 28px -6px rgba(99, 102, 241, 0.12);
}

/* THEME 3: Naranja / Ámbar (Documentación) */
.stage-theme-3 {
  --stage-color: #ea580c;
  --stage-gradient: linear-gradient(135deg, #ea580c 0%, #d97706 100%);
  --stage-icon-bg: linear-gradient(135deg, #ea580c, #d97706);
  --stage-tag-bg: #ffedd5;
  --stage-tag-color: #9a3412;
  --stage-tag-border: #fed7aa;
  --stage-pill-active-bg: #fff7ed;
  --stage-pill-active-border: #ea580c;
  --stage-pill-shadow: rgba(234, 88, 12, 0.18);
  border-color: rgba(234, 88, 12, 0.25);
  box-shadow: 0 10px 28px -6px rgba(234, 88, 12, 0.12);
}

/* THEME 4: Esmeralda / Verde Éxito (Radicación) */
.stage-theme-4 {
  --stage-color: #059669;
  --stage-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --stage-icon-bg: linear-gradient(135deg, #059669, #10b981);
  --stage-tag-bg: #d1fae5;
  --stage-tag-color: #065f46;
  --stage-tag-border: #a7f3d0;
  --stage-pill-active-bg: #f0fdf4;
  --stage-pill-active-border: #059669;
  --stage-pill-shadow: rgba(5, 150, 105, 0.18);
  border-color: rgba(5, 150, 105, 0.25);
  box-shadow: 0 10px 28px -6px rgba(5, 150, 105, 0.14);
}

.btn-stage-action {
  background: var(--stage-gradient, var(--teal));
  color: white;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.btn-stage-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  filter: brightness(1.06);
}

.step-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.step-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--navy);
}

.step-card-badge.done {
  background: #d1fae5;
  color: #047857;
}

/* =========================================================
   ENHANCED MULTI-STEP WIZARD UI & SUMMARY COMPONENTS
   ========================================================= */
.autosave-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  transition: opacity 0.3s ease;
}

.summary-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
  transition: all 0.25s ease;
}

.summary-box:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.summary-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e2e8f0;
}

.summary-box-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-edit-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  background: transparent;
  border: 1px solid rgba(13, 148, 136, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.summary-edit-btn:hover {
  background: var(--teal);
  color: white;
}

.summary-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 14px;
  font-size: 14px;
  line-height: 1.5;
}

.summary-label {
  color: #0f172a;
  font-weight: 700;
}

.summary-val {
  color: #091e36;
  font-weight: 600;
  word-break: break-word;
}

.summary-files-list {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.summary-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  background: white;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.summary-file-item.done {
  border-color: #86efac;
  color: #166534;
}

.summary-file-item.missing {
  border-color: #fca5a5;
  color: #991b1b;
}

/* Inline Field Errors */
.input-invalid {
  border-color: #ef4444 !important;
  background: #fef2f2 !important;
}

.field-error-msg {
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
  display: block;
}

/* Toast Alerts */
.wizard-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

.wizard-toast {
  background: var(--navy);
  color: white;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  animation: slideInUp 0.3s ease;
  border-left: 5px solid var(--teal);
}

.wizard-toast.error {
  border-left-color: #ef4444;
}

.wizard-toast.success {
  border-left-color: #10b981;
}

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

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;

  animation: fadeIn 0.3s ease-in-out;
}

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

.grid {
  display: grid;
  gap: 20px;
}

.grid.two {
  grid-template-columns: 1fr 1fr;
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.full {
  grid-column: 1 / -1;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
}

input, select, textarea {
  width: 100%;
  border: 1.5px solid #94a3b8;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 14.5px;
  background: white;
  color: #091e36;
  font-weight: 500;
  transition: all 0.2s ease;
}

input::placeholder, textarea::placeholder {
  color: #64748b;
  opacity: 1;
  font-weight: 400;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-glow);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.counter-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  font-size: 12.5px;
  color: #334155;
  font-weight: 600;
}

/* File Upload Drag & Drop Zones */
.dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  background: var(--soft);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--teal);
  background: #f0fdfa;
}

.dropzone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-text {
  pointer-events: none;
}

.dropzone-icon {
  font-size: 26px;
  color: var(--teal);
  margin-bottom: 6px;
}

.file-selected {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--teal);
  font-weight: 700;
}

/* Dynamic Member Rows */
.member-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 14px;
}

.member-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0;
  font-weight: 500;
  line-height: 1.5;
  color: #334155;
}

.check input {
  width: auto;
  margin-top: 4px;
  accent-color: var(--teal);
}

/* Alerts & Notifications */
.alert {
  width: min(1220px, 92%);
  margin: 16px auto;
  padding: 14px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14.5px;
}

.alert.error {
  background: var(--danger-bg);
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert.success {
  background: var(--success-bg);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert.info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* Receipts & Success */
.success-card {
  text-align: center;
  padding: 50px 30px;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--success-bg);
  color: var(--success);
  font-size: 34px;
  margin: 0 auto 20px;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.receipt {
  background: var(--soft);
  border: 1.5px dashed var(--line-strong);
  padding: 24px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 28px 0;
  text-align: left;
}

.receipt strong {
  font-size: 28px;
  color: var(--navy);
  font-family: 'Outfit', sans-serif;
  letter-spacing: 1px;
}

/* Admin Dashboard, Evaluations & Ranking */
.admin-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-title h1 {
  font-size: clamp(26px, 3.2vw, 36px);
  color: var(--navy2);
  margin: 4px 0 0;
  font-weight: 800;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 24px 0 34px;
}

.stat-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
}

.stat-card small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.stat-card .stat-value {
  display: block;
  color: var(--navy);
  font-size: 38px;
  font-weight: 900;
  margin-top: 6px;
  line-height: 1.1;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

th, td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

th {
  color: #475569;
  background: #f8fafc;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-top: 1px solid var(--line);
}

tr:hover td {
  background: #f8fafc;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 20px;
  padding: 5px 12px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.status-radicada { background: #e0f2fe; color: #0369a1; }
.status-habilitada { background: #e8f7ef; color: #166534; }
.status-finalista { background: #fef3c7; color: #92400e; }
.status-ganadora { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.status-no_habilitada, .status-descalificada { background: var(--danger-bg); color: #991b1b; }
.status-subsanacion { background: var(--warning-bg); color: #b45309; }
.status-evaluacion { background: #f3e8ff; color: #6b21a8; }

/* Podium in Leaderboard / Ranking */
.ranking-podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 20px;
  margin: 30px 0 40px;
  align-items: flex-end;
}

.podium-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
}

.podium-box.rank-1 {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.15);
  transform: translateY(-10px);
}

.podium-box.rank-2 {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.podium-box.rank-3 {
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

.podium-crown {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin: -50px auto 14px;
  box-shadow: var(--shadow-md);
}

.podium-box.rank-1 .podium-crown { background: #fef3c7; color: #d97706; border: 2px solid #f59e0b; }
.podium-box.rank-2 .podium-crown { background: #f1f5f9; color: #475569; border: 2px solid #94a3b8; }
.podium-box.rank-3 .podium-crown { background: #ffedd5; color: #c2410c; border: 2px solid #ea580c; }

.podium-score {
  font-size: 34px;
  font-weight: 900;
  color: var(--navy);
  font-family: 'Outfit', sans-serif;
  margin: 10px 0;
}

.podium-prize {
  display: inline-block;
  background: var(--gold-glow);
  color: #b45309;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Score Progress Meter */
.score-meter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-bar-wrap {
  flex: 1;
  height: 9px;
  background: var(--soft-alt);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.score-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
}

.score-bar-fill.high { background: linear-gradient(90deg, #10b981, #059669); }
.score-bar-fill.mid { background: linear-gradient(90deg, #f59e0b, #d97706); }
.score-bar-fill.low { background: linear-gradient(90deg, #ef4444, #dc2626); }

/* Split View for Evaluation */
.split-eval {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.sticky-panel {
  position: sticky;
  top: 100px;
}

.rubric-eval-card {
  background: white;
  border: 1.5px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.rubric-criterion {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}

.rubric-criterion:focus-within, .rubric-criterion:hover {
  background: #f0fdfa;
  border-color: var(--teal-light);
}

.criterion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.criterion-header b {
  color: var(--navy);
  font-size: 14.5px;
}

.criterion-header span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.criterion-slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.criterion-slider-row input[type="range"] {
  flex: 1;
  padding: 0;
  accent-color: var(--teal);
  height: 6px;
}

.criterion-slider-row input[type="number"] {
  width: 75px;
  padding: 6px 10px;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
}

/* History Cards */
.eval-history-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.eval-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13.5px;
}

/* Footer */
footer {
  background: var(--navy2);
  color: #cbd5e1;
  padding: 50px 0 35px;
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 35px;
}

footer h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 700;
}

footer a {
  color: #94a3b8;
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}

footer a:hover {
  color: var(--teal-light);
}

footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #64748b;
}

/* Print Styles for Official Acta de Resultados */
@media print {
  .top, footer, .btn, .filters, .actions, .no-print {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
  .card, .wrap {
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    padding: 0 !important;
  }
  .print-header {
    display: block !important;
    margin-bottom: 30px;
    text-align: center;
  }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid, .split-eval, .rubric-grid, .area-content-box, .tracker-inner {
    grid-template-columns: 1fr;
  }
  .sticky-panel {
    position: static;
  }
  .steps, .stats, .cards.four, .timeline-track {
    grid-template-columns: repeat(2, 1fr);
  }
  .ranking-podium {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .podium-box.rank-1 {
    transform: none;
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav nav a:not(.btn) {
    display: none;
  }
  .cards.three, .cards.two, .grid.two, .steps, .stats, .timeline-track, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 50px 0;
  }
  .podium {
    grid-template-columns: 1fr;
  }
  .countdown-digits {
    flex-wrap: wrap;
  }
  .contenedor-procesos .stepper {
    display: flex;
    flex-direction: row;
    min-width: 760px;
    gap: 0;
  }
  .contenedor-procesos .stepper::before, 
  .contenedor-procesos .stepper-progress {
    display: block;
  }
  .stage-hub-pills {
    grid-template-columns: repeat(2, 1fr);
  }
  .stage-hub-content {
    flex-direction: column;
    gap: 12px;
  }
}

/* ==========================================================
   INNOVATIVE IA NEIVA FEST POSTERS & 5S AUTO-CLOSE MODAL
   ========================================================== */

/* Welcome Modal with 5s Auto-Close */
.ia-welcome-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 19, 36, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.ia-welcome-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ia-welcome-dialog {
  background: #051324;
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 210, 255, 0.25), 0 0 20px rgba(234, 88, 12, 0.3);
  border: 1.5px solid rgba(0, 210, 255, 0.4);
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

.ia-welcome-overlay.active .ia-welcome-dialog {
  transform: scale(1) translateY(0);
}

.ia-welcome-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  width: 100%;
  position: relative;
}

.ia-welcome-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ea580c, #00d2ff, #a855f7);
  width: 100%;
  transition: width 0.1s linear;
}

.ia-welcome-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(9, 30, 54, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ia-welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.2), rgba(0, 210, 255, 0.2));
  border: 1px solid rgba(0, 210, 255, 0.4);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #00d2ff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ia-welcome-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.ia-welcome-close:hover {
  background: rgba(234, 88, 12, 0.8);
  border-color: #ea580c;
  transform: scale(1.04);
}

.ia-welcome-body {
  position: relative;
  background: #000;
  line-height: 0;
}

.ia-welcome-img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: cover;
  display: block;
}

.ia-welcome-footer {
  padding: 14px 18px;
  background: #051324;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ia-welcome-footer p {
  color: #cbd5e1;
  font-size: 12.5px;
  line-height: 1.4;
  margin: 0;
  flex: 1;
}

.ia-welcome-btn {
  background: linear-gradient(135deg, var(--fest-orange), var(--fest-orange-bright));
  color: white !important;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px var(--fest-orange-glow);
  transition: transform 0.2s ease;
}

.ia-welcome-btn:hover {
  transform: translateY(-2px);
}

/* Floating Reopen Pill */
.ia-reopen-pill {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: linear-gradient(135deg, #091e36, #051324);
  border: 1.5px solid #00d2ff;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 210, 255, 0.3);
  transition: all 0.25s ease;
  animation: iaPillPulse 3s infinite;
}

.ia-reopen-pill:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: #ea580c;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--fest-orange-glow);
}

@keyframes iaPillPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 12px rgba(0, 210, 255, 0.25); }
  50% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 22px rgba(0, 210, 255, 0.6); }
}

/* Strategic AI Posters Interactive Gallery */
.ia-gallery-section {
  background: linear-gradient(180deg, #051324 0%, #091e36 50%, #051324 100%);
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.ia-gallery-section::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.ia-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.ia-poster-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.ia-poster-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #00d2ff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 210, 255, 0.3);
}

.ia-poster-thumb {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.ia-poster-card:hover .ia-poster-thumb {
  transform: scale(1.06);
}

.ia-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 19, 36, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.ia-poster-tag {
  background: rgba(0, 210, 255, 0.2);
  border: 1px solid #00d2ff;
  color: #00d2ff;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 6px;
  align-self: flex-start;
}

.ia-poster-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 4px;
  line-height: 1.3;
}

.ia-poster-action {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.ia-poster-card:hover .ia-poster-action {
  color: #00d2ff;
}

/* Lightbox Modal */
.ia-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ia-lightbox-overlay.active {
  display: flex;
}

.ia-lightbox-content {
  max-width: 550px;
  width: 100%;
  position: relative;
  text-align: center;
}

.ia-lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 210, 255, 0.4);
  border: 2px solid rgba(0, 210, 255, 0.5);
}

.ia-lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: all 0.2s ease;
}

.ia-lightbox-close:hover {
  background: #ea580c;
  border-color: #ea580c;
}

/* Hero Hologram Teaser Card */
.hero-hologram-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(0, 210, 255, 0.4);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), 0 0 15px rgba(0, 210, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-hologram-card:hover {
  transform: translateY(-3px);
  border-color: var(--fest-orange);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 20px var(--fest-orange-glow);
}

.hero-hologram-thumb {
  width: 70px;
  height: 85px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

/* Tech Background Canvas for Subpages */
.tech-page-bg {
  position: relative;
  background-attachment: fixed !important;
  background-size: cover !important;
  background-position: center !important;
  min-height: 80vh;
}

.tech-page-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 20%, rgba(0, 210, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.tech-page-bg .form-card,
.tech-page-bg .card {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(14px) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
}

/* Convocatoria Feature Showcase Banner */
@media (max-width: 820px) {
  .convocatoria-feature-banner {
    grid-template-columns: 1fr !important;
    text-align: center;
    padding: 24px 20px !important;
  }
  .convocatoria-feature-banner > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

