/* ==========================================================================
   DMC MEDIA — Design System
   Digital. Media. Code.
   ========================================================================== */

/* -------------------- Fonts -------------------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* -------------------- Variables -------------------- */
:root {
  /* Colors */
  --bg: #08090b;
  --bg-secondary: #0e1013;
  --surface: #14171b;
  --surface-2: #1a1e23;
  --text: #f4f5f7;
  --text-muted: #9aa1ac;
  --text-faint: #656d78;
  --primary: #3d6bff;
  --primary-light: #6b8bff;
  --secondary: #7a5cff;
  --border: #24282f;
  --border-light: #2f343c;
  --glow: rgba(61, 107, 255, 0.35);
  --glow-violet: rgba(122, 92, 255, 0.28);
  --success: #33d17a;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --grad-surface: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);

  /* Type */
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  /* Layout */
  --container-max: 1240px;
  --container-pad: 1.5rem;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.18s;
  --dur: 0.4s;
  --dur-slow: 0.7s;

  color-scheme: dark;
}

@media (min-width: 768px) {
  :root { --container-pad: 2.5rem; }
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

@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;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

::selection { background: var(--primary); color: #fff; }

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* -------------------- Layout -------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-2xl);
}

@media (min-width: 900px) {
  .section { padding-block: var(--space-3xl); }
}

.section-tight { padding-block: var(--space-xl); }

.section-alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.grid {
  display: grid;
  gap: var(--space-md);
}
.grid > * { min-width: 0; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* -------------------- Typography -------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: var(--space-sm);
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--glow);
}

h1, .h1 {
  font-size: clamp(2.4rem, 5.5vw + 1rem, 4.6rem);
  color: var(--text);
}

h2, .h2 {
  font-size: clamp(1.9rem, 3.2vw + 1rem, 3rem);
  color: var(--text);
}

h3, .h3 {
  font-size: clamp(1.3rem, 1.4vw + 1rem, 1.6rem);
  color: var(--text);
}

.lead {
  font-size: clamp(1.05rem, 0.6vw + 1rem, 1.25rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 46ch;
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-xl);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.text-muted { color: var(--text-muted); }
.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 24px -6px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px -6px var(--glow); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-light);
}
.btn-outline:hover { border-color: var(--primary-light); background: rgba(61,107,255,0.08); transform: translateY(-2px); }

.btn-ghost {
  color: var(--text-muted);
  padding: 0.9rem 1rem;
}
.btn-ghost:hover { color: var(--text); }

.btn-sm { padding: 0.65rem 1.2rem; font-size: 0.85rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

/* -------------------- Navbar -------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: 1.1rem;
  background: rgba(8, 9, 11, 0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), padding var(--dur) var(--ease), background var(--dur) var(--ease);
}
.navbar.is-scrolled {
  border-bottom-color: var(--border);
  padding-block: 0.75rem;
  background: rgba(8, 9, 11, 0.9);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-text span {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.63rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-lg);
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding-block: 0.25rem;
  transition: color var(--dur-fast) var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
}

.nav-cta { display: none; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) var(--container-pad);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 1.4rem; margin-bottom: var(--space-xl); }
.mobile-menu ul a { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--text); }
.mobile-menu ul a[aria-current="page"] { color: var(--primary-light); }
.mobile-menu .btn { align-self: stretch; flex-shrink: 0; }

@media (min-width: 960px) {
  .mobile-menu { display: none; }
}

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  padding-block: var(--space-2xl) var(--space-xl);
  overflow: hidden;
}
@media (min-width: 900px) { .hero { padding-block: var(--space-3xl) var(--space-2xl); } }

.hero-bg {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 140%;
  background:
    radial-gradient(60% 50% at 18% 0%, var(--glow) 0%, transparent 60%),
    radial-gradient(45% 40% at 90% 20%, var(--glow-violet) 0%, transparent 60%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-lg); }
}

.hero-content h1 {
  margin-block: var(--space-sm) var(--space-md);
  font-size: clamp(2.6rem, 6.2vw + 1rem, 5.2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hero-content .lead { max-width: 52ch; margin-bottom: var(--space-lg); }

.hero-visual { position: relative; }

/* -------------------- Node graphic (hero visual) --------------------
   Shared "system/diagnostic" panel — reused verbatim on / and /checklist-web/.
   Abstract enough to read as "tech company" (home) or "análisis" (checklist).
------------------------------------------------------------------------ */
.node-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  overflow: hidden;
  animation: panel-float 7s ease-in-out infinite;
}
.node-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-surface);
  pointer-events: none;
  z-index: 1;
}
.node-panel::after {
  content: '';
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(38% 34% at 22% 20%, var(--glow) 0%, transparent 70%),
    radial-gradient(34% 30% at 82% 78%, var(--glow-violet) 0%, transparent 70%);
  opacity: 0.7;
  animation: glow-breathe 6s ease-in-out infinite;
  pointer-events: none;
}

