/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue-dark:   #130a2e;
  --blue:        #3b2ccc;
  --blue-mid:    #5540e8;
  --purple:      #7b35c8;
  --purple-mid:  #9b44d4;
  --purple-light:#c87fff;
  --orange:      #ffab2d;
  --white:       #ffffff;
  --off-white:   #f5f3ff;
  --gray-light:  #ece8f8;
  --text-dark:   #0e0a2e;
  --text-gray:   #5a4e80;
  --grad-hero:   linear-gradient(135deg, #130a2e 0%, #3b2ccc 40%, #7b35c8 75%, #c87fff 100%);
  --grad-section:linear-gradient(135deg, #3b2ccc 0%, #9b44d4 100%);
  --grad-card:   linear-gradient(135deg, rgba(91,64,232,.12) 0%, rgba(155,68,212,.12) 100%);
  --shadow:      0 20px 60px rgba(91,64,232,.18);
  --shadow-sm:   0 6px 20px rgba(91,64,232,.12);
  --radius:      1.2rem;
  --radius-lg:   2rem;
}
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', sans-serif;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.842) 0%, rgba(255, 255, 255, 0.856) 100%),
    url('./img/fondos/natural-textured-surface (1).jpg') center/cover fixed;
  color: var(--text-dark);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Utility ────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section    { padding: 7rem 0; }
.section-dark { background: var(--grad-section); color: var(--white); }
.label {
  font-size: .8rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: #ffb74c;
  display: flex; align-items: center; gap: .5rem; margin-bottom: 1.2rem;
}
.label::before { content: '/'; color: var(--orange); font-size: 1.1rem; }
.label-light { color: var(--orange); }
.heading-xl {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 900; line-height: 1.05; letter-spacing: -.03em;
}
.heading-lg {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -.02em;
}
.heading-md {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700; line-height: 1.2;
}
.text-gradient {
  background: linear-gradient(90deg, var(--blue-mid), var(--purple-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-orange { color: var(--orange); }
.pill {
  display: inline-flex; align-items: center; padding: .4rem 1.2rem;
  border-radius: 50px; font-size: .85rem; font-weight: 700;
  background: linear-gradient(90deg, var(--blue-mid), var(--purple-mid));
  color: var(--white); border: none;
}
.pill-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,.5);
  color: var(--white);
}

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity: 0; transform: translateX(-50px); transition: opacity .7s ease, transform .7s ease; }
.reveal-right { opacity: 0; transform: translateX(50px);  transition: opacity .7s ease, transform .7s ease; }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }

/* ── NAVBAR ─────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  padding: 1.4rem 0;
  transition: background .4s, padding .4s, box-shadow .4s;
}
#navbar.scrolled {
  background: linear-gradient(135deg, rgba(19,10,46,.96) 0%, rgba(80,30,140,.92) 100%);
  backdrop-filter: blur(16px);
  padding: .9rem 0;
  box-shadow: 0 4px 30px rgba(80,30,140,.4);
  opacity: .85;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 60px; }
.nav-links {
  display: flex; gap: 2.2rem; align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,.85); font-size: .9rem; font-weight: 500;
  transition: color .25s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--purple-light);
  transition: width .3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--orange); color: var(--white);
  padding: .55rem 1.4rem; border-radius: 50px;
  font-weight: 700; font-size: .9rem;
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(244,121,32,.4); }
.nav-cta::after, .nav-cta:hover::after { display: none; }
/* ── LANGUAGE TOGGLE ──────────────────────────────────── */
.lang-toggle {
  display: flex; align-items: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px; padding: 3px; gap: 2px;
  flex-shrink: 0;
  position: relative;
}
/* Sliding white pill */
.lang-toggle::before {
  content: '';
  position: absolute;
  top: 3px; bottom: 3px; left: 3px;
  width: calc(50% - 4px);
  border-radius: 50px;
  background: white;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1),
              box-shadow .35s ease;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(59,44,204,.25);
}
/* Slide pill to EN position */
.lang-toggle:has([data-lang="en"].active)::before {
  transform: translateX(calc(100% + 2px));
}
.lang-btn {
  background: transparent; border: none;
  color: rgba(255,255,255,.55);
  font-size: .72rem; font-weight: 700;
  padding: 4px 11px; border-radius: 50px;
  cursor: pointer; letter-spacing: .08em;
  font-family: inherit;
  position: relative; z-index: 1;
  transition: color .25s ease, transform .2s ease;
}
.lang-btn.active {
  color: var(--blue);
  animation: lang-pop .3s cubic-bezier(.34, 1.56, .64, 1);
}
.lang-btn:not(.active):hover { color: white; }

