
/* ── RESET ──────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
img { display: block; max-width: 100%; height: auto; } /* height: auto previene CLS */
button, input, select, textarea { font-family: inherit; }
a { text-decoration: none; }

/* ── PERFORMANCE: System Fonts (no external requests) ── */
body { font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif; }

/* ── ACCESSIBILITY: Focus Visible (Keyboard Navigation) ── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ── ACCESSIBILITY: Reduced Motion ──────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .wa-float:hover { transform: none !important; }
  .wa-float-pulse { animation: none !important; }
  .wa-float { animation: none !important; }
  .f-social-icon:hover { transform: none !important; }
}

/* ── DESIGN TOKENS ──────────────────────── */
:root {
  --bg:          #0a0a0a;
  --surface-1:   #0e0e0e;
  --surface-2:   #101010;
  --surface-3:   #141414;
  --surface-4:   #161616;
  --border:      #1a1a1a;
  --border-sub:  #222222;
  --orange:      #FF6B00;
  --orange-muted: rgba(255,107,0,0.10);
  --orange-glow:  rgba(255,107,0,0.12);
  --text:        #ffffff;
  --text-sec:    #b8b8b8;
  --text-muted:  #a3a3a3;
  --text-faint:  #8f8f8f;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  --radius-card: 16px;
  --radius-sm:   10px;
  --transition:  0.25s ease;
}

/* ── BASE ───────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  top: -44px;
  left: 0;
  background: #ff6b00;
  color: #111;
  font-weight: 700;
  padding: 10px 16px;
  text-decoration: none;
  z-index: 1000;
}
.skip-link:focus { top: 0; }

/* ── TYPOGRAPHY HELPERS ─────────────────── */
.label {
  color: var(--orange);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}
#process .label { color: #9a3a00; }
.section-title {
  font-size: clamp(30px, 4.5vw, 54px);
  font-weight: 200;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-title strong { font-weight: 700; }
#process .section-title { color: #1a1a1a; }
.section-body {
  color: var(--text-sec);
  font-size: 16px;
  line-height: 1.75;
  max-width: 560px;
}
.divider { border: none; border-top: 1px solid var(--border); }

/* ── LAYOUT HELPERS ─────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 100px 60px; }
.band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ── BUTTONS ────────────────────────────── */
.btn-primary {
  background: var(--orange); color: #111; border: none;
  padding: 15px 34px; border-radius: 30px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: opacity var(--transition); display: inline-block;
}
.btn-primary:hover { opacity: 0.88; }
.btn-ghost {
  background: transparent; color: #ccc;
  border: 1px solid var(--border-sub);
  padding: 15px 34px; border-radius: 30px;
  font-size: 14px; cursor: pointer; display: inline-block;
  transition: border-color var(--transition), color var(--transition);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

/* ── NAV ────────────────────────────────── */
#nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,107,0,0.15);
  padding: 0 60px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo { font-size: 19px; font-weight: 700; letter-spacing: -0.5px; display: flex; align-items: center; }
.nav-logo img { width: 248px; height: auto; display: block; }
.nav-logo span { color: var(--orange); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: #999; font-size: 13px; transition: color var(--transition); }
.nav-links a:hover { color: var(--orange); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-btn {
  background: rgba(255,255,255,0.06); border: 1px solid #8a8a8a;
  color: #f2f2f2; padding: 5px 12px; border-radius: 20px;
  font-size: 11px; cursor: pointer; transition: all var(--transition);
}
.lang-btn.active { border-color: var(--orange); background: var(--orange); color: #111; font-weight: 700; }
.nav-cta {
  background: var(--orange); color: #fff; border: none;
  padding: 8px 20px; border-radius: 20px; font-size: 13px;
  font-weight: 600; cursor: pointer; transition: opacity var(--transition);
}
.nav-cta:hover { opacity: 0.88; }
.nav-hamburger {
  display: none; background: none; border: none;
  color: var(--text); font-size: 22px; cursor: pointer; padding: 4px;
}
.nav-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(10,10,10,0.98);
  flex-direction: column; align-items: center; justify-content: center; gap: 36px;
}
.nav-overlay.open { display: flex; }
.nav-overlay a {
  color: var(--text); font-size: 32px; font-weight: 200;
  letter-spacing: -1px; transition: color var(--transition);
}
.nav-overlay a:hover { color: var(--orange); }
.nav-overlay-close {
  position: absolute; top: 24px; right: 32px;
  background: none; border: none; color: #666;
  font-size: 28px; cursor: pointer;
}

/* ── HERO ───────────────────────────────── */
#hero {
  height: 60vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 0 40px;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0f3460 100%);
  background-attachment: fixed;
}
#hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 0.5;
  pointer-events: none;
}
/* Video background */
.hero-lcp-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
}
.hero-video {
  position: absolute;
  top: -25%; left: 0;
  width: 100%; height: 150%;
  object-fit: cover;
  opacity: 0.32;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  transition: opacity 1s ease;
}
/* All hero children above video */
#hero > *:not(.hero-video):not(.hero-lcp-img) { position: relative; z-index: 1; }
.hero-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, var(--orange-glow) 0%, rgba(255, 102, 0, 0.2) 50%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
  animation: glow-pulse 6s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}
