/* ==========================================================================
   REPOUPTPC - Design System & Stylesheet
   Branding: Blanco Institucional con Detalles Azul Real & Eléctrico
   Universidad Politécnica Territorial de Puerto Cabello (UPTPC)
   Unidad de Ciencia y Tecnología (CYT)
   ========================================================================== */

:root {
  /* Color Palette - White & Blue System */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);

  --blue-900: #0c2340;
  --blue-800: #003366;
  --blue-700: #024dba;
  --blue-600: #1d4ed8;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-300: #60a5fa;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --text-white: #ffffff;

  --border-light: rgba(2, 77, 186, 0.12);
  --border-strong: rgba(2, 77, 186, 0.25);
  
  --shadow-sm: 0 2px 4px rgba(2, 77, 186, 0.04);
  --shadow-md: 0 6px 16px rgba(2, 77, 186, 0.08);
  --shadow-lg: 0 12px 32px rgba(2, 77, 186, 0.12);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue-700);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--blue-500);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top Institutional Banner */
.top-bar {
  background: linear-gradient(90deg, var(--blue-900) 0%, var(--blue-700) 100%);
  color: var(--text-white);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-badges {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.8rem;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.top-bar-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Header & Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-normal);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.5rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
  transition: transform var(--transition-fast);
}

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

.brand-divider {
  width: 2px;
  height: 36px;
  background: var(--border-strong);
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-900);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.brand-text span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-600);
  display: block;
  letter-spacing: 0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-600);
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue-700);
}

.nav-cta {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-600) 100%);
  color: var(--text-white) !important;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(2, 77, 186, 0.25);
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 77, 186, 0.35);
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-500) 100%);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--blue-900);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  background: radial-gradient(circle at 80% 20%, var(--blue-50) 0%, #ffffff 65%);
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  width: fit-content;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--blue-900);
  letter-spacing: -0.03em;
}

.hero-title span {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* Slogan Banner */
.slogan-card {
  background: linear-gradient(135deg, rgba(2, 77, 186, 0.04) 0%, rgba(37, 99, 235, 0.08) 100%);
  border-left: 4px solid var(--blue-600);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-weight: 700;
  color: var(--blue-900);
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-600) 100%);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(2, 77, 186, 0.3);
  color: var(--text-white);
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-700) 100%);
}

.btn-secondary {
  background: var(--bg-primary);
  color: var(--blue-700);
  border: 2px solid var(--blue-600);
}

.btn-secondary:hover {
  background: var(--blue-50);
  color: var(--blue-800);
  border-color: var(--blue-700);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  background: var(--bg-secondary);
  color: var(--blue-900);
  border-color: var(--blue-600);
}

/* Hero Showcase Card */
.hero-visual {
  position: relative;
}

.visual-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-400));
}

.visual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.visual-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--blue-900);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #16a34a;
  background: #f0fdf4;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #16a34a;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-box {
  background: var(--bg-secondary);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  text-align: center;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blue-700);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.quick-info {
  background: var(--blue-50);
  border: 1px dashed var(--blue-300);
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--blue-900);
}

/* Feature / Automation Banner Section */
.section {
  padding: 4.5rem 0;
}

.section-bg {
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3rem;
}

.section-subtitle {
  color: var(--blue-600);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--blue-900);
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* Automation Card Spotlight */
.automation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.automation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.automation-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.automation-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--blue-900);
  margin-bottom: 1rem;
}

.automation-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.step-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-900);
}

.step-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.automation-preview {
  background: var(--blue-900);
  color: #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.88rem;
  position: relative;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.75rem;
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.code-title {
  color: #94a3b8;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

/* Repositories Showcase Section */
.search-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  background: var(--bg-card);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1.1rem;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--blue-700);
  color: white;
  border-color: var(--blue-700);
}

/* Repos Grid */
.repos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.repo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
}

.repo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-400);
}