@keyframes lang-pop {
  0%   { transform: scale(.88); }
  60%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 0; cursor: pointer; background: transparent; border: none;
  padding: 4px; z-index: 9999; position: relative;
  width: 34px; height: 34px;
}
.hamburger span {
  display: block; width: 26px; height: 2px;
  background: white; border-radius: 2px;
  position: absolute; left: 4px;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s ease;
}
.hamburger span:nth-child(1) { top: 9px; }
.hamburger span:nth-child(2) { top: 16px; }
.hamburger span:nth-child(3) { top: 23px; }
/* X state */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ───────────────────────────────────────────────── */
#hero {
  min-height: 120vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  background:
    linear-gradient(135deg,
      rgba(15,24,102,.82) 0%,
      rgba(30,53,200,.75) 38%,
      rgba(123,53,200,.72) 72%,
      rgba(200,127,255,.68) 100%
    ),
    url('./img/fondos/natural-textured-surface (3).jpg') center/cover no-repeat;
}
.hero-bg-anim {
  position: absolute; inset: 0; z-index: 0;
}
#heroParticles {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none; width: 100%; height: 100%;
}
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .35;
  animation: blobFloat 8s ease-in-out infinite;
}
.hero-blob:nth-child(1) { width: 500px; height: 500px; background: #4a6bff; top: -100px; right: -100px; animation-delay: 0s; }
.hero-blob:nth-child(2) { width: 400px; height: 400px; background: #c040ff; bottom: -50px; left: -80px; animation-delay: 3s; }
.hero-blob:nth-child(3) { width: 300px; height: 300px; background: #f47920; top: 50%; left: 40%; animation-delay: 5s; }
@keyframes blobFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(20px,-20px) scale(1.05); }
  66%      { transform: translate(-15px,15px) scale(.95); }
}
.hero-wave {
  position: absolute; bottom: -1px; left: 0; right: 0; z-index: 4;
  width: 100%; height: 200px; display: block;
}
.hero-content {
  position: relative; z-index: 2;
  padding: 8rem 0 5rem;

.hero-left {
    padding-left: 20px;
    padding-right: 20px;
}
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(255,255,255,.12); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  padding: .5rem 1.2rem; border-radius: 50px; margin-bottom: 2rem;
  color: rgba(255,255,255,.9); font-size: .85rem; font-weight: 600;
  animation: fadeDown .8s ease both;
}
.hero-badge .dot { width: 8px; height: 8px; background: var(--orange); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1;} 50%{transform:scale(1.4);opacity:.6;} }
.hero-title {
  color: var(--white); margin-bottom: 1.5rem;
  animation: fadeUp .9s ease .2s both;
}
.hero-title span { display: block; }
.hero-title .accent { color: var(--orange); }
.hero-sub {
  color: rgba(255,255,255,.8); font-size: 1.15rem; max-width: 560px;
  margin-bottom: 2.5rem;
  animation: fadeUp .9s ease .4s both;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeUp .9s ease .6s both;
}
.btn-primary {
  background: var(--orange); color: white;
  padding: .85rem 2.2rem; border-radius: 50px; font-weight: 700;
  font-size: 1rem; transition: transform .2s, box-shadow .2s;
  display: inline-flex; align-items: center; gap: .6rem;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(244,121,32,.45); }
.btn-ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,.4);
  color: white; padding: .85rem 2.2rem; border-radius: 50px;
  font-weight: 600; font-size: 1rem; transition: .3s;
  display: inline-flex; align-items: center; gap: .6rem;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: white; }
