/* ============================================================
   UNIVERSOSM v1 — Modern Design 2025
   Brand: #01aad5 cyan-blue | Dark: #0a0f1e
   ============================================================ */

:root {
  --cyan: #01aad5;
  --cyan-dark: #0189ab;
  --cyan-light: #e0f7fc;
  --cyan-glow: rgba(1, 170, 213, 0.25);
  --dark: #0a0f1e;
  --dark-2: #111827;
  --dark-3: #1e2a3a;
  --mid: #374151;
  --gray: #6b7280;
  --gray-light: #9ca3af;
  --border: #e5e7eb;
  --border-dark: rgba(255, 255, 255, 0.08);
  --light: #f9fafb;
  --white: #ffffff;
  --max-w: 1400px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

/* ── BOXED CONTAINER ────────────────────────────────────── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .wrap {
    padding: 0 1.25rem;
  }
}

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes float-slow {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  33% {
    transform: translateY(-18px) rotate(1deg);
  }

  66% {
    transform: translateY(-8px) rotate(-1deg);
  }
}

@keyframes float-fast {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 0 0 var(--cyan-glow);
  }

  50% {
    box-shadow: 0 0 0 20px transparent;
  }
}

@keyframes gradient-x {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes clip-reveal {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0% 0 0);
  }
}

@keyframes count-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.up {
  transform: translateY(48px);
}

.reveal.left {
  transform: translateX(-48px);
}

.reveal.right {
  transform: translateX(48px);
}

.reveal.scale {
  transform: scale(0.88);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.d1 {
  transition-delay: 0.08s;
}

.d2 {
  transition-delay: 0.16s;
}

.d3 {
  transition-delay: 0.24s;
}

.d4 {
  transition-delay: 0.32s;
}

.d5 {
  transition-delay: 0.40s;
}

.d6 {
  transition-delay: 0.48s;
}

/* ── NAVBAR ─────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: all 0.4s;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s;
}

/* Default: over dark hero — white text */
.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.nav-cta {
  background: rgba(255, 255, 255, 0.15) !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s, border-color 0.2s !important;
  backdrop-filter: blur(8px);
}

.nav-cta:hover {
  background: var(--cyan) !important;
  border-color: var(--cyan) !important;
  transform: translateY(-1px);
}

/* Hamburger lines — white by default */
.hamburger span {
  background: white;
}

/* Scrolled: white bg, dark text */
#navbar.scrolled .nav-inner {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0, 0, 0, 0.06);
  border-radius: 0 0 var(--radius) var(--radius);
}

#navbar.scrolled .nav-links a {
  color: var(--dark);
}

#navbar.scrolled .nav-links a:hover {
  background: var(--light);
  color: var(--cyan);
}

#navbar.scrolled .nav-cta {
  background: var(--dark) !important;
  color: white !important;
  border-color: var(--dark) !important;
}

#navbar.scrolled .nav-cta:hover {
  background: var(--cyan) !important;
  border-color: var(--cyan) !important;
}

#navbar.scrolled .hamburger span {
  background: var(--dark);
}

.nav-logo img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: background 0.2s;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}

#navbar.scrolled .hamburger:hover {
  background: rgba(0, 0, 0, 0.06);
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5.5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5.5px);
}

/* Mobile menu close button */
.mobile-menu-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* Mobile menu logo */
.mobile-menu-logo {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  height: 32px;
  width: auto;
  opacity: 0.7;
}


#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  animation: mobile-menu-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mobile-menu-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

#mobile-menu.open {
  display: flex;
}

#mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  max-width: 320px;
  text-align: center;
}

#mobile-menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.01em;
}

#mobile-menu a:hover,
#mobile-menu a:active {
  background: rgba(255, 255, 255, 0.07);
  color: white;
}

