/* ==========================================================================
   ADALEA TECHNOLOGIES — Main Design System & Production Stylesheet
   Modernist Design System (Radio 0, 2px architectural rules, pure contrast)
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/archivo-400.woff2') format('woff2'),
       url('../fonts/archivo.woff2') format('woff2'),
       url('https://fonts.gstatic.com/s/archivo/v25/k3kPo8UDI-1M0wlSV9XAw6lQkqWY8Q82sLydOxKsv4Rn.woff2') format('woff2');
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/archivo-600.woff2') format('woff2'),
       url('../fonts/archivo.woff2') format('woff2'),
       url('https://fonts.gstatic.com/s/archivo/v25/k3kPo8UDI-1M0wlSV9XAw6lQkqWY8Q82sLydOxKsv4Rn.woff2') format('woff2');
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/archivo-800.woff2') format('woff2'),
       url('../fonts/archivo.woff2') format('woff2'),
       url('https://fonts.gstatic.com/s/archivo/v25/k3kPo8UDI-1M0wlSV9XAw6lQkqWY8Q82sLydOxKsv4Rn.woff2') format('woff2');
}

:root {
  /* Color Palette */
  --night: #161413;
  --ink: #201e1d;
  --ground: #f3f2f2;
  --surface: #eae9e9;
  --accent: #ee5f12;
  --accent-hover: #ff8a4a;
  --accent-600: #d4520a;
  --accent-700: #a83f05;
  --err: #ff9d66;

  --n-300: #d7d3d3;
  --n-400: #bab6b6;
  --n-dark-muted: #a8a3a1;
  --n-600: #7d7979;
  --n-700: #605d5d;
  --n-800: #444141;

  --rule-dark: rgba(243, 242, 242, 0.16);
  --rule-dark-strong: rgba(243, 242, 242, 0.5);
  --rule-light: rgba(32, 30, 29, 0.25);

  /* Typography */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 11vw, 160px);
  --nav-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-menu: cubic-bezier(0.76, 0, 0.24, 1);
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important; /* Strict Modernist principle: 0px radius everywhere */
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.scroll-locked {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: var(--night);
}

a {
  color: var(--accent-700);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--accent);
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Skip to content accessible link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 999;
  background: var(--accent);
  color: var(--night);
  font-weight: 800;
  font-size: 14px;
  padding: 12px 20px;
  border: 2px solid var(--night);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* Reusable Containers */
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

/* Section Header Standard Pattern */
.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
  border-top: 2px solid var(--ink);
  padding-top: 20px;
  margin-bottom: 56px;
}

.section-head.dark-theme {
  border-top: 2px solid var(--rule-dark-strong);
}

