:root {
  --navy:       #00182A;
  --navy-mid:   #002240;
  --navy-light: #003060;
  --blue:       #0A46C2;
  --blue-hover: #0D54E8;
  --gray:       #687280;
  --gray-light: #8A95A3;
  --border:     rgba(255,255,255,0.08);
  --white:      #FFFFFF;
  --off:        #F4F7FA;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto', sans-serif;
  background: var(--white); color: var(--navy);
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,nav,button,.logo-text { font-family: 'Montserrat', sans-serif; }

/* ── NAV ──────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 60px;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
nav.scrolled {
  background: rgba(0,24,42,0.96); backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border); padding: 14px 60px;
}
.nav-logo {
  display: flex; align-items: center; text-decoration: none;
}
.nav-logo img {
  height: 44px; width: auto; display: block;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s;
}
.nav-logo:hover img { opacity: 0.85; }
.nav-links {
  display: flex; align-items: center; gap: 32px; list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: 0.03em; transition: color 0.18s, background 0.18s;
  padding: 7px 14px; border-radius: 8px;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.09); }
.nav-links a.nav-active { color: var(--white); background: rgba(255,255,255,0.1); font-weight: 600; }
.nav-right {
  display: flex; align-items: center; gap: 10px;
}
.lang-switcher {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 3px; gap: 2px;
}
.lang-btn {
  background: none; border: none;
  color: rgba(255,255,255,0.38);
  font-size: 11px; font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.07em;
  padding: 5px 10px; border-radius: 6px;
  cursor: pointer; transition: all 0.18s; line-height: 1;
}
.lang-btn.active { background: #0A46C2; color: white; }
.lang-btn:not(.active):hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }
.btn-nav {
  background: var(--blue); color: var(--white); border: none;
  padding: 10px 22px; border-radius: 8px; font-size: 13px; font-weight: 600;
  font-family: 'Montserrat', sans-serif; cursor: pointer; text-decoration: none;
  letter-spacing: 0.02em; transition: background 0.2s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 7px;
}
.btn-nav:hover { background: var(--blue-hover); transform: translateY(-1px); }
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span { width: 22px; height: 2px; background: white; border-radius: 2px; transition: 0.3s; }
.mobile-menu {
  display: none; position: fixed; inset: 0; top: 60px;
  background: rgba(0,24,42,0.98); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 36px; z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,0.8); text-decoration: none;
  font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 600;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: white; }

/* ── HERO ─────────────────────────────────────────────── */
#hero {
  min-height: 100vh; background: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 120px 60px 80px; position: relative; overflow: hidden;
}
.hero-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: 100%; max-width: 780px; position: relative; z-index: 1;
}
.hero-mockup { position: relative; }
.hero-mockup::before {
  content: ''; position: absolute; inset: -60px;
  background: radial-gradient(ellipse, rgba(10,70,194,0.28) 0%, transparent 68%);
  z-index: -1; pointer-events: none;
}
.browser-frame {
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.08);
}
.browser-bar {
  display: flex; align-items: center; gap: 6px;
  background: #0f1e34; padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.browser-dot { width: 10px; height: 10px; border-radius: 50%; }
.browser-url {
  flex: 1; margin-left: 8px; background: rgba(255,255,255,0.06);
  border-radius: 4px; padding: 3px 12px; font-size: 11px;
  color: rgba(255,255,255,0.35); text-align: center;
}
.browser-screen { overflow: hidden; }
.browser-screen > img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.browser-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #001428 0%, #00244a 55%, #0a3080 100%);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.browser-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10,70,194,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,70,194,0.12) 1px, transparent 1px);
  background-size: 40px 40px;
}
.browser-placeholder img { width: 140px; height: auto; position: relative; filter: brightness(0) invert(1); opacity: 0.18; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10,70,194,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,70,194,0.1) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}
.hero-glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(10,70,194,0.18) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -60%);
  pointer-events: none;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(10,70,194,0.15); border: 1px solid rgba(10,70,194,0.3);
  padding: 6px 16px; border-radius: 20px; margin-bottom: 28px;
  font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: #5B8FE8;
  position: relative;
}
.hero-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #0A46C2; animation: tagpulse 2s ease-in-out infinite;
}
@keyframes tagpulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
#hero h1 {
  font-size: clamp(32px, 5vw, 64px); font-weight: 900;
  line-height: 1.05; color: var(--white);
  position: relative; margin-bottom: 24px;
  letter-spacing: -0.02em;
}
#hero h1 .accent { color: #2B6FE8; }
.hero-sub {
  font-size: clamp(14px, 1.6vw, 17px); color: rgba(255,255,255,0.7);
  line-height: 1.7; position: relative;
  margin-bottom: 44px;
}
.hero-ctas {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  position: relative;
}
.btn-primary {
  background: var(--blue); color: white; text-decoration: none;
  padding: 15px 32px; border-radius: 10px; font-family: 'Montserrat', sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(10,70,194,0.4); }