.node-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 2;
  opacity: 0.5;
  pointer-events: none;
}
.node-corner.tl { top: var(--space-md); left: var(--space-md); border-top: 1.5px solid var(--primary-light); border-left: 1.5px solid var(--primary-light); border-radius: 4px 0 0 0; }
.node-corner.tr { top: var(--space-md); right: var(--space-md); border-top: 1.5px solid var(--primary-light); border-right: 1.5px solid var(--primary-light); border-radius: 0 4px 0 0; }
.node-corner.bl { bottom: var(--space-md); left: var(--space-md); border-bottom: 1.5px solid var(--primary-light); border-left: 1.5px solid var(--primary-light); border-radius: 0 0 0 4px; }
.node-corner.br { bottom: var(--space-md); right: var(--space-md); border-bottom: 1.5px solid var(--primary-light); border-right: 1.5px solid var(--primary-light); border-radius: 0 0 4px 0; }

.node-scanline {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 12%;
  height: 1px;
  z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(107,139,255,0.6), transparent);
  animation: scan 5.5s ease-in-out infinite;
  pointer-events: none;
}

.node-svg { width: 100%; height: auto; position: relative; z-index: 1; }

.node-svg .link {
  stroke: url(#lineGrad);
  stroke-width: 1.2;
  stroke-dasharray: 3 6;
  animation: dash 16s linear infinite;
}
.node-svg .link-faint { stroke-opacity: 0.4; stroke-width: 1; }

.node-svg .module rect:first-child { fill: #12162a; stroke: var(--primary); stroke-opacity: 0.35; }
.node-svg .module-dot { fill: var(--primary-light); }
.node-svg .module-bar { fill: rgba(244, 245, 247, 0.16); }

.node-svg .core-glow { fill: url(#coreGlow); animation: core-breathe 3.6s ease-in-out infinite; }
.node-svg .core-dot { fill: var(--primary-light); }
.node-svg .core-ring {
  fill: none;
  stroke: var(--primary-light);
  stroke-width: 1.2;
  transform-origin: 200px 168px;
  animation: ring-pulse 3.6s ease-out infinite;
}
.node-svg .core-ring.r2 { animation-delay: 1.8s; }

.node-svg circle.pulse {
  fill: var(--primary-light);
  animation: pulse 3.2s ease-in-out infinite;
  transform-origin: center;
}
.node-svg .n2 { animation-delay: 0.6s; }
.node-svg .n3 { animation-delay: 1.2s; }
.node-svg .n4 { animation-delay: 1.8s; }

@keyframes pulse {
  0%, 100% { opacity: 0.5; r: 3; }
  50% { opacity: 1; r: 5; }
}
@keyframes dash {
  to { stroke-dashoffset: -180; }
}
@keyframes ring-pulse {
  0% { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.2); }
}
@keyframes core-breathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@keyframes panel-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.9; }
}
@keyframes scan {
  0% { top: 10%; opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { top: 88%; opacity: 0; }
}

/* -------------------- Cards -------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.card-index {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(61, 107, 255, 0.1);
  border: 1px solid rgba(61, 107, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--primary-light);
}
.card-icon svg { width: 22px; height: 22px; }

.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.card ul {
  margin-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.card ul li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
}
.card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-light);
}

/* Service block (big 4-area layout) */
.service-block {
  display: grid;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
}
.service-block:last-child { border-bottom: 1px solid var(--border); }
@media (min-width: 800px) {
  .service-block { grid-template-columns: 90px 1fr 1fr; gap: var(--space-lg); align-items: start; }
}
.service-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 0.06em;
}
.service-block h3 { margin-bottom: 0.7rem; }
.service-block p.text-muted { margin-bottom: var(--space-sm); max-width: 48ch; }
.service-block ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1.2rem;
}
.service-block ul li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}
.service-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary-light);
}

/* -------------------- ALICIA ONE section -------------------- */
.alicia-section {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #0c1122 0%, #131327 55%, #0c1122 100%);
  border: 1px solid var(--border-light);
  padding: var(--space-xl) var(--space-lg);
  overflow: hidden;
}
.alicia-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 60% at 85% 10%, var(--glow-violet) 0%, transparent 70%);
  pointer-events: none;
}
@media (min-width: 900px) { .alicia-section { padding: var(--space-2xl); } }