.section-kicker {
  flex: 0 0 220px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.section-head.dark-theme .section-kicker {
  color: var(--n-400);
}

.section-title-wrap {
  flex: 1 1 520px;
  min-width: 0;
}

.section-title {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 800;
  text-wrap: balance;
}

.section-head.dark-theme .section-title {
  color: var(--ground);
}

.section-lead {
  margin: 24px 0 0;
  max-width: 620px;
  font-size: 18px;
  color: var(--n-700);
  text-wrap: pretty;
}

.section-head.dark-theme .section-lead {
  color: var(--n-300);
}

/* Section Spacing */
.section-flow {
  scroll-margin-top: var(--nav-h);
  padding: var(--section-y) 0;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 60;
  background: transparent;
  transition: background 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(22, 20, 19, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(243, 242, 242, 0.12);
}

.nav-container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  cursor: pointer;
}

.brand-svg {
  width: 46px;
  display: block;
  overflow: visible;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-name {
  color: var(--ground);
  font-weight: 600;
  letter-spacing: 0.24em;
  font-size: 15px;
  line-height: 1;
}

.brand-claim {
  color: var(--n-400);
  font-weight: 600;
  letter-spacing: 0.3em;
  font-size: 7px;
  line-height: 1;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-desktop a:not(.btn-cta) {
  color: var(--n-300);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.25s ease;
}

.nav-desktop a:not(.btn-cta):hover {
  color: var(--accent);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--accent);
  color: var(--night);
  font-size: 14px;
  font-weight: 800;
  padding: 11px 18px;
  border: 0;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn-cta:hover {
  background: var(--accent-hover);
  color: var(--night);
}

.nav-progress-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
}

/* Mobile Burger Trigger */
.burger-btn {
  display: none;
  height: 44px;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: 1px solid rgba(243, 242, 242, 0.3);
  color: var(--ground);
  padding: 0 13px 0 15px;
  cursor: pointer;
  transition: border-color 0.5s ease, background 0.5s ease;
}

.burger-btn.is-active {
  border-color: var(--accent);
  background: rgba(238, 95, 18, 0.08);
}

.burger-txt-box {
  height: 12px;
  overflow: hidden;
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: left;
  width: 58px;
}

.burger-txt-slide {
  display: flex;
  flex-direction: column;
  transition: transform 0.7s var(--ease-menu);
}

.burger-btn.is-active .burger-txt-slide {
  transform: translateY(-12px);
}

.burger-txt-slide span {
  height: 12px;
  display: block;
}

.burger-txt-slide span.accent {
  color: var(--accent);
}

.burger-icon {
  position: relative;
  width: 22px;
  height: 14px;
  display: block;
}

.burger-line {
  position: absolute;
  left: 0;
  top: 6px;
  width: 22px;
  height: 2px;
  background: var(--ground);
  display: block;
  transition: transform 0.7s var(--ease-menu), background 0.5s ease;
}

.burger-line-1 {
  transform: translateY(-4px);
}

.burger-line-2 {
  transform: translate(-4.4px, 4px) scaleX(0.6);
  transform-origin: left;
}

.burger-btn.is-active .burger-line-1 {
  transform: rotate(45deg);
}

.burger-btn.is-active .burger-line-2 {
  transform: rotate(-45deg);
  background: var(--accent);
}

/* Mobile Fullscreen Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 59;
  background: var(--night);
  clip-path: inset(0 0 100% 0);
  -webkit-clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--ease-menu), -webkit-clip-path 0.9s var(--ease-menu);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
}

.mobile-menu-overlay.is-mounted {
  visibility: visible;
}

.mobile-menu-overlay.is-open {
  clip-path: inset(0 0 0% 0);
  -webkit-clip-path: inset(0 0 0% 0);
}

.mobile-menu-bar {
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  display: block;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1s var(--ease-menu) 0.35s;
}

.mobile-menu-overlay.is-open .mobile-menu-bar {
  transform: scaleX(1);
}

.mobile-menu-nav {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(72px + 28px) var(--gutter) 24px;
}

.mobile-menu-nav a {
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: var(--ground);
  border-bottom: 1px solid rgba(243, 242, 242, 0.14);
}

.mobile-menu-nav a:hover {
  color: var(--accent);
}

.mobile-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.9s var(--ease-menu), opacity 0.6s ease;
}

.mobile-menu-overlay.is-open .mobile-menu-item {
  transform: none;
  opacity: 1;
}

.mobile-menu-label {
  font-size: clamp(34px, 10vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.mobile-menu-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
}

.mobile-menu-foot {
  padding: 0 var(--gutter) 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease 0.75s, transform 0.9s var(--ease-menu) 0.75s;
}

.mobile-menu-overlay.is-open .mobile-menu-foot {
  opacity: 1;
  transform: none;
}

.mobile-menu-foot .btn-cta {
  padding: 18px 20px;
  font-size: 16px;
}

.mobile-menu-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--n-dark-muted);
}

/* ==========================================================================
   HERO SECTION (#top)
   ========================================================================== */
#top {
  position: relative;
  min-height: 100svh;
  background: var(--night);
  color: var(--ground);
  overflow: hidden;
  display: flex;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  will-change: transform;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
}

.hero-veil-horizontal {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22, 20, 19, 0.94) 0%, rgba(22, 20, 19, 0.78) 45%, rgba(22, 20, 19, 0.45) 100%);
  pointer-events: none;
}