.btn-outline {
  background: rgba(255,255,255,0.06); color: white; text-decoration: none;
  padding: 15px 32px; border-radius: 10px; font-family: 'Montserrat', sans-serif;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid rgba(255,255,255,0.15);
  transition: background 0.2s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.25); font-size: 11px; font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.scroll-arrow {
  width: 20px; height: 30px; border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 10px; display: flex; align-items: flex-start; justify-content: center;
  padding-top: 5px;
}
.scroll-arrow::after {
  content: ''; width: 3px; height: 6px; background: rgba(255,255,255,0.3);
  border-radius: 2px; animation: scrolldown 1.8s ease-in-out infinite;
}
@keyframes scrolldown { 0%{transform:translateY(0);opacity:1} 100%{transform:translateY(10px);opacity:0} }

/* ── STATS ────────────────────────────────────────────── */
#stats {
  background: var(--white); border-bottom: 1px solid #E8EDF3;
  padding: 0 60px;
}
.stats-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid #E8EDF3;
}
.stat-item {
  padding: 40px 30px; border-right: 1px solid #E8EDF3;
  display: flex; flex-direction: column; gap: 6px;
}
.stat-num {
  font-family: 'Montserrat', sans-serif; font-size: 36px;
  font-weight: 900; color: var(--navy); line-height: 1;
}
.stat-num span { color: var(--blue); }
.stat-label { font-size: 13px; color: var(--gray); font-weight: 500; }

/* ── SECTIONS COMMON ──────────────────────────────────── */
section { padding: 96px 60px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag {
  display: inline-block; font-family: 'Montserrat', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue);
  background: rgba(10,70,194,0.08); border: 1px solid rgba(10,70,194,0.18);
  padding: 4px 12px; border-radius: 20px; margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 14px;
}
.section-sub {
  font-size: 16px; color: var(--gray); line-height: 1.7;
  max-width: 520px;
}