.alicia-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}
@media (min-width: 1024px) {
  .alicia-grid { grid-template-columns: 1fr 0.8fr; }
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(122, 92, 255, 0.12);
  border: 1px solid rgba(122, 92, 255, 0.35);
  color: #b7a6ff;
  margin-bottom: var(--space-md);
}

.alicia-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* -------------------- Tech-for-business section -------------------- */
.pill-grid {
  display: grid;
  gap: var(--space-sm);
}
@media (min-width: 700px) { .pill-grid { grid-template-columns: repeat(2, 1fr); } }
.pill-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.pill-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary-light);
  flex-shrink: 0;
}

/* -------------------- Projects -------------------- */
.project-card {
  display: grid;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
@media (min-width: 860px) { .project-card { grid-template-columns: 1fr 1fr; } }

.project-media {
  position: relative;
  min-height: 240px;
  background: linear-gradient(150deg, #0e1330 0%, #171438 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.project-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--space-md); }
.project-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}
.project-body h3 { margin-bottom: 0.7rem; }
.project-body p { color: var(--text-muted); margin-bottom: var(--space-md); }

.project-placeholder {
  text-align: center;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-md);
  color: var(--text-faint);
  font-size: 0.9rem;
}

/* -------------------- Method (steps) -------------------- */
.steps {
  display: grid;
  gap: 0;
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); gap: var(--space-md); } }

.step {
  padding-block: var(--space-md);
  border-top: 1px solid var(--border);
  position: relative;
}
@media (min-width: 900px) {
  .step { border-top: none; padding-top: 0; }
  .step::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 2px;
    background: var(--border);
  }
  .step.active::before { background: var(--grad-primary); }
}
.step-num {
  font-family: var(--font-display);
  color: var(--text-faint);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  display: block;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p { color: var(--text-muted); font-size: 0.88rem; }

/* -------------------- Recurring services (Care/Growth/AI) -------------------- */
.care-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}
.care-card .eyebrow { color: var(--text); font-family: var(--font-display); }
.care-card .eyebrow::before { background: var(--primary-light); }

/* -------------------- Philosophy -------------------- */
.philosophy {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
}
.philosophy .h2 { margin-bottom: var(--space-md); }
.philosophy .quote-line { display: block; }
.philosophy .quote-line + .quote-line { color: var(--text-muted); font-weight: 400; }

/* -------------------- Final CTA -------------------- */
.cta-final {
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border-light);
  padding: var(--space-2xl) var(--space-lg);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, var(--glow) 0%, transparent 70%);
  pointer-events: none;
}
.cta-final > * { position: relative; z-index: 1; }
.cta-final h2 { margin-bottom: var(--space-sm); }
.cta-final .lead { margin-inline: auto; margin-bottom: var(--space-lg); text-align: center; }
.cta-final .btn-row { justify-content: center; }

/* -------------------- Footer -------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--space-xl) var(--space-lg);
}
.footer-top {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
@media (min-width: 760px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-brand .logo { margin-bottom: var(--space-sm); }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 32ch; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-sm);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; transition: color var(--dur-fast) var(--ease); }
.footer-col a:hover { color: var(--text); }

.social-row { display: flex; gap: 0.7rem; margin-top: var(--space-sm); }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.social-row a:hover { border-color: var(--primary-light); color: var(--primary-light); }
.social-row svg { width: 16px; height: 16px; }

.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-faint);
}
.footer-bottom .legal-links { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--text-muted); }

/* -------------------- Page header (internal pages) -------------------- */
.page-header {
  padding-block: var(--space-xl) var(--space-lg);
  position: relative;
}
.page-header .eyebrow { margin-bottom: var(--space-md); }
.page-header .lead { margin-top: var(--space-md); }

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: var(--space-lg);
}
.breadcrumb a:hover { color: var(--text-muted); }

/* -------------------- Accordion -------------------- */
.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-md);
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}
.accordion-trigger .plus {
  flex-shrink: 0;
  width: 22px; height: 22px;
  position: relative;
}
.accordion-trigger .plus::before, .accordion-trigger .plus::after {
  content: '';
  position: absolute;
  background: var(--text-muted);
  transition: transform var(--dur) var(--ease);
}
.accordion-trigger .plus::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.accordion-trigger .plus::after { left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%); }
.accordion-trigger[aria-expanded="true"] .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.accordion-panel {
  overflow: hidden;
  height: 0;
  transition: height var(--dur) var(--ease);
}
.accordion-panel-inner {
  padding-bottom: var(--space-md);
  color: var(--text-muted);
  max-width: 62ch;
}