.hero-stats {
  display: flex; gap: 3rem; margin-top: 4rem; flex-wrap: wrap;
  animation: fadeUp .9s ease .8s both;
}
.stat-num { font-size: 2.4rem; font-weight: 900; color: white; line-height: 1; }
.stat-num span { color: var(--orange); }
.stat-label { color: rgba(255,255,255,.65); font-size: .85rem; margin-top: .2rem; }
@keyframes fadeUp   { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeDown { from{opacity:0;transform:translateY(-20px)} to{opacity:1;transform:translateY(0)} }

/* Hero two-column */
.hero-grid { display: grid; grid-template-columns: 100%; gap: 4rem; align-items: center; }

/* Right column card */
.hv-card {
  background: rgba(255,255,255,.1); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.2); border-radius: 24px;
  padding: 2rem; animation: fadeUp .9s ease .5s both;
}
.hv-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.4rem;
}
.hv-logo { height: 26px; filter: brightness(0) invert(1); opacity: .9; }
.hv-live { display: flex; align-items: center; gap: .4rem; font-size: .72rem; color: rgba(255,255,255,.8); font-weight: 600; }
.hv-live-dot { width: 6px; height: 6px; background: #4ade80; border-radius: 50%; animation: pulse 2s infinite; flex-shrink: 0; }
.hv-card-title { font-size: 1rem; font-weight: 700; color: white; line-height: 1.5; margin-bottom: 1.4rem; }
.hv-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem; margin-bottom: 1.4rem; }
.hv-metric {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: .8rem .5rem; text-align: center;
}
.hv-metric-val { display: block; font-size: 1.4rem; font-weight: 900; color: white; line-height: 1; }
.hv-metric-lbl { display: block; font-size: .62rem; color: rgba(255,255,255,.55); margin-top: .3rem; }
.hv-divider { border: none; border-top: 1px solid rgba(255,255,255,.12); margin: 0 0 1.2rem; }
.hv-notif {
  display: flex; align-items: center; gap: .75rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: .8rem 1rem;
}
.hv-notif-icon { font-size: 1.3rem; flex-shrink: 0; }
.hv-notif-text strong { display: block; font-size: .84rem; font-weight: 700; color: white; }
.hv-notif-text span   { font-size: .7rem; color: rgba(255,255,255,.6); }

/* Scrolling logos strip */
.hero-clients {
  position: relative; z-index: 2; background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px); border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.2rem 0; overflow: hidden;
}
.clients-track {
  display: flex; gap: 3.5rem; align-items: center;
  animation: marquee 28s linear infinite; width: max-content;
}
.clients-track span {
  white-space: nowrap; color: rgba(255,255,255,.55);
  font-size: .85rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase;
}
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── ABOUT ──────────────────────────────────────────────── */
#about { padding: 8rem 0; position: relative; background: rgba(255, 255, 255, 0); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.about-text .heading-lg { margin-bottom: 1.5rem; }
.about-text p { font-size: 16px; margin-bottom: 1rem; }
.about-text strong { color: var(--blue); }
.about-card-stack { position: relative; }
.about-card-main {
  background: var(--grad-section); border-radius: var(--radius-lg);
  padding: 3rem; color: white; position: relative; overflow: hidden;
}
.about-card-main::before {
  content: ''; position: absolute; width: 250px; height: 250px;
  background: rgba(255,255,255,.08); border-radius: 50%;
  top: -80px; right: -60px;
}
.about-card-main blockquote {
  font-size: 1.25rem; font-weight: 700; line-height: 1.5;
  position: relative; z-index: 1;
}
.about-card-float {
  position: absolute; bottom: -3.5rem; right: -1.5rem;
  background: white; border-radius: var(--radius);
  padding: 1.2rem 1.8rem; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 1rem;
}
.about-card-float .icon { font-size: 2rem; }
.about-card-float p { font-size: .75rem; color: var(--text-gray); }
.about-card-float strong { font-size: 1.1rem; color: var(--blue); display: block; }

/* ── SERVICES ───────────────────────────────────────────── */
#services { padding: 7rem 0; background: transparent; }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 3.5rem;
}
.service-card {
  background: rgba(255,255,255,.75); border-radius: var(--radius); padding: 2rem;
  border: 1px solid rgba(200,180,255,.3);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-card); opacity: 0;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(200,180,255,.3); background: rgba(255,255,255,1); }
