/* ==========================================================================
   AgencIAdata - Modern 3D Web Experience Stylesheet
   ========================================================================== */

:root {
  --bg-primary: #040813;
  --bg-surface: #0a1124;
  --bg-card: rgba(13, 22, 45, 0.65);
  --bg-card-hover: rgba(18, 32, 65, 0.85);
  
  --color-primary: #1B5CFF;
  --color-primary-light: #4A84FF;
  --color-accent-cyan: #00F0FF;
  --color-accent-glow: rgba(0, 240, 255, 0.25);
  --color-text-main: #FFFFFF;
  --color-text-muted: #94A3B8;
  --color-text-subtle: #64748B;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.35);
  --border-primary: rgba(27, 92, 255, 0.4);
  
  --font-heading: 'Sora', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  --shadow-3d: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 25px -5px rgba(27, 92, 255, 0.2);
  --shadow-glow: 0 0 35px rgba(0, 240, 255, 0.25);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  color: var(--color-text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(27, 92, 255, 0.25), transparent 70%),
    radial-gradient(circle at 100% 60%, rgba(0, 240, 255, 0.08), transparent 50%),
    radial-gradient(circle at 0% 80%, rgba(99, 102, 241, 0.08), transparent 50%);
  background-attachment: fixed;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-light);
}

/* Background Grid 3D */
.grid-bg-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
  z-index: -2;
}

/* Ambient Glow Orbs */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
}

/* Fullscreen Obsidian 3D Graph Canvas */
.bg-graph-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: auto;
}

/* Typography & Utilities */
h1, h2, h3, h4, .brand-font {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.text-gradient {
  background: linear-gradient(135deg, #00F0FF 0%, #38BDF8 50%, #A5C9FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #00F0FF;
  display: inline;
  font-weight: 800;
  filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.5));
}

.text-cyan {
  color: var(--color-accent-cyan);
}

.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  position: relative;
  z-index: 1;
}

/* Navigation Header */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  margin: 0 auto;
  max-width: 1280px;
  padding: 0 20px;
}

.nav-glass-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 16px;
  height: 62px;
  box-sizing: border-box;
  background: rgba(10, 17, 36, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.nav-glass-bar:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.1);
}

.logo-wrapper {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 8px;
}

.logo-img-wrapper {
  background: #FFFFFF;
  padding: 5px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25), 0 0 15px rgba(0, 240, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.logo-wrapper:hover .logo-img-wrapper {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 5px 20px rgba(0, 240, 255, 0.6), 0 0 25px rgba(27, 92, 255, 0.4);
}

.logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  transition: color 0.25s ease;
}

.nav-link:hover {
  color: #FFFFFF;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-accent-cyan);
  box-shadow: 0 0 8px var(--color-accent-cyan);
  transition: width 0.25s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-cta-btn {
  white-space: nowrap !important;
  padding: 9px 20px !important;
  font-size: 13px !important;
  font-weight: 700;
  line-height: 1.1 !important;
  flex-shrink: 0;
}

/* Button 3D Cyber */
.btn-cyber-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #1B5CFF 0%, #00F0FF 100%);
  color: #040813;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-cyber-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.65), 0 10px 20px rgba(27, 92, 255, 0.4);
}

.btn-cyber-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-cyber-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
  transform: translateY(-2px);
}

/* Hero Section with 3D Canvas */
.hero-section {
  position: relative;
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  padding: clamp(40px, 6vw, 80px) 0 60px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: center;
}

.hero-text-block {
  position: relative;
  z-index: 10;
  background: linear-gradient(135deg, rgba(6, 12, 28, 0.94) 0%, rgba(6, 12, 28, 0.84) 75%, rgba(6, 12, 28, 0.55) 100%);
  padding: 32px 38px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid rgba(0, 240, 255, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 35px rgba(0, 240, 255, 0.06);
  max-width: 780px;
  width: 100%;
  box-sizing: border-box;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(0, 240, 255, 0.07);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-cyan);
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-accent-cyan);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
}