/* -------------------- Forms -------------------- */
.form-grid {
  display: grid;
  gap: var(--space-md);
}
@media (min-width: 700px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.field .req { color: var(--primary-light); }

.field input, .field select, .field textarea {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
  background: var(--surface-2);
}
.field textarea { resize: vertical; min-height: 130px; }

.field-hint { font-size: 0.78rem; color: var(--text-faint); }
.field-error {
  font-size: 0.8rem;
  color: #ff6b6b;
  display: none;
}
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #ff6b6b; }
.field.has-error .field-error { display: block; }

/* Honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Privacy consent checkbox */
.field-checkbox {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.65rem;
}
.field-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  margin-top: 0.15rem;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.field-checkbox input[type="checkbox"]:hover { border-color: var(--primary-light); }
.field-checkbox input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}
.field-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.field-checkbox label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}
.field-checkbox label a { color: var(--text); text-decoration: underline; }
.field-checkbox.has-error input[type="checkbox"] { border-color: #ff6b6b; }
.field-checkbox .field-error { display: none; width: 100%; margin-top: -0.2rem; }
.field-checkbox.has-error .field-error { display: block; }

.form-status {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.success { background: rgba(51,209,122,0.1); border: 1px solid rgba(51,209,122,0.35); color: #7ee7ab; }
.form-status.error { background: rgba(255,107,107,0.1); border: 1px solid rgba(255,107,107,0.35); color: #ffb3b3; }

/* Contact info strip */
.contact-info {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
@media (min-width: 960px) { .contact-info { grid-template-columns: repeat(3, 1fr); } }
.contact-info-item {
  min-width: 0;
  overflow-wrap: break-word;
}
.contact-info-item h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
}
.contact-info-item p, .contact-info-item a { color: var(--text-muted); font-size: 0.95rem; }
.contact-info-item a:hover { color: var(--text); }

/* -------------------- 404 -------------------- */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: var(--space-2xl);
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

/* -------------------- Reveal-on-scroll --------------------
   Progressive enhancement: content is fully visible by default
   (no-JS, slow connections, JS errors). The "js" class is added
   synchronously in <head>; only then do .reveal items start
   hidden, to be revealed by IntersectionObserver in main.js. */
.reveal {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   V2 — Iteración visual premium
   Tecnología percibida: grid + spotlight + microinteracciones + producto.
   Todo lo "reactivo" se activa solo con puntero fino (hover:hover, pointer:fine)
   y se apaga entero con prefers-reduced-motion.
   ========================================================================== */

/* -------------------- Navbar refinamiento -------------------- */
.navbar {
  transition: border-color var(--dur) var(--ease), padding var(--dur) var(--ease),
              background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.navbar.is-scrolled {
  box-shadow: 0 8px 30px -12px rgba(0,0,0,0.5);
}
.js .navbar.is-scrolled .logo-icon { transform: scale(0.92); }
.logo-icon { transition: transform var(--dur) var(--ease); }

/* -------------------- Hero: grid tecnológico + spotlight -------------------- */
.hero { isolation: isolate; }

.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(65% 60% at 30% 20%, #000 0%, transparent 78%);
          mask-image: radial-gradient(65% 60% at 30% 20%, #000 0%, transparent 78%);
  opacity: 0.9;
}

.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  background: radial-gradient(420px 420px at var(--sx, 50%) var(--sy, 30%), rgba(107,139,255,0.14), transparent 70%);
}
.hero.has-spotlight .hero-spotlight { opacity: 1; }

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-md);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  background: rgba(255,255,255,0.02);
}
.hero-status .dot-live {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(51,209,122,0.6);
  animation: dotLivePulse 2.4s ease-out infinite;
}
@keyframes dotLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(51,209,122,0.55); }
  70% { box-shadow: 0 0 0 7px rgba(51,209,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(51,209,122,0); }
}

/* Tagline cycler — CSS-only word rotation, no JS needed */
.tagline-cycler {
  position: relative;
  display: block;
  height: 1.7em;
  overflow: hidden;
  margin-bottom: var(--space-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw + 0.6rem, 1.35rem);
  color: var(--text);
}
.tagline-cycler span {
  position: absolute;
  left: 0; top: 0;
  opacity: 0;
  transform: translateY(0.5em);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: taglineCycle 8s var(--ease) infinite;
}
.tagline-cycler span::before {
  content: '';
  width: 18px; height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
  flex-shrink: 0;
}
.tagline-cycler span:nth-child(1) { animation-delay: 0s; }
.tagline-cycler span:nth-child(2) { animation-delay: 2s; }
.tagline-cycler span:nth-child(3) { animation-delay: 4s; }
.tagline-cycler span:nth-child(4) { animation-delay: 6s; }

@keyframes taglineCycle {
  0%, 2% { opacity: 0; transform: translateY(0.5em); }
  6%, 19% { opacity: 1; transform: translateY(0); }
  23%, 100% { opacity: 0; transform: translateY(-0.5em); }
}

@media (prefers-reduced-motion: reduce) {
  .tagline-cycler span { animation: none; opacity: 0; }
  .tagline-cycler span:first-child { opacity: 1; position: relative; }
  .hero-status .dot-live { animation: none; }
}

/* Magnetic / premium CTA */
.btn-magnetic { position: relative; }
.js .btn-magnetic .btn-inner {
  display: inline-flex; align-items: center; gap: 0.6rem;
  transition: transform 0.25s var(--ease);
  will-change: transform;
}
.btn-primary.btn-magnetic::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--grad-primary);
  filter: blur(14px);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--dur) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary.btn-magnetic:hover::after { opacity: 0.55; }
}

