/* =========================
   AXUS ANALYTICS - PREMIUM
   Ultra Professional Design
   ========================= */

:root {
  /* Paleta de Azules Premium */
  --blue-dark: #0a1628;
  --blue-deep: #0f2847;
  --blue-primary: #1a3a5c;
  --blue-electric: #2563eb;
  --blue-petrol: #0e7490;
  --blue-cyan: #06b6d4;
  --blue-light: #00d4ff;
  --blue-glow: #4dd0e1;
  
  /* Neutrales */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Sistema */
  --bg-dark: #020814;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-elevated: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-muted: rgba(255, 255, 255, 0.6);
  
  /* Efectos */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.4);
  --radius: 16px;
  --radius-lg: 24px;
  
  /* Transiciones */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--blue-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Fondo con gradiente animado */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--blue-dark) 0%,
    var(--blue-deep) 20%,
    var(--blue-primary) 40%,
    var(--blue-petrol) 60%,
    var(--blue-electric) 80%,
    var(--blue-deep) 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  z-index: -2;
}

/* Noise overlay para textura premium */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" /></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.035" /></svg>');
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ===== CUSTOM CURSOR PREMIUM ===== */
body {
  cursor: none;
}

.custom-cursor {
  position: fixed;
  width: 30px;
  height: 30px;
  background: transparent;
  border: 2px solid var(--blue-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  display: none;
}

.cursor-dot {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--blue-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  will-change: transform;
  display: none;
}

/* Mostrar cursor solo en desktop */
@media (min-width: 861px) {
  .custom-cursor,
  .cursor-dot {
    display: block;
  }
}

/* Cursor activo en hover de elementos interactivos */
.custom-cursor.active {
  width: 48px;
  height: 48px;
  background: rgba(6, 182, 212, 0.08);
  border-color: var(--blue-cyan);
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.6),
              0 0 40px rgba(6, 182, 212, 0.2);
}

.custom-cursor.link-hover {
  width: 42px;
  height: 42px;
  background: rgba(6, 182, 212, 0.05);
  border-color: var(--blue-electric);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

/* ===== LOADER PREMIUM ===== */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-deep) 50%, var(--blue-primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.loader-circle {
  fill: none;
  stroke: var(--blue-light);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  animation: loaderSpin 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  filter: drop-shadow(0 0 12px var(--blue-cyan));
}

@keyframes loaderSpin {
  0% {
    stroke-dashoffset: 283;
    transform: rotate(0deg);
  }
  50% {
    stroke-dashoffset: 70;
    transform: rotate(180deg);
  }
  100% {
    stroke-dashoffset: 283;
    transform: rotate(360deg);
  }
}

.loader-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--white);
  animation: pulse 2s ease infinite;
  background: linear-gradient(90deg, var(--blue-light), var(--blue-cyan), var(--blue-light));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ===== UTILITIES ===== */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

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

.section.alt {
  background: rgba(15, 40, 71, 0.3);
  backdrop-filter: blur(10px);
}

.section h3 {
  font-size: clamp(2rem, 1.5rem + 1.5vw, 2.8rem);
  margin-bottom: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--white), var(--blue-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.section-header {
  max-width: 800px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-header h3 {
  margin-bottom: 20px;
}

.section-header .section-intro {
  margin: 0 auto;
}

.section-intro {
  max-width: 700px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  font-size: 1.15rem;
  line-height: 1.8;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background var(--transition-base), box-shadow var(--transition-base);
  will-change: background, box-shadow;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.site-header.scrolled {
  background: rgba(10, 22, 40, 0.95);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

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

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

.logo img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 212, 255, 0.4));
}

.logo-text {
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.logo-primary {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: -0.5px;
}

.logo-secondary {
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--blue-cyan);
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  gap: 36px;
  align-items: center;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav > a:not(.btn) {
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.nav > a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-cyan);
  transition: width var(--transition-fast);
}

.nav > a:not(.btn):hover {
  color: var(--white);
}

.nav > a:not(.btn):hover::after {
  width: 100%;
}

.nav .btn-contact {
  padding: 10px 24px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-left: 12px;
}

/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 32px;
  padding-left: 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all var(--transition-fast);
  letter-spacing: 0.5px;
}

.lang-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
  color: var(--blue-cyan);
  background: rgba(6, 182, 212, 0.1);
}

.lang-separator {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  user-select: none;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--blue-cyan);
  border-radius: 50px;
  position: relative;
  font-weight: 600;
  transition: all var(--transition-base);
  box-shadow: none;
}

.btn-primary:hover {
  transform: none;
  background: var(--blue-cyan);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.4);
  color: var(--dark);
}