.hero-veil-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(0deg, #161413 8%, rgba(22, 20, 19, 0) 100%);
  pointer-events: none;
}

.hero-ecg-canvas {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(40px, 8vh, 96px);
  width: 100%;
  height: clamp(130px, 22vh, 240px);
  display: block;
  pointer-events: none;
  z-index: 3;
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(40px, 9vh, 110px)) var(--gutter) clamp(180px, 32vh, 340px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vh, 44px);
  will-change: transform, opacity;
  z-index: 4;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--n-300);
}

.hero-eyebrow .dot-accent {
  width: 8px;
  height: 8px;
  background: var(--accent);
  display: block;
}

.hero-h1 {
  margin: 0;
  font-size: clamp(46px, 13.5vw, 188px);
  line-height: 0.86;
  letter-spacing: -0.055em;
  font-weight: 800;
  color: var(--ground);
}

.hero-h1-line-wrap {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero-h1-line {
  display: block;
  transform-origin: left bottom;
}

.hero-heartbeat-dot {
  display: inline-block;
  color: var(--accent);
  transform-origin: 50% 80%;
}

.hero-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 64px;
  align-items: flex-end;
}

.hero-lead {
  margin: 0;
  flex: 1 1 360px;
  max-width: 520px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--n-300);
  text-wrap: pretty;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-hero-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  white-space: nowrap;
  background: var(--accent);
  color: var(--night);
  font-weight: 800;
  font-size: 15px;
  padding: 18px 22px;
  transition: background 0.25s ease;
}

.btn-hero-primary:hover {
  background: var(--accent-hover);
  color: var(--night);
}

.btn-hero-secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  min-width: 190px;
  border: 1px solid rgba(243, 242, 242, 0.4);
  color: var(--ground);
  font-weight: 800;
  font-size: 15px;
  padding: 17px 20px;
  background: rgba(22, 20, 19, 0.3);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.btn-hero-secondary:hover {
  background: rgba(243, 242, 242, 0.1);
  border-color: var(--ground);
  color: var(--ground);
}

.hero-bottom-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--n-dark-muted);
  pointer-events: none;
  z-index: 5;
}

.hero-scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-scroll-track {
  display: block;
  width: 1px;
  height: 28px;
  background: rgba(243, 242, 242, 0.25);
  position: relative;
  overflow: hidden;
}

.hero-scroll-pip {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 12px;
  background: var(--accent);
  display: block;
}

/* ==========================================================================
   01 — SERVICIOS (#servicios)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  background: var(--ink);
  border: 2px solid var(--ink);
}

.service-card {
  background: var(--ground);
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 380px;
  transition: background 0.35s ease;
}

.service-card:hover {
  background: var(--surface);
}

.service-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.service-card-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-700);
}

.service-card-icon {
  width: 40px;
  height: 40px;
}

.service-card-title {
  margin: auto 0 0;
  font-size: 28px;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 800;
}

.service-card-desc {
  margin: 0;
  color: var(--n-700);
}

.service-card-tags {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  border-top: 1px solid var(--rule-light);
  padding-top: 14px;
  color: var(--ink);
}

/* ==========================================================================
   02 — ARQUITECTURA / SISTEMAS CONECTADOS (#arquitectura)
   ========================================================================== */
#arquitectura {
  scroll-margin-top: 0;
  position: relative;
  height: 520vh;
  background: var(--night);
  color: var(--ground);
}

.arch-sticky-wrap {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.arch-container {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(20px, 4vh, 48px)) var(--gutter) clamp(20px, 4vh, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3.5vh, 40px);
  height: 100%;
}