.hero-title {
  font-size: clamp(32px, 3.8vw, 50px);
  line-height: 1.2;
  margin-bottom: 22px;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  text-shadow: none;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: break-word;
}

.hero-desc {
  font-size: 16.5px;
  line-height: 1.68;
  color: #CBD5E1;
  margin-bottom: 30px;
  max-width: 100%;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.hero-badges-row {
  display: flex;
  gap: 32px;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--color-text-subtle);
}

/* 3D Visualizer Container */
.hero-visual-3d {
  position: relative;
  width: 100%;
  height: 500px;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  cursor: grab;
  z-index: 1;
}

#hero-canvas:active {
  cursor: grabbing;
}

/* Floating 3D HUD Cards */
.hud-card {
  position: absolute;
  z-index: 2;
  background: rgba(10, 17, 36, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.15);
  pointer-events: none;
  animation: float-hud 6s ease-in-out infinite;
}

.hud-top-right {
  top: 30px;
  right: 15px;
  animation-delay: -2.5s;
}

.hud-bottom-left {
  bottom: 25px;
  left: 10px;
}

@keyframes float-hud {
  0%, 100% { transform: translateY(0) rotate(0.5deg); }
  50% { transform: translateY(-12px) rotate(-0.5deg); }
}

.hud-pill {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-cyan);
  margin-bottom: 4px;
}

.hud-val {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
}

.hud-graph-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 38px;
  margin-top: 10px;
}

.hud-bar {
  flex: 1;
  width: 8px;
  border-radius: 3px 3px 1px 1px;
  background: rgba(255, 255, 255, 0.15);
}

.hud-bar.active {
  background: linear-gradient(to top, var(--color-primary), var(--color-accent-cyan));
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* 3D Tilt Card Base System */
.card-3d-tilt {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 36px 30px;
  transform-style: preserve-3d;
  transform: perspective(1000px);
  transition: transform 0.15s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.card-3d-tilt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 240, 255, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.card-3d-tilt:hover {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(27, 92, 255, 0.25);
}

.card-3d-tilt:hover::before {
  opacity: 1;
}

.card-content-3d {
  position: relative;
  z-index: 2;
  transform: translateZ(30px);
}

/* Section Common Layout */
.section-padding {
  padding: clamp(70px, 8vw, 110px) 0;
  position: relative;
}

.section-header {
  margin-bottom: clamp(36px, 5vw, 54px);
}

.section-tag {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-cyan);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
  color: #FFFFFF;
}

/* Philosophy 3-Step Cards */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.icon-box-3d {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(27, 92, 255, 0.25), rgba(0, 240, 255, 0.15));
  border: 1px solid rgba(0, 240, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

.icon-box-3d svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-accent-cyan);
  fill: none;
  stroke-width: 2;
}

/* Capabilities (Servicios) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.service-num {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent-cyan);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.service-title {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #FFFFFF;
}

.service-desc {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* 3D Interactive Pipeline (Metodología) */
.pipeline-wrapper {
  background: rgba(10, 17, 36, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  padding: clamp(30px, 5vw, 50px);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
  z-index: 2;
}

.pipeline-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
  padding: 10px;
}

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

.step-node-indicator {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.pipeline-step-item.active .step-node-indicator,
.pipeline-step-item:hover .step-node-indicator {
  border-color: var(--color-accent-cyan);
  box-shadow: 0 0 25px var(--color-accent-cyan), inset 0 0 10px var(--color-accent-cyan);
}

.step-node-core {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-text-subtle);
  transition: background 0.3s ease;
}

.pipeline-step-item.active .step-node-core,
.pipeline-step-item:hover .step-node-core {
  background: var(--color-accent-cyan);
  box-shadow: 0 0 10px var(--color-accent-cyan);
}

.step-meta-num {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent-cyan);
  margin-bottom: 6px;
}

.step-meta-title {
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.step-meta-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Soluciones Badges 3D */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.solution-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(13, 22, 45, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.solution-chip:hover {
  background: rgba(27, 92, 255, 0.15);
  border-color: var(--color-accent-cyan);
  transform: translateX(6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 240, 255, 0.2);
}

.solution-icon-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-cyan));
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--color-accent-cyan);
}