.service-card:hover::before { opacity: 0; }
.service-card--full { grid-column: 1 / -1; }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-mid), var(--purple-mid));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; position: relative;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s;
  animation: iconGlow 3s ease-in-out infinite;
}
.service-card:hover .service-icon {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 8px 32px rgba(90,60,230,0.55);
  animation: none;
}
.svc-svg { width: 28px; height: 28px; display: block; }
.svc-svg circle, .svc-svg path, .svc-svg line,
.svc-svg polyline, .svc-svg polygon, .svc-svg rect {
  stroke-dasharray: 100; stroke-dashoffset: 0;
}
.service-card:hover .svc-svg circle,
.service-card:hover .svc-svg path,
.service-card:hover .svc-svg line,
.service-card:hover .svc-svg polyline,
.service-card:hover .svc-svg polygon,
.service-card:hover .svc-svg rect { animation: svcDraw .55s cubic-bezier(.4,0,.2,1) both; }
.service-card:hover .svc-svg *:nth-child(1) { animation-delay: 0s; }
.service-card:hover .svc-svg *:nth-child(2) { animation-delay: .09s; }
.service-card:hover .svc-svg *:nth-child(3) { animation-delay: .18s; }
.service-card:hover .svc-svg *:nth-child(4) { animation-delay: .27s; }
.service-card:hover .svc-svg *:nth-child(5) { animation-delay: .36s; }
@keyframes svcDraw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes iconGlow {
  0%, 100% { box-shadow: 0 4px 15px rgba(90,60,230,0.18); }
  50%       { box-shadow: 0 4px 26px rgba(90,60,230,0.48); }
}
.service-title { font-size: 1rem; font-weight: 700; margin-bottom: .7rem; position: relative; background: linear-gradient(90deg, var(--blue-mid), var(--purple-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.service-desc  { font-size: .9rem; color: var(--text-gray); line-height: 1.65; position: relative; }

/* ── MEDIA PLAN ─────────────────────────────────────────── */
#media-plan {
  padding: 7rem 0;
  background: var(--grad-hero);
  position: relative; overflow: hidden;
}
#media-plan::before {
  content: ''; position: absolute; inset: 0;
  background: url('./img/fondos/natural-textured-surface.jpg') center/cover;
  opacity: 30%;
}
#media-plan .container { position: relative; z-index: 3; }

/* ── ANIMATED SECTION WAVES ───────────────────────────── */
.section-wave {
  position: absolute; left: 0; right: 0;
  width: 100%; height: 140px;
  z-index: 2; pointer-events: none;
  display: block;
}
.section-wave--top    { top: -1px; }
.section-wave--bottom { bottom: -1px; transform: rotate(180deg); }

.section-wave path {
  transform-origin: center;
  animation: waveFlow 14s ease-in-out infinite;
}
.section-wave path:nth-child(2) { animation-duration: 11s; animation-direction: reverse; }
.section-wave path:nth-child(3) { animation-duration: 9s;  animation-delay: -2s; }

@keyframes waveFlow {
  0%, 100% { transform: translate3d(-2%, 0, 0); }
  50%      { transform: translate3d(2%, 0, 0); }
}
.media-intro {
  margin: 0 0 4rem; text-align: left;
}
.media-intro p { color: rgba(255,255,255,.8); font-size: 1.15rem; margin-top: 1rem; }
.media-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.media-col {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg); padding: 2.5rem;
}
.media-col-title {
  font-size: 1rem; font-weight: 700; color: white;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  display: inline-block; padding: .4rem 1.2rem; border-radius: 50px;
  margin-bottom: 1.5rem;
}
.media-col ul li {
  display: flex; align-items: center; gap: .7rem;
  color: rgba(255,255,255,.85); font-size: .95rem; padding: .5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.media-col ul li:last-child { border-bottom: none; }
.media-col ul li::before { content: '→'; color: var(--orange); font-weight: 700; flex-shrink: 0; }

/* ── VALUES ─────────────────────────────────────────────── */
#values { padding: 7rem 0; position: relative; }
.values-header { margin-bottom: 3rem; }
.values-header p { font-size: 1.05rem; max-width: 550px; margin-top: 1rem; }

.values-carousel { position: relative; max-width: 900px; }

.vc-stage {
  position: relative;
  height: 11rem;
  overflow: hidden;
  margin-bottom: 2rem;
}
.vc-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 .25rem;
  opacity: 0;
  transform: translateY(110%);
  transition: transform .65s cubic-bezier(.76,0,.24,1), opacity .4s ease;
  will-change: transform, opacity;
}
.vc-slide.active {
  opacity: 1;
  transform: translateY(0);
}
.vc-slide.exit {
  opacity: 0;
  transform: translateY(-110%);
  transition: transform .65s cubic-bezier(.76,0,.24,1), opacity .3s ease .1s;
}
.vc-word {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 45%, var(--purple-mid) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.vc-deco {
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 900;
  color: rgba(59,44,204,.06);
  line-height: 1;
  letter-spacing: -.06em;
  user-select: none;
  flex-shrink: 0;
}
.vc-progress {
  height: 2px;
  background: rgba(59,44,204,.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.6rem;
}
.vc-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue-mid), var(--purple-mid));
  border-radius: 999px;
}
.vc-dots {
  display: flex;
  gap: .55rem;
  align-items: center;
}
.vc-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  border: none; cursor: pointer;
  background: rgba(59,44,204,.18);
  transition: width .35s cubic-bezier(.34,1.56,.64,1), background .3s;
  padding: 0; flex-shrink: 0;
}
.vc-dot.active {
  width: 32px;
  background: linear-gradient(90deg, var(--blue-mid), var(--purple-mid));
}
.vc-dot:hover:not(.active) { background: rgba(59,44,204,.35); }