.repo-card-top {
  margin-bottom: 0.5rem;
}

.repo-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.repo-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.repo-icon {
  color: var(--blue-600);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.repo-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-900);
  word-break: break-word;
  line-height: 1.3;
}

.repo-name a {
  color: var(--blue-900);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.repo-name a:hover {
  color: var(--blue-600);
  text-decoration: underline;
}

.lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.8rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.lang-color {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue-500);
  display: inline-block;
}

.repo-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Middle: Statistics Bar */
.repo-card-middle {
  margin-top: 1rem;
  margin-bottom: 0.85rem;
}

.repo-stats-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  transition: transform var(--transition-fast);
}

.stat-pill:hover {
  transform: translateY(-1px);
}

.stars-pill {
  background: #fffbe6;
  color: #b45309;
  border: 1px solid #fde68a;
}

.forks-pill {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.stat-icon {
  font-size: 0.85rem;
}

.stat-value {
  font-weight: 800;
}

.stat-label {
  font-weight: 500;
  opacity: 0.85;
}

.stat-date {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-light);
  white-space: nowrap;
}

/* Card Bottom: Action Buttons */
.repo-card-bottom {
  padding-top: 0.85rem;
  border-top: 1px solid var(--bg-tertiary);
}

.repo-card-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  flex-wrap: wrap;
}

.repo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
  flex: 1;
  min-width: 120px;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.repo-btn-github {
  background: #1e293b;
  color: #ffffff !important;
  border: 1px solid #334155;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08);
}

.repo-btn-github:hover {
  background: #0f172a;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
  border-color: #0f172a;
}

.repo-btn-pages {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-600) 100%);
  color: #ffffff !important;
  border: 1px solid var(--blue-600);
  box-shadow: 0 2px 6px rgba(2, 77, 186, 0.18);
}

.repo-btn-pages:hover {
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-700) 100%);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(2, 77, 186, 0.32);
  border-color: var(--blue-700);
}

.btn-icon {
  flex-shrink: 0;
}

/* GitHub Floating Action Buttons */
.github-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2000;
}

.fab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-white);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(2, 77, 186, 0.18);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  backdrop-filter: blur(6px);
}

.fab-emoji { font-size: 1.05rem; }
.fab-text { display: inline-block; }

.fab-github {
  background: linear-gradient(135deg, #24292e 0%, #2f363d 100%);
}

.fab-pages {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-500) 100%);
}

.fab-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(2, 77, 186, 0.28);
}

@media (max-width: 520px) {
  .fab-text { display: none; }
  .github-fab { right: 0.75rem; bottom: 0.75rem; }
}

/* Institutional Badge Banner Section */
.badges-section {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 100%);
  color: white;
  padding: 3.5rem 0;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.badge-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform var(--transition-fast);
}

.badge-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
}

.badge-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.badge-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.badge-text p {
  font-size: 0.88rem;
  opacity: 0.85;
}

/* Footer Styles */
.footer {
  background: var(--blue-900);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 1.5rem;
  border-top: 4px solid var(--blue-600);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo-img {
  height: 54px;
  width: auto;
  background: white;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.footer-logos-ministerial {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.ministerio-logo {
  height: 48px;
  width: auto;
  background: white;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  box-shadow: var(--shadow-sm);
}

.footer-brand-title {
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
}

.footer-address {
  font-size: 0.88rem;
  line-height: 1.6;
  opacity: 0.9;
}

.footer-rif {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.footer-column h4 {
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--blue-400);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: white;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.copyright {
  opacity: 0.8;
}

.footer-slogan-small {
  font-weight: 700;
  color: var(--blue-300);
}

/* Responsiveness Media Queries */
@media (max-width: 1024px) {
  .hero-grid,
  .automation-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .top-bar-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-light);
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .hero {
    padding: 3rem 0 2rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .automation-card {
    padding: 1.75rem 1.25rem;
  }

  .search-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
}