.solution-text {
  font-size: 15px;
  font-weight: 500;
  color: #E2E8F0;
}

/* Casos de Éxito */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}

.case-accent-bar {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-cyan));
  margin-bottom: 20px;
  border-radius: 2px;
  box-shadow: 0 0 10px var(--color-accent-cyan);
}

/* Impact Metrics */
.metrics-section {
  background: linear-gradient(180deg, rgba(10, 17, 36, 0.8) 0%, rgba(4, 8, 19, 0.95) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.metric-num {
  font-family: var(--font-heading);
  font-size: clamp(42px, 4.5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #FFFFFF 30%, var(--color-accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  align-items: baseline;
}

.metric-label {
  font-size: 16px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* CTA Banner 3D */
.cta-banner {
  background: linear-gradient(135deg, rgba(27, 92, 255, 0.25) 0%, rgba(10, 25, 60, 0.85) 50%, rgba(0, 240, 255, 0.15) 100%);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 32px;
  padding: clamp(50px, 7vw, 90px) clamp(24px, 5vw, 60px);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 0 50px rgba(0, 240, 255, 0.08);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.15), transparent 45%);
  pointer-events: none;
}

/* Contact Form 3D */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact-form-glass {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-3d);
  backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #CBD5E1;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(4, 8, 19, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 15px;
  transition: all 0.25s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
  background: rgba(10, 17, 36, 0.9);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-feedback {
  grid-column: 1 / -1;
  padding: 14px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--color-accent-cyan);
  border-radius: 12px;
  color: var(--color-accent-cyan);
  font-weight: 600;
  font-size: 14.5px;
  display: none;
}

.form-feedback.visible {
  display: block;
}

/* Footer */
.site-footer {
  background: #02050B;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-desc {
  color: var(--color-text-subtle);
  font-size: 15px;
  line-height: 1.65;
  margin-top: 16px;
  max-width: 380px;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 20px;
}

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

.footer-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.25s ease;
}

.footer-link:hover {
  color: var(--color-accent-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-subtle);
  font-size: 13.5px;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Mobile Navigation & Drawer Styles
   ========================================================================== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.mobile-menu-toggle:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: rgba(0, 240, 255, 0.4);
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.35s ease;
}

.mobile-nav-drawer.open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 20, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mobile-nav-drawer.open .mobile-drawer-backdrop {
  opacity: 1;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: min(340px, 85vw);
  height: 100%;
  background: rgba(8, 14, 32, 0.96);
  border-left: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  overflow-y: auto;
}