.arch-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 48px;
  border-top: 2px solid var(--rule-dark-strong);
  padding-top: 16px;
  align-items: baseline;
}

.arch-header .section-kicker {
  color: var(--n-400);
}

.arch-header .section-title {
  font-size: clamp(26px, 3.2vw, 48px);
  color: var(--ground);
  flex: 1 1 480px;
}

.arch-stage-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(16px, 3vh, 32px) clamp(32px, 5vw, 80px);
  align-items: center;
}

.arch-panel {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2vh, 22px);
  min-width: 0;
}

.arch-odometer-box {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.arch-odometer-track {
  height: 1em;
  overflow: hidden;
  font-size: clamp(84px, 14vw, 220px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--accent);
}

.arch-odometer-wheel {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition: transform 1s var(--ease);
}

.arch-odometer-wheel span {
  height: 1em;
  display: block;
}

.arch-odometer-total {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--n-dark-muted);
  padding-bottom: 0.8em;
}

.arch-panel-title {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1;
  font-weight: 800;
  color: var(--ground);
}

.arch-panel-desc {
  margin: 0;
  font-size: clamp(16px, 1.3vw, 19px);
  max-width: 520px;
  color: var(--n-300);
  text-wrap: pretty;
}

.arch-panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arch-chip {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(243, 242, 242, 0.4);
  padding: 6px 10px;
  color: var(--ground);
}

/* Architecture Stage Graphic Viewport */
.arch-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 560px;
  border: 1px solid rgba(243, 242, 242, 0.18);
  background: #1b1918;
}

.arch-stage-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--n-dark-muted);
  border-bottom: 1px solid rgba(243, 242, 242, 0.12);
  z-index: 2;
}

.arch-stage-header .live-badge {
  color: var(--accent);
}

.arch-graphic {
  position: absolute;
  inset: 38px 0 0;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.7s ease, transform 1s var(--ease);
  pointer-events: none;
}

.arch-graphic.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.arch-graphic.is-prev {
  opacity: 0;
  transform: translateY(-24px) scale(0.98);
}

.arch-graphic svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Sound waveform container in Stage 3 */
.stage-wave-bars {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 22%;
  height: 32%;
  display: flex;
  align-items: center;
  gap: 1.4%;
  pointer-events: none;
}

.stage-wave-bar {
  flex: 1 1 0;
  display: block;
  transform-origin: center;
}

/* Architecture Step Navigation Tabs */
.arch-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 12px;
}

.arch-tab-btn {
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--n-600);
  transition: color 0.4s ease;
}

.arch-tab-btn.is-active {
  color: var(--ground);
}

.arch-tab-track {
  display: block;
  height: 3px;
  background: rgba(243, 242, 242, 0.15);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.arch-tab-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
}

.arch-tab-meta {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
  min-height: 20px;
}

.arch-tab-num {
  font-size: 12px;
  font-weight: 800;
}

.arch-tab-title {
  font-size: 16px;
  font-weight: 800;
}

/* ==========================================================================
   03 — ESPECIALIZACIÓN TELCO (#telco)
   ========================================================================== */
#telco {
  scroll-margin-top: var(--nav-h);
  padding: var(--section-y) 0 0;
  background: var(--ground);
}

.telco-counter-head {
  display: flex;
  align-items: flex-end;
  gap: 24px 48px;
  flex-wrap: wrap;
}

.telco-giant-number-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.telco-giant-number {
  font-size: clamp(112px, 19vw, 300px);
  line-height: 0.78;
  font-weight: 800;
  letter-spacing: -0.07em;
  color: var(--accent);
}

.telco-years-tag {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 8px;
}

.telco-h2 {
  flex: 1 1 320px;
  margin: 0;
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}

.telco-split-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 40px clamp(32px, 5vw, 80px);
  align-items: start;
  margin-bottom: 72px;
}