.mobile-cta {
  display: block !important;
  margin-top: 1rem !important;
  padding: 1rem 2rem !important;
  background: var(--cyan) !important;
  color: white !important;
  border-radius: 12px !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  text-align: center;
  box-shadow: 0 0 32px rgba(1, 170, 213, 0.35);
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.mobile-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(1, 170, 213, 0.5) !important;
  background: var(--cyan) !important;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-dark {
  background: var(--dark);
  color: white;
}

.btn-dark:hover {
  background: var(--dark-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 15, 30, 0.25);
}

.btn-cyan {
  background: var(--cyan);
  color: white;
  animation: pulse-glow 2.5s infinite;
}

.btn-cyan:hover {
  background: var(--cyan-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--cyan-glow);
  animation: none;
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.btn-ghost-white {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.125rem 2.25rem;
  font-size: 1.05rem;
  border-radius: 12px;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

/* ── SECTION LABELS ─────────────────────────────────────── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

/* ── HERO ───────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: var(--dark);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

/* Particle canvas */
#hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Bento card background images */
.bento-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bento-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  transition: opacity 0.4s, transform 0.5s;
}

.bento-bg-img--dark img {
  opacity: 0.08;
}

.bento-card:hover .bento-bg-img img {
  opacity: 0.2;
  transform: scale(1.05);
}

.bento-card:hover .bento-bg-img--dark img {
  opacity: 0.14;
}

.bento-content {
  position: relative;
  z-index: 1;
}


/* Animated background blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(1, 170, 213, 0.18) 0%, transparent 70%);
  top: -150px;
  right: -100px;
  animation: float-slow 12s ease-in-out infinite;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(74, 140, 157, 0.12) 0%, transparent 70%);
  bottom: -100px;
  left: -50px;
  animation: float-slow 15s ease-in-out infinite reverse;
}

.hero-blob-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(1, 170, 213, 0.08) 0%, transparent 70%);
  top: 40%;
  left: 40%;
  animation: float-fast 8s ease-in-out infinite;
}

/* Grid lines decoration */
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: rgba(1, 170, 213, 0.12);
  border: 1px solid rgba(1, 170, 213, 0.25);
  color: #67d9f5;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
}

.hero-top-badge .live-dot {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse-glow 1.5s infinite;
}

.hero-title {
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
}

.hero-title .line-accent {
  background: linear-gradient(90deg, var(--cyan) 0%, #67d9f5 50%, var(--cyan) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-x 3s linear infinite;
}

.hero-title .line-muted {
  color: rgba(255, 255, 255, 0.45);
}

.hero-desc {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* Hero split layout */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Hero right — floating card stack */
.hero-cards-stack {
  position: relative;
  height: 420px;
}

.hero-float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  transition: transform 0.3s;
}

.hero-float-card:hover {
  transform: translateY(-4px) !important;
}

.hfc-main {
  width: 300px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: float-slow 10s ease-in-out infinite;
}

.hfc-main .hfc-icon {
  width: 56px;
  height: 56px;
  background: var(--cyan);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.hfc-main .hfc-title {
  display: block;
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.hfc-main p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  line-height: 1.5;
}

.hfc-tag {
  display: inline-block;
  background: rgba(1, 170, 213, 0.2);
  color: var(--cyan);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 0.75rem;
}

.hfc-sm-1 {
  width: 180px;
  bottom: 80px;
  left: 0;
  animation: float-fast 7s ease-in-out infinite;
}

.hfc-sm-2 {
  width: 180px;
  bottom: 0;
  right: 0;
  animation: float-fast 9s ease-in-out infinite reverse;
}

.hfc-sm-2 .hfc-sm-num {
  font-size: 0.95rem;
  line-height: 1.25;
}

.hfc-sm-2 .hfc-sm-label {
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.35;
}

.hfc-sm-1 p,
.hfc-sm-2 p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  margin-top: 0.4rem;
}

.hfc-sm-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
}

.hfc-sm-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero stats bar */
.hero-stats-bar {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2.5rem;
}

.hero-stat {
  flex: 1;
  padding-right: 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  margin-right: 2rem;
}

.hero-stat:last-child {
  border-right: none;
  margin-right: 0;
}

.hero-stat-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-stat-num span {
  color: var(--cyan);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* ── MARQUEE / LOGOS BAND ───────────────────────────────── */
#marquee-band {
  background: var(--light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray);
}

.marquee-item i {
  font-size: 1.1rem;
  color: var(--cyan);
}

/* ── PROBLEMA ───────────────────────────────────────────── */
#problema {
  padding: 120px 0;
  background: white;
}

.problema-layout {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 6rem;
  align-items: start;
}

.problema-h2 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.problema-h2 em {
  font-style: normal;
  color: var(--cyan);
}

.problema-lead {
  font-size: 1.15rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

/* Pain point pills */
.pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.pain-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--light);
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mid);
  transition: all 0.25s;
}

.pain-pill:hover {
  border-color: var(--cyan);
  background: var(--cyan-light);
  color: var(--dark);
}