.hero-title {
  font-size: clamp(44px, 8vw, 90px);
  font-weight: 200; line-height: 1.05;
  letter-spacing: -3px; margin-bottom: 28px;
  position: relative; max-width: 900px;
}
.hero-title strong { font-weight: 800; color: var(--orange); }
.hero-sub {
  color: var(--text-sec);
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 300; max-width: 620px;
  line-height: 1.7; margin-bottom: 52px; position: relative;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; position: relative; margin-bottom: 40px; }
.scroll-hint {
  position: absolute; bottom: 8px;
  display: none; align-items: center; gap: 12px;
  color: var(--text-faint); font-size: 12px; letter-spacing: 1px;
}
.scroll-line { width: 40px; height: 1px; background: var(--orange); }

/* ── STATS ──────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 1200px; margin: 0 auto;
}
.stat-item {
  padding: 56px 40px; text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 52px; font-weight: 800;
  color: var(--orange); letter-spacing: -2px; line-height: 1;
}
.stat-label {
  color: #b5b5b5; font-size: 12px;
  margin-top: 10px; letter-spacing: 1.5px; text-transform: uppercase;
}

/* ── SERVICES ───────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; max-width: 1200px; margin: 0 auto;
}
.service-card {
  background: var(--surface-2); position: relative; overflow: hidden;
  transition: background var(--transition);
}
.service-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: transparent;
  transition: background var(--transition);
}
.service-card:hover { background: var(--surface-4); }
.service-card:hover::after { background: var(--orange); }
.service-card-img {
  width: 100%; aspect-ratio: 16/9; overflow: hidden; position: relative;
}
.service-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.85) saturate(0.8);
  transition: filter var(--transition), transform 0.4s ease;
}
.service-card:hover .service-card-img img {
  filter: brightness(1) saturate(1);
  transform: scale(1.04);
}
.service-card-body { padding: 36px 36px 40px; }
.service-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--orange-muted); border: 1px solid rgba(255,107,0,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--orange);
}
.service-name { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.service-desc { color: #c2c2c2; font-size: 14px; line-height: 1.7; }
.service-link {
  color: var(--orange); font-size: 13px;
  margin-top: 18px; display: block;
  transition: letter-spacing var(--transition);
}
.service-card:hover .service-link { letter-spacing: 0.5px; }

/* ── PROCESS ────────────────────────────── */
.process-steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0; margin-top: 60px; position: relative;
}
.process-steps::before {
  content: ''; position: absolute; top: 23px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), var(--text-faint), var(--text-faint), transparent);
}
.step { text-align: center; padding: 0 12px; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: #f5f5f5; border: 2px solid var(--orange);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 16px; font-weight: 700; color: var(--orange);
  position: relative; z-index: 1;
}
.step-name { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.step-desc { color: #666666; font-size: 12px; line-height: 1.5; }

/* ── ABOUT ──────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-img {
  aspect-ratio: 4/3; background: var(--surface-2);
  border-radius: 20px; border: 1px solid var(--border-sub);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.9) saturate(0.85); }
.about-img::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), transparent); z-index: 1;
}
.about-img-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 20px; font-size: 12px; color: #555; z-index: 1;
}

/* ── INDUSTRIES ─────────────────────────── */
.industries-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-top: 56px;
}
.industry-item {
  background: var(--surface-2); border-radius: 12px;
  padding: 28px 24px; border: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  transition: border-color var(--transition), background var(--transition);
}
.industry-item:hover { border-color: rgba(255,107,0,0.3); background: var(--surface-3); }
.industry-icon { color: var(--orange); flex-shrink: 0; display: flex; }
.industry-name { font-size: 14px; font-weight: 600; }

/* ── PORTFOLIO ──────────────────────────── */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 14px; margin-top: 60px;
}
.portfolio-item {
  border-radius: 14px; border: 1px solid var(--border);
  overflow: hidden; position: relative;
  aspect-ratio: 4/3;
}
.portfolio-wide { grid-column: span 2; }
.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.85) saturate(0.8);
  transition: filter 0.4s ease, transform 0.4s ease;
}
.portfolio-item:hover img { filter: brightness(1) saturate(1); transform: scale(1.04); }
.portfolio-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.92));
  padding: 28px 24px;
}
.portfolio-tag {
  color: var(--orange); font-size: 10px;
  letter-spacing: 3px; text-transform: uppercase; display: block;
}
.portfolio-name { font-size: 16px; font-weight: 600; margin-top: 5px; }