/* -------------------- Spotlight cards (hover glow that follows cursor) -------------------- */
@media (hover: hover) and (pointer: fine) {
  .spotlight-target {
    position: relative;
    overflow: hidden;
  }
  .spotlight-target::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(107,139,255,0.16), transparent 65%);
    transition: opacity 0.3s var(--ease);
    pointer-events: none;
  }
  .spotlight-target:hover::before { opacity: 1; }
  .spotlight-target > * { position: relative; z-index: 1; }
}

/* Card hover depth refinement */
.card, .project-card, .pill-card, .care-card {
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover, .pill-card:hover, .care-card:hover {
    border-color: rgba(107,139,255,0.4);
    box-shadow: 0 16px 40px -20px rgba(61,107,255,0.35);
  }
}

.service-block {
  position: relative;
  transition: border-color var(--dur) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .service-block:hover { border-top-color: rgba(107,139,255,0.35); }
}

/* Links: underline reveal */
.footer-col a, .breadcrumb a {
  background-image: linear-gradient(var(--primary-light), var(--primary-light));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size var(--dur) var(--ease), color var(--dur-fast) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .footer-col a:hover, .breadcrumb a:hover { background-size: 100% 1px; }
}

/* -------------------- Service micro-visuals -------------------- */
.service-visual {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 16/10;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--surface-2);
  margin-top: var(--space-md);
  padding: 10px;
  overflow: hidden;
  position: relative;
}

/* 01 Web: mock browser chrome */
.sv-web .sv-bar { display: flex; gap: 5px; margin-bottom: 8px; }
.sv-web .sv-bar span { width: 6px; height: 6px; border-radius: 50%; background: var(--border-light); }
.sv-web .sv-line { height: 6px; border-radius: 3px; background: linear-gradient(90deg, rgba(61,107,255,0.35), rgba(122,92,255,0.15)); margin-bottom: 6px; }
.sv-web .sv-line:nth-child(2) { width: 78%; }
.sv-web .sv-line:nth-child(3) { width: 55%; }
.sv-web .sv-line:nth-child(4) { width: 90%; }
@media (hover: hover) and (pointer: fine) {
  .service-block:hover .sv-web .sv-line { animation: svGrow 0.5s var(--ease) both; }
}

/* 02 Software: connected blocks */
.sv-software { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; height: 100%; }
.sv-software div { border: 1px solid rgba(107,139,255,0.35); border-radius: 4px; background: rgba(61,107,255,0.06); }
.sv-software div:nth-child(2) { background: rgba(122,92,255,0.12); border-color: rgba(122,92,255,0.4); }
@media (hover: hover) and (pointer: fine) {
  .service-block:hover .sv-software div { transform: translateY(-2px); transition: transform 0.3s var(--ease); }
  .service-block:hover .sv-software div:nth-child(2) { transition-delay: 0.05s; }
  .service-block:hover .sv-software div:nth-child(5) { transition-delay: 0.1s; }
}