/* ── FOUNDERS ───────────────────────────────────────────── */
#founders { padding: 7rem 0; background: transparent; }
.founders-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3.5rem; }
.founder-card {
  background: var(--grad-section); border-radius: var(--radius-lg);
  padding: 3rem; color: white; position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.founder-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.founder-card::after {
  content: ''; position: absolute;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,.07); bottom: -60px; right: -60px;
}
.founder-role {
  display: inline-block; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  padding: .3rem 1rem; border-radius: 50px; font-size: .8rem;
  font-weight: 700; margin-bottom: 1.2rem; letter-spacing: .08em;
}
.founder-name { font-size: 1.8rem; font-weight: 900; margin-bottom: 1rem; }
.founder-bio { color: rgba(255,255,255,.8); font-size: .95rem; line-height: 1.7; position: relative; z-index: 1; }

/* ── CLIENTS ────────────────────────────────────────────── */
#clients { padding: 7rem 0; }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem; margin-top: 3.5rem;
}
.client-item {
  background: rgba(255,255,255,.7);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(200,180,255,.3);
  transition: background .3s, border-color .3s, transform .3s, box-shadow .3s;
  min-height: 90px;
  overflow: hidden;
}
.client-item:hover {
  background: white;
  border-color: var(--blue-mid);
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--shadow-sm);
}
.client-item img {
  max-width: 100%; max-height: 100px;
  width: auto; height: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(.65);
  transition: filter .35s ease, transform .35s ease;
}
.client-item:hover img {
  filter: grayscale(0) opacity(1);
  transform: scale(1.06);
}

/* ── TOOLKITS ───────────────────────────────────────────── */
#toolkits { padding: 7rem 0; background: transparent; }
.toolkits-sub { color: var(--text-gray); font-size: 1.05rem; max-width: 520px; margin: 1rem 0 3.5rem; }
.tools-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem;
}
.tool-card {
  background: rgba(255,255,255,.75); border-radius: var(--radius);
  padding: 2rem 1rem; text-align: center;
  border: 1px solid rgba(200,180,255,.3);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.tool-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-mid); }
.tool-logo { height: 48px; object-fit: contain; margin: 0 auto 1rem; }
.copilot { height: 65px; }
.tool-name { font-size: .8rem; font-weight: 700; color: var(--text-gray); text-transform: uppercase; letter-spacing: .06em; }

/* ── PROCESS ────────────────────────────────────────────── */
#process {
  padding: 7rem 0;
  position: relative; overflow: hidden;
  background:
    linear-gradient(135deg,
      rgba(15,24,102,.82) 0%,
      rgba(30,53,200,.75) 38%,
      rgba(123,53,200,.72) 72%,
      rgba(200,127,255,.68) 100%
    ),
    url('./img/fondos/natural-textured-surface (2).jpg') center/cover no-repeat;
}
#process .container { position: relative; z-index: 3; }
.process-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
  margin-top: 3rem;
}
.process-text p { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-top: 1.2rem; max-width: 420px; }
.process-steps { display: flex; flex-direction: column; gap: 0; }
.process-step {
  display: flex; gap: 1.5rem; align-items: flex-start;
  padding: 2rem 0; position: relative;
}
.process-step:not(:last-child)::after {
  content: ''; position: absolute; left: 1.5rem; top: 4.5rem;
  bottom: 0; width: 2px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), rgba(255,255,255,.05));
}
.step-num {
  width: 3rem; height: 3rem; flex-shrink: 0;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 800; color: white; position: relative; z-index: 1;
}
.step-content h4 { font-size: 1.15rem; font-weight: 700; color: white; margin-bottom: .4rem; }
.step-content p  { font-size: .9rem; color: rgba(255,255,255,.7); line-height: 1.6; }

