/* ===========================
   MG SOLUCIONES TECNOLÓGICAS
   styles.css
   =========================== */

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

:root {
  --blue-900: #020b18;
  --blue-800: #071a2e;
  --blue-700: #0d2a4a;
  --blue-600: #0f3a69;
  --blue-500: #1254a0;
  --blue-400: #1a72d9;
  --blue-300: #3d96f5;
  --blue-200: #7dbcfd;
  --blue-100: #c2dffe;
  --teal:     #0dcbcb;
  --indigo:   #5b6bff;
  --white:    #f2f7ff;
  --gray-100: #d6e4f5;
  --gray-300: #8aadc8;
  --gray-500: #4a6a85;
  --text:     #e8f2ff;
  --text-dim: #8aadc8;

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--blue-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: var(--font-body); outline: none; border: none; background: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- CURSOR ---------- */
.cursor {
  width: 8px; height: 8px;
  background: var(--blue-400);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}
.cursor-follower {
  width: 32px; height: 32px;
  border: 1.5px solid var(--blue-400);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.3s, height 0.3s, opacity 0.3s;
  opacity: 0.5;
}
body:hover .cursor { opacity: 1; }

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; }

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-300);
  background: rgba(26, 114, 217, 0.12);
  border: 1px solid rgba(26, 114, 217, 0.25);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}
.section-title em {
  font-style: normal;
  color: var(--blue-300);
  position: relative;
}
.section-title em::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--blue-400), var(--teal));
  border-radius: 2px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .section-title { margin: 0 auto; }

.body-text {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 16px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-500));
  color: #fff;
  box-shadow: 0 0 30px rgba(26, 114, 217, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(26, 114, 217, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--blue-200);
  border: 1px solid rgba(26, 114, 217, 0.35);
}
.btn-ghost:hover {
  border-color: var(--blue-300);
  color: var(--white);
  transform: translateY(-2px);
}

.full-btn { width: 100%; justify-content: center; padding: 16px; font-size: 15px; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.4s, padding 0.3s, backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(2, 11, 24, 0.88);
  backdrop-filter: blur(16px);
  padding: 14px 0;
  border-bottom: 1px solid rgba(26, 114, 217, 0.12);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-mg {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-400), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-text {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--blue-300);
  transition: width var(--transition);
  border-radius: 1px;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { margin-left: 16px; padding: 10px 22px; font-size: 13px; }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--blue-800);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu ul { text-align: center; }
.mobile-menu li { margin: 24px 0; }
.mobile-menu a { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--white); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 120px 80px 80px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 114, 217, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 114, 217, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 10s ease-in-out infinite alternate;
}
.orb1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(18, 84, 160, 0.28), transparent 70%);
  top: -200px; right: -150px;
  animation-delay: 0s;
}
.orb2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(13, 203, 203, 0.12), transparent 70%);
  bottom: -100px; left: 10%;
  animation-delay: -3s;
}
.orb3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(91, 107, 255, 0.10), transparent 70%);
  top: 30%; left: 40%;
  animation-delay: -6s;
}
@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 30px) scale(1.05); }
}

.hero-content { max-width: 580px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-200);
  background: rgba(26, 114, 217, 0.1);
  border: 1px solid rgba(26, 114, 217, 0.2);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(28px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 28px;
  color: var(--white);
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--blue-300), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.stat { text-align: left; }
.stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
}
.stat-unit {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-300);
}
.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(26, 114, 217, 0.25);
}

/* Hero Visual / Device */
.hero-visual { flex-shrink: 0; }