/* 03 AI: node flow */
.sv-ai-svg { width: 100%; height: 100%; }
.sv-ai-svg circle { fill: #6b8bff; }
.sv-ai-svg line { stroke: rgba(107,139,255,0.35); stroke-width: 1; }
.js .sv-ai-svg .flow-dot {
  animation: flowDot 3s linear infinite;
  offset-rotate: 0deg;
}

/* 04 Growth: bar chart */
.sv-growth { display: flex; align-items: flex-end; gap: 6px; height: 100%; }
.sv-growth span { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #6b8bff, #3d6bff); }
.js .sv-growth span { transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease); }
.js .service-block.reveal.is-visible .sv-growth span:nth-child(1) { transform: scaleY(0.35); transition-delay: 0.05s; }
.js .service-block.reveal.is-visible .sv-growth span:nth-child(2) { transform: scaleY(0.55); transition-delay: 0.15s; }
.js .service-block.reveal.is-visible .sv-growth span:nth-child(3) { transform: scaleY(0.4); transition-delay: 0.25s; }
.js .service-block.reveal.is-visible .sv-growth span:nth-child(4) { transform: scaleY(0.8); transition-delay: 0.35s; }
.js .service-block.reveal.is-visible .sv-growth span:nth-child(5) { transform: scaleY(1); transition-delay: 0.45s; }

@keyframes svGrow {
  from { transform: scaleX(0.6); opacity: 0.4; }
  to { transform: scaleX(1); opacity: 1; }
}

@media (max-width: 799px) {
  .service-visual { max-width: 100%; margin-top: var(--space-sm); }
}

/* -------------------- DMC Labs identity strip -------------------- */
.labs-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm) var(--space-lg);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px dashed rgba(255,255,255,0.12);
}
@media (min-width: 640px) { .labs-strip { grid-template-columns: repeat(4, 1fr); } }
.labs-strip dt {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.3rem;
}
.labs-strip dd {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.labs-coord {
  position: absolute;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  opacity: 0.55;
}
.alicia-section { position: relative; }
.labs-coord.tl { top: 14px; left: 18px; }
.labs-coord.br { bottom: 14px; right: 18px; }

/* -------------------- ALICIA ONE — device mockup -------------------- */
.alicia-visual {
  padding: var(--space-md);
}
.assistant-card {
  width: 100%;
  max-width: 300px;
  border-radius: var(--radius-md);
  background: rgba(10,12,24,0.7);
  border: 1px solid rgba(107,139,255,0.28);
  backdrop-filter: blur(6px);
  overflow: hidden;
  box-shadow: 0 20px 60px -24px rgba(61,107,255,0.5);
}
.assistant-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.assistant-card-head .status-dot { display: inline-flex; align-items: center; gap: 0.4rem; color: #8fd8ac; }
.assistant-card-head .status-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.assistant-card-body { padding: 0.9rem; display: flex; flex-direction: column; gap: 0.6rem; }
.assistant-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.assistant-row .tag {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9db3ff;
  border: 1px solid rgba(107,139,255,0.35);
  border-radius: 5px;
  padding: 0.15rem 0.4rem;
  flex-shrink: 0;
}
.assistant-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  padding: 0 0.2rem;
}
.assistant-waveform span {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #9db3ff, #3d6bff);
  animation: wavePulse 1.6s ease-in-out infinite;
}
.assistant-waveform span:nth-child(1){height:35%;animation-delay:0s;}
.assistant-waveform span:nth-child(2){height:70%;animation-delay:0.12s;}
.assistant-waveform span:nth-child(3){height:100%;animation-delay:0.24s;}
.assistant-waveform span:nth-child(4){height:55%;animation-delay:0.36s;}
.assistant-waveform span:nth-child(5){height:80%;animation-delay:0.48s;}
.assistant-waveform span:nth-child(6){height:40%;animation-delay:0.6s;}
@keyframes wavePulse {
  0%, 100% { transform: scaleY(0.5); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
}
.assistant-card-foot {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .assistant-waveform span { animation: none; transform: scaleY(0.7); }
}

/* -------------------- Automation flow diagram -------------------- */
.flow-diagram {
  margin-top: var(--space-xl);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-md);
}
@media (max-width: 760px) {
  .flow-diagram { grid-template-columns: 1fr; }
  .flow-diagram .flow-arrow { transform: rotate(90deg); margin-inline: auto; }
}
.flow-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.flow-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.3rem;
}
.flow-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--surface);
}
.flow-col.before .flow-item { opacity: 0.75; }
.flow-col.after .flow-item { border-color: rgba(107,139,255,0.35); color: var(--text); background: rgba(61,107,255,0.06); }
.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(107,139,255,0.3);
  background: rgba(61,107,255,0.08);
  color: var(--primary-light);
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-align: center;
  flex-direction: column;
  gap: 2px;
}