/* ── CLIENTS ────────────────────────────── */
.clients-title {
  color: #666666; font-size: 11px;
  letter-spacing: 4px; text-transform: uppercase; margin-bottom: 40px; display: block;
}
.clients-logos { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.client-logo { width: 80px; height: 28px; background: #1e1e1e; border-radius: 4px; opacity: 0.5; }
.client-logo-svg { height: 36px; width: auto; opacity: 0.45; transition: opacity var(--transition); }
.client-logo-svg:hover { opacity: 0.75; }

/* ── TESTIMONIALS ───────────────────────── */
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 60px; }
.t-card {
  background: var(--surface-2); border-radius: var(--radius-card);
  padding: 36px; border: 1px solid var(--border); position: relative;
}
.t-card::before {
  content: '"'; position: absolute; top: 20px; right: 24px;
  font-size: 64px; color: rgba(255,107,0,0.08); font-family: Georgia, serif; line-height: 1;
}
/* Blockquote & Citation (Semantic HTML) */
blockquote { margin: 0; padding: 0; }
cite { font-style: normal; }

.t-text { color: var(--text-sec); font-size: 14px; line-height: 1.8; margin-bottom: 24px; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), #cc4400); flex-shrink: 0; }
.t-name { font-size: 13px; font-weight: 600; }
.t-role { font-size: 11px; color: var(--text-muted); }

/* ── CONTACT ────────────────────────────── */
.contact-inner {
  max-width: 1200px; margin: 0 auto; padding: 100px 60px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; margin-top: 40px; }
.c-item { display: flex; align-items: flex-start; gap: 16px; }
.c-icon {
  width: 40px; height: 40px; background: var(--orange-muted);
  border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; color: var(--orange);
}
.c-label { font-size: 10px; color: var(--orange); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 4px; }
.c-val { color: #d0d0d0; font-size: 14px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; margin-top: 40px; }
.f-field {
  background: var(--surface-3); border: 1px solid var(--border-sub);
  border-radius: var(--radius-sm); padding: 14px 18px;
  color: #bbb; font-size: 14px; outline: none;
  transition: border-color var(--transition);
}
.f-field:focus { border-color: var(--orange); }
.f-field option { background: var(--surface-3); color: var(--text); }
textarea.f-field { resize: vertical; }
.f-submit {
  background: var(--orange); color: #111; border: none;
  padding: 16px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: opacity var(--transition);
}
.f-submit:hover { opacity: 0.88; }

/* ── FOOTER ─────────────────────────────── */
.site-footer {
  max-width: 1200px; margin: 0 auto; padding: 36px 60px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px 40px;
  border-top: 1px solid var(--border);
}
.f-copy { color: #bdbdbd; font-size: 12px; flex: 1 1 200px; min-width: 0; }
.f-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; justify-content: center; }
.f-links a, .f-link-btn { color: #d6d6d6; font-size: 12px; transition: color var(--transition); background: none; border: none; cursor: pointer; padding: 0; font-family: inherit; }
.f-links a:hover, .f-link-btn:hover { color: var(--orange); }

.f-follow--contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-sub);
}
.f-follow-label {
  margin: 0;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.f-follow--contact .f-follow-label {
  text-shadow: 0.4px 0 0 rgba(255,70,70,0.45), -0.4px 0 0 rgba(70,130,255,0.4);
}
.f-social-icons { display: flex; align-items: center; gap: 22px; }
.f-social-icon {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
  transition: color var(--transition), opacity var(--transition), transform var(--transition);
}
.f-social-icon:hover { color: var(--orange); opacity: 1; transform: translateY(-2px); }
.f-social-icon svg { display: block; }

/* WhatsApp floating button — latido (icono en <span>; halo en el botón) */
@keyframes wa-heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.36); }
  28% { transform: scale(1); }
  42% { transform: scale(1.22); }
  56% { transform: scale(1); }
}
@keyframes wa-halo {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(37, 211, 102, 0.42),
      0 0 26px rgba(37, 211, 102, 0.58),
      0 0 44px rgba(37, 211, 102, 0.35);
  }
  45% {
    box-shadow:
      0 0 0 14px rgba(37, 211, 102, 0.08),
      0 0 34px rgba(37, 211, 102, 0.66),
      0 0 56px rgba(37, 211, 102, 0.38);
  }
}
@keyframes wa-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
.wa-float {
  position: fixed;
  bottom: max(22px, env(safe-area-inset-bottom, 0px));
  right: max(22px, env(safe-area-inset-right, 0px));
  z-index: 250;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  overflow: visible;
  transition: transform 0.25s ease;
  /* Visible glow even if animations are disabled */
  box-shadow:
    0 0 0 6px rgba(37, 211, 102, 0.16),
    0 0 28px rgba(37, 211, 102, 0.62),
    0 0 52px rgba(37, 211, 102, 0.34);
  animation: wa-halo 1.25s ease-out infinite;
}
.wa-float::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.28) 0%, rgba(37, 211, 102, 0.12) 45%, rgba(37, 211, 102, 0) 72%);
  z-index: -1;
  opacity: 0.95;
  animation: wa-heartbeat 1.25s ease-in-out infinite;
  pointer-events: none;
}
.wa-float::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid rgba(37, 211, 102, 0.55);
  z-index: -2;
  pointer-events: none;
  animation: wa-ring 1.25s ease-out infinite;
}
.wa-float-pulse {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transform-origin: center center;
  animation: wa-heartbeat 1.25s ease-in-out infinite;
  will-change: transform;
}
.wa-float-pulse svg {
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(37, 211, 102, 0.8));
}