.device-mockup {
  width: 420px;
  background: rgba(13, 42, 74, 0.7);
  border: 1px solid rgba(26, 114, 217, 0.2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  box-shadow: 0 40px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(26, 114, 217, 0.1) inset;
  overflow: hidden;
}

.screen-header {
  background: rgba(7, 26, 46, 0.8);
  padding: 14px 18px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(26, 114, 217, 0.15);
}
.screen-header span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.screen-header span:first-child { background: rgba(255,90,90,0.5); }
.screen-header span:nth-child(2) { background: rgba(255,200,60,0.5); }
.screen-header span:nth-child(3) { background: rgba(60,210,120,0.5); }

.screen-body { padding: 24px; font-family: 'Courier New', monospace; font-size: 13px; }

.code-line { margin-bottom: 10px; }
.c-blue  { color: #569cd6; }
.c-white { color: #d4d4d4; }
.c-green { color: #4ec9b0; }
.c-yellow{ color: #dcdcaa; }
.c-cyan  { color: #9cdcfe; }
.c-orange{ color: #ce9178; }

.cursor-blink {
  animation: blink 1s step-end infinite;
  color: var(--blue-300);
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.screen-graph {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 100px;
  margin-top: 24px;
  padding: 16px;
  background: rgba(7, 26, 46, 0.6);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(26, 114, 217, 0.15);
}
.graph-bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, rgba(26, 114, 217, 0.5), rgba(26, 114, 217, 0.15));
  border-radius: 4px 4px 0 0;
  border: 1px solid rgba(26, 114, 217, 0.3);
  transition: height 0.6s cubic-bezier(0.4,0,0.2,1);
  animation: barGrow 2s ease forwards;
}
.graph-bar.active {
  background: linear-gradient(180deg, var(--blue-300), rgba(26, 114, 217, 0.2));
  border-color: var(--blue-300);
  box-shadow: 0 0 16px rgba(61, 150, 245, 0.4);
}
@keyframes barGrow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.6;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(var(--blue-300), transparent);
  animation: scrollAnim 2s ease infinite;
}
@keyframes scrollAnim {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- CLIENTS ---------- */
.clients {
  padding: 48px 0;
  border-top: 1px solid rgba(26, 114, 217, 0.1);
  border-bottom: 1px solid rgba(26, 114, 217, 0.1);
  background: rgb(255, 255, 255);
  overflow: hidden;
}
.clients-inner { text-align: center; }
.clients-label {
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 24px;
}
.logos-track { overflow: hidden; }
.logos-slide {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: slideTrack 20s linear infinite;
}
.logo-item {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gray-500);
  white-space: nowrap;
  transition: color 0.3s;
}
.logo-transfiriendo {  
  height: 70px;
  width: auto;
 }
.logo-chidofoods {  
  height: 40px;
  width: auto;
 }

.logo-item strong { color: var(--blue-300); font-weight: 700; }
.logo-item:hover { color: var(--white); }
@keyframes slideTrack {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- SERVICIOS ---------- */
.servicios {
  background: #ffffff;
  padding: 120px 0;
}
.servicios .section-tag {
  color: var(--blue-500);
  background: rgba(26, 114, 217, 0.08);
  border-color: rgba(26, 114, 217, 0.2);
}
.servicios .section-title { color: #0d1f35; }
.servicios .section-title em { color: var(--blue-400); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: #f4f8ff;
  border: 1px solid rgba(26, 114, 217, 0.12);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 114, 217, 0.06), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover {
  border-color: rgba(26, 114, 217, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 12px 48px rgba(26, 114, 217, 0.12);
}
.service-card:hover::before { opacity: 1; }
.service-card.featured {
  background: linear-gradient(135deg, #1254a0, #1a72d9);
  border-color: transparent;
}
.featured-tag {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 4px 10px;
  border-radius: 100px;
}
.service-icon {
  width: 52px; height: 52px;
  background: rgba(26, 114, 217, 0.08);
  border: 1px solid rgba(26, 114, 217, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-400);
  margin-bottom: 24px;
  transition: var(--transition);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card:hover .service-icon {
  background: rgba(26, 114, 217, 0.15);
  border-color: var(--blue-300);
}
.service-card.featured .service-icon {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0d1f35;
}
.service-card.featured h3 { color: #fff; }
.service-card p {
  font-size: 14px;
  color: #4a6a85;
  line-height: 1.7;
  margin-bottom: 24px;
}
.service-card.featured p { color: rgba(255,255,255,0.85); }
.service-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-500);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  display: inline-block;
  position: relative;
  z-index: 10;
  pointer-events: all;
}
.service-card.featured .service-link { color: rgba(255,255,255,0.9); }
.service-link:hover { color: var(--blue-400); }

/* Staggered reveal for cards */
.service-card[data-index="0"] { transition-delay: 0.0s; }
.service-card[data-index="1"] { transition-delay: 0.1s; }
.service-card[data-index="2"] { transition-delay: 0.2s; }
.service-card[data-index="3"] { transition-delay: 0.3s; }
.service-card[data-index="4"] { transition-delay: 0.4s; }
.service-card[data-index="5"] { transition-delay: 0.5s; }

/* ---------- NOSOTROS ---------- */
.nosotros {
  padding: 120px 0;
  background: linear-gradient(180deg, transparent, rgba(7, 26, 46, 0.5) 50%, transparent);
}
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.nosotros-visual {
  position: relative;
  height: 500px;
}
.about-card {
  position: absolute;
  background: rgba(13, 42, 74, 0.8);
  border: 1px solid rgba(26, 114, 217, 0.2);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: floatCard 5s ease-in-out infinite alternate;
}
.main-card    { top: 60px; left: 20px; animation-delay: 0s; }
.secondary-card { top: 200px; right: 0; animation-delay: -1.5s; }
.tertiary-card  { bottom: 80px; left: 40px; animation-delay: -3s; }
@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}
.about-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.about-icon svg { width: 22px; height: 22px; }
.about-icon.blue   { background: rgba(26, 114, 217, 0.15); color: var(--blue-300); }
.about-icon.teal   { background: rgba(13, 203, 203, 0.1); color: var(--teal); }
.about-icon.indigo { background: rgba(91, 107, 255, 0.12); color: var(--indigo); }

.numbers-badge {
  position: absolute;
  top: 40%; right: 30px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 0 40px rgba(18, 84, 160, 0.4), 0 20px 60px rgba(0,0,0,0.3);
  border: 1px solid rgba(61, 150, 245, 0.3);
}
.nb-big {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
}
.nb-text {
  font-size: 12px;
  color: var(--blue-200);
  text-align: center;
  margin-top: 4px;
  line-height: 1.4;
}


.about-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-dim);
}
.about-list svg { width: 20px; height: 20px; color: var(--blue-300); flex-shrink: 0; }

/* ---------- PROCESO ---------- */
.proceso { padding: 120px 0; }
.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}
.process-connector {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--blue-400), var(--blue-500));
  margin-top: 36px;
  position: relative;
}
.process-connector::after {
  content: '';
  position: absolute;
  right: -4px; top: -4px;
  width: 8px; height: 8px;
  background: var(--blue-400);
  border-radius: 50%;
}
.process-step {
  flex: 0 0 200px;
  text-align: center;
}
.step-number {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--blue-300);
  background: rgba(26, 114, 217, 0.12);
  border: 1px solid rgba(26, 114, 217, 0.25);
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}
.process-step:hover .step-number {
  background: var(--blue-400);
  color: var(--white);
  box-shadow: 0 0 24px rgba(26, 114, 217, 0.4);
}
.step-content h3 { font-size: 16px; margin-bottom: 10px; color: var(--white); }
.step-content p { font-size: 13px; color: var(--text-dim); line-height: 1.65; }

/* ---------- TESTIMONIOS ---------- */
.testimonios {
  padding: 120px 0;
  background: linear-gradient(180deg, transparent, rgba(7, 26, 46, 0.5) 50%, transparent);
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.testi-card {
  background: rgba(13, 42, 74, 0.5);
  border: 1px solid rgba(26, 114, 217, 0.15);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.testi-card:hover {
  border-color: rgba(26, 114, 217, 0.35);
  transform: translateY(-4px);
}
.testi-card.featured-testi {
  background: linear-gradient(135deg, rgba(18, 84, 160, 0.5), rgba(13, 42, 74, 0.8));
  border-color: rgba(26, 114, 217, 0.4);
  transform: scale(1.03);
  box-shadow: 0 0 40px rgba(18, 84, 160, 0.25);
}
.testi-stars { color: #f5c518; font-size: 14px; letter-spacing: 2px; margin-bottom: 16px; }
.testi-card p { font-size: 15px; color: var(--text-dim); line-height: 1.7; margin-bottom: 28px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.testi-author strong { display: block; font-size: 14px; color: var(--white); }
.testi-author span { font-size: 12px; color: var(--text-dim); }

/* ---------- CONTACTO ---------- */
.contacto { padding: 120px 0; }
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info p { color: var(--text-dim); line-height: 1.7; margin-bottom: 40px; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-dim);
}
.contact-item svg { width: 18px; height: 18px; color: var(--blue-300); flex-shrink: 0; }

.contact-form {
  background: rgba(13, 42, 74, 0.5);
  border: 1px solid rgba(26, 114, 217, 0.15);
  border-radius: var(--radius-lg);
  padding: 48px;
  backdrop-filter: blur(12px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(7, 26, 46, 0.7);
  border: 1px solid rgba(26, 114, 217, 0.2);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--white);
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-500); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(26, 114, 217, 0.12);
}
.form-group select option { background: var(--blue-800); }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 500;
}
.form-success.show { display: flex; }
.form-success svg { width: 20px; height: 20px; }

/* ---------- FOOTER ---------- */
.footer {
  background: rgba(2, 11, 24, 0.95);
  border-top: 1px solid rgba(26, 114, 217, 0.1);
  padding: 80px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  padding-bottom: 60px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 20px;
  line-height: 1.7;
  max-width: 300px;
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--gray-500); transition: color 0.2s; }
.footer-col a:hover { color: var(--blue-300); }
.footer-bottom {
  border-top: 1px solid rgba(26, 114, 217, 0.1);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--gray-500);
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- HERO VIDEO (YouTube iframe) ---------- */
.hero-video-wrap {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
}
.hero-video {
  /* El iframe de YouTube hay que sobredimensionarlo para cubrir toda la pantalla */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw; /* ratio 16:9 */
  min-height: 100vh;
  min-width: 177.78vh; /* ratio inverso */
  opacity: 0.45;
  border: none;
}
.hero-video-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(2, 11, 24, 0.80) 0%,
    rgba(7, 26, 46, 0.70) 50%,
    rgba(2, 11, 24, 0.83) 100%
  );
  z-index: -2;
  pointer-events: none;
}