/* -------------------- Full-screen statement (philosophy) -------------------- */
.statement-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
@media (max-width: 700px) { .statement-section { min-height: 60vh; } }
.statement-text {
  max-width: 900px;
  font-size: clamp(2rem, 5vw + 1rem, 4.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.statement-text .quote-line {
  display: block;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .statement-text .quote-line {
  opacity: 0;
  transform: translateY(24px);
}
.js .statement-text.is-visible .quote-line { opacity: 1; transform: translateY(0); }
.js .statement-text.is-visible .quote-line:nth-child(2) { transition-delay: 0.15s; }
.js .statement-text.is-visible .quote-line:nth-child(3) { transition-delay: 0.3s; }
.statement-text .quote-line:last-child { color: var(--text-muted); font-weight: 400; font-size: 0.5em; margin-top: 0.6em; letter-spacing: normal; }

/* ==========================================================================
   V3 — Reorientación comercial (Web + Redes Sociales como servicios estrella)
   ========================================================================== */

/* -------------------- Hero: CTA jerarquizado -------------------- */
.hero-cta-secondary {
  display: block;
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  width: fit-content;
}
.hero-cta-secondary:hover { color: var(--text); }

/* -------------------- Digital. Media. Code. — arquitectura de marca -------------------- */
.brand-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pillar {
  background: var(--surface);
  padding: var(--space-xl) var(--space-lg);
  position: relative;
  transition: background var(--dur) var(--ease);
}
.pillar:hover { background: var(--surface-2); }
.pillar-letter {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--primary-light);
  margin-bottom: var(--space-md);
}
.pillar h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.pillar p { color: var(--text-muted); font-size: 0.92rem; max-width: 32ch; }
@media (max-width: 860px) {
  .brand-pillars { grid-template-columns: 1fr; }
}

/* -------------------- Star service: Web & Commerce -------------------- */
.star-service {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  background: var(--grad-surface, var(--surface));
  overflow: hidden;
}
@media (max-width: 900px) {
  .star-service { padding-inline: var(--space-lg); }
}
.star-service::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(700px circle at 85% 0%, rgba(61,107,255,0.12), transparent 60%);
  pointer-events: none;
}
.star-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .star-grid { grid-template-columns: 1fr; }
}
.star-service .tag-pill { margin-bottom: var(--space-md); }
.star-service h2 { margin-bottom: var(--space-md); }
.star-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.star-compare-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
}
.star-compare-item.is-no { opacity: 0.6; }
.star-compare-item.is-yes { border-color: rgba(61,107,255,0.35); background: rgba(61,107,255,0.05); }
.star-compare-item span.label { display: block; font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.4rem; }
.star-compare-item p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

/* Browser + device mockup demonstrating responsive quality */
.web-mockup { position: relative; }
.device-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  background: var(--bg-secondary);
}
.device-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.device-btn.is-active { background: var(--primary); color: #fff; }
.device-btn:not(.is-active):hover { color: var(--text); }
.web-mockup .mockup-browser { transition: max-width 0.5s var(--ease), margin 0.5s var(--ease); max-width: 100%; }
.web-mockup[data-device="tablet"] .mockup-browser { max-width: 380px; margin-inline: auto; }
.web-mockup[data-device="mobile"] .mockup-browser { max-width: 260px; margin-inline: auto; }
.web-mockup[data-device="tablet"] .mockup-phone,
.web-mockup[data-device="mobile"] .mockup-phone { opacity: 0; pointer-events: none; }
.mockup-browser {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.mockup-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.mockup-browser-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--border-light); }
.mockup-browser-body { padding: var(--space-md); display: flex; flex-direction: column; gap: 10px; transition: opacity 0.25s var(--ease); }
.mockup-browser-body .mb-line { height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(61,107,255,0.3), rgba(122,92,255,0.12)); }
.mockup-browser-body .mb-line.h { height: 14px; width: 60%; margin-bottom: 4px; }

/* Nav row */
.mb-nav { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.mb-logo-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--primary); flex-shrink: 0; }
.mb-nav-links { display: flex; gap: 8px; flex: 1; }
.mb-nav-links span { width: 24px; height: 5px; border-radius: 3px; background: var(--border-light); }
.mb-nav-cta { width: 40px; height: 12px; border-radius: var(--radius-full); background: var(--primary); opacity: 0.85; }
.mb-nav-toggle { display: none; width: 16px; height: 12px; flex-direction: column; justify-content: space-between; }
.mb-nav-toggle span { display: block; height: 2px; border-radius: 1px; background: var(--text-muted); }

