/* ==========================================================================
   SIPOD - SISTEMA DE DISEÑO Y HOJA DE ESTILOS MODERNA
   Soluciones Integrales en Proyectos y Operación Digital
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES DE DISEÑO & PALETA CORPORATIVA
   -------------------------------------------------------------------------- */
:root {
  /* Colores Corporativos Oficiales */
  --brand-navy-dark: #050c18;
  --brand-navy-card: #0a192f;
  --brand-navy-surface: #0f2744;
  --brand-navy-border: rgba(56, 189, 248, 0.15);
  
  --brand-gold: #eba834;
  --brand-gold-hover: #ffb83d;
  --brand-gold-glow: rgba(235, 168, 52, 0.35);
  --brand-gold-subtle: rgba(235, 168, 52, 0.12);

  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.3);
  --accent-blue: #2563eb;
  --accent-emerald: #10b981;

  /* Escala de Neutros */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Superficies & Glassmorphism */
  --glass-bg: rgba(10, 25, 47, 0.72);
  --glass-bg-hover: rgba(15, 39, 68, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-bright: rgba(235, 168, 52, 0.3);
  --glass-blur: blur(16px);

  /* Tipografía */
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Sombras y Luces */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-glow-gold: 0 0 35px var(--brand-gold-glow);
  --shadow-glow-cyan: 0 0 30px var(--accent-cyan-glow);

  /* Transiciones */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Espaciado */
  --container-max: 1280px;
  --header-height: 80px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--brand-navy-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  background: radial-gradient(circle at 50% 0%, #0d223f 0%, #050c18 70%);
  min-height: 100vh;
}

::selection {
  background: var(--brand-gold);
  color: #050c18;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   3. ELEMENTOS DECORATIVOS & MALLA DE FONDO
   -------------------------------------------------------------------------- */
.bg-mesh-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}

.ambient-light {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

.ambient-light-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
  top: -200px;
  right: -100px;
  animation: floatAmbient 18s ease-in-out infinite alternate;
}

.ambient-light-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--brand-gold), transparent 70%);
  top: 40%;
  left: -200px;
  animation: floatAmbient 22s ease-in-out infinite alternate-reverse;
}

@keyframes floatAmbient {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* --------------------------------------------------------------------------
   4. LAYOUT & CONTENEDOR
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section-wrapper {
  padding: 100px 0;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--brand-gold-subtle);
  border: 1px solid rgba(235, 168, 52, 0.3);
  color: var(--brand-gold);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-tag svg {
  width: 14px;
  height: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section-title .highlight {
  color: var(--brand-gold);
  position: relative;
  display: inline-block;
}

.section-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(235, 168, 52, 0.25);
  border-radius: 4px;
  z-index: -1;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.section-header-center {
  text-align: center;
}

.section-header-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   5. NAVBAR MODERNO GLASSMORPHISM
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background-color var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth), backdrop-filter var(--transition-smooth);
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  height: 70px;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform var(--transition-fast);
}

.navbar-logo:hover {
  transform: translateY(-1px);
}

.navbar-logo-img {
  height: 46px;
  width: auto;
}

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

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--brand-gold);
  transition: width var(--transition-smooth);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

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

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

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-gold) 0%, #d9911e 100%);
  color: #050c18;
  font-family: var(--font-heading);
  font-size: 0.925rem;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--brand-gold-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.7s ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(235, 168, 52, 0.5);
  filter: brightness(1.05);
}

.btn-cta:hover::before {
  left: 100%;
}

.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 10px;
  background: rgba(10, 25, 47, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.925rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.btn-cta-outline:hover {
  background: rgba(15, 39, 68, 0.85);
  border-color: var(--brand-gold);
  color: var(--brand-gold);
  transform: translateY(-2px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-primary);
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. HERO SECTION & PARALLAX MULTICAPA
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(10, 25, 47, 0.85);
  border: 1px solid rgba(235, 168, 52, 0.4);
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--brand-gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brand-gold);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
  100% { transform: scale(0.9); opacity: 1; }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.2vw, 3.75rem);
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title .text-gold {
  background: linear-gradient(135deg, #ffffff 30%, var(--brand-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 600;
  color: var(--accent-cyan);
  line-height: 1.45;
  margin-bottom: 18px;
}

.hero-description {
  font-size: 1.075rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-stat-number span {
  color: var(--brand-gold);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   7. HERO VISUAL 3D PARALLAX STAGE
   -------------------------------------------------------------------------- */
.hero-visual-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.parallax-card-3d {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1.08;
  background: linear-gradient(145deg, rgba(15, 39, 68, 0.6) 0%, rgba(10, 25, 47, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.1, 0.9, 0.2, 1);
  will-change: transform;
}

.parallax-card-3d::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(235, 168, 52, 0.4), transparent 50%, rgba(56, 189, 248, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-emblem-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transform: translateZ(40px);
}

.hero-emblem-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--brand-gold-glow) 0%, transparent 70%);
  filter: blur(24px);
  animation: pulseGlow 4s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.15); }
}