/* ---------- LOGOS CON IMÁGENES ---------- */
.logo-img {
  height: 36px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: filter 0.3s;
}
.logo-img:hover {
  filter: grayscale(0%) opacity(1);
}
.logo-placeholder {
  font-size: 15px;
  opacity: 0.55;
}

/* ---------- SERVICE LINK FIX ---------- */
.service-link {
  position: relative;
  z-index: 10;
  pointer-events: all;
}

/* ============================================================
   RESPONSIVE — FULL MOBILE FIRST
   ============================================================ */

/* ---------- TABLET (≤ 1024px) ---------- */
@media (max-width: 1024px) {

  /* NAV */
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; margin-left: auto; }

  /* HERO */
  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 110px 40px 80px;
    min-height: auto;
    gap: 40px;
  }
  .hero-content { max-width: 100%; }
  .hero-visual { width: 100%; display: flex; justify-content: center; }
  .device-mockup { width: 100%; max-width: 460px; }

  /* SERVICIOS */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* NOSOTROS */
  .nosotros-grid { grid-template-columns: 1fr; gap: 48px; }
  .nosotros-visual { height: 340px; }

  /* PROCESO */
  .process-steps { flex-direction: column; gap: 28px; }
  .process-connector { display: none; }
  .process-step {
    flex: none;
    text-align: left;
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }
  .step-number { margin: 0; flex-shrink: 0; }

  /* TESTIMONIOS */
  .testi-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .testi-card.featured-testi { transform: none; }

  /* CONTACTO */
  .contact-wrapper { grid-template-columns: 1fr; gap: 48px; }

  /* FOOTER */
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- MOBILE (≤ 768px) ---------- */
@media (max-width: 768px) {

  /* BASE */
  .container { padding: 0 20px; }
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }

  /* SECCIONES — menos padding vertical */
  .servicios  { padding: 72px 0; }
  .nosotros   { padding: 72px 0; }
  .proceso    { padding: 72px 0; }
  .testimonios { padding: 72px 0; }
  .contacto   { padding: 72px 0; }
  .footer     { padding: 60px 0 0; }

  /* SECTION HEADERS */
  .section-header { margin-bottom: 44px; }
  .section-title  { font-size: clamp(26px, 6.5vw, 40px); }

  /* NAV */
  .nav-inner { padding: 0 20px; }

  /* HERO */
  .hero {
    padding: 96px 20px 56px;
    gap: 36px;
  }
  .hero-title { font-size: clamp(28px, 7.5vw, 48px); line-height: 1.08; }
  .hero-sub   { font-size: 15px; max-width: 100%; }
  .hero-badge { font-size: 11px; }
  .hero-actions { flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
  .hero-actions .btn { flex: 1 1 140px; justify-content: center; }
  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
  }
  .stat-divider { display: none; }
  .stat-num  { font-size: 26px; }
  .stat-unit { font-size: 16px; }
  .stat-label { font-size: 11px; }

  /* video bg — ocultarlo en mobile para ahorrar recursos */
  .hero-video-wrap    { display: none; }
  .hero-video-overlay { display: none; }

  /* SCROLL INDICATOR */
  .scroll-indicator { display: none; }

  /* CLIENTS */
  .clients { padding: 36px 0; }
  .clients-label { font-size: 13px; }
  .logos-slide { gap: 40px; }
  .logo-transfiriendo { height: 50px; }
  .logo-chidofoods    { height: 30px; }

  /* SERVICIOS */
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card  { padding: 28px 22px; }
  .service-card:hover { transform: none; } /* evitar desborde en touch */

  /* NOSOTROS */
  .nosotros-grid   { gap: 36px; }
  .nosotros-visual { height: auto; min-height: 200px; position: relative; display: flex; flex-direction: column; gap: 12px; padding: 0 0 8px; }
  .about-card {
    position: relative;
    top: auto !important; left: auto !important;
    right: auto !important; bottom: auto !important;
    animation: none;
    width: 100%;
    box-sizing: border-box;
  }
  .main-card, .secondary-card, .tertiary-card { display: flex; }

  /* PROCESO */
  .proceso { padding: 72px 0; }
  .process-step { padding: 0; }
  .step-number {
    width: 48px; height: 48px;
    font-size: 11px;
  }
  .step-content h3 { font-size: 15px; }
  .step-content p  { font-size: 13px; }

  /* TESTIMONIOS */
  .testi-grid { max-width: 100%; }
  .testi-card { padding: 28px 22px; }

  /* CONTACTO */
  .contact-wrapper  { gap: 36px; }
  .contact-form     { padding: 28px 18px; border-radius: var(--radius-md); }
  .form-row         { grid-template-columns: 1fr; }
  .contact-info p   { font-size: 15px; }

  /* FOOTER */
  .footer-inner { gap: 32px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 20px 20px;
  }
}