/* Hero row */
.mb-hero { display: flex; align-items: center; gap: 10px; padding-block: 4px; }
.mb-hero-text { flex: 1.3; display: flex; flex-direction: column; gap: 6px; }
.mb-cta-btn { display: inline-block; width: 56px; height: 14px; border-radius: var(--radius-full); background: var(--primary); margin-top: 4px; }
.mb-hero-visual { flex: 1; height: 54px; border-radius: 6px; border: 1px solid rgba(107,139,255,0.25); background: rgba(61,107,255,0.06); }

/* Card grid */
.mb-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 2px; }
.mb-grid div { display: flex; flex-direction: column; gap: 5px; padding: 7px; border-radius: 6px; background: rgba(122,92,255,0.07); border: 1px solid rgba(122,92,255,0.18); }
.mb-card-icon { width: 12px; height: 12px; border-radius: 3px; background: var(--secondary); opacity: 0.8; }
.mb-card-line { display: block; height: 5px; border-radius: 3px; background: var(--border-light); }
.mb-card-line.short { width: 60%; }

/* Tablet: condensed nav, 2-col cards */
.web-mockup[data-device="tablet"] .mb-nav-links { display: none; }
.web-mockup[data-device="tablet"] .mb-nav-toggle { display: flex; }
.web-mockup[data-device="tablet"] .mb-grid { grid-template-columns: repeat(2, 1fr); }

/* Mobile: stacked hero, hamburger nav, single-column cards, full-width CTA */
.web-mockup[data-device="mobile"] .mb-nav-links { display: none; }
.web-mockup[data-device="mobile"] .mb-nav-toggle { display: flex; }
.web-mockup[data-device="mobile"] .mb-nav-cta { display: none; }
.web-mockup[data-device="mobile"] .mb-hero { flex-direction: column; align-items: stretch; }
.web-mockup[data-device="mobile"] .mb-hero-visual { height: 40px; }
.web-mockup[data-device="mobile"] .mb-cta-btn { width: 100%; }
.web-mockup[data-device="mobile"] .mb-grid { grid-template-columns: 1fr; }
.mockup-phone {
  position: absolute;
  right: -14px;
  bottom: -28px;
  width: 84px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: var(--bg-secondary);
  padding: 8px 6px;
  box-shadow: 0 20px 40px -14px rgba(0,0,0,0.55);
}
.mockup-phone .mp-line { height: 5px; border-radius: 3px; background: rgba(61,107,255,0.28); margin-bottom: 5px; }
.mockup-phone .mp-line.h { height: 9px; width: 70%; }
.mockup-phone .mp-block { height: 26px; border-radius: 4px; background: rgba(107,139,255,0.1); border: 1px solid rgba(107,139,255,0.25); margin-top: 4px; }
@media (max-width: 520px) { .mockup-phone { display: none; } }

/* -------------------- Star service: Redes Sociales -------------------- */
.social-editorial {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) { .social-editorial { grid-template-columns: repeat(2, 1fr); } }
.editorial-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background: var(--surface);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.editorial-card:hover { transform: translateY(-4px); border-color: var(--border-light); }
.editorial-card .ec-format {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-light);
  border: 1px solid rgba(61,107,255,0.35);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.6rem;
  margin-bottom: var(--space-sm);
}
.editorial-card .ec-visual {
  height: 90px;
  border-radius: 6px;
  margin-bottom: var(--space-sm);
  background: linear-gradient(160deg, rgba(61,107,255,0.14), rgba(122,92,255,0.06));
  border: 1px solid rgba(107,139,255,0.18);
  position: relative;
  overflow: hidden;
}
.editorial-card .ec-visual::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(107,139,255,0.3);
  border-radius: 4px;
}
.editorial-card h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.editorial-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* -------------------- Differentiator block (Software / IA / Automatización) -------------------- */
.differentiator-head { max-width: 60ch; }
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
@media (max-width: 780px) { .diff-grid { grid-template-columns: 1fr; } }
.diff-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .diff-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .diff-grid-3 { grid-template-columns: 1fr; } }
.diff-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
}
.diff-card .service-num { display: block; margin-bottom: var(--space-sm); }
.diff-card h3 { margin-bottom: 0.6rem; }
.diff-card p.text-muted { margin-bottom: var(--space-sm); }

/* -------------------- Checklist landing (/checklist-web) -------------------- */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text);
}
.check-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(61,107,255,0.12);
  border: 1px solid rgba(61,107,255,0.35);
  color: var(--primary-light);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}
.check-list-more {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-faint);
}

.resource-block {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}
.resource-block h2 { margin-bottom: var(--space-sm); }
.resource-block p { margin-bottom: var(--space-lg); }
.resource-block .field-hint { margin-top: var(--space-sm); }

.mini-brand-tags {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: var(--space-md);
}