/* ── PORTFOLIO ──────────────────────────────────────────── */
#portfolio { padding: 7rem 0; background: transparent; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3.5rem; }
.case-card {
  -webkit-appearance: none; appearance: none;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(200,180,255,.3);
  transition: transform .3s, box-shadow .3s;
  background: rgba(255,255,255,.75);
  text-align: left; font: inherit; color: inherit;
  width: 100%; margin: 0; padding: 0; cursor: pointer;
  display: flex; flex-direction: column;
}
.case-card .case-header,
.case-card .case-body { width: 100%; box-sizing: border-box; }
.case-card:hover,
.case-card:focus-visible { transform: translateY(-8px); box-shadow: var(--shadow); outline: none; }
.case-card:focus-visible { box-shadow: 0 0 0 3px rgba(123,53,200,.45), var(--shadow); }
.case-cta {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: 1.2rem; font-size: .85rem; font-weight: 700;
  color: var(--purple); letter-spacing: .02em;
  transition: gap .25s ease, color .25s ease;
}
.case-cta svg { width: 14px; height: 14px; transition: transform .25s ease; }
.case-card:hover .case-cta,
.case-card:focus-visible .case-cta { color: var(--purple-light); gap: .7rem; }
.case-card:hover .case-cta svg,
.case-card:focus-visible .case-cta svg { transform: translateX(3px); }

/* ── CASE MODAL ─────────────────────────────────────────── */
.case-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  visibility: hidden; pointer-events: none;
}
body.modal-open #navbar,
body.modal-open #btt { display: none !important; }
.case-modal.is-open { visibility: visible; pointer-events: auto; }
.case-modal__backdrop {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(30,53,200,.55), rgba(15,24,102,.85) 70%);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .35s ease;
}
.case-modal.is-open .case-modal__backdrop { opacity: 1; }
.case-modal__dialog {
  position: relative; z-index: 1;
  width: min(960px, 100%);
  max-height: calc(100vh - 3rem);
  background: #fff; border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px -20px rgba(15,24,102,.55), 0 12px 30px -10px rgba(0,0,0,.25);
  opacity: 0; transform: translateY(40px) scale(.94);
  transition: opacity .45s cubic-bezier(.2,.8,.2,1), transform .55s cubic-bezier(.2,.8,.2,1);
}
.case-modal.is-open .case-modal__dialog {
  opacity: 1; transform: translateY(0) scale(1);
}
.case-modal__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; backdrop-filter: blur(6px);
  transition: background .25s ease, transform .25s ease;
}
.case-modal__close:hover { background: rgba(255,255,255,.32); transform: rotate(90deg); }
.case-modal__close svg { width: 18px; height: 18px; }
.case-modal__hero {
  position: relative;
  padding: 3rem 3rem 2.2rem;
  background: var(--grad-section);
  color: #fff;
  overflow: hidden;
  min-height: 280px;
}
.case-modal__hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .55;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}
.case-modal.is-open .case-modal__hero-bg { transform: scale(1.12); }
.case-modal__hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(15,24,102,.78) 0%, rgba(30,53,200,.62) 45%, rgba(123,53,200,.55) 100%);
}
.case-modal__hero::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
  border-radius: 50%;
}
.case-modal__hero::after {
  content: ''; position: absolute; bottom: -60px; left: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(200,127,255,.18), transparent 70%);
  border-radius: 50%;
}
.case-modal__label {
  position: relative; font-size: .8rem; letter-spacing: .15em;
  text-transform: uppercase; color: rgba(255,255,255,.7);
  margin-bottom: .8rem; font-weight: 600;
}
.case-modal__title {
  position: relative;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800; line-height: 1.15; color: #fff;
  margin-bottom: .6rem;
}
.case-modal__tag {
  position: relative; font-size: .9rem; color: rgba(255,255,255,.75);
  font-weight: 500; letter-spacing: .03em;
}
.case-modal__content {
  padding: 2.5rem 3rem 3rem;
  overflow-y: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2.5rem;
}
.case-modal__objective h4 {
  font-size: 1.05rem; font-weight: 800; color: var(--text-dark);
  margin-bottom: .4rem;
}
.case-modal__objective-text {
  font-size: 1.1rem; font-weight: 600; color: var(--purple);
  line-height: 1.4;
}
.case-modal__story p {
  font-size: .95rem; color: var(--text-gray); line-height: 1.7;
  margin-bottom: 1rem;
}
.case-modal__story p:last-child { margin-bottom: 0; }
.case-modal__story strong { color: var(--text-dark); font-weight: 700; }