/* ── SERVICIOS ────────────────────────────────────────── */
#servicios { background: #F4F7FA; }
.services-header { margin-bottom: 56px; }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
/* Color accent per card */
.services-grid .svc-card:nth-child(1) { --c:#0A46C2; --cb:rgba(10,70,194,0.08); --ct:rgba(10,70,194,0.2); }
.services-grid .svc-card:nth-child(2) { --c:#0D9488; --cb:rgba(13,148,136,0.08); --ct:rgba(13,148,136,0.2); }
.services-grid .svc-card:nth-child(3) { --c:#D97706; --cb:rgba(217,119,6,0.08);  --ct:rgba(217,119,6,0.2);  }
.services-grid .svc-card:nth-child(4) { --c:#EA580C; --cb:rgba(234,88,12,0.08);  --ct:rgba(234,88,12,0.2);  }
.services-grid .svc-card:nth-child(5) { --c:#7C3AED; --cb:rgba(124,58,237,0.08); --ct:rgba(124,58,237,0.2); }
.services-grid .svc-card:nth-child(6) { --c:#0284C7; --cb:rgba(2,132,199,0.08);  --ct:rgba(2,132,199,0.2);  }
.svc-card {
  --c: #0A46C2; --cb: rgba(10,70,194,0.08); --ct: rgba(10,70,194,0.2);
  background: var(--white); border: 1px solid #E2E8F0;
  border-radius: 16px; padding: 28px 24px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative; overflow: hidden;
}
.svc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--c); transform: scaleX(0);
  transform-origin: left; transition: transform 0.3s;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px var(--cb), 0 2px 8px rgba(0,0,0,0.06); border-color: var(--ct); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-icon {
  width: 44px; height: 44px;
  background: var(--cb); border: 1px solid var(--ct);
  color: var(--c);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.svc-icon svg { width: 22px; height: 22px; }
.svc-card h3 {
  font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--navy);
}
.svc-card p { font-size: 13px; color: var(--gray); line-height: 1.65; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.svc-tag {
  font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 0.06em; padding: 3px 10px; border-radius: 20px;
  background: var(--cb); color: var(--c); border: 1px solid var(--ct);
}

/* ── PORTFOLIO ────────────────────────────────────────── */
#portfolio { background: #F4F7FA; }
.portfolio-header { margin-bottom: 56px; }
.portfolio-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.proj-card {
  background: var(--white); border: 1px solid #E2E8F0; border-radius: 20px;
  overflow: hidden; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.proj-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,24,42,0.1); border-color: #C8D4E0; }
.proj-banner { height: 5px; }
.proj-body { padding: 26px 24px 22px; }
.proj-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 14px; gap: 12px;
}
.proj-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.proj-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 600;
  color: var(--blue); text-decoration: none; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(10,70,194,0.2);
  background: rgba(10,70,194,0.05); transition: background 0.2s;
  white-space: nowrap; margin-top: 4px;
}
.proj-link:hover { background: rgba(10,70,194,0.1); }
.proj-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; color: var(--navy); }
.proj-card p { font-size: 13px; color: var(--gray); line-height: 1.65; margin-bottom: 16px; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-tag {
  font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 600;
  padding: 4px 11px; border-radius: 20px; letter-spacing: 0.05em;
}
.badge-live {
  font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 700;
  color: #16A34A; background: rgba(22,163,74,0.1); border: 1px solid rgba(22,163,74,0.2);
  padding: 3px 10px; border-radius: 20px; letter-spacing: 0.06em;
  align-self: flex-start; margin-top: 6px;
}
.badge-dev {
  font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 700;
  color: #D97706; background: rgba(217,119,6,0.1); border: 1px solid rgba(217,119,6,0.2);
  padding: 3px 10px; border-radius: 20px; letter-spacing: 0.06em;
  align-self: flex-start; margin-top: 6px;
}

/* ── WHY CMR ──────────────────────────────────────────── */
#why {
  background: var(--navy); color: var(--white);
  background-image: radial-gradient(rgba(10,70,194,0.18) 1px, transparent 1px);
  background-size: 28px 28px;
}
.proj-img-wrap { overflow: hidden; flex-shrink: 0; background: #001428; }
.proj-img-wrap img {
  width: 100%; height: auto; display: block;
}
.proj-img-placeholder {
  height: 200px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.proj-img-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.proj-img-placeholder span {
  font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,0.35); letter-spacing: 0.12em; text-transform: uppercase; position: relative;
}
#why .section-tag {
  color: #5B8FE8; background: rgba(10,70,194,0.2); border-color: rgba(10,70,194,0.35);
}
#why .section-title { color: var(--white); }
#why .section-sub { color: rgba(255,255,255,0.65); }
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden; margin-top: 56px;
}
.why-item {
  background: rgba(255,255,255,0.03); padding: 44px 36px;
  transition: background 0.25s;
}
.why-item:hover { background: rgba(255,255,255,0.06); }
.why-number {
  font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700;
  color: var(--blue); letter-spacing: 0.1em; margin-bottom: 20px;
}
.why-item h3 {
  font-size: 20px; font-weight: 800; margin-bottom: 12px; line-height: 1.2;
}
.why-item p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.7; }

/* ── CTA ──────────────────────────────────────────────── */
#cta {
  background: #F4F7FA; padding: 80px 60px;
  border-top: 1px solid #E2E8F0;
}
.cta-box {
  max-width: 700px; margin: 0 auto; text-align: center;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 24px;
  padding: 64px 48px;
  box-shadow: 0 8px 40px rgba(0,24,42,0.15);
}
.cta-box h2 {
  font-size: clamp(26px, 4vw, 40px); font-weight: 900;
  color: var(--white); margin-bottom: 14px; line-height: 1.15;
}
.cta-box p { font-size: 15px; color: rgba(255,255,255,0.9); margin-bottom: 36px; line-height: 1.7; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: white; text-decoration: none;
  padding: 16px 36px; border-radius: 12px;
  font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 700;
  letter-spacing: 0.02em; transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-wa:hover { background: #20C45C; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(37,211,102,0.3); }
.btn-wa svg { width: 22px; height: 22px; }

/* ── CONTACT FORM ─────────────────────────────────────── */
#contact {
  background: var(--navy); padding: 80px 60px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.contact-inner {
  max-width: 620px; margin: 0 auto;
}
.contact-inner .section-tag { margin-bottom: 16px; }
.contact-inner h2 {
  font-size: clamp(24px, 3.5vw, 36px); font-weight: 900;
  color: var(--white); margin-bottom: 10px; line-height: 1.2;
}
.contact-inner > p {
  font-size: 15px; color: rgba(255,255,255,0.55); margin-bottom: 36px; line-height: 1.65;
}
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-field { display: flex; flex-direction: column; gap: 6px; }
.contact-field label {
  font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.45);
}
.contact-field input,
.contact-field textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 13px 16px;
  color: var(--white); font-size: 14px;
  font-family: 'Roboto', sans-serif;
  outline: none; transition: border-color 0.2s, background 0.2s;
  width: 100%; box-sizing: border-box;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder { color: rgba(255,255,255,0.2); }
.contact-field input:focus,
.contact-field textarea:focus {
  border-color: rgba(10,70,194,0.6); background: rgba(255,255,255,0.07);
}
.contact-field textarea { resize: vertical; min-height: 120px; }
.contact-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue); color: white; border: none;
  padding: 15px 32px; border-radius: 10px;
  font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 700;
  letter-spacing: 0.02em; cursor: pointer;
  transition: background 0.2s, transform 0.15s, opacity 0.2s;
  align-self: flex-start; margin-top: 4px;
}
.contact-submit:hover:not(:disabled) { background: var(--blue-hover); transform: translateY(-1px); }
.contact-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.contact-feedback {
  display: none; align-items: center; gap: 10px;
  padding: 14px 18px; border-radius: 10px; font-size: 14px; margin-top: 4px;
}
.contact-feedback.success {
  display: flex; background: rgba(22,163,74,0.12);
  border: 1px solid rgba(22,163,74,0.25); color: #4ade80;
}
.contact-feedback.error {
  display: flex; background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25); color: #f87171;
}
@media (max-width: 600px) {
  #contact { padding: 60px 24px; }
  .contact-row { grid-template-columns: 1fr; }
  .contact-submit { width: 100%; }
}

