/* EP Solution — marketing (mobile-first) */

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  /* Navy scale (dark surfaces) */
  --navy-950: #080f19;
  --navy-900: #080f19;
  --navy-850: #101d2c;
  --navy-800: #162638;
  --navy-700: #263b50;
  --navy-600: #456078;

  /* Teal scale (brand accent) */
  --teal-50: #effbf8;
  --teal-100: #d5f5ec;
  --teal-200: #a8ebd8;
  --teal-300: #7ddcc4;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;

  /* Neutral scale (light surfaces) */
  --slate-50: #080f19;
  --slate-100: #101d2c;
  --slate-200: #263b50;
  --slate-500: #aab8c5;
  --slate-700: #cad5df;
  --slate-900: #f3f7fa;

  /* Semantic roles */
  --bg-dark: var(--navy-900);
  --bg-darker: var(--navy-950);
  --bg-dark-raised: var(--navy-850);
  --bg-light: var(--slate-50);
  --bg-muted: var(--slate-100);
  --surface: #101d2c;

  --text: var(--slate-900);
  --text-soft: var(--slate-700);
  --text-muted: var(--slate-500);
  --text-on-dark: #f3f7fa;
  --text-on-dark-soft: #aab8c5;
  --text-on-dark-muted: #aab8c5;

  --accent: #afe8d4;
  --accent-hover: #c8f3e3;
  --accent-strong: #afe8d4;
  --accent-on-dark: #afe8d4;
  --accent-on-dark-hover: #c9f5e8;
  --accent-soft: rgba(175, 232, 212, 0.12);
  --accent-soft-dark: rgba(168, 235, 216, 0.08);

  --border: rgba(243, 247, 250, 0.12);
  --border-strong: rgba(243, 247, 250, 0.24);
  --border-dark: rgba(232, 238, 246, 0.12);
  --border-dark-strong: rgba(232, 238, 246, 0.22);

  --whatsapp: #0f766e;
  --whatsapp-hover: #115e59;
  --success-bg: #dcfce7;
  --success-text: #166534;
  --error-bg: #fee2e2;
  --error-text: #991b1b;
  --error-field: #ffaaa5;
  --warning-bg: #fef3c7;
  --warning-text: #92400e;
  --live: #afe8d4;

  /* Shape & depth */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-btn: 12px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 28px 64px rgba(7, 12, 22, 0.28);

  /* Typography */
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --fs-xs: 0.875rem;
  --fs-sm: 1rem;
  --fs-base: 1.0625rem;
  --fs-lead: 1.125rem;
  --fs-h1: clamp(2.25rem, 5vw, 4.25rem);
  --fs-h2: clamp(1.9rem, 3.4vw, 2.75rem);
  --fs-h3: 1.5rem;

  /* Layout */
  --container: 1240px;
  --gutter: 1.25rem;
  --tap: 48px;
  --tap-min: 44px;
  --header-h: 88px;
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --float-safe: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-light);
  padding-bottom: var(--float-safe);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
p { text-wrap: pretty; }

a { color: var(--accent-hover); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-strong); }
a, button { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 1000;
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 0.75rem; color: #fff; }

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}
.container.narrow { width: min(100% - (var(--gutter) * 2), 720px); }

/* ==========================================================================
   Sections & headings
   ========================================================================== */
.section {
  padding-block: var(--section-y);
  scroll-margin-top: calc(var(--header-h) + 0.5rem);
}
.section-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section-light { background: var(--bg-light); color: var(--text); }
.section-muted { background: var(--bg-muted); color: var(--text); }

.section h2,
.section-head h2 {
  font-family: var(--font);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0 0 0.85rem;
}
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
.section-head h2 { margin: 0; }
.section-head > p,
.section-head > div + p {
  margin: 0;
  max-width: 45ch;
  color: var(--text-soft);
  line-height: 1.7;
}
.section-dark .section-head > p,
.section-dark .section-head p { color: var(--text-on-dark-soft); }

.section-kicker,
.projects-kicker,
.services-kicker,
.contact-eyebrow {
  margin: 0 0 0.9rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-hover);
}
.section-dark .section-kicker,
.services-refined .services-kicker,
.contact-eyebrow { color: var(--accent-on-dark); }

.note { margin-top: 1.5rem; color: var(--text-soft); font-size: var(--fs-base); }
.section-dark .note { color: var(--text-on-dark-soft); }
.subhead { margin: 0.75rem 0 0.5rem; font-size: clamp(1.6rem, 4vw, 2.2rem) !important; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--navy-900);
  --btn-bg-hover: var(--accent-hover);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: var(--tap);
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.65; cursor: progress; transform: none; }
.btn-sm { min-height: var(--tap-min); padding: 0.5rem 1rem; font-size: 1rem; }

.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: 0 6px 18px rgba(13, 148, 136, 0.22); }
.btn-primary:hover { background: var(--btn-bg-hover); color: var(--btn-fg); }

.hero .btn-primary,
.page-hero .btn-primary,
.nav .btn-primary,
.mobile-menu .btn-primary,
.section-dark .btn-primary {
  --btn-bg: var(--accent-on-dark);
  --btn-fg: var(--navy-900);
  --btn-bg-hover: var(--accent-on-dark-hover);
  box-shadow: 0 8px 24px rgba(125, 220, 196, 0.16);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--surface); color: var(--accent-strong); border-color: var(--accent); }