.telco-text-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 17px;
  color: var(--n-800);
}

.telco-sip-figure {
  margin: 0;
  background: var(--night);
  color: var(--ground);
  display: flex;
  flex-direction: column;
}

.telco-sip-head {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(243, 242, 242, 0.14);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--n-dark-muted);
}

.telco-sip-head span.status {
  color: var(--accent);
}

.telco-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background: var(--ink);
  border: 2px solid var(--ink);
}

.telco-card {
  background: var(--ground);
  padding: 32px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.35s ease;
}

.telco-card:hover {
  background: var(--surface);
}

.telco-card-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-700);
}

.telco-card-title {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.telco-card-desc {
  margin: 0;
  color: var(--n-700);
}

/* Tech Marquee Bar */
.marquee-bar {
  margin-top: clamp(72px, 9vw, 128px);
  background: var(--night);
  border-top: 1px solid var(--ink);
  padding: 26px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ground);
}

.marquee-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  display: block;
}

/* Project Gallery Strip (Reverse Marquee) */
.gallery-strip-section {
  background: var(--night);
  padding: 0 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}

.gallery-strip-track {
  display: flex;
  width: max-content;
  gap: 16px;
  padding-top: 16px;
}

.gallery-strip-thumb {
  width: clamp(280px, 32vw, 480px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(243, 242, 242, 0.16);
  flex: 0 0 auto;
  background: var(--ink);
}

.gallery-strip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(1) contrast(1.08);
  opacity: 0.88;
}

/* ==========================================================================
   04 — PROYECTOS (#proyectos)
   ========================================================================== */
.projects-tablist {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 40px;
}

.projects-tab-btn {
  background: transparent;
  color: var(--ink);
  border: 0;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: baseline;
  transition: background 0.25s ease, color 0.25s ease;
}

.projects-tab-btn.is-active {
  background: var(--ink);
  color: var(--ground);
}

.projects-tab-count {
  font-size: 11px;
  font-weight: 600;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.project-thumb-box {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(32, 30, 29, 0.15);
  position: relative;
}

.project-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(1) contrast(1.08);
  transition: transform 1.2s var(--ease);
}

.project-thumb-box:hover img {
  transform: scale(1.05);
}

.project-badge {
  position: absolute;
  left: 0;
  top: 0;
  background: var(--night);
  color: var(--ground);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.project-tags {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--n-700);
  border-top: 2px solid var(--ink);
  padding-top: 14px;
}

.project-title {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 800;
}

.project-desc {
  margin: 0;
  color: var(--n-700);
  text-wrap: pretty;
}

.project-link {
  align-self: flex-start;
  display: flex;
  gap: 10px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
  transition: color 0.25s ease;
}

.project-link:hover {
  color: var(--accent-700);
}

/* ==========================================================================
   05 — IA FIRST (#ia)
   ========================================================================== */
#ia {
  scroll-margin-top: var(--nav-h);
  background: var(--night);
  color: var(--ground);
  padding: var(--section-y) 0;
  overflow: hidden;
}

.ia-container {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.ia-wave-container {
  position: relative;
  height: clamp(160px, 22vw, 300px);
  display: flex;
  align-items: center;
  gap: clamp(3px, 0.5vw, 7px);
  pointer-events: none;
}

.ia-wave-bar {
  flex: 1 1 0;
  display: block;
  transform-origin: center;
}

.ia-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background: rgba(243, 242, 242, 0.2);
  border: 2px solid rgba(243, 242, 242, 0.2);
}