.btn-glow {
  animation: buttonGlow 3s ease infinite;
}

@keyframes buttonGlow {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
  }
  50% {
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.6), 0 0 60px rgba(0, 212, 255, 0.3);
  }
}

.btn-outline {
  border-color: var(--blue-cyan);
  color: var(--blue-cyan);
  background: transparent;
}

.btn-outline:hover {
  background: var(--blue-cyan);
  color: var(--blue-dark);
  transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 120vh;
  height: 120vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  background: linear-gradient(
    135deg,
    #0a1628 0%,
    #0d1f3d 25%,
    #122a4a 50%,
    #0e2848 75%,
    #0a1628 100%
  );
}

#particlesCanvas {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* Gradient Orbs */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--blue-electric), transparent);
  top: -250px;
  left: -250px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--blue-cyan), transparent);
  bottom: -200px;
  right: -200px;
  animation-delay: 7s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--blue-petrol), transparent);
  top: 50%;
  right: 10%;
  animation-delay: 14s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(50px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.9);
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 60px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Hero Wrapper */
.hero-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  padding: 0 20px;
}

/* Hero Content Main */
.hero-content-main {
  max-width: 1000px;
  width: 100%;
  text-align: center;
  padding: 60px 20px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--blue-cyan);
  margin-bottom: 30px;
  font-weight: 700;
  display: block;
}

.hero-title {
  font-size: clamp(5rem, 4rem + 8vw, 9rem);
  color: var(--white);
  margin-bottom: 40px;
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 0.95;
}

.hero-subtitle {
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.5;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-description {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 50px;
  line-height: 1.8;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Scroll Indicator */
.scroll-indicator {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  margin-top: 50px;
}

.scroll-text {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 600;
  animation: fadeInOut 2s ease-in-out infinite;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  color: var(--blue-cyan);
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes bounceDown {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}

/* Hero Metrics (oculto en nuevo diseño) */
.hero-metrics {
  display: none;
}

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

.brand-mark {
  width: 100px;
  height: 100px;
  margin-bottom: 24px;
  animation: float 3s ease-in-out infinite;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 212, 255, 0.5));
}

.eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--blue-cyan);
  margin-bottom: 20px;
  font-weight: 700;
  display: block;
}

.hero-content h1 {
  font-size: clamp(3rem, 2.5rem + 2.5vw, 4.5rem);
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.1;
}

.glitch-text {
  position: relative;
  animation: textGlow 3s ease infinite;
}

@keyframes textGlow {
  0%, 100% {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  }
  50% {
    text-shadow: 0 0 40px rgba(6, 182, 212, 0.8), 0 0 60px rgba(37, 99, 235, 0.6);
  }
}

.hero-content h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.8rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.4;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.8;
}

/* Hero Card */
.hero-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px;
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(0, 212, 255, 0.1),
    transparent
  );
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.metric {
  padding: 20px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-base);
  position: relative;
  z-index: 1;
}

.metric:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(8px);
  border-color: rgba(0, 212, 255, 0.3);
}

.metric-title {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.metric-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.metric-caption {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Section Divider */
.section-divider {
  width: 100%;
  height: 2px;
  margin: 60px 0 0 0;
}

.section-divider svg {
  width: 100%;
  height: 100%;
}

.section-divider line {
  animation: lineGlow 3s ease infinite;
}

@keyframes lineGlow {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* ===== CARDS PREMIUM ===== */
.grid {
  display: grid;
  gap: 28px;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1100px;
  margin: 0 auto;
}

.card-premium {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
}

.card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.05),
    rgba(37, 99, 235, 0.05)
  );
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.15) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.card-premium:hover .card-glow {
  opacity: 1;
  animation: glowMove 3s ease infinite;
}

@keyframes glowMove {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(10%, 10%);
  }
}

.card-premium:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2), 
              0 0 40px rgba(37, 99, 235, 0.1);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(0, 212, 255, 0.3));
  transition: transform var(--transition-base);
}

.card-premium:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Card Number - Professional Style */
.card-number {
  display: inline-block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--blue-cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 2px solid rgba(6, 182, 212, 0.3);
  border-radius: 8px;
  padding: 6px 14px;
  margin-bottom: 20px;
  letter-spacing: 1px;
  transition: all var(--transition-base);
}

.card-premium:hover .card-number {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--blue-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.card-premium h4 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--white);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.card-premium p {
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* Cards simples */
.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition-base);
}

.card h4 {
  color: var(--white);
  margin-bottom: 12px;
  font-weight: 600;
}