.page-hero .btn-secondary,
.section-dark .btn-secondary {
  color: var(--text-on-dark);
  border-color: var(--border-dark-strong);
}
.page-hero .btn-secondary:hover,
.section-dark .btn-secondary:hover {
  background: var(--accent-soft-dark);
  color: #fff;
  border-color: var(--accent-on-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-hover);
  padding-inline: 0.5rem;
  text-decoration: underline;
}
.section-dark .btn-ghost { color: var(--accent-on-dark); }
.section-dark .btn-ghost:hover { color: #fff; }

.btn-whatsapp { background: var(--whatsapp); color: #fff; margin-bottom: 1.25rem; }
.btn-whatsapp:hover { background: var(--whatsapp-hover); color: #fff; }
.btn-whatsapp svg, .float-wa svg { flex-shrink: 0; }

/* ==========================================================================
   Header & navigation
   ========================================================================== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-on-dark);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 100;
  pointer-events: none;
}

.site-header { position: sticky; top: 0; z-index: 50; }
.nav {
  position: relative;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-dark);
}
.nav-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: var(--tap);
  color: var(--text-on-dark);
  font-weight: 700;
  text-decoration: none;
}
.brand:hover { color: #fff; }
.brand img { width: 32px; height: 32px; }
.brand-text { font-size: 1.15rem; letter-spacing: -0.025em; white-space: nowrap; }

.nav-links { display: none; gap: 1.25rem; }
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--text-on-dark-soft);
  font-weight: 500;
  text-decoration: none;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: var(--accent-on-dark);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after,
.nav-links a[aria-current]::after { transform: scaleX(1); }
.nav-links a[aria-current] { color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 0.35rem; }
.nav-actions .nav-cta { display: none; }

.language-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid rgba(232, 238, 246, 0.12);
  border-radius: 999px;
  background: rgba(232, 238, 246, 0.04);
  font-size: var(--fs-xs);
}
.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: var(--tap-min);
  padding: 0 0.7rem 0 0.55rem;
  border-radius: 999px;
  color: var(--text-on-dark-muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.language-switch a:hover { color: #fff; background: rgba(232, 238, 246, 0.06); }
.language-switch a[aria-current] { color: var(--navy-950); background: var(--accent-on-dark); }
.language-switch a:focus-visible { outline-offset: 1px; }
.lang-flag {
  flex: none;
  width: auto;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.language-switch a:hover .lang-flag,
.language-switch a[aria-current] .lang-flag { opacity: 1; }
.language-switch a[aria-current] .lang-flag { box-shadow: 0 0 0 1px rgba(11, 18, 32, 0.25); }
@media (max-width: 359px) {
  .language-switch a { min-width: var(--tap-min); padding: 0; }
  .language-switch a > span { display: none; }
}

.menu-btn {
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-btn);
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.menu-btn:hover { border-color: var(--border-dark-strong); }
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block;
  position: relative;
  width: 1.15rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, background 0.2s ease;
}
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100dvh - var(--header-h));
  flex-direction: column;
  padding: 0.75rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom, 0px));
  background: var(--bg-darker);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu:not([hidden]) { display: flex; animation: menu-in 0.22s var(--ease) both; }
.mobile-menu a:not(.btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  border-bottom: 1px solid var(--border-dark);
  color: var(--text-on-dark);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
}
.mobile-menu a:not(.btn)::after { content: "↗"; color: var(--accent-on-dark); font-size: 1rem; }
.mobile-menu a:not(.btn):hover { color: #fff; }
.mobile-menu .btn { margin-top: 1.5rem; width: 100%; }

/* ==========================================================================
   Home hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--text-on-dark);
  background:
    radial-gradient(ellipse 70% 55% at 85% 30%, rgba(13, 148, 136, 0.2), transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(37, 99, 235, 0.1), transparent 55%),
    var(--bg-dark);
}
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 190, 214, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 190, 214, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent, #000 70%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.hero-modern { padding: 2.75rem 0 0; }
.hero-grid { display: grid; gap: 2.5rem; position: relative; z-index: 2; }
.hero-copy { min-width: 0; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  color: var(--text-on-dark-soft);
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
}
.hero-eyebrow > span,
.operations-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-300);
  box-shadow: 0 0 0 5px rgba(125, 220, 196, 0.12);
}
.hero h1 {
  max-width: none;
  margin: 0 0 1.4rem;
  color: #fff;
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.hero h1 > span { color: var(--accent-on-dark); }
.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 44ch;
  color: var(--text-on-dark-soft);
  font-size: var(--fs-lead);
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.hero-actions .btn { width: 100%; }
.hero-work-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: var(--tap);
  color: var(--text-on-dark);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.hero-work-link:hover { color: var(--accent-on-dark); }
.hero-location { margin: 1.25rem 0 0; color: var(--text-on-dark-soft); font-size: var(--fs-base); }

/* Featured project showcase */
.operations-showcase { min-width: 0; position: relative; }
.operations-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
  color: var(--text-on-dark-soft);
  font-size: var(--fs-sm);
}
.operations-index {
  margin-left: auto;
  color: var(--text-on-dark-muted);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
}
.operations-card {
  padding: 1.25rem;
  border: 1px solid var(--border-dark-strong);
  border-radius: 20px;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-850) 75%);
  box-shadow: var(--shadow-lg);
}
.operations-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border-dark);
}
.operations-brand img {
  width: 122px;
  height: 42px;
  object-fit: contain;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: #fff7ed;
}
.operations-badge {
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(168, 235, 216, 0.25);
  border-radius: var(--radius-sm);
  color: var(--accent-on-dark);
  font-size: var(--fs-xs);
  white-space: nowrap;
}
.operations-intro { padding: 1.25rem 0; }
.operations-kicker { color: var(--text-on-dark-muted); font-size: var(--fs-xs); letter-spacing: 0.1em; }
.operations-intro h2 {
  margin: 0.6rem 0;
  color: #fff;
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.operations-intro p { margin: 0; color: var(--text-on-dark-soft); font-size: var(--fs-base); }
.operations-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.operations-flow li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem 0.6rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.operations-flow li:hover { background: var(--navy-700); border-color: rgba(168, 235, 216, 0.4); }
.flow-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(168, 235, 216, 0.25);
  border-radius: var(--radius-sm);
  background: var(--accent-soft-dark);
  color: var(--accent-on-dark);
  font-size: var(--fs-xs);
}
.operations-flow strong { color: #fff; font-size: 1rem; }
.operations-flow li > span:last-child { color: var(--text-on-dark-soft); font-size: var(--fs-sm); line-height: 1.4; }
.operations-summary {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem;
  border: 1px solid rgba(168, 235, 216, 0.15);
  border-radius: var(--radius-btn);
  background: var(--accent-soft-dark);
  color: var(--text-on-dark-soft);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.operations-summary strong { color: #fff; font-weight: 600; }
.operations-check {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(168, 235, 216, 0.14);
  color: var(--accent-on-dark);
}
.operations-symbol { margin-left: auto; color: var(--accent-on-dark); font-size: 1.4rem; }
.operations-case {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--tap);
  margin-top: 0.5rem;
  color: var(--text-on-dark);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.operations-case:hover { color: var(--accent-on-dark); }
.operations-caption { margin: 0.6rem 0 0; color: var(--text-on-dark-muted); font-size: var(--fs-xs); text-align: right; }

.hero-capabilities {
  display: grid;
  gap: 0.25rem;
  margin-top: 2.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--border-dark);
}
.hero-capabilities p { margin: 0 0 0.5rem; color: var(--text-on-dark-soft); font-size: var(--fs-base); line-height: 1.5; }
.hero-capabilities strong { color: var(--text-on-dark); font-weight: 600; }
.hero-capabilities > a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--tap);
  color: var(--text-on-dark);
  font-size: 1rem;
  text-decoration: none;
}
.hero-capabilities > a > span { color: var(--accent-on-dark); font-size: 1.3rem; width: 1.5rem; text-align: center; }
.hero-capabilities > a:hover { color: #fff; }

/* ==========================================================================
   Inner page hero & breadcrumbs
   ========================================================================== */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 2.5rem 0 3rem;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(13, 148, 136, 0.2), transparent 60%),
    var(--bg-dark);
}
.page-hero h1 {
  max-width: 22ch;
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(2.2rem, 7vw, 3.75rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.04em;
}
.page-hero .hero-lead { margin-bottom: 1.5rem; }
.page-hero .case-type { color: var(--accent-on-dark); }
.page-hero .hero-actions .btn { width: 100%; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-on-dark-muted);
  font-size: var(--fs-sm);
}
.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--accent-on-dark);
  text-decoration: none;
}
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--text-on-dark-soft); }