.pain-pill i {
  color: var(--cyan);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Problema right — visual */
.problema-visual-box {
  position: sticky;
  top: 100px;
}

.pv-card {
  background: var(--dark);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.pv-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(1, 170, 213, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.pv-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.5rem;
}

.pv-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.pv-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.pv-col.before h4 {
  color: #f87171;
}

.pv-col.after h4 {
  color: #34d399;
}

.pv-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.pv-col.before .pv-item {
  background: rgba(248, 113, 113, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.pv-col.after .pv-item {
  background: rgba(52, 211, 153, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.pv-col.before .pv-item i {
  color: #f87171;
}

.pv-col.after .pv-item i {
  color: #34d399;
}

.pv-divider {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
}

/* ── SERVICIOS / BENTO GRID ─────────────────────────────── */
#servicios {
  padding: 120px 0;
  background: var(--light);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 2rem;
}

.section-h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-sub {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 380px;
  text-align: right;
}

/* Bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 1.25rem;
}

.bento-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  overflow: hidden;
  position: relative;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border-color: var(--cyan);
}

/* Bento spans */
.b-span-5 {
  grid-column: span 5;
}

.b-span-7 {
  grid-column: span 7;
}

.b-span-4 {
  grid-column: span 4;
}

.b-span-8 {
  grid-column: span 8;
}

.b-span-6 {
  grid-column: span 6;
}

.b-span-12 {
  grid-column: span 12;
}

.bento-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.icon-cyan {
  background: var(--cyan-light);
  color: var(--cyan);
}

.icon-dark {
  background: var(--dark);
  color: white;
}

.icon-grad {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: white;
}

.bento-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.bento-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
}

.bento-card .card-tag {
  display: inline-block;
  background: var(--cyan-light);
  color: var(--cyan-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

/* Dark bento card */
.bento-dark {
  background: var(--dark);
  border-color: var(--dark);
  color: white;
}

.bento-dark h3 {
  color: white;
}

.bento-dark p {
  color: rgba(255, 255, 255, 0.55);
}

.bento-dark:hover {
  border-color: var(--cyan);
}

/* Feature list inside card */
.card-features {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.85rem;
  color: var(--mid);
}

.card-features li i {
  color: var(--cyan);
  font-size: 0.9rem;
}

.bento-dark .card-features li {
  color: rgba(255, 255, 255, 0.65);
}

/* Big number inside card */
.card-big-num {
  font-size: 4rem;
  font-weight: 900;
  color: var(--cyan);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Horizontal card layout */
.bento-h {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.bento-h .card-icon {
  flex-shrink: 0;
  margin-bottom: 0;
}

/* ── WORDPRESS SECTION ──────────────────────────────────── */
#wordpress {
  padding: 120px 0;
  background: white;
}

.wp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.wp-left .wp-logo-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.wp-logo-badge {
  background: #21759b;
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wp-since {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 600;
  background: var(--light);
  padding: 0.4rem 0.875rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.wp-h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.wp-h2 em {
  font-style: normal;
  color: #21759b;
}

.wp-lead {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.wp-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.wp-mini-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all 0.2s;
}

.wp-mini-card:hover {
  border-color: #21759b;
  background: #f0f7fb;
}

.wp-mini-card i {
  font-size: 1.25rem;
  color: #21759b;
  margin-bottom: 0.625rem;
  display: block;
}

.wp-mini-card h4 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.wp-mini-card p {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.5;
}

/* WP right — big visual */
.wp-visual {
  background: linear-gradient(135deg, #21759b 0%, #0d4f6e 100%);
  border-radius: var(--radius-xl);
  padding: 3rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.wp-visual::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.wp-visual::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.wp-visual-inner {
  position: relative;
  z-index: 1;
}

.wp-big-stat {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.25rem;
}

.wp-big-stat span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 2rem;
}

.wp-stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2rem;
}

.wp-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 2rem 0;
}

.wp-facts {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.wp-fact {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.wp-fact i {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
}

/* ── IA SECTION ─────────────────────────────────────────── */
#ia {
  padding: 120px 0;
  background: var(--dark);
  color: white;
  position: relative;
  overflow: hidden;
}

.ia-bg-decoration {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(1, 170, 213, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 170, 213, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.ia-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.ia-blob-1 {
  width: 500px;
  height: 500px;
  background: rgba(1, 170, 213, 0.12);
  top: -100px;
  right: -100px;
}

.ia-blob-2 {
  width: 350px;
  height: 350px;
  background: rgba(74, 140, 157, 0.08);
  bottom: -50px;
  left: -50px;
}

.ia-inner {
  position: relative;
  z-index: 1;
}

.ia-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.ia-label {
  color: var(--cyan);
}

.ia-h2 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: white;
  margin-bottom: 1rem;
}

.ia-h2 em {
  font-style: normal;
  color: var(--cyan);
}

.ia-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
}

/* IA use cases grid */
.ia-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.ia-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.ia-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.ia-card:hover {
  background: rgba(1, 170, 213, 0.08);
  border-color: rgba(1, 170, 213, 0.25);
  transform: translateY(-4px);
}

.ia-card:hover::before {
  transform: scaleX(1);
}

.ia-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(1, 170, 213, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}

.ia-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.ia-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
}

/* IA bottom banner */
.ia-bottom-banner {
  background: rgba(1, 170, 213, 0.1);
  border: 1px solid rgba(1, 170, 213, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.ia-banner-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.ia-banner-text p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.ia-tools {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.ia-tool-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.35rem 0.875rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
}

.ia-tool-badge:hover {
  background: rgba(1, 170, 213, 0.2);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ── PROCESO / TIMELINE ─────────────────────────────────── */
#proceso {
  padding: 120px 0;
  background: var(--light);
}

.proceso-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: start;
}

.proceso-sticky {
  position: sticky;
  top: 100px;
}

.proceso-h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.proceso-lead {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* Timeline */
.timeline-v2 {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tl-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  position: relative;
}

.tl-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 39px;
  top: 64px;
  bottom: -24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--border));
}

.tl-num-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.5rem;
}

.tl-num {
  width: 56px;
  height: 56px;
  background: white;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gray-light);
  transition: all 0.4s;
  flex-shrink: 0;
}

.tl-item.active .tl-num,
.tl-item:hover .tl-num {
  background: var(--cyan);
  border-color: var(--cyan);
  color: white;
  box-shadow: 0 0 0 8px rgba(1, 170, 213, 0.12);
}

.tl-body {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.tl-item:hover .tl-body {
  border-color: var(--cyan);
  box-shadow: 0 8px 30px rgba(1, 170, 213, 0.08);
}

.tl-body h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.tl-body p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.65;
}

.tl-body .tl-tag {
  display: inline-block;
  background: var(--cyan-light);
  color: var(--cyan-dark);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

/* ── CASOS ──────────────────────────────────────────────── */
#casos {
  padding: 120px 0;
  background: white;
}

.casos-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.caso-card-v2 {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.35s, box-shadow 0.35s;
  background: white;
}

.caso-card-v2:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.1);
}

.caso-img {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.caso-img.c1 {
  background: linear-gradient(135deg, #0d4f6e, #21759b);
}

.caso-img.c2 {
  background: linear-gradient(135deg, #064e3b, #065f46);
}

.caso-img.c3 {
  background: linear-gradient(135deg, #78350f, #92400e);
}

.caso-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}

.caso-card-v2:hover .caso-photo {
  transform: scale(1.05);
}

.caso-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.1) 60%);
  z-index: 1;
}

.caso-photo-label {
  position: absolute;
  bottom: 0.875rem;
  left: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: white;
  background: rgba(1, 170, 213, 0.85);
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.caso-body-v2 {
  padding: 1.75rem;
}

.caso-body-v2 h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
}

.caso-body-v2 p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.caso-result-v2 {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
  background: var(--light);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
}

.caso-result-v2 i {
  color: var(--cyan);
  font-size: 1rem;
}

/* ── PARA QUIÉN / CLIENTES ──────────────────────────────── */
#para-quien {
  padding: 120px 0;
  background: var(--light);
}

.clientes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.cliente-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.35s, box-shadow 0.35s;
}

.cliente-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
}