.ia-card {
  background: var(--night);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ia-card-letter {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
}

.ia-card-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ia-card-desc {
  color: var(--n-400);
}

/* ==========================================================================
   PROPÓSITO (PÓSTER SÓLIDO NARANJA)
   ========================================================================== */
.purpose-section {
  background: var(--accent);
  color: var(--night);
  padding: clamp(80px, 12vw, 180px) 0;
  overflow: hidden;
  position: relative;
}

.purpose-container {
  display: flex;
  flex-direction: column;
  gap: 48px;
  position: relative;
}

.purpose-head {
  display: flex;
  justify-content: space-between;
  border-top: 2px solid var(--night);
  padding-top: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.purpose-h2 {
  margin: 0;
  font-size: clamp(40px, 9vw, 150px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--night);
  font-weight: 800;
  max-width: 1200px;
}

.purpose-h2-line-wrap {
  display: block;
  overflow: hidden;
  padding-bottom: 0.05em;
}

.purpose-h2-line {
  display: block;
}

.purpose-svg-pulse {
  width: 100%;
  height: clamp(60px, 8vw, 110px);
  display: block;
  overflow: visible;
}

.purpose-content-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
}

.purpose-spacer {
  flex: 0 0 220px;
}

.purpose-text {
  flex: 1 1 420px;
  max-width: 640px;
  margin: 0;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  font-weight: 600;
  text-wrap: pretty;
}

/* ==========================================================================
   06 — ESTIMADOR WEB / APP (#estimador)
   ========================================================================== */
.estimator-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
  gap: 2px;
  background: var(--ink);
  border: 2px solid var(--ink);
}

.estimator-left {
  background: var(--ground);
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.estimator-model-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 2px solid var(--accent);
  padding-top: 16px;
}

.estimator-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-700);
}

.estimator-info-text {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  text-wrap: pretty;
}

.btn-toggle-est {
  align-self: stretch;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  background: var(--accent);
  color: var(--night);
  border: 0;
  font-weight: 800;
  font-size: 16px;
  padding: 19px 22px;
  cursor: pointer;
  text-align: left;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-toggle-est:hover {
  background: var(--accent-600);
  color: var(--ground);
}

.estimator-disclaimer {
  margin: 0;
  font-size: 13px;
  color: var(--n-700);
  text-wrap: pretty;
}

.estimator-right {
  background: #fbfbfb;
  padding: clamp(20px, 3vw, 40px);
  min-width: 0;
  scroll-margin-top: 88px;
}

/* Closed Preview View */
.est-preview-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  justify-content: space-between;
}

.est-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--n-700);
  border-top: 2px solid var(--ink);
  padding-top: 14px;
}

.est-preview-head .live-pill {
  color: var(--accent-700);
}

.est-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background: var(--ink);
  border: 2px solid var(--ink);
}

.est-result-card {
  background: var(--night);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.est-result-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--n-400);
}

.est-result-value {
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.est-result-value.accent {
  color: var(--accent);
}

.est-result-value.light {
  color: var(--ground);
}

.est-result-range {
  font-size: clamp(19px, 1.8vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ground);
}

/* Open Interactive Form */
.est-interactive-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.form-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  min-width: 0;
}

.form-label .optional {
  font-size: 13px;
  font-weight: 600;
  color: var(--n-700);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: #fbfbfb;
  border: 1px solid rgba(32, 30, 29, 0.4);
  padding: 13px 14px;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23201e1d' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  text-overflow: ellipsis;
}

.form-error {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-700);
  min-height: 16px;
}

.form-fieldset {
  margin: 0;
  border: 1px solid rgba(32, 30, 29, 0.25);
  padding: 6px 20px 12px;
  min-width: 0;
}

.form-fieldset legend {
  padding: 0 8px;
  margin-left: -8px;
  font-size: 14px;
  font-weight: 800;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  position: relative;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 50%;
  opacity: 0;
  width: 20px;
  height: 20px;
  margin: -10px 0 0;
}

.custom-checkbox {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 2px solid rgba(32, 30, 29, 0.5);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.custom-checkbox .box-dot {
  width: 8px;
  height: 8px;
  background: transparent;
  display: block;
}

.checkbox-label input[type="checkbox"]:checked + .custom-checkbox {
  border-color: var(--accent);
  background: var(--accent);
}

.checkbox-label input[type="checkbox"]:checked + .custom-checkbox .box-dot {
  background: var(--night);
}

.privacy-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.privacy-row input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 20px;
  height: 20px;
  margin: 0;
}