.hero-emblem-img {
  width: 150px;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.card-title-sipod {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  transform: translateZ(30px);
  margin-bottom: 6px;
}

.card-tagline-sipod {
  font-size: 0.8rem;
  color: var(--brand-gold);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transform: translateZ(25px);
  text-align: center;
}

/* Floating Parallax Badges */
.floating-badge {
  position: absolute;
  padding: 12px 18px;
  background: rgba(10, 25, 47, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
}

.floating-badge .badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-icon.gold {
  background: rgba(235, 168, 52, 0.15);
  color: var(--brand-gold);
  border: 1px solid rgba(235, 168, 52, 0.3);
}

.badge-icon.cyan {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-icon.emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-text-primary {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.badge-text-sub {
  font-size: 0.725rem;
  color: var(--text-muted);
}

.floating-badge-1 {
  top: 10px;
  right: -30px;
  transform: translateZ(55px);
  animation: floatBadge1 6s ease-in-out infinite alternate;
}

.floating-badge-2 {
  bottom: 25px;
  left: -35px;
  transform: translateZ(65px);
  animation: floatBadge2 7s ease-in-out infinite alternate;
}

.floating-badge-3 {
  bottom: -20px;
  right: 20px;
  transform: translateZ(45px);
  animation: floatBadge3 6.5s ease-in-out infinite alternate;
}

@keyframes floatBadge1 {
  0% { transform: translateZ(55px) translateY(0); }
  100% { transform: translateZ(55px) translateY(-12px); }
}

@keyframes floatBadge2 {
  0% { transform: translateZ(65px) translateY(0); }
  100% { transform: translateZ(65px) translateY(14px); }
}

@keyframes floatBadge3 {
  0% { transform: translateZ(45px) translateY(0); }
  100% { transform: translateZ(45px) translateY(-8px); }
}

/* --------------------------------------------------------------------------
   8. QUIÉNES SOMOS & ARQUITECTURA PUNTA A PUNTA
   -------------------------------------------------------------------------- */
.about-section {
  background: linear-gradient(180deg, transparent 0%, rgba(10, 25, 47, 0.5) 50%, transparent 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-text-col p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}

.about-pillar-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 24px;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.about-pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(235, 168, 52, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(235, 168, 52, 0.12);
  color: var(--brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.pillar-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.about-visual-synergy {
  position: relative;
  background: linear-gradient(145deg, rgba(15, 39, 68, 0.4), rgba(10, 25, 47, 0.7));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.synergy-header {
  text-align: center;
  margin-bottom: 32px;
}

.synergy-header h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.synergy-flow {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.synergy-node {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(10, 25, 47, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 24px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.synergy-node:hover {
  border-color: var(--accent-cyan);
  transform: translateX(6px);
}

.synergy-node.highlighted {
  border-color: rgba(235, 168, 52, 0.5);
  background: linear-gradient(90deg, rgba(235, 168, 52, 0.1), rgba(10, 25, 47, 0.9));
}

.node-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--brand-gold);
  flex-shrink: 0;
}

.node-text h5 {
  font-family: var(--font-heading);
  font-size: 0.975rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.node-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. SERVICIOS INTEGRALES (LOS 4 PILARES)
   -------------------------------------------------------------------------- */
.services-section {
  position: relative;
}

.services-filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.tab-btn {
  padding: 10px 22px;
  border-radius: 9999px;
  background: rgba(10, 25, 47, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  border-color: rgba(235, 168, 52, 0.4);
  color: #ffffff;
}

.tab-btn.active {
  background: var(--brand-gold);
  color: #050c18;
  font-weight: 700;
  border-color: var(--brand-gold);
  box-shadow: 0 4px 20px var(--brand-gold-glow);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-gold), var(--accent-cyan));
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(235, 168, 52, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(235, 168, 52, 0.1);
  border: 1px solid rgba(235, 168, 52, 0.25);
  color: var(--brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.service-card:hover .service-icon-box {
  transform: scale(1.08) rotate(3deg);
  background: rgba(235, 168, 52, 0.18);
}

.service-tag-pill {
  font-family: var(--font-heading);
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.service-lead {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.service-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.885rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.service-feature-item strong {
  color: var(--text-primary);
}

.service-feature-item svg {
  width: 18px;
  height: 18px;
  color: var(--brand-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-card-footer {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.service-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-gold);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.service-link-btn:hover {
  gap: 12px;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   10. MARCAS CON LAS QUE TRABAJAMOS (TICKER INFINITO)
   -------------------------------------------------------------------------- */
.brands-section {
  padding: 60px 0;
  background: rgba(10, 25, 47, 0.4);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
}

.brands-header {
  text-align: center;
  margin-bottom: 36px;
}

.brands-header p {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.ticker-wrapper {
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: tickerSlide 25s linear infinite;
  flex-shrink: 0;
}

.ticker-wrapper:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(10, 25, 47, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 22px;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.brand-badge:hover {
  transform: translateY(-3px);
  border-color: rgba(235, 168, 52, 0.4);
  background: rgba(15, 39, 68, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.brand-badge .brand-logo-img {
  height: 26px;
  max-height: 26px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

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

.brand-badge .brand-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.brand-badge .brand-category {
  font-size: 0.725rem;
  color: var(--brand-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  background: rgba(235, 168, 52, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(235, 168, 52, 0.2);
}

/* --------------------------------------------------------------------------
   11. CLIENTES & PROYECTOS
   -------------------------------------------------------------------------- */
.clients-section {
  position: relative;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.client-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.client-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.client-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.client-type {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
}

.client-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.client-solution {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.client-deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.deliverable-chip {
  font-size: 0.775rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   12. CONTACTO & COTIZADOR INTERACTIVO
   -------------------------------------------------------------------------- */
.contact-section {
  position: relative;
  padding-bottom: 120px;
}

.contact-wrapper-card {
  background: linear-gradient(145deg, rgba(15, 39, 68, 0.75) 0%, rgba(10, 25, 47, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 48px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
}

.contact-info-col .section-title {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.contact-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(10, 25, 47, 0.6);
  border: 1px solid var(--glass-border);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.contact-method-item:hover {
  transform: translateX(4px);
  border-color: rgba(235, 168, 52, 0.4);
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(235, 168, 52, 0.12);
  color: var(--brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-text .method-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.contact-method-text .method-val {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.location-box {
  background: rgba(10, 25, 47, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.location-box svg {
  color: var(--accent-cyan);
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.location-box h6 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.location-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: rgba(10, 25, 47, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 14px 16px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(235, 168, 52, 0.2);
}

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

/* Checkbox Pills for Services */
.services-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.checkbox-pill {
  position: relative;
  cursor: pointer;
}

.checkbox-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-pill-content {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(10, 25, 47, 0.7);
  border: 1px solid var(--glass-border);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.checkbox-pill input:checked + .checkbox-pill-content {
  background: rgba(235, 168, 52, 0.18);
  border-color: var(--brand-gold);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(235, 168, 52, 0.2);
}

.btn-submit-form {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-gold) 0%, #d9911e 100%);
  color: #050c18;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 24px var(--brand-gold-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-submit-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(235, 168, 52, 0.5);
}

.whatsapp-direct-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  margin-top: 14px;
  border-radius: 12px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #25d366;
  font-family: var(--font-heading);
  font-size: 0.925rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.whatsapp-direct-btn:hover {
  background: #25d366;
  color: #050c18;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   13. FOOTER CORPORATIVO
   -------------------------------------------------------------------------- */
.footer {
  background: #030810;
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 30px;
  position: relative;
  z-index: 10;
}

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

.footer-brand p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 18px;
  max-width: 340px;
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-col h5::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--brand-gold);
}

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

.footer-links a {
  font-size: 0.885rem;
  color: var(--text-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--brand-gold);
  transform: translateX(4px);
}

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

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.back-to-top:hover {
  color: var(--brand-gold);
}

/* --------------------------------------------------------------------------
   14. ANIMACIONES DE ENTRADA & INTERSECCIÓN
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   15. RESPONSIVE / MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual-stage {
    margin-top: 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .section-wrapper {
    padding: 70px 0;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(5, 12, 24, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-150%);
    transition: transform var(--transition-smooth);
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-actions .btn-cta {
    display: none;
  }

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

  .about-pillars-grid {
    grid-template-columns: 1fr;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-wrapper-card {
    padding: 28px 20px;
  }

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

  .floating-badge {
    position: static;
    margin-top: 12px;
    transform: none !important;
    animation: none !important;
  }

  .parallax-card-3d {
    max-width: 100%;
    padding: 24px;
  }
}