/* ==========================================================================
   Project cards (home + shared)
   ========================================================================== */
.case-grid, .service-grid, .benefit-grid, .pricing-grid, .team-grid {
  display: grid;
  gap: 1.25rem;
}
.case-card, .service-card, .price-card, .team-card, .progress-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.section-dark .case-card {
  border-color: var(--border-dark);
  background: var(--navy-850);
  color: var(--text-on-dark);
}
.section-dark .case-card p { color: var(--text-on-dark-soft); }

.case-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 12.5rem;
  padding: 2rem 1.5rem;
  overflow: hidden;
  background: linear-gradient(160deg, #f8fafc, #e2e8f0);
}
.case-media::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.55), transparent 70%);
}
.case-media[data-brand="loguip"] { background: linear-gradient(145deg, #fff7ed, #ffedd5); }
.case-media[data-brand="3c-inmobiliaria"] { background: linear-gradient(145deg, #fafaf9, #f4efe6); }
.case-media[data-brand="ecafe"] { background: linear-gradient(145deg, #fffbeb, #fef3c7); }
.case-media[data-brand="flamingos-paradise"] { background: linear-gradient(145deg, #fff1f2, #ffe4e6); }
.case-media[data-brand="si-acepto"] { background: linear-gradient(145deg, #faf5ff, #f3e8ff); }
.case-media[data-brand="audiere"] { background: linear-gradient(145deg, #f0fdfa, #ccfbf1); }
.case-media[data-brand="guia-santor"] { background: linear-gradient(145deg, #eff6ff, #dbeafe); }
.case-media[data-brand="aid2-construction"] { background: linear-gradient(145deg, #f8fafc, #e2e8f0); }
.case-media img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: min(85%, 280px);
  max-height: 7.5rem;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(15, 23, 42, 0.08));
  transition: transform 0.35s var(--ease), filter 0.35s ease;
}
.case-card:hover .case-media img { transform: scale(1.05); filter: drop-shadow(0 6px 16px rgba(15, 23, 42, 0.12)); }
.case-media.large { min-height: 15rem; padding: 2.5rem; border-radius: var(--radius-lg); }
.case-media.large img { max-width: min(85%, 340px); max-height: 9.5rem; }

.case-body, .service-body, .price-card, .team-card, .progress-card { padding: 1.35rem; }
.case-body h2, .case-body h3, .service-body h3, .price-card h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.case-body p { margin: 0; color: var(--text-soft); }
.case-type {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.4rem;
  color: var(--accent-hover);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.case-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
}
.case-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; margin-top: 1.25rem; }
.case-actions .btn { flex: 1 1 auto; }

.case-card-teaser { display: flex; flex-direction: column; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.case-card-teaser .case-body { display: flex; flex: 1; flex-direction: column; }
.case-card-teaser .case-actions { margin-top: auto; }
.case-teaser { margin: 0 0 1.25rem !important; color: var(--text-soft); font-size: var(--fs-base); line-height: 1.65; }

#proyectos.projects-refined { border-bottom: 1px solid var(--border); }
.projects-refined .case-card { box-shadow: var(--shadow-sm); }
.projects-refined .case-media { min-height: 220px; padding: 3rem 1.5rem; }
.projects-refined .case-media img { max-height: 100px; max-width: 78%; }
.project-number { position: absolute; top: 1rem; left: 1.25rem; z-index: 2; color: var(--text-muted); font-size: var(--fs-xs); letter-spacing: 0.1em; }
.projects-refined .case-body h3 { font-size: 1.6rem; margin: 0.35rem 0 0.75rem; }
.projects-refined .case-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.project-case-link, .project-site-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: var(--tap-min);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}
.project-case-link { color: var(--accent-strong); }
.project-site-link { color: var(--text-muted); font-size: var(--fs-sm); font-weight: 500; }
.project-case-link:hover, .project-site-link:hover { color: var(--accent); }

.projects-refined .case-card:first-child { background: var(--navy-800); border-color: var(--navy-600); }
.projects-refined .case-card:first-child .case-media { background: radial-gradient(ellipse at 50% 20%, #fff8ef, #f6e9da); }
.projects-refined .case-card:first-child h3 { color: #fff; }
.projects-refined .case-card:first-child .case-type { color: var(--accent-on-dark); }
.projects-refined .case-card:first-child .case-badge { background: var(--accent-on-dark); color: var(--navy-900); }
.projects-refined .case-card:first-child .case-teaser { color: var(--text-on-dark-soft); }
.projects-refined .case-card:first-child .case-actions { border-color: var(--border-dark); }
.projects-refined .case-card:first-child .project-case-link { color: var(--accent-on-dark); }
.projects-refined .case-card:first-child .project-site-link { color: var(--text-on-dark-soft); }
.projects-refined .case-card:first-child .project-case-link:hover,
.projects-refined .case-card:first-child .project-site-link:hover { color: #fff; }

.projects-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.projects-footer p { margin: 0; color: var(--text-muted); font-size: var(--fs-base); }
.projects-footer a {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--tap);
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}
.projects-footer a:hover { color: var(--accent); }

/* ==========================================================================
   Portfolio page
   ========================================================================== */
.portfolio-filter {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin: 0 calc(var(--gutter) * -1) 2rem;
  padding: 0.25rem var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.portfolio-filter::-webkit-scrollbar { display: none; }
.filter-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.45rem;
  min-height: var(--tap-min);
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-soft);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--accent); }
.filter-btn.active { background: var(--accent-hover); color: #fff; border-color: var(--accent-hover); box-shadow: 0 4px 14px rgba(13, 148, 136, 0.28); }
.filter-count { display: inline-block; padding: 0.05rem 0.45rem; border-radius: var(--radius-pill); background: var(--bg-muted); font-size: var(--fs-xs); }
.filter-btn.active .filter-count { background: rgba(255, 255, 255, 0.22); color: #fff; }
.case-card.filter-hidden { display: none !important; }

.case-grid-portfolio { gap: 1.25rem; }
.case-grid-portfolio .case-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.case-grid-portfolio .case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(13, 148, 136, 0.4); }
.case-grid-portfolio .case-body { display: flex; flex: 1; flex-direction: column; }
.case-grid-portfolio .case-actions { margin-top: auto; padding-top: 1.25rem; }
.case-header { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.75rem; }
.case-badge-pill, .badge-progress-pill {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.case-status-live { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--live); font-size: var(--fs-xs); font-weight: 700; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
.case-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.case-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-light);
  color: var(--text-soft);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.3;
}
.case-tag-pill .tag-icon { flex-shrink: 0; color: var(--accent); }

.portfolio-progress-wrap { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.progress-header { margin-bottom: 1.5rem; }
.progress-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1.25rem; }
.progress-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 1rem;
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.progress-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(13, 148, 136, 0.3); }
.progress-media {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  padding: 0.65rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #f8fafc, #f1f5f9);
}
.progress-media img { width: 100%; height: 100%; object-fit: contain; }
.progress-badge {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--warning-bg);
  color: var(--warning-text);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.progress-info h3 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.progress-info p { margin: 0; color: var(--text-soft); font-size: var(--fs-base); }
.progress-action { grid-column: 1 / -1; }
.progress-action .btn { width: 100%; }

/* ==========================================================================
   Services (home)
   ========================================================================== */
#servicios.services-refined {
  color: var(--text-on-dark);
  background: radial-gradient(ellipse at 95% 0, rgba(13, 148, 136, 0.14), transparent 55%), var(--bg-dark-raised);
}
.services-refined h2 { color: #fff; }
.services-refined .services-intro { color: var(--text-on-dark-soft); }

.service-chooser { margin: 0 0 2rem; }
.service-chooser[hidden] { display: none; }
.service-chooser > p { margin: 0 0 0.75rem; color: var(--text-on-dark-soft); font-size: var(--fs-base); }
.service-chooser > div { display: flex; flex-direction: column; gap: 0.6rem; }
.service-chooser button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--tap);
  padding: 0.7rem 1rem;
  border: 1px solid var(--navy-600);
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--text-on-dark);
  font: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.service-chooser button:hover,
.service-chooser button[aria-pressed="true"] { background: var(--accent-on-dark); border-color: var(--accent-on-dark); color: var(--navy-900); }

.service-card { display: flex; flex-direction: column; }
.services-refined .service-card {
  border-color: var(--navy-600);
  background: var(--navy-800);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.services-refined .service-card:hover { border-color: rgba(168, 235, 216, 0.5); }
.services-refined .service-card.is-selected { border-color: var(--accent-on-dark); box-shadow: 0 0 0 2px var(--accent-on-dark); transform: translateY(-4px); }
.service-media { position: relative; overflow: hidden; margin: 0.6rem 0.6rem 0; border-radius: var(--radius); }
.service-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(16, 26, 41, 0.3), transparent 60%); }
.service-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.5s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.04); }
.service-number {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(16, 26, 41, 0.86);
  color: #fff;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
}
.services-refined .service-body { display: flex; flex: 1; flex-direction: column; }
.services-refined .service-body h3 { color: #fff; font-size: 1.45rem; }
.services-refined .service-body p { margin: 0 0 1.5rem; color: var(--text-on-dark-soft); font-size: var(--fs-base); line-height: 1.65; }
.service-detail-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-dark);
  color: var(--accent-on-dark);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}
.service-detail-link:hover { color: #fff; }
.service-detail-link > span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--navy-600); border-radius: 50%; }

.services-guidance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dark);
}
.services-guidance strong { color: #fff; font-size: 1.05rem; font-weight: 700; }
.services-guidance p { margin: 0.35rem 0 0; color: var(--text-on-dark-soft); font-size: var(--fs-base); }
.services-guidance a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--tap);
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--navy-600);
  border-radius: var(--radius-btn);
  color: var(--text-on-dark);
  font-weight: 600;
  text-decoration: none;
}
.services-guidance a:hover { background: var(--navy-700); border-color: var(--accent-on-dark); color: #fff; }

/* ==========================================================================
   Benefits
   ========================================================================== */
.benefits-refined { background: var(--bg-light); }
.benefit-open { gap: 0; }
.benefit-item { padding: 1.5rem 0; border-top: 1px solid var(--border-strong); }
.benefit-number { display: block; margin-bottom: 1rem; color: var(--accent-hover); font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.08em; }
.benefit-item h3 { max-width: 25ch; margin: 0 0 0.6rem; font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.015em; }
.benefit-item p { max-width: 38ch; margin: 0; color: var(--text-soft); line-height: 1.7; }
.benefits-refined .note { padding-top: 1.4rem; border-top: 1px solid var(--border); font-size: var(--fs-base); }

/* ==========================================================================
   Process
   ========================================================================== */
.process-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.process-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.process-list.compact li { align-items: center; padding: 0.85rem 1rem; }
.process-list h3 { margin: 0 0 0.35rem; font-size: 1.2rem; }
.process-list p { margin: 0; color: var(--text-soft); }
.process-step { color: var(--accent-hover); font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }

.process-refined { background: var(--bg-muted); }
.process-refined .process-timeline { gap: 1rem; margin-top: 1rem; }
.process-refined .process-timeline li {
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  padding: 1.4rem;
  border-color: var(--slate-200);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.process-refined .process-timeline li:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.process-refined .process-step { color: var(--accent-hover); font-size: 2rem; font-weight: 400; line-height: 1; letter-spacing: -0.05em; }
.process-refined .process-list p { font-size: var(--fs-base); line-height: 1.7; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-refined { background: var(--bg-dark-raised); }
.faq-grid { display: grid; gap: 2rem; }
.faq-refined .section-head { display: block; margin-bottom: 0; }
.faq-refined .section-head > p { margin-top: 1rem; }
.faq-contact {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--tap);
  margin-top: 0.75rem;
  color: var(--accent-on-dark);
  font-weight: 600;
  text-decoration: none;
}
.faq-contact:hover { color: #fff; }
.faq-list { display: grid; align-content: start; }
.faq-item { padding: 0.5rem 0; border-bottom: 1px solid var(--navy-600); }
.faq-item:first-child { border-top: 1px solid var(--navy-600); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 0.35rem 0;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  height: 32px;
  border: 1px solid var(--navy-600);
  border-radius: 50%;
  color: var(--accent-on-dark);
  font-size: 1.25rem;
  font-weight: 400;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); border-color: var(--accent-on-dark); }
.faq-item p { max-width: 65ch; margin: 0 0 1rem; padding-right: 2.5rem; color: var(--text-on-dark-soft); line-height: 1.7; }
.faq-item[open] p { animation: answer-in 0.3s ease both; }

/* ==========================================================================
   Team
   ========================================================================== */
.team-refined { background: var(--bg-light); }
.team-card { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 1rem; padding: 1.35rem; border-radius: 14px; }
.team-card img { width: 72px; height: 72px; border-radius: 50%; background: var(--bg-muted); }
.team-card h3 { margin: 0 0 0.15rem; font-size: 1.2rem; }
.team-card p { margin: 0; color: var(--text-soft); }
.team-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem !important; }
.team-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: 0 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
}
.team-links a:hover { border-color: var(--accent); color: var(--accent-strong); }

/* ==========================================================================
   Contact section & form
   ========================================================================== */
.contact-section {
  padding-block: var(--section-y);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(13, 148, 136, 0.2), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(37, 99, 235, 0.1), transparent 50%),
    var(--bg-dark);
}
.contact-grid { display: grid; gap: 2rem; align-items: start; }
.contact-intro { color: var(--text-on-dark); }
.contact-intro h2 { max-width: 14ch; margin-bottom: 0.9rem; color: #fff; }
.contact-lead { max-width: 39ch; margin: 0 0 1.5rem; color: var(--text-on-dark-soft); font-size: var(--fs-lead); line-height: 1.75; }
.contact-intro .btn-whatsapp { width: 100%; }
.contact-phone { display: grid; gap: 0.15rem; margin: 0 0 1.5rem; }
.contact-phone-label { color: var(--text-on-dark-soft); font-size: var(--fs-sm); }
.contact-phone a { display: inline-flex; align-items: center; min-height: var(--tap-min); color: #fff; font-size: 1.3rem; font-weight: 700; text-decoration: none; }
.contact-phone a:hover { color: var(--accent-on-dark); }
.contact-assurances { display: grid; gap: 0.6rem; margin: 0; padding: 0; color: var(--text-on-dark-soft); font-size: var(--fs-base); list-style: none; }
.contact-assurances li { display: flex; align-items: flex-start; gap: 0.65rem; }
.contact-assurances li::before {
  content: "✓";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--accent-soft-dark);
  color: var(--accent-on-dark);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.35rem 1.15rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.contact-form-head { display: grid; gap: 0.25rem; }
.contact-form-title { margin: 0; color: var(--text); font-size: 1.35rem; letter-spacing: -0.015em; }
.contact-form-hint { margin: 0; color: var(--text-muted); font-size: var(--fs-base); }
.form-row { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label, .contact-means legend { color: var(--text); font-size: 1rem; font-weight: 600; }
.req-note { color: var(--text-muted); font-size: var(--fs-sm); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-btn);
  background: var(--bg-light);
  color: var(--text);
  font: inherit;
  font-size: max(16px, 1rem);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(13, 148, 136, 0.5); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field [aria-invalid="true"] { border-color: var(--error-field); }
.field textarea { min-height: 104px; resize: vertical; }
.field-error { margin: 0; color: var(--error-field); font-size: var(--fs-sm); }
.contact-means {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-light);
}
.contact-means legend { float: none; width: auto; padding: 0 0.25rem; }
.contact-means .field input { background: #fff; }
.schedule-block {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border: 1px dashed rgba(13, 148, 136, 0.4);
  border-radius: var(--radius);
  background: rgba(13, 148, 136, 0.05);
}
.check-row { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 0.75rem; min-height: var(--tap-min); font-weight: 500; cursor: pointer; }
.check-row input { width: 1.35rem; height: 1.35rem; margin-top: 0.1rem; accent-color: var(--accent); }
.check-row strong { display: block; color: var(--text); font-size: 1rem; }
.check-row small { display: block; margin-top: 0.2rem; color: var(--text-muted); font-size: var(--fs-base); line-height: 1.45; }
.schedule-fields { display: grid; gap: 0.75rem; padding-top: 0.15rem; }
.schedule-fields[hidden] { display: none !important; }
.form-footer { display: grid; gap: 0.85rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.form-privacy { margin: 0; color: var(--text-muted); font-size: var(--fs-base); }
.form-actions { display: flex; }
.form-actions .btn { width: 100%; }
.form-status { padding: 0.75rem 0.9rem; border-radius: var(--radius-btn); font-weight: 600; }
.form-status.is-success { background: var(--success-bg); color: var(--success-text); }
.form-status.is-error { background: var(--error-bg); color: var(--error-text); }
.form-status.is-pending { background: var(--accent-soft); color: var(--accent-strong); }

/* ==========================================================================
   Detail pages (case, service, privacy)
   ========================================================================== */
.split, .prose-grid { display: grid; gap: 2rem; }
.split > div > h2:first-child,
.prose-grid article > h2:first-child { margin-top: 0; }
.split h2, .prose-grid h2, .prose h2 {
  margin: 2rem 0 0.65rem;
  font-size: clamp(1.4rem, 4vw, 1.75rem) !important;
  letter-spacing: -0.02em;
}
.split p, .prose-grid p, .prose p { color: var(--text-soft); line-height: 1.75; }
.prose-grid article {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.tick-list, .plain-list { margin: 0.75rem 0 0; padding: 0; list-style: none; }
.tick-list li, .plain-list li { position: relative; margin-bottom: 0.6rem; padding-left: 1.85rem; color: var(--text-soft); line-height: 1.55; }
.tick-list li::before {
  content: "✓";
  position: absolute;
  top: 0.1rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.plain-list li::before {
  content: "–";
  position: absolute;
  left: 0.35rem;
  color: var(--text-muted);
}
.text-link { font-weight: 600; }

.prose { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.prose > p:first-child { margin-top: 0; }

/* ==========================================================================
   Cloud pricing
   ========================================================================== */
.callout {
  margin-bottom: 1.75rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}
.callout p { margin: 0; color: var(--text-soft); }
.pricing-grid { align-items: stretch; }
.price-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.price-card:hover { border-color: rgba(13, 148, 136, 0.4); box-shadow: var(--shadow); }
.price-card > p { color: var(--text-soft); }
.price-card h3 { margin: 1.25rem 0 0; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.price-card .btn { width: 100%; margin-top: auto; }
.price-card .plain-list { margin-bottom: 1.5rem; }
.price { margin: 0.35rem 0; color: var(--text); font-size: 3rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.price span { color: var(--text-muted); font-size: 1rem; font-weight: 500; letter-spacing: 0; }

/* ==========================================================================
   CTA band & footer
   ========================================================================== */
.cta-band { display: grid; justify-items: center; gap: 1.25rem; text-align: center; }
.cta-band h2 { margin: 0; }

.footer { padding: 3.5rem 0 1.5rem; background: var(--bg-darker); color: var(--text-on-dark-soft); }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand { margin: 0 0 0.5rem; color: #fff; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.04em; }
.footer-grid p { margin: 0 0 0.25rem; }
.footer-label { margin: 0 0 0.35rem; color: #fff; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-links { display: grid; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; align-items: center; min-height: var(--tap-min); color: var(--text-on-dark-soft); text-decoration: none; }
.footer-links a:hover { color: var(--accent-on-dark); }
.footer-bottom { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border-dark); color: var(--text-on-dark-muted); font-size: var(--fs-sm); }
.footer-bottom p { margin: 0; }

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */
.float-wa-wrap {
  position: fixed;
  right: max(0.85rem, env(safe-area-inset-right));
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  z-index: 40;
  transition: opacity 0.2s ease;
}
.float-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 1.15rem;
  border-radius: var(--radius-pill);
  background: var(--whatsapp);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(7, 12, 22, 0.3);
}
.float-wa:hover { background: var(--whatsapp-hover); color: #fff; }
body.menu-open .float-wa-wrap,
body.keyboard-open .float-wa-wrap,
body.contact-visible .float-wa-wrap,
body:has(#contact-form:focus-within) .float-wa-wrap { opacity: 0; visibility: hidden; pointer-events: none; }

/* ==========================================================================
   Progressive enhancement & motion
   ========================================================================== */
.enhance-in { opacity: 1; transform: none; }
html.js-ready .enhance-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s ease, transform 0.65s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js-ready .enhance-in.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  html.motion-ready .entrance-copy > * { animation: entrance 0.8s var(--ease) both; }
  html.motion-ready .entrance-copy > :nth-child(2) { animation-delay: 0.08s; }
  html.motion-ready .entrance-copy > :nth-child(3) { animation-delay: 0.16s; }
  html.motion-ready .entrance-copy > :nth-child(4) { animation-delay: 0.24s; }
  html.motion-ready .entrance-copy > :nth-child(5) { animation-delay: 0.32s; }
  html.motion-ready .entrance-showcase { animation: entrance 1s 0.2s var(--ease) both; }
  html.motion-ready .operations-flow li { animation: flow-arrive 0.8s 1s ease both; }
  html.motion-ready .operations-flow li:nth-child(2) { animation-delay: 1.35s; }
  html.motion-ready .operations-flow li:nth-child(3) { animation-delay: 1.7s; }
}
@keyframes entrance { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes flow-arrive { from { opacity: 0.35; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes answer-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html.js-ready .enhance-in { opacity: 1; transform: none; }
  .services-refined .service-card.is-selected,
  .case-card-teaser:hover,
  .case-grid-portfolio .case-card:hover { transform: none; }
}

/* ==========================================================================
   Breakpoints (mobile-first)
   ========================================================================== */
@media (max-width: 359px) {
  :root { --gutter: 1rem; }
  .brand-text { font-size: 1rem; }
}

@media (max-width: 479px) {
  .operations-flow { grid-template-columns: 1fr; }
  .operations-flow li { flex-direction: row; align-items: center; gap: 0.75rem; }
  .flow-icon { margin-bottom: 0; }
}

@media (min-width: 480px) {
  .hero-actions .btn,
  .page-hero .hero-actions .btn,
  .contact-intro .btn-whatsapp { width: auto; }
  .operations-card { padding: 1.5rem; }
  .team-card { grid-template-columns: 88px 1fr; gap: 1.25rem; padding: 1.75rem; }
  .team-card img { width: 88px; height: 88px; }
  .progress-card { grid-template-columns: 96px 1fr auto; padding: 1.25rem 1.4rem; }
  .progress-media { width: 96px; height: 96px; }
  .progress-action { grid-column: auto; }
  .progress-action .btn { width: auto; }
}

@media (min-width: 640px) {
  :root { --gutter: 1.5rem; }
  .nav-actions { gap: 0.5rem; }
  .nav-actions .nav-cta { display: inline-flex; }
  .service-chooser > div { flex-direction: row; flex-wrap: wrap; }
  .hero-capabilities { grid-template-columns: repeat(3, 1fr); column-gap: 1.5rem; }
  .hero-capabilities p { grid-column: 1 / -1; }
  .contact-form { padding: 1.75rem 1.6rem; }
  .form-row-2 { grid-template-columns: 1fr 1fr; }
  .form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .form-actions .btn { width: auto; min-width: 12rem; }
  .prose, .prose-grid article { padding: 2rem; }
}

@media (min-width: 768px) {
  .hero-modern { padding-top: 4.5rem; }
  .page-hero { padding: 3.5rem 0 4rem; }
  .portfolio-filter { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; }
  .case-grid-portfolio, .progress-grid, .pricing-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid-portfolio { gap: 1.75rem; }
  .case-grid:not(.case-grid-home):not(.case-grid-portfolio) { grid-template-columns: repeat(2, 1fr); }
  .projects-refined .case-card,
  .services-refined .service-card { display: grid; grid-template-columns: 1fr 1.2fr; }
  .services-refined .service-media { margin: 0.6rem; }
  .services-refined .service-media img { height: 100%; }
  .benefit-open { grid-template-columns: repeat(3, 1fr); gap: 0 2rem; }
  .benefit-item { border-top: 2px solid var(--accent); }
  .benefit-number { margin-bottom: 2rem; }
  .process-refined .process-timeline { grid-template-columns: repeat(2, 1fr); }
  .process-refined .process-timeline li { display: block; padding: 1.7rem; }
  .process-refined .process-step { display: block; margin-bottom: 2rem; font-size: 2.5rem; }
  .split, .prose-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  :root { --header-h: 100px; }
  .nav-links { display: flex; }
  .menu-btn { display: none; }
  .mobile-menu { display: none !important; }
  .hero-modern .hero-grid { grid-template-columns: 1.08fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
  .hero-capabilities { grid-template-columns: 1.1fr 0.85fr 1fr 1.3fr; align-items: center; margin-top: 3.5rem; }
  .hero-capabilities p { grid-column: auto; margin: 0; }
  .section-head { grid-template-columns: 1.15fr 0.85fr; align-items: end; gap: 4rem; }
  .faq-refined .section-head { display: block; }
  .projects-refined .case-grid-home { grid-template-columns: 1.15fr 1fr 1fr; }
  .projects-refined .case-card,
  .services-refined .service-card { display: flex; flex-direction: column; }
  .services-refined .service-media { margin: 0.6rem 0.6rem 0; }
  .services-refined .service-media img { height: auto; }
  #servicios.services-refined .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .case-card-teaser:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .process-refined .process-timeline { grid-template-columns: repeat(4, 1fr); }
  .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; }
  .faq-refined .section-head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 3rem; }
  .case-grid:not(.case-grid-home):not(.case-grid-portfolio) { grid-template-columns: repeat(3, 1fr); }
  .case-grid-portfolio { gap: 2rem; }
}

/* Commercial content uses the existing brand tokens. */
.hero-modern h1 { font-size: clamp(2.15rem, 5.1vw, 4rem); line-height: 1.12; overflow-wrap: break-word; }
.service-decisions { display: grid; gap: 2rem; }
.service-decisions article { border-top: 2px solid var(--accent-strong); padding-top: 1.5rem; }
.service-decisions h3 { margin: 0 0 0.75rem; }
.service-decisions p { color: var(--text-soft); max-width: 65ch; }
.service-decisions .decision-index { color: var(--accent-strong); font-weight: 700; margin-bottom: 0.75rem; }
@media (min-width: 768px) { .service-decisions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.case-media.case-screenshot { padding: 0; min-height: 0; aspect-ratio: 1265 / 712; }
.case-media.case-screenshot::before { display: none; }
.case-media.case-screenshot img { width: 100%; max-width: none; height: 100%; max-height: none; object-fit: cover; filter: none; }
.case-media.case-screenshot .project-number { background: var(--surface); color: var(--text); padding: 0.25rem 0.5rem; border-radius: var(--radius-sm); }
.case-figure { margin: 0; align-self: start; }
.case-gallery-link { display: block; border-radius: var(--radius); border: 1px solid var(--border-strong); overflow: hidden; }
.case-gallery-link img { display: block; width: 100%; height: auto; }
.case-figure figcaption { margin-top: 1rem; font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.6; }
.case-logo { width: auto; max-width: 160px; height: 64px; object-fit: contain; margin-bottom: 1rem; }
.hero-product { display: block; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 1rem; }
.hero-product img { display: block; width: 100%; height: auto; }

/* Product presentation shared by the home, services and case studies. */
:root { color-scheme: dark; --space-panel: clamp(1.25rem, 3vw, 2.5rem); }
body { background: var(--bg-dark); }
.skip-link, .skip-link:focus { color: var(--navy-900); }
.section { background-color: var(--bg-dark); }
.section h2, .section-head h2 { font-weight: 600; line-height: 1.15; }
.section h3 { font-weight: 600; }
.section-kicker, .projects-kicker, .services-kicker { font-size: 0.8125rem; letter-spacing: 0.1em; }
.site-header { padding: 12px var(--gutter) 0; background: var(--bg-dark); }
.nav { max-width: 1280px; margin-inline: auto; background: rgba(16, 29, 44, 0.96); border: 1px solid var(--border); border-radius: 16px; }
.nav-inner { min-height: 64px; }
.nav-links { gap: 1.1rem; }
.nav-links a { font-size: 0.9375rem; }
.language-switch { gap: 0; padding: 0; border: 0; background: none; }
.language-switch a { min-width: 36px; min-height: 44px; padding: 0.4rem; border-radius: 10px; font-size: 0.8125rem; }
.language-switch a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.nav-cta { font-size: 0.875rem; font-weight: 600; }
.menu-btn { border-radius: 10px; }
.mobile-menu { top: calc(100% + 8px); height: min(70dvh, 520px); border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.hero-technology { padding-top: clamp(3rem, 6vw, 5.5rem); background: radial-gradient(ellipse at 85% 35%, rgba(70, 125, 116, 0.14), transparent 55%), var(--bg-dark); }
.hero-technology::before { opacity: 0.35; }
.hero-technology h1 { font-size: clamp(2.25rem, 4.65vw, 4.25rem); line-height: 1.08; font-weight: 600; letter-spacing: -0.04em; }
.hero-technology .hero-lead { max-width: 42ch; font-size: 1.125rem; }
.hero-location { font-size: 0.9375rem; }
.hero-demonstration { min-width: 0; padding: 1.25rem; border: 1px solid var(--border); border-radius: 24px; background: linear-gradient(140deg, rgba(175, 232, 212, 0.08), rgba(22, 38, 56, 0.5)); box-shadow: 0 25px 70px rgba(0, 0, 0, 0.18); }
.hero-demonstration > .text-link { display: flex; justify-content: space-between; min-height: 44px; margin-top: 0.75rem; align-items: center; text-decoration: none; }
.hero-capabilities { margin-top: 3rem; padding-block: 1.5rem; }
.btn { font-weight: 600; }
.btn-primary { --btn-fg: var(--navy-900); box-shadow: none; }
.product-demo { position: relative; min-width: 0; margin: 0; }
.product-window, .case-gallery-link { overflow: hidden; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--bg-dark-raised); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18); }
.product-window-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 38px; padding: 0.5rem 0.85rem; border-bottom: 1px solid var(--border); color: var(--text-muted); background: var(--bg-dark-raised); font-size: 0.75rem; line-height: 1.2; }
.window-dots { display: flex; gap: 4px; }
.window-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--navy-600); }
.window-mark { color: var(--accent); }
.product-window img { display: block; width: 100%; height: auto; }
.product-image-link { display: block; }
.product-image-link:focus-visible { outline-offset: -4px; }
.product-service:nth-child(2) .product-demo { max-width: 520px; margin-inline: auto; }
.case-detail-gallery { display: grid; gap: 2rem; align-items: start; }
.product-demo figcaption { max-width: 65ch; margin-top: 0.85rem; color: var(--text-muted); font-size: 0.8125rem; line-height: 1.6; }
.product-demo.has-mobile { padding: 0 1.5rem 2.75rem 0; }
.product-demo.has-mobile figcaption { max-width: 65%; }
.product-mobile { position: absolute; right: 0; bottom: 0; width: 26%; overflow: hidden; border: 5px solid #203347; border-radius: 20px; background: var(--surface); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3); }
.product-mobile img { display: block; width: 100%; height: auto; }
#servicios.services-technology { background: var(--bg-dark); }
.services-technology .section-head { margin-bottom: 2rem; }
.product-services { display: grid; gap: 1.5rem; }
.product-service { display: grid; gap: 2rem; padding: var(--space-panel); border: 1px solid var(--border); border-radius: 20px; background: radial-gradient(ellipse at 90% 0, rgba(175, 232, 212, 0.045), transparent 65%), var(--surface); }
.product-service.is-selected { border-color: var(--accent); }
.product-service-copy, .product-service-visual { min-width: 0; }
.product-service-copy h3 { max-width: 22ch; margin: 0 0 1rem; font-size: clamp(1.7rem, 2.7vw, 2.25rem); line-height: 1.15; letter-spacing: -0.025em; }
.product-service-copy > p:not(.section-kicker) { color: var(--text-muted); max-width: 44ch; }
.product-service-copy .tick-list { margin-block: 1.5rem; }
.product-service-copy .tick-list li { font-size: 1rem; }
.product-service-copy .btn { justify-content: space-between; width: 100%; font-size: 0.9375rem; }
.service-evidence-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; margin-top: 1rem; border-top: 1px solid var(--border); }
.service-evidence-links a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: var(--tap-min); color: var(--accent); font-size: 0.9375rem; text-decoration: none; }
.service-evidence-links a:last-child { color: var(--text-muted); }
.service-evidence-links a:hover { color: var(--text); }
.portfolio-invitation { padding-block: 2rem; }
.portfolio-invitation-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; border-block: 1px solid var(--border); padding-block: 2rem; }
.portfolio-invitation h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.portfolio-invitation p:not(.section-kicker) { margin: 0; color: var(--text-muted); }
.service-chooser button { border-color: var(--border-strong); }
.service-chooser button[aria-pressed="true"] { background: var(--accent); color: var(--navy-900); }
.services-guidance a { border-color: var(--border-strong); }
.projects-refined .case-card:first-child .case-media { background: var(--surface); }
.case-media.case-screenshot { display: block; aspect-ratio: auto; border-bottom: 1px solid var(--border); }
.case-media.case-screenshot img { width: 100%; height: auto; object-fit: contain; max-width: none; max-height: none; transform: none; }
.case-card:hover .case-media.case-screenshot img { transform: none; filter: none; }
.case-media:not(.case-screenshot) { background: #eef3f4; }
.case-gallery-link:hover { border-color: var(--accent); }
.case-gallery-link { text-decoration: none; }
.case-logo { padding: 0.6rem; border-radius: 10px; background: #f3f7fa; }
.case-header-technology h1 { font-weight: 600; font-size: clamp(2.5rem, 6vw, 4.25rem); overflow-wrap: anywhere; }
.case-header-technology .case-type { color: var(--accent); }
.case-story { display: grid; gap: 3rem; }
.case-story .case-brief { display: grid; gap: 2rem; }
.case-brief > div { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.case-brief p { color: var(--text-muted); }
.delivery-evidence { display: grid; align-items: center; gap: 2rem; }
.review-document { padding: var(--space-panel); border: 1px solid var(--border-strong); border-radius: 20px; background: linear-gradient(140deg, var(--bg-dark-raised), var(--navy-800)); }
.review-document-head { display: flex; gap: 0.75rem; align-items: center; font-weight: 600; }
.review-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.review-document ul { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.review-document li { padding: 0.85rem 0; border-bottom: 1px solid var(--border); color: var(--text-soft); }
.review-document > p { margin: 1.25rem 0 0; color: var(--text-muted); font-size: 0.8125rem; }
.delivery-evidence > div > p { color: var(--text-muted); max-width: 52ch; }
.process-refined .process-timeline { gap: 0; }
.process-refined .process-timeline li { position: relative; border: 0; border-left: 1px solid var(--border-strong); border-radius: 0; background: transparent; padding: 0 0 2rem 1.5rem; box-shadow: none; }
.process-refined .process-timeline li::before { content: ''; position: absolute; left: -5px; top: 0.5rem; width: 9px; height: 9px; border: 2px solid var(--accent); border-radius: 50%; background: var(--bg-dark); }
.process-refined .process-step { font-size: 0.875rem; line-height: 1.8; font-weight: 600; }
.team-card { padding: 1.5rem; border-radius: 20px; background: linear-gradient(140deg, var(--surface), var(--bg-dark)); }
.team-card img { width: 88px; height: 88px; border: 1px solid var(--border-strong); }
.team-refined .team-card { grid-template-columns: 96px minmax(0, 1fr); gap: 1.25rem; }
.team-refined .team-card img { width: 96px; height: 96px; border-radius: 16px; }
.team-links a { border-color: var(--border); }
.faq-refined, .contact-section, .process-refined { background: var(--bg-dark); }
.faq-item { border-color: var(--border); }
.contact-form { background: var(--surface); border-color: var(--border-strong); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15); }
.contact-means .field input, .field input:focus, .field select:focus, .field textarea:focus { background: var(--navy-800); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); opacity: 1; }
.field [aria-invalid="true"] { box-shadow: 0 0 0 1px var(--error-field); }
.contact-means { background: var(--bg-dark); }
.filter-btn.active { color: var(--navy-900); background: var(--accent); border-color: var(--accent); }
.filter-btn .filter-count { color: var(--text); }
.filter-btn.active .filter-count { color: var(--navy-900); background: rgba(8, 15, 25, 0.1); }
.case-status-live { color: var(--accent); }
.float-wa { width: 52px; min-height: 52px; padding: 0; border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.float-wa span { display: none; }
.service-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.service-hero-grid > div { min-width: 0; }
.service-hero-grid h1 { font-size: clamp(2.25rem, 4.3vw, 3.75rem); font-weight: 600; line-height: 1.08; overflow-wrap: anywhere; }
.service-information { display: grid; gap: 1.5rem; }
.service-information > article { padding: var(--space-panel); border: 1px solid var(--border); border-radius: 20px; background: var(--surface); }
.service-information h2 { font-size: 1.6rem; }
.service-information h3 { font-size: 1.25rem; margin-top: 1.75rem; }
.service-information p { color: var(--text-muted); }
.service-information .process-list li { border: 0; padding: 0.5rem 0; }
.service-decisions article { border-top: 1px solid var(--border-strong); }
@media (min-width: 768px) {
  .delivery-evidence, .case-story .case-brief, .service-information { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-detail-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-terms { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .nav-inner { min-height: 74px; }
  .hero-technology .hero-grid, .service-hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 2.5rem; align-items: center; }
  .hero-technology .hero-demonstration { margin-top: 1rem; }
  .product-service { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 3rem; align-items: center; }
  .product-service:nth-child(2) { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .product-service:nth-child(2) .product-service-visual { grid-column: 1; grid-row: 1; }
  .product-service:nth-child(2) .product-service-copy { grid-column: 2; }
  .product-service-copy .btn { width: auto; }
  .process-refined .process-timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .process-refined .process-timeline li { border: 0; border-top: 1px solid var(--border-strong); padding: 1.75rem 1.75rem 0 0; }
  .process-refined .process-timeline li::before { left: 0; top: -5px; }
  .process-refined .process-step { margin-bottom: 1rem; }
  .team-card { padding: 2rem; }
  .team-refined .team-card { grid-template-columns: 112px minmax(0, 1fr); }
  .team-refined .team-card img { width: 112px; height: 112px; }
}
