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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--neutral-100);
  color: var(--neutral-900);
  line-height: 1.7;
}

/* ---------------------------------------------------
   VARIABLES – BRAND SYSTEM XENTO
--------------------------------------------------- */
:root {
  /* PRIMARY – XENTO BLUE SCALE */
  --primary-900: #0A1C47;
  --primary-800: #0D2A68;
  --primary-700: #12378A;
  --primary-600: #1847B8;
  --primary-500: #1E4DD8;
  --primary-400: #4D70E6;
  --primary-300: #7E97F2;
  --primary-200: #AFBFF8;
  --primary-100: #D9E4FF;
  --primary-50:  #F3F7FF;

  /* ACCENTS – XENTO MINT */
  --accent-900: #015C52;
  --accent-800: #027C72;
  --accent-700: #02A291;
  --accent-600: #00C6AF;
  --accent-500: #3FE0C0;
  --accent-400: #89F0D8;
  --accent-300: #B6F7E8;
  --accent-200: #D9FBF3;
  --accent-100: #EBFEF9;
  --accent-50:  #F8FFFD;

  /* SECONDARY – XENTO INDIGO */
  --secondary-900: #1A1E47;
  --secondary-800: #222A72;
  --secondary-700: #2E3DA4;
  --secondary-600: #394FD1;
  --secondary-500: #7280FF;
  --secondary-400: #96A1FF;
  --secondary-300: #B7BDFF;
  --secondary-200: #D8DAFF;
  --secondary-100: #EEF0FF;
  --secondary-50:  #F8F9FF;

  /* NEUTRALS */
  --neutral-900: #0C1B33;
  --neutral-800: #1A2333;
  --neutral-700: #2A3247;
  --neutral-600: #4B556A;
  --neutral-500: #6B7687;
  --neutral-400: #9CA3AF;
  --neutral-300: #D1D5DB;
  --neutral-200: #E6E8F1;
  --neutral-100: #F4F6FA;
  --neutral-50:  #FCFDFE;
  --white: #FFFFFF;

  /* GRADIENTS */
  --gradient-brand: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  --gradient-soft: linear-gradient(135deg, var(--primary-50), var(--neutral-100));

  /* SHADOWS */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 14px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.16);

  /* TYPOGRAPHY */
  --font-heading: 'Work Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* RADII */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  /* MOTION */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* LAYOUT */
  --container-width: 1200px;
  --header-height: 80px;
}

/* ---------------------------------------------------
   GLOBAL ELEMENTS
--------------------------------------------------- */

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: auto;
}

section {
  padding: 100px 0;
}

/* ---------------------------------------------------
   HEADER – optimized blur
--------------------------------------------------- */

.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--neutral-200);
  z-index: 999;
  transition: var(--transition-normal);
}

@media (max-width: 900px) {
  .header {
    backdrop-filter: none !important;
    background: rgba(255,255,255,0.96);
  }
}

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

.logo-text {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 800;
  color: var(--primary-500);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--neutral-800);
  text-decoration: none;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-500);
  transform: translateY(-2px);
}

.nav-btn {
  padding: 10px 28px;
  background: var(--gradient-brand);
  border-radius: var(--radius-md);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}

.nav-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-3px);
}

/* ---------------------------------------------------
   HERO – optimized animations
--------------------------------------------------- */

.hero {
  padding: 180px 0 140px;
  background: var(--gradient-soft);
  background-size: 200% 200%;
  animation: heroPulse 18s ease-in-out infinite alternate;
  will-change: background-position;
}

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

@media (max-width: 768px) {
  .hero {
    animation: none !important;
  }
}

.hero-flex {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--neutral-900);
  position: relative;
}

.hero-title::after {
  content: "";
  position: absolute;
  left: -20px;
  top: -20px;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--primary-200) 0%, transparent 70%);
  opacity: 0.28;
  z-index: -1;
  filter: blur(40px);
  animation: glowHero 12s infinite alternate;
}

@keyframes glowHero {
  0% { opacity: 0.22; transform: scale(1); }
  100% { opacity: 0.36; transform: scale(1.08); }
}

.hero-subtitle {
  font-size: 22px;
  font-weight: 300;
  color: var(--neutral-600);
  margin: 25px 0 30px;
}

.hero-graphic svg {
  animation: floatBlob 14s ease-in-out infinite;
  will-change: transform;
}

@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(0, -12px) scale(1.03); }
  100% { transform: translate(0, 0) scale(1); }
}

/* CTA buttons */