.privacy-row .custom-checkbox {
  margin-top: 1px;
}

.btn-est-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  width: 100%;
  background: var(--accent);
  color: var(--night);
  border: 0;
  font-weight: 800;
  font-size: 16px;
  padding: 20px 22px;
  cursor: pointer;
  text-align: left;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-est-submit:hover {
  background: var(--accent-600);
  color: var(--ground);
}

.btn-est-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Estimator Sent View */
.est-success-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.badge-check {
  width: 56px;
  height: 56px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--night);
  font-size: 26px;
  font-weight: 800;
}

.est-success-title {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1;
  font-weight: 800;
}

.est-success-ref {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--n-700);
  font-weight: 600;
}

.btn-est-reset {
  align-self: flex-start;
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  font-weight: 800;
  font-size: 14px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-est-reset:hover {
  background: var(--ink);
  color: var(--ground);
}

/* ==========================================================================
   07 — SOBRE NOSOTROS (#sobre-nosotros)
   ========================================================================== */
#sobre-nosotros {
  scroll-margin-top: var(--nav-h);
  padding: 0 0 clamp(80px, 11vw, 160px);
}

.about-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background: var(--ink);
  border: 2px solid var(--ink);
}

.about-card {
  background: var(--ground);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-card-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.about-card-desc {
  color: var(--n-700);
}

/* ==========================================================================
   08 — CONTACTO (#contacto)
   ========================================================================== */
#contacto {
  scroll-margin-top: var(--nav-h);
  background: var(--night);
  color: var(--ground);
  padding: var(--section-y) 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 56px 80px;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-left-head {
  border-top: 2px solid var(--rule-dark-strong);
  padding-top: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--n-400);
}

.contact-h2 {
  margin: 0;
  font-size: clamp(44px, 6vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: var(--ground);
}

.contact-h2 .dot-accent {
  color: var(--accent);
}

.contact-left-lead {
  margin: 0;
  max-width: 460px;
  font-size: 18px;
  color: var(--n-300);
  text-wrap: pretty;
}

.contact-right {
  border-top: 2px solid var(--rule-dark-strong);
  padding-top: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-inputs-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--n-400);
}

.contact-field input,
.contact-field textarea {
  background: transparent;
  border: 0;
  border-bottom: 2px solid rgba(243, 242, 242, 0.3);
  color: var(--ground);
  padding: 10px 0;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
  transition: border-bottom-color 0.25s ease;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-bottom-color: var(--accent);
}

.contact-field textarea {
  resize: vertical;
}

.contact-err {
  color: var(--err);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  min-height: 16px;
  font-size: 13px;
}

.contact-privacy {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--n-300);
  cursor: pointer;
}

.contact-privacy input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  margin-top: 1px;
  flex: 0 0 auto;
}

.btn-contact-submit {
  align-self: flex-start;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  min-width: 260px;
  background: var(--accent);
  color: var(--night);
  border: 0;
  font-weight: 800;
  font-size: 15px;
  padding: 17px 20px;
  cursor: pointer;
  text-align: left;
  transition: background 0.25s ease;
}

.btn-contact-submit:hover {
  background: var(--accent-hover);
}

.contact-success-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 0;
}

.contact-success-title {
  margin: 0;
  font-size: 40px;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ground);
}

.contact-success-desc {
  margin: 0;
  color: var(--n-300);
  max-width: 440px;
}

.contact-success-ref {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--n-400);
}

.btn-contact-reset {
  align-self: flex-start;
  background: transparent;
  color: var(--ground);
  border: 1px solid rgba(243, 242, 242, 0.35);
  font-weight: 800;
  font-size: 14px;
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color 0.25s ease;
}