.mobile-nav-drawer.open .mobile-drawer-content {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.mobile-menu-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-close:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #EF4444;
  color: #EF4444;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.mobile-drawer-link {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.mobile-drawer-link:hover {
  color: var(--color-accent-cyan);
  background: rgba(0, 240, 255, 0.08);
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-btn {
  width: 100%;
  justify-content: center;
  padding: 13px 20px;
  font-size: 14px;
}

.mobile-contact-info {
  margin-top: 16px;
  font-size: 13px;
  color: #94A3B8;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-contact-info a {
  color: #60A5FA;
  text-decoration: none;
}

/* ==========================================================================
   Mobile & Tablet Responsiveness
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .nav-cta-btn {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 36px;
  }
  
  .hero-text-block {
    margin: 0;
    max-width: 100%;
    padding: 24px;
  }
  
  .hero-desc {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }
  
  .hero-cta-group {
    justify-content: flex-start;
  }
  
  .hero-badges-row {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .hero-visual-3d {
    height: 380px;
  }
  
  .pipeline-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .site-header {
    top: 8px;
    padding: 0 12px;
  }

  .nav-glass-bar {
    height: 54px;
    padding: 6px 14px;
  }

  .logo-img {
    height: 24px;
  }

  .logo-img-wrapper {
    padding: 4px 10px;
  }

  .hero-section {
    padding: 24px 0 40px;
  }

  .hero-title {
    font-size: clamp(28px, 7.2vw, 38px);
    line-height: 1.18;
  }

  .hero-desc {
    font-size: 15.5px;
    line-height: 1.6;
  }

  .graph-hud-container {
    width: 100%;
  }

  .graph-hud-controls {
    width: 100%;
    justify-content: space-between;
  }

  .graph-hud-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .graph-legend-bar {
    gap: 6px;
  }

  .legend-pill {
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  .hero-badges-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .hero-stat-num {
    font-size: 20px;
  }

  .hero-stat-label {
    font-size: 11.5px;
  }

  .sim-dashboard-container {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .sim-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .sim-select-group {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .sim-select {
    width: 100%;
    font-size: 0.85rem;
    padding: 8px 12px;
  }

  .sim-status-badge {
    font-size: 0.78rem;
    padding: 6px 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .sim-metrics-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sim-metric-card {
    padding: 16px;
  }

  .sim-metric-val {
    font-size: 1.3rem;
  }

  .sim-footer-note {
    font-size: 0.78rem;
    padding: 10px 14px;
  }

  .contact-form-glass {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    border-radius: 18px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero-visual-3d {
    height: 280px;
  }
}

/* ==========================================================================
   GovTech & Obsidian 3D Knowledge Graph Extensions
   ========================================================================== */

/* Graph Node Tooltip */
.graph-node-tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  background: rgba(6, 12, 28, 0.92);
  border: 1px solid rgba(0, 240, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px;
  padding: 14px 18px;
  min-width: 260px;
  max-width: 320px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(0, 240, 255, 0.2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.graph-node-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.tooltip-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tooltip-entity {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.tooltip-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
  line-height: 1.35;
}

.tooltip-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.tooltip-stat strong {
  color: var(--color-accent-cyan);
  font-size: 0.92rem;
}

.tooltip-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.tooltip-progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Graph HUD Controls */
.graph-hud-container {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.graph-hud-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 19, 41, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 50px;
  padding: 5px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  width: fit-content;
}

.graph-hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.graph-hud-btn:hover {
  color: #FFFFFF;
}

.graph-hud-btn.active {
  background: linear-gradient(135deg, rgba(27, 92, 255, 0.35) 0%, rgba(0, 240, 255, 0.25) 100%);
  color: var(--color-accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
}

.graph-legend-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--color-text-muted);
  background: rgba(10, 19, 41, 0.7);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

/* Simulator Dashboard (Seguimiento Ministerial Interactivo) */
.sim-dashboard-container {
  background: rgba(8, 15, 34, 0.82);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 44px);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  margin-top: 40px;
}

.sim-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 24px;
  margin-bottom: 28px;
}

.sim-select-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sim-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sim-select {
  background: rgba(14, 25, 54, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.sim-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
}

.sim-status-badge.status-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.sim-status-badge.status-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.sim-status-badge.status-success {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.sim-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.sim-metric-card {
  background: rgba(13, 23, 49, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.sim-metric-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-3px);
}

.sim-metric-title {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.sim-metric-val {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
}

.sim-metric-val.highlight-cyan {
  color: var(--color-accent-cyan);
}

.sim-metric-val.highlight-blue {
  color: #60A5FA;
}

.sim-metric-sub {
  font-size: 0.76rem;
  color: var(--color-text-subtle);
  margin-top: 6px;
}

.sim-footer-note {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(27, 92, 255, 0.12);
  border: 1px solid rgba(27, 92, 255, 0.3);
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 0.88rem;
  color: #BFDBFE;
}

/* Official SECOP II Data Integration & Contract Breakdown */
.data-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  color: #E2E8F0;
}

.data-source-badge strong {
  color: var(--color-accent-cyan);
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 16px #10B981; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.sim-contracts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.sim-contract-card {
  background: rgba(10, 19, 41, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.sim-contract-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(10, 19, 41, 0.9);
  transform: translateY(-2px);
}

.sim-contract-ref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.sim-contract-code {
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
}

.sim-contract-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #34D399;
}

.sim-contract-obj {
  font-size: 0.78rem;
  color: #CBD5E1;
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sim-contract-vendor {
  font-size: 0.73rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 6px;
}