.btn-primary {
  background: var(--gradient-brand);
  padding: 14px 34px;
  border-radius: var(--radius-md);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-normal);
}

.btn-primary:hover {
  filter: brightness(1.15);
  transform: translateY(-4px);
}

.btn-secondary {
  padding: 14px 34px;
  border: 2px solid var(--primary-500);
  border-radius: var(--radius-md);
  color: var(--primary-500);
  font-weight: 600;
  text-decoration: none;
  margin-left: 10px;
  transition: var(--transition-normal);
}

.btn-secondary:hover {
  background: var(--primary-500);
  color: var(--white);
  transform: translateY(-4px);
}

/* ---------------------------------------------------
   SECTION HEADERS
--------------------------------------------------- */

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-tag {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-500);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  color: var(--neutral-900);
  margin-top: 10px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--neutral-600);
  margin-top: 12px;
}

/* ---------------------------------------------------
   CARDS + microinteracciones optimizadas
--------------------------------------------------- */

.service-grid,
.tech-grid,
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.service-card,
.tech-card,
.solution-card,
.feature-card {
  padding: 34px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-md);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before,
.tech-card::before,
.solution-card::before,
.feature-card::before {
  content: "";
  position: absolute;
  top: -25%;
  right: -25%;
  width: 180px;
  height: 180px;
  background: var(--primary-100);
  border-radius: 50%;
  opacity: 0.32;
  transition: var(--transition-slow);
}

.service-card:hover::before,
.tech-card:hover::before,
.solution-card:hover::before,
.feature-card:hover::before {
  transform: scale(1.4) translate(-14px, -14px);
  opacity: 0.38;
}

.service-card::after,
.tech-card::after,
.solution-card::after,
.feature-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-500);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.service-card:hover::after,
.tech-card:hover::after,
.solution-card:hover::after,
.feature-card:hover::after {
  transform: translateY(0%);
}

.service-card:hover,
.tech-card:hover,
.solution-card:hover,
.feature-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-xl);
}

.solution-title,
.service-title,
.tech-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 14px;
}

.solution-description,
.service-description,
.tech-description,
.feature-description {
  color: var(--neutral-700);
  font-size: 16px;
  line-height: 1.65;
}

/* ---------------------------------------------------
   SOLUTION LISTS (NUEVO BLOQUE)
--------------------------------------------------- */

.solution-list {
  margin-top: 10px;
  padding-left: 22px;
  color: var(--neutral-700);
  font-size: 16px;
  line-height: 1.65;
}

.solution-list li {
  margin-bottom: 6px;
}

.solution-list li::marker {
  color: var(--primary-500);
  font-weight: 700;
}

/* ---------------------------------------------------
   FEATURES
--------------------------------------------------- */

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

.feature-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary-500);
  margin-bottom: 12px;
}

/* ---------------------------------------------------
   CTA
--------------------------------------------------- */

.cta {
  text-align: center;
  padding: 100px 0;
  background: var(--gradient-brand);
  color: var(--white);
  border-radius: var(--radius-lg);
}

.cta-title {
  font-size: 36px;
  font-family: var(--font-heading);
  font-weight: 800;
}

.cta-description {
  font-size: 18px;
  opacity: 0.9;
  margin: 20px 0 30px;
}

.cta-content {
  max-width: 720px;
  margin: auto;
}

/* ---------------------------------------------------
   FOOTER
--------------------------------------------------- */

.footer {
  margin-top: 100px;
  padding: 60px 0;
  background: var(--neutral-900);
  color: var(--white);
  text-align: center;
}

.footer p {
  opacity: 0.75;
}

/* ---------------------------------------------------
   SCROLL REVEAL – optimized
--------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

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

/* ---------------------------------------------------
   SECTION DIVIDERS
--------------------------------------------------- */

.section-divider {
  width: 100%;
  height: 90px;
  background: linear-gradient(to bottom right, var(--primary-50), var(--neutral-100));
  clip-path: polygon(0 0, 100% 20%, 100% 100%, 0% 100%);
  margin-top: -50px;
  margin-bottom: 40px;
}

/* ---------------------------------------------------
   RESPONSIVE
--------------------------------------------------- */

@media (max-width: 900px) {
  .hero-flex {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }

  .hero {
    padding-top: 140px;
  }

  .hero-title {
    font-size: 36px;
  }

  .solution-card,
  .service-card,
  .tech-card,
  .feature-card {
    box-shadow: var(--shadow-sm);
  }

  .solution-card:hover,
  .service-card:hover,
  .tech-card:hover,
  .feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
  }
}