.cliente-img {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.cliente-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cliente-card:hover .cliente-img img {
  transform: scale(1.06);
}

.cliente-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 15, 30, 0.55) 0%, rgba(10, 15, 30, 0.05) 60%);
}

.cliente-body {
  padding: 1.5rem;
}

.cliente-icon {
  width: 44px;
  height: 44px;
  background: var(--cyan-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--cyan);
  margin-bottom: 0.875rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 1;
  border: 3px solid white;
}

.cliente-body h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.cliente-body p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.cliente-needs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.cliente-needs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--mid);
  font-weight: 500;
}

.cliente-needs li i {
  color: var(--cyan);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ── MARCAS ─────────────────────────────────────────────── */
#marcas {
  padding: 120px 0;
  background: var(--light);
}

.marcas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.marca-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.35s, box-shadow 0.35s;
}

.marca-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
}

.marca-card-top {
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 130px;
}

.marca-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.marca-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.marca-body {
  padding: 1.5rem;
}

.marca-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.marca-body p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.marca-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  transition: gap 0.2s;
}

.marca-link:hover {
  gap: 0.625rem;
}

/* ── LABORATORIO ────────────────────────────────────────── */
#laboratorio {
  padding: 120px 0;
  background: white;
}

.lab-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 6rem;
  align-items: start;
}

.lab-h2 {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.lab-h2 em {
  font-style: normal;
  color: var(--cyan);
}

.lab-lead {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 380px;
}

/* Featured post */
.lab-featured {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.lab-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.lab-featured-img {
  height: 240px;
  position: relative;
  overflow: hidden;
}

.lab-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.lab-featured:hover .lab-featured-img img {
  transform: scale(1.04);
}

.lab-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 15, 30, 0.6) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.lab-cat {
  display: inline-block;
  background: var(--cyan);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
}

.lab-featured-body {
  padding: 1.5rem;
}

.lab-featured-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.lab-featured-body p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.lab-meta {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.8rem;
  color: var(--gray-light);
}

.lab-meta i {
  font-size: 0.8rem;
}

.lab-read-link {
  margin-left: auto;
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s;
}

.lab-read-link:hover {
  gap: 0.5rem;
}

/* Small cards */
.lab-small-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.lab-small-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.lab-small-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
}

.lab-small-img {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  color: rgba(255, 255, 255, 0.7);
}

.lab-small-body {
  padding: 1rem;
}

.lab-cat-sm {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 0.375rem;
}

.lab-small-body h4 {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.375rem;
}

.lab-meta-sm {
  font-size: 0.75rem;
  color: var(--gray-light);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* ── NOSOTROS ────────────────────────────────────────────── */
#nosotros {
  padding: 120px 0;
  background: white;
}

.nosotros-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.nosotros-h2 {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.nosotros-h2 em {
  font-style: normal;
  color: var(--cyan);
}

.nosotros-lead {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.nosotros-creds {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.875rem;
  color: var(--mid);
  font-weight: 500;
}

.cred-item i {
  color: var(--cyan);
  font-size: 1rem;
  flex-shrink: 0;
}

/* Nosotros right */
.nosotros-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ns-stat {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.3s;
}

.ns-stat:hover {
  border-color: var(--cyan);
  background: var(--cyan-light);
}

.ns-num {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.375rem;
}

.ns-label {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 500;
  line-height: 1.4;
}

.nosotros-quote {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}

.nosotros-quote i {
  font-size: 2rem;
  color: var(--cyan);
  opacity: 0.4;
  display: block;
  margin-bottom: 0.75rem;
}

.nosotros-quote blockquote {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  font-style: italic;
}

/* ── NOSOTROS — imagen ──────────────────────────────────── */
.nosotros-img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.nosotros-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.nosotros-img-wrap:hover .nosotros-img {
  transform: scale(1.03);
}


/* ── BLOG ───────────────────────────────────────────────── */
#blog {
  padding: 120px 0;
  background: var(--light);
}

.blog-grid-v2 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.blog-card-v2 {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.blog-img-v2 {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  position: relative;
  overflow: hidden;
}

.blog-img-v2.tall {
  height: 240px;
}

.blog-img-v2.short {
  height: 160px;
}

.blog-img-v2 span {
  font-size: 3rem;
}

.blog-body-v2 {
  padding: 1.5rem;
}

.blog-cat-v2 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 0.625rem;
}

.blog-body-v2 h3 {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.blog-body-v2 p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.65;
}

.blog-meta-v2 {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--gray-light);
}