.card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.card.simple {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card.simple:hover {
  border-color: rgba(0, 212, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
}

/* ===== FOR WHOM SECTION ===== */
.for-whom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

/* Main featured card */
.card-segment-main {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  position: relative;
}

@media (min-width: 900px) {
  .card-segment-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }
  
  .for-whom-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.card-segment {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.card-segment-main {
  padding: 40px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(37, 99, 235, 0.08)
  );
}

.card-segment:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 212, 255, 0.15);
}

.card-segment-main:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(37, 99, 235, 0.12)
  );
}

/* Card accent lines */
.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue-cyan), var(--blue-electric), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card-segment:hover .card-accent {
  opacity: 1;
}

.card-accent-small {
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 60px;
  background: linear-gradient(180deg, var(--blue-cyan), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card-segment:hover .card-accent-small {
  opacity: 1;
}

/* Card tag - "Más elegido" */
.card-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--blue-cyan);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.3);
}

.card-segment h4 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.card-segment-main h4 {
  font-size: 1.6rem;
}

.card-segment p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
  flex-grow: 1;
}

.segment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.segment-list li {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-left: 24px;
  position: relative;
}

.segment-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue-cyan);
  font-weight: 700;
}

.card-segment:hover .segment-list li {
  color: var(--text-secondary);
  transition: color var(--transition-base);
}

/* ===== ANIMATIONS ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== WEB EDITABLE SECTION ===== */
.feature-section {
  max-width: 900px;
  margin: 0 auto;
}

.feature-content h3 {
  text-align: center;
  margin-bottom: 20px;
}

.feature-content > .section-intro {
  text-align: center;
  margin: 0 auto 48px;
}

.benefits-list {
  display: grid;
  gap: 24px;
  margin-bottom: 48px;
}

.benefit {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-base);
}

.benefit:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateX(8px);
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--blue-cyan);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.4);
}

.benefit h5 {
  margin: 0 0 8px 0;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
}

.benefit p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.feature-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.axusdesk-section {
  position: relative;
  background: linear-gradient(135deg, #0a1628 0%, #0f2847 100%);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.axusdesk-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  top: -200px;
  left: -100px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.4) 0%, rgba(0, 212, 255, 0.1) 40%, transparent 70%);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  animation: blobBlue 20s ease-in-out infinite;
}

.axusdesk-section::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  bottom: -150px;
  right: -80px;
  background: radial-gradient(circle, rgba(139, 49, 255, 0.45) 0%, rgba(139, 49, 255, 0.15) 40%, transparent 70%);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 1;
  animation: blobPurple 25s ease-in-out infinite;
}

@keyframes blobBlue {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
  33% {
    transform: translate(30px, -50px) rotate(120deg) scale(1.1);
    border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
  }
  66% {
    transform: translate(-20px, 30px) rotate(240deg) scale(0.95);
    border-radius: 50% 50% 50% 50% / 60% 40% 60% 40%;
  }
}

@keyframes blobPurple {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  33% {
    transform: translate(-40px, 40px) rotate(-120deg) scale(1.15);
    border-radius: 30% 70% 60% 40% / 50% 60% 40% 50%;
  }
  66% {
    transform: translate(25px, -25px) rotate(-240deg) scale(0.9);
    border-radius: 50% 50% 50% 50% / 40% 60% 40% 60%;
  }
}

.axusdesk-section .container {
  position: relative;
  z-index: 2;
}

.axusdesk-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: var(--blue-glow);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 48px;
  transition: all var(--transition-base);
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.03),
    rgba(37, 99, 235, 0.03)
  );
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 24px 64px rgba(0, 212, 255, 0.15);
}

.project-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  border: none;
  pointer-events: none;
  opacity: 0.06;
  filter: blur(2px);
  animation: scrollBackground 25s linear infinite;
  z-index: 0;
}

@keyframes scrollBackground {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.project-content {
  position: relative;
  z-index: 1;
}

.project-title {
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.project-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.project-benefits {
  display: grid;
  gap: 14px;
  margin-bottom: 36px;
  padding: 28px;
  background: rgba(0, 212, 255, 0.05);
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 255, 0.15);
}

.project-benefit {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-primary);
  font-size: 1rem;
}

.benefit-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--blue-cyan);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.4);
}

.project-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.project-actions .btn {
  flex: 1;
  min-width: 220px;
  justify-content: center;
}

/* ===== PROJECTS GRID HOME ===== */
.projects-grid-home {
  display: flex;
  flex-direction: column;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.project-card-home {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
  opacity: 0;
  animation: fadeInUpProjects 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
}

.project-card-home:hover {
  transform: translateY(-8px);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(6, 182, 212, 0.15);
}

.project-mockups-home {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 40, 71, 0.6), rgba(10, 22, 40, 0.8));
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  overflow: hidden;
  gap: 0;
}