/* ── FOOTER ───────────────────────────────────────────── */
footer {
  background: #000F1A; padding: 52px 60px 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 48px; gap: 48px; flex-wrap: wrap;
}
.footer-brand .tagline {
  font-size: 13px; color: rgba(255,255,255,0.3); margin-top: 12px;
  max-width: 240px; line-height: 1.6;
}
.footer-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}
.footer-col a {
  display: block; color: rgba(255,255,255,0.5); text-decoration: none;
  font-size: 14px; margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.2); }

/* ── WHATSAPP FLOAT ───────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 99;
  width: 58px; height: 58px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 10px 30px rgba(37,211,102,0.5); }
.wa-float svg { width: 30px; height: 30px; }

/* ── ANIMATIONS ───────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  nav.scrolled { padding: 12px 24px; }
  .nav-links, .nav-right { display: none; }
  .hamburger { display: flex; }
  #hero { padding: 100px 24px 60px; text-align: center; }
  .hero-ctas { justify-content: center; }
  .proj-img-wrap { display: none; }
  section { padding: 72px 24px; }
  #stats { padding: 0 24px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(3) { border-top: 1px solid #E8EDF3; }
  .stat-item:nth-child(4) { border-top: 1px solid #E8EDF3; }
  /* Carrusel horizontal — solo servicios */
  .services-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin-left: -24px; margin-right: -24px;
    padding-left: 24px; padding-right: 8px; padding-bottom: 8px;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .services-grid::-webkit-scrollbar { display: none; }
  .svc-card { min-width: 82vw; max-width: 320px; scroll-snap-align: start; flex-shrink: 0; }
  .svc-card:last-child { margin-right: 24px; }

  /* Portfolio — carrusel horizontal en móvil (igual que servicios) */
  .portfolio-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin-left: -24px; margin-right: -24px;
    padding-left: 24px; padding-right: 8px; padding-bottom: 8px;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .portfolio-grid::-webkit-scrollbar { display: none; }
  .proj-card { min-width: 82vw; max-width: 340px; scroll-snap-align: start; flex-shrink: 0; display: block; }
  .proj-card:last-child { margin-right: 24px; }
  .proj-img-wrap { display: block !important; width: 100%; height: auto; }
  .proj-img-wrap img { width: 100%; height: auto; }
  .proj-banner { display: block !important; width: 100%; height: 4px; }
  .proj-body { padding: 20px 18px; }

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

  /* Center service card content on mobile/tablet */
  .svc-card { text-align: center; }
  .svc-icon { margin: 0 auto 18px; }
  .svc-tags { justify-content: center; }
  /* Portfolio cards en móvil: contenido alineado a la izquierda */
  .proj-body { text-align: left; }
  .proj-head { flex-direction: row; align-items: flex-start; gap: 10px; }
  .proj-tags { justify-content: flex-start; }
  #cta { padding: 60px 24px; }
  .cta-box { padding: 40px 24px; }
  footer { padding: 40px 20px 24px; }
  .footer-top {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px 12px;
    align-items: start;
  }
  .footer-brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
  .footer-brand .tagline { display: none; }
  .footer-col h4 { font-size: 10px; margin-bottom: 10px; }
  .footer-col a { font-size: 12px; margin-bottom: 7px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .wa-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}