.blog-meta-v2 i {
  font-size: 0.875rem;
}

.blog-featured {
  grid-row: span 2;
}

#articulos-wordpress {
  padding: 120px 0;
  background: var(--light);
}

.usm-wordpress-articles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.usm-wordpress-articles-more {
  margin-top: 2rem;
}

.usm-article-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.blog-img-v2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── BLOG Y ENTRADAS ── */
.usm-blog-hero,
.usm-article-hero {
  padding: 180px 0 90px;
  background: var(--dark);
  color: white;
}

.usm-blog-hero-inner,
.usm-article-hero-inner {
  max-width: 980px;
  margin: 0 auto;
}

.usm-blog-hero h1,
.usm-article-hero h1 {
  margin: 0.75rem 0 1.25rem;
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: white;
}

.usm-blog-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.1rem;
  line-height: 1.7;
}

.usm-blog-listing {
  padding: 100px 0 120px;
  background: var(--light);
}

.usm-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.usm-blog-grid .blog-body-v2 h2 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.usm-blog-pagination {
  margin-top: 3rem;
}

.usm-blog-pagination .nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.usm-blog-pagination .page-numbers {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  color: var(--dark);
  text-decoration: none;
}

.usm-blog-pagination .current {
  border-color: var(--cyan);
  background: var(--cyan);
  color: white;
}

.usm-article-kicker a {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.usm-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.usm-article-featured {
  max-width: 1100px;
  margin: -48px auto 0;
  position: relative;
}

.usm-article-featured img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 70px rgba(10, 15, 30, 0.18);
}

.usm-article-content {
  width: min(100% - 3rem, 780px);
  margin: 0 auto;
  padding: 80px 0 120px;
  color: var(--dark);
  font-size: 1.05rem;
  line-height: 1.8;
}

.usm-article-content > :first-child {
  margin-top: 0;
}

.usm-article-content :where(p, ul, ol, figure, blockquote, pre) {
  margin: 0 0 1.5rem;
}

.usm-article-content :where(h2, h3, h4) {
  margin: 2.5rem 0 1rem;
  color: var(--dark);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.usm-article-content h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.usm-article-content h3 { font-size: clamp(1.35rem, 2.3vw, 1.75rem); }
.usm-article-content a { color: var(--cyan-dark); text-underline-offset: 0.18em; }
.usm-article-content img { max-width: 100%; height: auto; border-radius: var(--radius); }
.usm-article-content pre { max-width: 100%; overflow-x: auto; padding: 1.25rem; border-radius: var(--radius); background: var(--dark); color: white; }
.usm-article-content blockquote { padding: 1.25rem 1.5rem; border-left: 4px solid var(--cyan); background: var(--light); }

.usm-article-footer {
  display: grid;
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  justify-items: start;
}

@media (max-width: 1024px) {
  .usm-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .usm-blog-hero,
  .usm-article-hero { padding: 140px 0 70px; }
  .usm-blog-grid { grid-template-columns: 1fr; }
  .usm-blog-listing { padding: 70px 0 90px; }
  .usm-article-content { width: min(100% - 2rem, 780px); padding: 60px 0 90px; }
  .usm-article-featured { margin-top: -28px; padding: 0 1rem; }
  .usm-article-meta { gap: 0.75rem; }
}

/* ── FAQ ────────────────────────────────────────────────── */
#faq {
  padding: 120px 0;
  background: white;
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: start;
}

.faq-sticky {
  position: sticky;
  top: 100px;
}