.project-mockups-home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(6, 182, 212, 0.1), transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.mockup-device-home {
  position: absolute;
  z-index: 2;
  transition: transform var(--transition-base);
}

.mockup-device-home.mobile-device {
  bottom: 20px;
  left: 20px;
  width: 18%;
  z-index: 3;
}

.mockup-device-home.desktop-device {
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: 55%;
  z-index: 2;
}

.mockup-device-home.hero-device {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 1;
}

.project-card-home:hover .mockup-device-home {
  transform: scale(1.02);
}

.mockup-device-home img {
  max-height: none;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
  object-fit: cover;
}

.mockup-device-home.mobile-device img {
  max-height: 420px;
  height: auto;
  width: auto;
  object-fit: contain;
}

.mockup-device-home.desktop-device img {
  max-height: 400px;
  height: auto;
  width: auto;
  object-fit: contain;
}

.mockup-device-home.hero-device img {
  max-height: none;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.project-content-home {
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 3;
  position: relative;
}

.project-tag-home {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--blue-cyan);
  font-weight: 500;
  margin-bottom: 16px;
  width: fit-content;
}

.project-title-home {
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.project-description-home {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  font-size: 1rem;
}

.project-actions-home {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== PROJECTS CAROUSEL 3D (OLD - Keep for backward compatibility) ===== */
.projects-carousel-3d {
  display: grid;
  gap: 96px;
  max-width: 1300px;
  margin: 0 auto;
}

.project-carousel-item {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 72px;
  align-items: center;
  opacity: 0;
  animation: fadeInUpProjects 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.project-carousel-item:nth-child(even) {
  direction: rtl;
}

.project-carousel-item:nth-child(even) > * {
  direction: ltr;
}

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

/* 3D Carousel Container */
.carousel-3d-wrapper {
  perspective: 1200px;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-3d-container {
  position: relative;
  width: 360px;
  height: 360px;
  transform-style: preserve-3d;
  animation: rotate3d 12s linear infinite;
}

@keyframes rotate3d {
  0% {
    transform: rotateY(0deg) rotateX(5deg);
  }
  100% {
    transform: rotateY(360deg) rotateX(5deg);
  }
}

.project-carousel-item:hover .carousel-3d-container {
  animation-play-state: paused;
}

/* Mockup Slides Positioning */
.mockup-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  /* Calcula el ángulo basado en --index y cantidad de mockups */
  --total-mockups: 2;
  --angle: calc(var(--index) * (360deg / var(--total-mockups)));
  --radius: 180px;
  transform: 
    rotateY(var(--angle))
    translateZ(var(--radius))
    rotateY(calc(var(--angle) * -1));
  opacity: 1;
  animation: floatVertical 4s ease-in-out infinite;
}

.mockup-slide:nth-child(2) {
  animation-delay: 2s;
}

@keyframes floatVertical {
  0%, 100% {
    transform: 
      rotateY(var(--angle))
      translateZ(var(--radius))
      rotateY(calc(var(--angle) * -1))
      translateY(0px);
  }
  50% {
    transform: 
      rotateY(var(--angle))
      translateZ(var(--radius))
      rotateY(calc(var(--angle) * -1))
      translateY(-20px);
  }
}

.mockup-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.mockup-frame img {
  width: auto;
  max-width: 320px;
  max-height: 480px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: 
    drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5))
    drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3))
    drop-shadow(0 0 30px rgba(0, 212, 255, 0.15));
  transition: all var(--transition-base);
}

.mockup-mobile img {
  max-width: 180px;
  max-height: 360px;
}

.project-carousel-item:hover .mockup-frame img {
  filter: 
    drop-shadow(0 32px 64px rgba(0, 0, 0, 0.7))
    drop-shadow(0 12px 32px rgba(0, 0, 0, 0.4))
    drop-shadow(0 0 50px rgba(0, 212, 255, 0.25));
  transform: scale(1.05);
}

/* Project Info */
.project-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-type {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-cyan);
  padding: 8px 16px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 20px;
  width: fit-content;
}

.project-title {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  color: var(--white);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.project-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.project-benefits {
  display: grid;
  gap: 14px;
  padding: 28px;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 16px;
  margin: 12px 0;
}

.project-benefit {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.benefit-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--blue-cyan);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.project-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.project-actions .btn {
  justify-content: center;
  font-size: 0.95rem;
  padding: 12px 24px;
}

/* ===== METHOD/STEPS ===== */
.steps {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition-base);
}

.step:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-4px);
}

.step-number {
  display: inline-block;
  font-weight: 800;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  line-height: 1;
}

.step h4 {
  color: var(--white);
  margin-bottom: 12px;
  font-weight: 600;
}