@media (max-width: 600px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; max-width: 280px; justify-content: center; }
  .proj-head { flex-direction: column; align-items: flex-start; }
  .proj-head > div { align-items: flex-start !important; }
  .svc-card, .proj-body { padding: 24px 20px; }
  .why-item { padding: 32px 24px; }
  .cta-box h2 { font-size: 24px; }
  .btn-wa { width: 100%; justify-content: center; }
}

/* ── CAROUSEL DOTS ────────────────────────────────────── */
.carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.carousel-dot {
  width: 6px; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.2); border: none; padding: 0; cursor: pointer;
  transition: background 0.3s, width 0.3s;
}
#services-dots .carousel-dot { background: #CBD5E1; }
#services-dots .carousel-dot.active { background: var(--blue); }
.carousel-dot.active { background: var(--blue); width: 20px; }
@media (min-width: 901px) { .carousel-dots { display: none; } }

/* ── VIDEO FONDO ──────────────────────────────────────── */
.video-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.10;
  z-index: 0;
  pointer-events: none;
}
#why { position: relative; overflow: hidden; }
#contact { position: relative; overflow: hidden; }
#why .section-inner { position: relative; z-index: 1; }
.contact-inner { position: relative; z-index: 1; }

/* ── SPLINE 3D SECTION ─────────────────────────────────── */
#spline-demo {
  padding: 80px 60px;
  background: var(--white);
}
.spline-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #05070A;
  border: 1px solid rgba(10,70,194,0.2);
  box-shadow: 0 0 48px rgba(10,70,194,0.10);
  height: 520px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
}
.spline-layout {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}
.spline-left {
  flex: 1;
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.spline-left h2 {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}
.spline-left p {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  line-height: 1.7;
  max-width: 360px;
}
.spline-right {
  flex: 1;
  position: relative;
}
#canvas3d {
  width: 100%;
  height: 100%;
  display: block;
}
.spline-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.spline-loader-dot {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: #2B6FE8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spotlight-svg {
  pointer-events: none;
  position: absolute;
  z-index: 1;
  height: 169%;
  width: 138%;
  opacity: 0;
  animation: spotlight 2s ease forwards;
  top: -40px;
  left: 0;
}
@keyframes spotlight {
  0%   { opacity: 0; transform: translate(-72%, -62%) scale(0.5); }
  100% { opacity: 1; transform: translate(-30%, -30%) scale(1); }
}
.spline-cursor-light {
  pointer-events: none;
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.18) 45%, transparent 72%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 3;
  will-change: left, top;
}
.spline-card:hover .spline-cursor-light { opacity: 1; }
@media (max-width: 900px) {
  #spline-demo { padding: 48px 20px; }
  .spline-card { height: auto; flex-direction: column; }
  .spline-layout { flex-direction: column; }
  .spline-left { padding: 40px 28px 24px; }
  .spline-right { height: 280px; }
}