.faq-h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.faq-lead {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.faq-list-v2 {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item-v2 {
  background: var(--light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item-v2.open {
  border-color: var(--cyan);
  background: white;
}

.faq-q-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  user-select: none;
  transition: color 0.2s;
  gap: 1rem;
}

.faq-item-v2.open .faq-q-v2 {
  color: var(--cyan);
}

.faq-q-v2 .faq-icon {
  width: 28px;
  height: 28px;
  background: var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.faq-item-v2.open .faq-q-v2 .faq-icon {
  background: var(--cyan);
  transform: rotate(45deg);
}

.faq-q-v2 .faq-icon i {
  font-size: 0.875rem;
  color: var(--mid);
  transition: color 0.3s;
}

.faq-item-v2.open .faq-q-v2 .faq-icon i {
  color: white;
}

.faq-a-v2 {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 1.5rem;
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.75;
}

.faq-item-v2.open .faq-a-v2 {
  max-height: 200px;
  padding: 0 1.5rem 1.25rem;
}

/* ── CTA FINAL ──────────────────────────────────────────── */
#cta-final {
  padding: 120px 0;
  background: var(--dark);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.cta-bg-blob-1 {
  width: 500px;
  height: 500px;
  background: rgba(1, 170, 213, 0.15);
  top: -100px;
  right: -100px;
}

.cta-bg-blob-2 {
  width: 400px;
  height: 400px;
  background: rgba(74, 140, 157, 0.1);
  bottom: -100px;
  left: -100px;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.cta-h2 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.cta-h2 em {
  font-style: normal;
  color: var(--cyan);
}

.cta-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.cta-right {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.cta-right h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
}

.cta-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.cta-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.875rem 1.125rem;
  color: white;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  outline: none;
}

.cta-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.cta-input:focus {
  border-color: var(--cyan);
}

.usm-cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Gravity Forms dentro del componente aprobado de contacto. */
.cta-right .gform_wrapper .gform_fields {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.cta-right .gform_wrapper .gfield_label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.cta-right .gform_wrapper input[type="text"],
.cta-right .gform_wrapper input[type="email"],
.cta-right .gform_wrapper textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.875rem 1.125rem;
  color: white;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  outline: none;
}

.cta-right .gform_wrapper textarea {
  min-height: 7rem;
  resize: vertical;
}

.cta-right .gform_wrapper input::placeholder,
.cta-right .gform_wrapper textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.cta-right .gform_wrapper input:focus,
.cta-right .gform_wrapper textarea:focus {
  border-color: var(--cyan);
}

.cta-right .gform_wrapper .gform_footer {
  margin-top: 0.875rem;
}

.cta-right .gform_wrapper .gform_button {
  width: 100%;
  justify-content: center;
  border: 0;
  cursor: pointer;
}

.cta-right .gform_wrapper .validation_message,
.cta-right .gform_wrapper .gform_validation_errors {
  color: #fecaca;
  font-size: 0.8rem;
}

.usm-form-pending {
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom-links ul {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--dark-2);
  color: rgba(255, 255, 255, 0.6);
  padding: 80px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand img {
  height: 34px;
  filter: brightness(0) invert(1);
  margin-bottom: 1.25rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.75;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 0.625rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  transition: all 0.2s;
}

.footer-social a:hover {
  background: var(--cyan);
  color: white;
}

.footer-col h4 {
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--cyan);
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--cyan);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1200px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
  }

  .b-span-5,
  .b-span-7 {
    grid-column: span 6;
  }

  .b-span-4 {
    grid-column: span 3;
  }

  .b-span-8 {
    grid-column: span 6;
  }

  .b-span-6 {
    grid-column: span 6;
  }

  .blog-grid-v2 {
    grid-template-columns: 1fr 1fr;
  }

  .blog-featured {
    grid-row: span 1;
  }
}

@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
  }

  .hero-cards-stack {
    display: none;
  }

  .wp-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .ia-grid {
    grid-template-columns: 1fr 1fr;
  }

  .proceso-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .proceso-sticky {
    position: static;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .faq-sticky {
    position: static;
  }

  .problema-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-stats-bar {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-stat {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1.5rem;
  }

  .hero-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-sub {
    text-align: left;
    max-width: 100%;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .b-span-5,
  .b-span-7,
  .b-span-4,
  .b-span-8,
  .b-span-6,
  .b-span-12 {
    grid-column: span 1;
  }

  .ia-grid {
    grid-template-columns: 1fr;
  }

  .ia-bottom-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .casos-grid-v2 {
    grid-template-columns: 1fr;
  }

  .blog-grid-v2 {
    grid-template-columns: 1fr;
  }

  .pain-grid {
    grid-template-columns: 1fr;
  }

  .clientes-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lab-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .lab-small-grid {
    grid-template-columns: 1fr 1fr;
  }

  .wp-cards {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  #hero,
  #problema,
  #servicios,
  #ia,
  #marcas,
  #nosotros,
  #casos,
  #blog,
  #faq,
  #cta-final {
    padding: 80px 0;
  }

  .marcas-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nosotros-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .nosotros-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    justify-content: center;
  }

  .marcas-grid {
    grid-template-columns: 1fr;
  }

  .nosotros-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .clientes-grid {
    grid-template-columns: 1fr;
  }

  .lab-small-grid {
    grid-template-columns: 1fr;
  }
}

/* ── CASOS — Bootstrap Icons ────────────────────────────── */
.caso-bi-icon {
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.85);
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
}

/* ── BLOG — Bootstrap Icons ─────────────────────────────── */
.blog-bi-icon {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.7);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* ── SCROLL TO TOP ──────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--dark);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

#scroll-top:hover {
  background: var(--cyan);
  transform: translateY(-2px);
}

/* ── IA AGENT FLOW DIAGRAM ──────────────────────────────── */
.ia-flow {
  margin: 3.5rem 0 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}

.ia-flow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(1, 170, 213, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.ia-flow-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  margin-bottom: 2rem;
}

.ia-flow-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

/* Nodes */
.ia-flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  position: relative;
}

.ia-fn-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.3s;
}

.fn-input .ia-fn-icon {
  background: rgba(1, 170, 213, 0.1);
  border-color: rgba(1, 170, 213, 0.25);
  color: var(--cyan);
}

.fn-output .ia-fn-icon {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.3);
  color: #34d399;
}