/* If user has reduced motion, keep static glow but stop pulses */
@media (prefers-reduced-motion: reduce) {
  .wa-float,
  .wa-float::before,
  .wa-float-pulse {
    animation: none !important;
  }
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 8px 30px rgba(37, 211, 102, 0.55); }
.wa-float:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ── COOKIE BANNER ──────────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 240;
  background: linear-gradient(135deg, var(--surface-3) 0%, var(--surface-2) 100%);
  border-top: 1px solid var(--border);
  padding: 20px 40px; display: none;
  align-items: center; justify-content: space-between; gap: 20px;
  backdrop-filter: blur(20px);
}
.cookie-content { display: flex; align-items: center; justify-content: space-between; gap: 30px; width: 100%; max-width: 1200px; margin: 0 auto; }
.cookie-banner h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.cookie-banner p { color: var(--text-muted); font-size: 12px; line-height: 1.5; margin: 0; }
.cookie-banner div:first-child { flex: 1; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-banner .btn-primary { padding: 10px 20px; font-size: 13px; }
.cookie-banner .btn-ghost { padding: 10px 20px; font-size: 13px; }

/* ── LEGAL MODAL ────────────────────────── */
.legal-modal {
  display: none; position: fixed; inset: 0; z-index: 250;
  background: rgba(10,10,10,0.92); align-items: center; justify-content: center;
  backdrop-filter: blur(10px); padding: 20px;
}
.legal-modal-content {
  background: var(--surface-2); border-radius: 16px; border: 1px solid var(--border);
  max-width: 600px; width: 100%; max-height: 80vh; overflow-y: auto;
  padding: 40px; position: relative;
}
.legal-modal-content h2 { font-size: 24px; font-weight: 600; margin-bottom: 20px; margin-top: 0; }
.legal-modal-content h3 { font-size: 14px; font-weight: 600; margin-top: 20px; margin-bottom: 12px; }
.legal-modal-content p { color: var(--text-sec); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.legal-modal-content ul { color: var(--text-sec); font-size: 14px; line-height: 1.7; margin-left: 20px; margin-bottom: 16px; }
.legal-modal-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; color: #666; font-size: 28px;
  cursor: pointer; transition: color var(--transition);
}
.legal-modal-close:hover { color: var(--orange); }

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 1023px) {
  .container { padding: 80px 40px; }
  #nav { padding: 0 32px; }
  .nav-links { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .t-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 60px; padding: 80px 40px; }
  .process-steps { grid-template-columns: 1fr; gap: 28px; }
  .process-steps::before { display: none; }
  .step { text-align: left; display: flex; align-items: flex-start; gap: 20px; }
  .step-num { margin: 0; flex-shrink: 0; }
  .site-footer { flex-direction: column; gap: 24px; text-align: center; padding: 36px 40px; align-items: center; }
  .f-copy { flex: none; text-align: center; }
  .f-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 767px) {
  .container { padding: 60px 20px; }
  #nav { padding: 0 20px; height: 54px; }
  .nav-logo img { width: 160px; height: auto; }
  .nav-links { display: none; }
  .nav-right .nav-cta { display: none; }
  .nav-hamburger { display: block; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn-primary,
  .hero-cta .btn-ghost { width: 240px; text-align: center; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 36px 20px; }
  .stat-num { font-size: 40px; }
  .industries-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-wide { grid-column: span 1; }
  .t-grid { grid-template-columns: 1fr; }
  .contact-inner { padding: 60px 20px; }
  .site-footer { padding: 32px 20px; }
  .wa-float { bottom: max(16px, env(safe-area-inset-bottom, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); width: 54px; height: 54px; }
  .wa-float-pulse svg { width: 26px; height: 26px; }
  .clients-logos { gap: 20px; }
  .hero-title { letter-spacing: -2px; }
  .section-title { letter-spacing: -1px; }
}

/* Form feedback (replaces alert), semantic contact, footer social — audit */
.contact-address { font-style: normal; }
.form-feedback {
  display: none;
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.5;
}
.form-feedback.show { display: block; }
.form-feedback.success {
  background: rgba(0, 120, 60, 0.2);
  border: 1px solid rgba(0, 180, 90, 0.45);
  color: #b8f0d0;
}
.form-feedback.error {
  background: rgba(140, 40, 40, 0.25);
  border: 1px solid rgba(220, 80, 80, 0.5);
  color: #ffc9c9;
}
blockquote.t-quote { border: none; }
blockquote.t-quote footer.t-author { margin: 0; margin-top: 4px; }
.t-cite { display: flex; flex-direction: column; gap: 2px; }