.btn-contact-reset:hover {
  border-color: var(--ground);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--night);
  color: var(--ground);
  border-top: 1px solid var(--rule-dark);
  overflow: hidden;
}

.footer-top-grid {
  padding: 56px var(--gutter) 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col-brand .brand-svg {
  width: 64px;
}

.footer-brand-title {
  font-weight: 600;
  letter-spacing: 0.24em;
  font-size: 18px;
  line-height: 1;
}

.footer-brand-claim {
  color: var(--n-400);
  font-weight: 600;
  letter-spacing: 0.3em;
  font-size: 8.5px;
  line-height: 1;
}

.footer-brand-desc {
  font-size: 14px;
  color: var(--n-400);
  max-width: 240px;
  line-height: 1.5;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-col-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--n-600);
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-col-links a {
  color: var(--n-300);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-col-links a:hover {
  color: var(--accent);
}

.footer-wordmark {
  font-size: min(20.5vw, 300px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: #2a2725;
  margin: 64px 0 0;
  white-space: nowrap;
  user-select: none;
}

.footer-legal-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--rule-dark);
  padding: 22px 0 28px;
  font-size: 13px;
  color: var(--n-600);
  margin-top: 24px;
}

/* ==========================================================================
   LEGAL PAGES STYLES
   ========================================================================== */
.legal-main {
  padding: calc(var(--nav-h) + 40px) 0 clamp(60px, 8vw, 120px);
  background: var(--ground);
}

.legal-layout {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.legal-layout h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 12px 0 24px;
}

.legal-layout h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 36px 0 12px;
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}

.legal-layout p, .legal-layout ul {
  font-size: 16px;
  color: var(--n-800);
  margin-bottom: 18px;
}

.legal-layout ul {
  padding-left: 20px;
}

.legal-layout li {
  margin-bottom: 8px;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes pulseDot {
  0%, 100% { transform: scale(1); }
  8% { transform: scale(1.35); }
  18% { transform: scale(1); }
  26% { transform: scale(1.2); }
  36% { transform: scale(1); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marqueeScrollReverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@keyframes scrollCueDrop {
  0% { transform: translateY(-12px); }
  100% { transform: translateY(28px); }
}

.animate-beat {
  animation: pulseDot 1.5s infinite;
}

.animate-pulse {
  animation: pulseGlow 1.2s infinite;
}

.animate-scrollcue {
  animation: scrollCueDrop 1.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Mobile-First Overrides)
   ========================================================================== */
@media (max-width: 1099px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .estimator-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 999px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .telco-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ia-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  /* Navigation switch to mobile */
  .nav-desktop {
    display: none;
  }
  .burger-btn {
    display: flex;
  }

  /* Architecture sticky section mobile layout */
  #arquitectura {
    height: 440svh;
  }
  .arch-stage-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
  }
  .arch-panel-tags {
    display: none;
  }
  .arch-odometer-track {
    font-size: clamp(48px, 14vw, 80px);
  }
  .arch-panel-title {
    font-size: clamp(26px, 7.5vw, 36px);
  }
  .arch-header .section-title {
    font-size: clamp(22px, 6vw, 30px);
  }
  .arch-stage {
    height: clamp(150px, 26svh, 280px);
    max-height: 300px;
  }
  .arch-tab-title {
    display: none;
  }

  /* Telco & Contact */
  .telco-split-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-row-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .telco-cards-grid,
  .projects-grid,
  .ia-cards-grid,
  .about-cards-grid,
  .contact-inputs-row,
  .est-results-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-row-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 599px) {
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   PREFERS-REDUCED-MOTION (Accessibility compliance)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-video {
    display: none;
  }
  .hero-video-wrap {
    background: url('../video/hero-poster.jpg') center/cover no-repeat;
    filter: grayscale(1) contrast(1.1);
  }
  .hero-ecg-canvas {
    display: none;
  }
}