.fn-tools .ia-fn-icon {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

/* Main agent node — bigger + pulsing ring */
.fn-main .ia-fn-icon {
  width: 72px;
  height: 72px;
  font-size: 1.75rem;
  background: linear-gradient(135deg, rgba(1, 170, 213, 0.25), rgba(1, 137, 171, 0.15));
  border-color: rgba(1, 170, 213, 0.5);
  color: var(--cyan);
  box-shadow: 0 0 24px rgba(1, 170, 213, 0.2);
}

.ia-fn-pulse-ring {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid rgba(1, 170, 213, 0.3);
  animation: ia-ring-pulse 2s ease-out infinite;
  pointer-events: none;
}

@keyframes ia-ring-pulse {
  0% {
    transform: translateX(-50%) scale(0.85);
    opacity: 0.8;
  }

  100% {
    transform: translateX(-50%) scale(1.35);
    opacity: 0;
  }
}

.ia-fn-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  text-align: center;
}

.ia-fn-sub {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  max-width: 90px;
  line-height: 1.4;
}

.ia-fn-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
  max-width: 110px;
}

.ia-fn-chips span {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

/* Connectors with animated pulse */
.ia-flow-connector {
  flex: 1;
  min-width: 60px;
  max-width: 120px;
  padding: 0 0.5rem;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  /* align with icon center */
}

.ia-flow-line {
  position: relative;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, rgba(1, 170, 213, 0.15), rgba(1, 170, 213, 0.4), rgba(1, 170, 213, 0.15));
  border-radius: 2px;
  overflow: visible;
}

.ia-flow-pulse {
  position: absolute;
  top: 50%;
  left: -12px;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan), 0 0 16px rgba(1, 170, 213, 0.5);
  animation: ia-pulse-travel 1.8s ease-in-out infinite;
}

@keyframes ia-pulse-travel {
  0% {
    left: -12px;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    left: calc(100% + 4px);
    opacity: 0;
  }
}

/* Loop hint */
.ia-flow-loop {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.ia-flow-loop i {
  color: var(--cyan);
  animation: spin-slow 3s linear infinite;
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Hover lift on nodes */
.ia-flow-node:hover .ia-fn-icon {
  transform: translateY(-4px);
}

/* ── IA CONTINUOUS CYCLE (2-row compact) ─────────────────── */
.ia-cycle {
  margin: 3.5rem 0 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.ia-cycle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(1, 170, 213, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.ia-cycle-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.ia-cycle-label i {
  color: var(--cyan);
  font-size: 0.9rem;
}

/* Body: relative container for side connectors */
.ia-cycle-body {
  position: relative;
  padding: 0 0.75rem;
}

/* Side connectors — vertical lines connecting the two rows */
.ia-side-connector {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  display: flex;
  align-items: stretch;
}

.ia-side-right {
  right: 0;
}

.ia-side-left {
  left: 0;
}

.ia-side-line {
  position: relative;
  width: 2px;
  flex: 1;
  background: rgba(1, 170, 213, 0.2);
  border-radius: 1px;
  overflow: visible;
}

/* Arrowhead at bottom of right connector */
.ia-side-right .ia-side-line::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(1, 170, 213, 0.6);
}

/* Arrowhead at top of left connector */
.ia-side-left .ia-side-line::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: rgba(1, 170, 213, 0.6);
}

.ia-side-pulse {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: side-pulse-down 2s ease-in-out infinite;
}

.ia-side-pulse-up {
  animation: side-pulse-up 2s ease-in-out infinite;
}

@keyframes side-pulse-down {
  0% {
    top: 0;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    top: calc(100% - 7px);
    opacity: 0;
  }
}

@keyframes side-pulse-up {
  0% {
    top: calc(100% - 7px);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    top: 0;
    opacity: 0;
  }
}

/* Each row */
.ia-cycle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 0.5rem;
}

.ia-cycle-row-reverse {
  flex-direction: row-reverse;
  justify-content: center;
  margin-bottom: 0;
  margin-top: 0.5rem;
}


/* Node pill */
.ia-cn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  min-width: 90px;
  transition: transform 0.25s, border-color 0.25s;
  cursor: default;
}

.ia-cn:hover {
  transform: translateY(-3px);
}

.ia-cn i {
  font-size: 1.5rem;
}

.ia-cn-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

/* Color variants */
.ia-cn-cyan {
  border-color: rgba(1, 170, 213, 0.25);
}

.ia-cn-cyan i {
  color: var(--cyan);
}

.ia-cn-purple {
  border-color: rgba(124, 58, 237, 0.25);
}

.ia-cn-purple i {
  color: #a78bfa;
}

.ia-cn-green {
  border-color: rgba(52, 211, 153, 0.25);
}

.ia-cn-green i {
  color: #34d399;
}

.ia-cn-yellow {
  border-color: rgba(251, 191, 36, 0.25);
}

.ia-cn-yellow i {
  color: #fbbf24;
}

.ia-cn-orange {
  border-color: rgba(249, 115, 22, 0.25);
}

.ia-cn-orange i {
  color: #fb923c;
}

/* Connector line with animated pulse */
.ia-cycle-arrow {
  position: relative;
  width: 40px;
  height: 2px;
  background: rgba(1, 170, 213, 0.15);
  flex-shrink: 0;
  overflow: visible;
}