/* ---------- SMALL MOBILE (≤ 480px) ---------- */
@media (max-width: 480px) {

  /* BASE */
  .container { padding: 0 16px; }

  /* HERO */
  .hero { padding: 88px 16px 48px; gap: 28px; }
  .hero-title { font-size: clamp(24px, 8.5vw, 38px); }
  .hero-badge { font-size: 10px; padding: 6px 12px; }
  .hero-sub   { font-size: 14px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 16px; }
  .stat { min-width: 80px; }

  /* DEVICE MOCKUP — reducir para que no ocupe demasiado */
  .screen-body { padding: 16px; font-size: 11px; }
  .screen-graph { height: 80px; }

  /* SECTION TITLES */
  .section-title  { font-size: clamp(22px, 7.5vw, 34px); }
  .section-header { margin-bottom: 36px; }

  /* SERVICIOS */
  .service-card  { padding: 24px 18px; }
  .service-icon  { width: 44px; height: 44px; margin-bottom: 18px; }
  .service-icon svg { width: 22px; height: 22px; }
  .service-card h3 { font-size: 16px; }

  /* NOSOTROS */
  .about-card { padding: 16px 18px; font-size: 13px; }

  /* PROCESO */
  .process-step { gap: 14px; }
  .step-number  { width: 42px; height: 42px; font-size: 10px; }

  /* CONTACTO */
  .contact-form { padding: 22px 14px; }
  .contact-info .section-title { font-size: clamp(22px, 7vw, 32px); }

  /* CLIENTS */
  .logos-slide { gap: 28px; }

  /* FOOTER */
  .footer-links    { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-col h4   { font-size: 11px; }
  .footer-col a    { font-size: 13px; }
  .footer-brand p  { font-size: 13px; }
  .footer-bottom   { padding: 18px 16px; font-size: 11px; }

  /* MOBILE MENU — títulos más pequeños en pantallas muy chicas */
  .mobile-menu a { font-size: 28px; }
  .mobile-menu li { margin: 18px 0; }
}