body.modal-open { overflow: hidden; }

@media (max-width: 768px) {
  .case-modal { padding: 0; }
  .case-modal__dialog { max-height: 100vh; height: 100vh; border-radius: 0; }
  .case-modal__hero { padding: 2.5rem 1.5rem 1.8rem; }
  .case-modal__content { padding: 2rem 1.5rem 2.5rem; grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .case-modal__backdrop,
  .case-modal__dialog { transition: none; }
}
.case-header {
  background: var(--grad-section); padding: 2rem;
  background-size: cover; background-position: center;
  min-height: 160px; display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
}
.case-header::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px; background: rgba(255,255,255,.07); border-radius: 50%;
}
.case-num { font-size: .75rem; color: rgba(255,255,255,.5); font-weight: 700; letter-spacing: .12em; margin-bottom: .5rem; }
.case-title { font-size: 1.3rem; font-weight: 800; color: white; line-height: 1.2; }
.case-body { padding: 1.8rem; }
.case-obj { font-size: .75rem; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5rem; }
.case-goal { font-size: .95rem; font-weight: 600; color: var(--text-dark); margin-bottom: 1rem; }
.case-desc { font-size: .88rem; color: var(--text-gray); line-height: 1.65; }

/* ── CONTACT ────────────────────────────────────────────── */
#contact {
  padding: 8rem 0;
  position: relative; overflow: hidden; text-align: center;
  background:
    linear-gradient(135deg,
      rgba(15,24,102,.82) 0%,
      rgba(30,53,200,.75) 38%,
      rgba(123,53,200,.72) 72%,
      rgba(200,127,255,.68) 100%
    ),
    url('./img/fondos/many-blank-business-cards.jpg') center/cover no-repeat;
}
.contact-inner { position: relative; z-index: 3; max-width: 700px; margin: 0 auto; }
.contact-inner .heading-xl { color: white; margin-bottom: 1.5rem; }
.contact-inner p { color: rgba(255,255,255,.75); font-size: 1.1rem; margin-bottom: 3rem; }
.contact-info { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; margin-top: 3rem; }
.contact-item {
  display: flex; align-items: center; gap: .8rem;
  background: rgba(255,255,255,.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2); border-radius: 50px;
  padding: .9rem 1.8rem; color: white; font-size: .95rem; font-weight: 600;
  transition: background .3s, transform .3s;
}
.contact-item:hover { background: rgba(255,255,255,.18); transform: translateY(-3px); }
.contact-item .icon { font-size: 1.2rem; }
.contact-item .social-svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }

/* ── CONTACT ICON BUTTONS ──────────────────────────────── */
.contact-icon {
  position: relative;
  width: 58px; height: 58px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), color .3s ease, border-color .3s ease, box-shadow .35s ease;
  animation: contactIconFloat 4.5s ease-in-out infinite;
}
.contact-icon:nth-child(1) { animation-delay: 0s;   --c-from: #6366f1; --c-to: #a855f7; }
.contact-icon:nth-child(2) { animation-delay: .25s; --c-from: #25D366; --c-to: #128C7E; }
.contact-icon:nth-child(3) { animation-delay: .5s;  --c-from: #f58529; --c-to: #dd2a7b; }
.contact-icon:nth-child(4) { animation-delay: .75s; --c-from: #1877f2; --c-to: #4267B2; }
.contact-icon:nth-child(5) { animation-delay: 1s;   --c-from: #0a66c2; --c-to: #0077b5; }
.contact-icon:nth-child(6) { animation-delay: 1.25s;--c-from: #ff0000; --c-to: #c4302b; }

.contact-icon::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, var(--c-from, #6366f1), var(--c-to, #a855f7));
  opacity: 0;
  transform: scale(.6);
  transition: opacity .4s ease, transform .5s cubic-bezier(.2,.8,.2,1);
  z-index: 0;
}
.contact-icon::after {
  content: '';
  position: absolute; inset: -2px; border-radius: inherit;
  background: linear-gradient(135deg, var(--c-from, #6366f1), var(--c-to, #a855f7));
  filter: blur(14px);
  opacity: 0;
  transition: opacity .4s ease;
  z-index: -1;
}
.contact-icon .social-svg {
  position: relative; z-index: 1;
  width: 22px; height: 22px;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.contact-icon:hover {
  transform: translateY(-6px) scale(1.06);
  border-color: transparent;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.35);
}
.contact-icon:hover::before { opacity: 1; transform: scale(1); }
.contact-icon:hover::after  { opacity: .55; }
.contact-icon:hover .social-svg { transform: scale(1.1) rotate(-6deg); animation: contactIconPop .55s ease; }
.contact-icon:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,.4), 0 14px 30px -10px rgba(0,0,0,.35);
}

@keyframes contactIconFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
@keyframes contactIconPop {
  0%   { transform: scale(.85) rotate(0); }
  55%  { transform: scale(1.18) rotate(-10deg); }
  100% { transform: scale(1.1)  rotate(-6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .contact-icon { animation: none; }
}

/* ── FOOTER ─────────────────────────────────────────────── */
footer {
  background: linear-gradient(135deg, #130a2e 0%, #2a1060 100%);
  color: rgba(255,255,255,.6);
  padding: 3rem 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-logo img { height: 32px; opacity: .8; }
.footer-copy { font-size: .85rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .85rem; transition: color .2s; }
.footer-links a:hover { color: white; }
.footer-social { display: flex; gap: 1rem; align-items: center; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.6);
  transition: background .2s, color .2s, transform .2s;
}
.footer-social a:hover { background: var(--blue-mid); color: white; transform: translateY(-3px); }
.footer-social svg { width: 15px; height: 15px; }

/* ── BACK TO TOP ────────────────────────────────────────── */
#btt {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9000;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--orange); color: white; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; box-shadow: 0 6px 20px rgba(244,121,32,.4);
  opacity: 0; transform: translateY(20px); transition: .35s;
}
#btt.show { opacity: 1; transform: translateY(0); }
#btt:hover { transform: translateY(-4px); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .tools-grid    { grid-template-columns: repeat(4, 1fr); }
  .clients-grid  { grid-template-columns: repeat(4, 1fr); }
  .portfolio-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    height: 100vh;
    background: linear-gradient(160deg, rgba(19,10,46,.99) 0%, rgba(60,20,120,.97) 60%, rgba(90,30,160,.95) 100%);
    padding: 6rem 2rem 3rem;
    gap: 0;
    z-index: 9998;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .45s cubic-bezier(.77, 0, .18, 1);
    pointer-events: none;
  }
  .nav-links.open {
    clip-path: inset(0 0 0% 0);
    pointer-events: auto;
  }
  .nav-links li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,.08);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .35s ease, transform .35s ease;
  }
  .nav-links.open li {
    opacity: 1;
    transform: translateY(0);
  }
  .nav-links.open li:nth-child(1) { transition-delay: .18s; }
  .nav-links.open li:nth-child(2) { transition-delay: .24s; }
  .nav-links.open li:nth-child(3) { transition-delay: .30s; }
  .nav-links.open li:nth-child(4) { transition-delay: .36s; }
  .nav-links.open li:nth-child(5) { transition-delay: .42s; }
  .nav-links a {
    display: block;
    padding: 1.1rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .04em;
  }
  .nav-links .nav-cta {
    margin-top: 1rem;
    padding: .7rem 2.2rem;
    font-size: 1.1rem;
    border-radius: 50px;
  }
  .hamburger { display: flex; }
  .nav-logo img { height: 44px; }
  #hero { min-height: 115svh; min-height: 115vh; }
  .hero-content { padding: 6rem 0 9rem; }
  .hero-badge { font-size: .75rem; padding: .4rem .9rem; max-width: 100%; }
  .hero-sub { font-size: 1rem; }
  .about-grid, .founders-grid, .media-cols, .process-grid, .hero-grid { grid-template-columns: 1fr; }
  .hv-card { display: none; }
  .about-card-float { position: relative; bottom: auto; right: auto; margin-top: 1rem; }
  .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .tools-grid    { grid-template-columns: repeat(3, 1fr); }
  .clients-grid  { grid-template-columns: repeat(3, 1fr); }
  .hero-stats {
    gap: 1rem;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin-top: 2.5rem;
  }
  .hero-stats .stat-item { flex: 1 1 0; min-width: 0; }
  .stat-num { font-size: clamp(1.4rem, 6.5vw, 2rem); }
  .stat-label { font-size: .72rem; line-height: 1.2; }
}
@media (max-width: 480px) {
  .tools-grid   { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}