.ia-cycle-arrow::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  border: 4px solid transparent;
  border-left-color: rgba(1, 170, 213, 0.5);
}

.ia-cycle-arrow-rev::after {
  right: auto;
  left: -4px;
  border-left-color: transparent;
  border-right-color: rgba(1, 170, 213, 0.5);
}

.ia-cycle-pulse {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: cycle-pulse-fwd 1.6s ease-in-out infinite;
}

.ia-cycle-pulse-rev {
  animation: cycle-pulse-rev 1.6s ease-in-out infinite;
}

@keyframes cycle-pulse-fwd {
  0% {
    left: 0;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    left: calc(100% - 6px);
    opacity: 0;
  }
}

@keyframes cycle-pulse-rev {
  0% {
    left: calc(100% - 6px);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    left: 0;
    opacity: 0;
  }
}

/* Turn arrows between rows */
.ia-cycle-turn {
  font-size: 1rem;
  color: rgba(1, 170, 213, 0.45);
  padding: 0 0.25rem;
  flex-shrink: 0;
}

/* Footer */
.ia-cycle-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.25);
}

/* Responsive */
@media (max-width: 600px) {
  .ia-cn {
    min-width: 70px;
    padding: 0.5rem 0.6rem;
  }

  .ia-cn i {
    font-size: 1rem;
  }

  .ia-cycle-arrow {
    width: 20px;
  }

  .ia-cn-name {
    font-size: 0.62rem;
  }
}


/* ── ECOSISTEMA ─────────────────────────────────────────── */


#ecosistema {
  padding: 120px 0;
  background: var(--dark);
  color: white;
  position: relative;
  overflow: hidden;
}

#ecosistema::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(1, 170, 213, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.eco-header {
  text-align: center;
  margin-bottom: 4rem;
}

.eco-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}

.eco-h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.eco-lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 480px;
  margin: 0 auto;
}

/* Grid: 5 cards — 3 top + 2 bottom centered */
.eco-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.eco-row {
  display: flex;
  gap: 1.5rem;
}

/* Row 2: 2 cards centered at same width as 1/3 each */
.eco-row-2 {
  justify-content: center;
}

.eco-row-2 .eco-card {
  flex: 0 0 calc(33.333% - 0.75rem);
}

.eco-card {
  flex: 1;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: default;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s;
}

.eco-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
}


/* Colored backgrounds per card */
.eco-c1 .eco-card-bg {
  background: linear-gradient(135deg, #0c1a2e 0%, #0d2a40 100%);
}

.eco-c2 .eco-card-bg {
  background: linear-gradient(135deg, #0d2233 0%, #0a3050 100%);
}

.eco-c3 .eco-card-bg {
  background: linear-gradient(135deg, #1a0a3a 0%, #2d1060 100%);
}

.eco-c4 .eco-card-bg {
  background: linear-gradient(135deg, #1a0e00 0%, #2d1800 100%);
}

.eco-c5 .eco-card-bg {
  background: linear-gradient(135deg, #050a14 0%, #0a1628 100%);
}

.eco-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: opacity 0.3s;
}

/* Glowing border on hover */
.eco-c1 {
  border: 1px solid rgba(1, 170, 213, 0.15);
}

.eco-c2 {
  border: 1px solid rgba(33, 117, 155, 0.2);
}

.eco-c3 {
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.eco-c4 {
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.eco-c5 {
  border: 1px solid rgba(1, 170, 213, 0.12);
}

.eco-c1:hover {
  border-color: rgba(1, 170, 213, 0.5);
  box-shadow: 0 0 40px rgba(1, 170, 213, 0.12);
}

.eco-c2:hover {
  border-color: rgba(33, 117, 155, 0.5);
  box-shadow: 0 0 40px rgba(33, 117, 155, 0.12);
}

.eco-c3:hover {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.12);
}

.eco-c4:hover {
  border-color: rgba(217, 119, 6, 0.5);
  box-shadow: 0 0 40px rgba(217, 119, 6, 0.12);
}

.eco-c5:hover {
  border-color: rgba(1, 170, 213, 0.4);
  box-shadow: 0 0 40px rgba(1, 170, 213, 0.15);
}

.eco-card-inner {
  position: relative;
  z-index: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}

.eco-if {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.eco-need {
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  line-height: 1.3;
  min-height: 2.6rem;
}

.eco-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.25rem 0;
}

.eco-brand-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 0.25rem;
}

.eco-brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  flex-shrink: 0;
}

.eco-brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.eco-brand-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

.eco-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  margin-top: auto;
  padding-top: 0.75rem;
  text-decoration: none;
  transition: gap 0.2s, opacity 0.2s;
}

.eco-c3 .eco-link {
  color: #a78bfa;
}

.eco-c4 .eco-link {
  color: #fbbf24;
}

.eco-link:hover {
  gap: 0.7rem;
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 900px) {
  .eco-row {
    flex-wrap: wrap;
  }

  .eco-card {
    flex: 0 0 calc(50% - 0.75rem);
  }

  .eco-row-2 .eco-card {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (max-width: 600px) {
  .eco-row {
    flex-direction: column;
  }

  .eco-card,
  .eco-row-2 .eco-card {
    flex: 0 0 100%;
  }
}