.step p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== LOCATION / UBICACIÓN ===== */
/* ===== WIDGET DE UBICACIÓN ===== */
.map-widget-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.map-widget {
  max-width: 380px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 212, 255, 0.08);
  transition: all var(--transition-base);
}

.map-widget:hover {
  box-shadow: 
    0 14px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(0, 212, 255, 0.12);
  transform: translateY(-4px);
}

.map-widget-frame {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
}

.map-widget-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  filter: grayscale(0.2) contrast(1.1);
  transition: filter var(--transition-base);
}

.map-widget:hover .map-widget-frame iframe {
  filter: grayscale(0) contrast(1.15);
}

.map-widget-info {
  padding: 20px 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.map-location {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 8px 0;
}

.map-remote {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* ===== CONTACT PREMIUM ===== */
.contact {
  padding-bottom: 120px;
}

.contact-form-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

/* Premium Form Card */
.premium-form {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 56px 48px;
  border-radius: 24px;
  backdrop-filter: blur(24px);
  box-shadow: 
    0 24px 64px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 80px rgba(6, 182, 212, 0.08);
  position: relative;
  overflow: hidden;
  animation: formFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.premium-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(6, 182, 212, 0.05),
    transparent
  );
  animation: shimmer 6s infinite;
  pointer-events: none;
}

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

.premium-form > * {
  position: relative;
  z-index: 1;
}

/* Floating Label System */
.floating-label {
  position: relative;
  margin-bottom: 32px;
  animation: inputStagger 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.form-input {
  width: 100%;
  padding: 18px 20px 18px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  position: relative;
  z-index: 2;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  padding-top: 20px;
}

.form-label {
  position: absolute;
  left: 20px;
  top: 18px;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 400;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
  background: transparent;
  padding: 0 4px;
}

/* Float label on focus or when filled */
.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  top: -10px;
  left: 16px;
  font-size: 0.75rem;
  color: var(--blue-cyan);
  font-weight: 600;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 40%,
    rgba(10, 22, 40, 0.9) 40%,
    rgba(10, 22, 40, 0.9) 60%,
    transparent 60%,
    transparent 100%
  );
}

/* Input Glow Effect */
.input-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  opacity: 0;
  background: transparent;
  box-shadow: 
    0 0 20px rgba(6, 182, 212, 0.4),
    0 0 40px rgba(6, 182, 212, 0.2),
    0 0 0 2px rgba(6, 182, 212, 0.6);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
}

.form-input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--blue-cyan);
  transform: translateY(-1px);
}

.form-input:focus ~ .input-glow {
  opacity: 1;
}

/* Premium Button */
.btn-premium {
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 16px;
  animation: inputStagger 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-shadow: 
    0 8px 24px rgba(6, 182, 212, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--blue-cyan);
  z-index: 1;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.btn-content {
  position: relative;
  z-index: 2;
  display: block;
  padding: 18px 32px;
  color: white;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 32px rgba(6, 182, 212, 0.35),
    0 6px 16px rgba(0, 0, 0, 0.4);
}

.btn-premium:active {
  transform: translateY(0);
  box-shadow: 
    0 4px 16px rgba(6, 182, 212, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-premium:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.btn-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-premium.loading .btn-text {
  display: none;
}

.btn-premium.loading .btn-loading {
  display: flex;
}

.loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Response Time Text */
.form-response-time {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
  padding: 8px 0;
  animation: inputStagger 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Feedback States */
.form-feedback {
  margin-top: 24px;
  text-align: center;
}

.feedback-success,
.feedback-error {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  border-radius: 16px;
  animation: feedbackAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes feedbackAppear {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.form-feedback.show-success .feedback-success {
  display: flex;
}

.form-feedback.show-error .feedback-error {
  display: flex;
}

.feedback-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.feedback-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Success Checkmark Animation */
.success-checkmark {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}

.success-checkmark-circle {
  stroke: #4ade80;
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: checkmarkCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

@keyframes checkmarkCircle {
  to {
    stroke-dashoffset: 0;
  }
}

.success-checkmark-check {
  stroke: #4ade80;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: checkmarkCheck 0.3s 0.4s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

@keyframes checkmarkCheck {
  to {
    stroke-dashoffset: 0;
  }
}

/* Error Icon Animation */
.error-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}

.error-icon-circle {
  stroke: #f87171;
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: checkmarkCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.error-icon-line {
  stroke: #f87171;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 54;
  stroke-dashoffset: 54;
  animation: errorLine 0.3s 0.4s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

@keyframes errorLine {
  to {
    stroke-dashoffset: 0;
  }
}

.feedback-message {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.feedback-submessage {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

/* Divider */
.contact-divider {
  text-align: center;
  margin: 40px 0 28px;
  position: relative;
  animation: inputStagger 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contact-divider::before,
.contact-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
}

.contact-divider::before {
  left: 0;
}

.contact-divider::after {
  right: 0;
}

.contact-divider span {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  position: relative;
}

.contact-social {
  display: flex;
  justify-content: center;
  animation: inputStagger 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  font-size: 1rem;
  transition: all var(--transition-base);
  border-radius: 12px;
}

.btn-instagram svg {
  transition: transform var(--transition-base);
}

.btn-instagram:hover svg {
  transform: scale(1.1) rotate(5deg);
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  background: rgba(10, 22, 40, 0.5);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  position: relative;
}

.footer-legal a:hover {
  color: var(--blue-glow);
}

.footer-legal a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue-glow);
  transition: width 0.3s ease;
}

.footer-legal a:hover::after {
  width: 100%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .language-switcher {
    margin-left: auto;
    padding-left: 0;
    border-left: none;
  }

  .header-inner {
    padding: 6px 0;
  }

  .logo img {
    width: 50px;
    height: 50px;
  }

  .logo-primary {
    font-size: 1.1rem;
  }

  .logo-secondary {
    font-size: 1rem;
  }

  .logo {
    gap: 8px;
  }

  .premium-form {
    padding: 40px 32px;
  }

  .floating-label {
    margin-bottom: 28px;
  }

  .btn-instagram {
    padding: 12px 28px;
  }

  /* Proyectos Grid Home - Tablet */
  .projects-grid-home {
    gap: 60px;
  }

  .project-card-home {
    grid-template-columns: 1fr;
  }

  .project-mockups-home {
    padding: 40px 30px;
    min-height: 400px;
    position: relative;
  }

  .mockup-device-home {
    position: relative;
  }

  .mockup-device-home.mobile-device {
    position: static;
    width: auto;
    left: auto;
    bottom: auto;
    z-index: 2;
  }

  .mockup-device-home.desktop-device {
    position: static;
    width: auto;
    transform: none;
    left: auto;
    bottom: auto;
    z-index: 1;
  }

  .mockup-device-home.hero-device {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    z-index: 0;
  }

  .mockup-device-home img {
    max-height: 300px;
    height: auto;
    object-fit: contain;
  }

  .mockup-device-home.mobile-device img {
    max-height: 240px;
  }

  .mockup-device-home.desktop-device img {
    max-height: 280px;
  }

  .mockup-device-home.hero-device img {
    max-height: none;
    height: 100%;
    object-fit: cover;
  }

  .project-content-home {
    padding: 40px 35px;
  }

  .project-title-home {
    font-size: 1.6rem;
  }

  /* Proyectos Carousel - Tablet */
  .project-carousel-item {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-carousel-item:nth-child(even) {
    direction: ltr;
  }

  .carousel-3d-wrapper {
    height: 450px;
  }

  .carousel-3d-container {
    width: 320px;
    height: 320px;
    animation: rotate3dTablet 12s linear infinite;
  }

  @keyframes rotate3dTablet {
    0% {
      transform: rotateY(0deg) rotateX(0deg);
    }
    100% {
      transform: rotateY(360deg) rotateX(0deg);
    }
  }

  .mockup-frame img {
    max-width: 280px;
    max-height: 420px;
  }

  .mockup-mobile img {
    max-width: 160px;
    max-height: 320px;
  }
}

@media (max-width: 600px) {
  /* ===== OPTIMIZACIÓN DE SCROLL MÓVIL ===== */
  
  /* Optimización de scroll táctil */
  html {
    -webkit-overflow-scrolling: touch;
    /* Prevenir bounce en iOS que causa bugs visuales */
    overflow-y: scroll;
    position: relative;
  }
  
  body {
    /* Optimización de scroll táctil */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    
    /* Reducir animaciones pesadas del fondo en móvil */
    background: var(--blue-dark);
    
    /* Prevenir bugs de repaint en scroll */
    min-height: 100vh;
  }
  
  body::before {
    /* Animación más ligera del gradiente en móvil */
    animation: gradientShift 30s ease infinite;
    will-change: auto;
  }
  
  body::after {
    /* Reducir opacidad del noise en móvil para mejor performance */
    opacity: 0.3;
  }
  
  /* Optimizar elementos fijos para scroll móvil */
  .site-header {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Backdrop-filter más ligero en móvil */
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
  }
  
  /* Desactivar cursor personalizado en móvil (ya está hecho pero reforzamos) */
  .custom-cursor,
  .cursor-dot {
    display: none !important;
  }
  
  /* Restaurar cursor nativo en móvil */
  body {
    cursor: auto;
  }
  
  /* Optimización de capas para scroll suave bidireccional */
  .hero,
  .section {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    will-change: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  
  /* Reducir partículas en móvil para mejor scroll */
  #particlesCanvas {
    opacity: 0.4;
    will-change: auto;
    pointer-events: none;
  }
  
  /* Optimizar orbes de gradiente (ya ocultos pero aseguramos) */
  .gradient-orb {
    display: none;
  }
  
  /* Scroll snap suave para secciones - desactivado para evitar bugs */
  .hero,
  .section {
    scroll-snap-align: none;
  }
  
  /* Optimizar imágenes para scroll bidireccional */
  img {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  
  /* Reducir transiciones pesadas en scroll móvil */
  .card-premium,
  .benefit,
  .step,
  .card-segment {
    transition: transform 0.2s ease-out;
    will-change: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  
  /* Optimizar animaciones del carousel 3D en móvil */
  .carousel-3d-container {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  
  .mockup-slide {
    will-change: auto;
  }
  
  /* Prevenir bugs en animaciones de fade-in al hacer scroll hacia arriba */
  .fade-in-up,
  .scroll-animate {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
  }

  .header-inner {
    padding: 4px 0;
  }

  .logo img {
    width: 40px;
    height: 40px;
  }

  .logo-primary {
    font-size: 0.95rem;
  }

  .logo-secondary {
    font-size: 0.85rem;
  }

  .logo {
    gap: 6px;
  }

  .lang-btn {
    font-size: 0.75rem;
    padding: 4px 8px;
  }

  .section {
    padding: 80px 0;
    /* Mejor scroll performance */
    contain: layout style paint;
  }

  .hero {
    min-height: 100vh;
    height: 100vh;
    padding: 0;
    /* Optimización de scroll bidireccional */
    overscroll-behavior: contain;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  
  .hero-background {
    /* Optimizar background fijo para scroll suave */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    will-change: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .hero-content-main {
    padding: 40px 20px;
    /* Mejor performance en scroll bidireccional */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: clamp(3rem, 2.5rem + 5vw, 4rem);
    margin-bottom: 25px;
  }

  .hero-subtitle {
    font-size: clamp(1rem, 0.9rem + 1vw, 1.4rem);
    margin-bottom: 20px;
  }

  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 35px;
  }

  .scroll-indicator {
    bottom: 30px;
    /* Optimizar animación en móvil */
    will-change: transform, opacity;
    animation: fadeInBounce 2s ease-in-out infinite;
  }
  
  @keyframes fadeInBounce {
    0%, 100% {
      transform: translateY(0);
      opacity: 1;
    }
    50% {
      transform: translateY(8px);
      opacity: 0.6;
    }
  }

  .scroll-text {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
  }

  .scroll-arrow {
    width: 20px;
    height: 20px;
  }

  .hero-grid {
    gap: 40px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    margin-top: 40px;
    display: none;
  }

  .hero-content-centered h1 {
    font-size: 2.5rem;
  }

  .section h3 {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .card-premium {
    padding: 24px;
    /* Mejor touch response */
    -webkit-tap-highlight-color: rgba(6, 182, 212, 0.1);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  .benefit {
    flex-direction: column;
    text-align: center;
    /* Optimización de scroll */
    contain: layout style;
  }

  /* Ubicación - Mobile */
  .map-widget {
    max-width: 100%;
    margin: 0 16px;
  }

  .map-widget-frame {
    height: 200px;
  }

  /* Proyectos Grid Home - Mobile */
  .projects-grid-home {
    gap: 40px;
  }

  .project-card-home {
    grid-template-columns: 1fr;
  }

  .project-mockups-home {
    padding: 0;
    min-height: 320px;
    position: relative;
  }

  .mockup-device-home {
    position: absolute;
  }

  .mockup-device-home.mobile-device {
    bottom: 16px;
    left: 16px;
    width: 20%;
    z-index: 2;
  }

  .mockup-device-home.desktop-device {
    display: none;
  }

  .mockup-device-home.hero-device {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 0;
    opacity: 1;
  }

  .mockup-device-home img {
    max-height: none;
    height: auto;
    object-fit: contain;
  }

  .mockup-device-home.mobile-device img {
    max-height: 200px;
  }

  .mockup-device-home.hero-device img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .project-content-home {
    padding: 24px;
  }

  .project-tag-home {
    font-size: 0.75rem;
    padding: 5px 14px;
  }

  .project-title-home {
    font-size: 1.4rem;
  }

  .project-description-home {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .project-actions-home {
    flex-direction: column;
  }

  .project-actions-home .btn {
    width: 100%;
  }

  /* Proyectos Carousel - Mobile */
  .projects-carousel-3d {
    gap: 56px;
    /* Scroll suave en móvil */
    -webkit-overflow-scrolling: touch;
  }

  .project-carousel-item {
    grid-template-columns: 1fr;
    gap: 28px;
    /* Optimizar rendering */
    contain: layout style paint;
  }

  .carousel-3d-wrapper {
    height: 380px;
    /* Touch optimization */
    touch-action: pan-y;
  }

  .carousel-3d-container {
    width: 280px;
    height: 280px;
    animation: rotate3dMobile 14s linear infinite;
    /* GPU acceleration */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
  }

  @keyframes rotate3dMobile {
    0% {
      transform: rotateY(0deg) rotateX(8deg);
    }
    50% {
      transform: rotateY(180deg) rotateX(8deg);
      opacity: 0.8;
    }
    100% {
      transform: rotateY(360deg) rotateX(8deg);
    }
  }

  .mockup-slide {
    --radius: 140px;
  }

  .mockup-frame img {
    max-width: 240px;
    max-height: 360px;
    filter: 
      drop-shadow(0 16px 32px rgba(0, 0, 0, 0.4))
      drop-shadow(0 6px 16px rgba(0, 0, 0, 0.2))
      drop-shadow(0 0 24px rgba(0, 212, 255, 0.1));
  }

  .mockup-mobile img {
    max-width: 140px;
    max-height: 280px;
  }

  .project-carousel-item:hover .mockup-frame img {
    filter: 
      drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5))
      drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3))
      drop-shadow(0 0 35px rgba(0, 212, 255, 0.15));
    transform: scale(1.03);
  }

  .project-title {
    font-size: 1.3rem;
  }

  .project-description {
    font-size: 0.95rem;
  }

  .project-benefits {
    padding: 20px;
    gap: 12px;
  }

  .project-benefit {
    gap: 12px;
    font-size: 0.9rem;
  }

  .benefit-bullet {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
  }

  .project-actions {
    grid-template-columns: 1fr;
  }

  .project-actions .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

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

  .feature-cta {
    flex-direction: column;
  }

  .feature-cta .btn {
    width: 100%;
  }

  .for-whom-grid {
    grid-template-columns: 1fr;
  }

  .card-segment-main {
    grid-column: auto;
    grid-row: auto;
  }

  .card-segment h4 {
    font-size: 1.2rem;
  }

  .card-segment-main h4 {
    font-size: 1.4rem;
  }

  .orb-1,
  .orb-2,
  .orb-3 {
    display: none;
  }

  .premium-form {
    padding: 32px 24px;
    /* Mejor scroll interno */
    -webkit-overflow-scrolling: touch;
  }

  .floating-label {
    margin-bottom: 24px;
    /* Optimización táctil */
    -webkit-tap-highlight-color: transparent;
  }

  .form-input {
    padding: 16px 18px;
    font-size: 0.95rem;
    /* Mejor respuesta táctil */
    -webkit-tap-highlight-color: rgba(6, 182, 212, 0.1);
    touch-action: manipulation;
  }

  .form-textarea {
    padding-top: 18px;
    /* Optimizar scroll interno del textarea */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .btn-content {
    padding: 16px 28px;
    font-size: 1rem;
    /* Mejor feedback táctil */
    -webkit-tap-highlight-color: transparent;
  }

  .form-response-time {
    font-size: 0.85rem;
  }

  .success-checkmark,
  .error-icon {
    width: 52px;
    height: 52px;
  }

  .contact-divider {
    margin: 28px 0 20px;
  }

  .contact-divider::before,
  .contact-divider::after {
    width: 30%;
  }

  .btn-instagram {
    width: 100%;
    justify-content: center;
    /* Optimización táctil */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  
  /* Optimizar todos los botones y enlaces para touch */
  .btn,
  a,
  button {
    -webkit-tap-highlight-color: rgba(6, 182, 212, 0.15);
    touch-action: manipulation;
  }
  
  /* Mejor área de toque para navegación */
  .nav a,
  .btn-primary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Optimizar grids para mejor scroll */
  .steps,
  .for-whom-grid {
    contain: layout style;
  }
  
  /* Desactivar hover effects en móvil para mejor performance */
  .project-carousel-item:hover .mockup-frame img {
    transform: none;
    filter: 
      drop-shadow(0 16px 32px rgba(0, 0, 0, 0.4))
      drop-shadow(0 6px 16px rgba(0, 0, 0, 0.2))
      drop-shadow(0 0 24px rgba(0, 212, 255, 0.1));
  }
  
  /* Smooth scroll para anchor links */
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
