/* ==========================================================================
   Webs A Tu Medida · hoja de estilos principal
   Índice: 1 Fuentes · 2 Tokens · 3 Base · 4 Utilidades y botones · 5 Cabecera
   6 Hero · 7 Franja · 8 Proyectos · 9 Servicios · 10 Por qué · 11 Proceso
   12 Nosotros · 13 FAQ · 14 Contacto y formulario · 15 Pie · 16 Cookies y flotante
   17 Casos · 18 Legales · 19 Animaciones · 20 Movimiento reducido
   ========================================================================== */

/* 1 · Fuentes (alojadas localmente) */
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-ExtraBold.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }

/* 2 · Tokens */
:root {
  --navy: #0B1733;
  --navy-2: #13234A;
  --navy-3: #070F24;
  --ivory: #F4F2EC;
  --ivory-2: #EAE6DB;
  --white: #FFFFFF;
  --blue: #2557F5;
  --blue-hover: #1A44D4;
  --blue-soft: #DCE5FF;
  --blue-on-dark: #8FAAFF;

  --ink: var(--navy);
  --ink-soft: #4C5468;
  --line: rgba(11, 23, 51, 0.14);
  --line-strong: rgba(11, 23, 51, 0.28);
  --on-dark: var(--ivory);
  --on-dark-soft: rgba(244, 242, 236, 0.74);
  --line-dark: rgba(244, 242, 236, 0.16);

  --ok: #17663F;   --ok-bg: #E2F3E9;
  --err: #B3261E;  --err-bg: #FBE7E5;
  --warn: #7A4E00; --warn-bg: #FFF1D6;

  --font-text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Inter Display", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-lede: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  --fs-h1: clamp(2.7rem, 1.1rem + 5.4vw, 6.5rem);
  --fs-xxl: clamp(2.9rem, 1rem + 6.6vw, 7.75rem);
  --fs-xl: clamp(2.2rem, 1rem + 3.7vw, 4.75rem);
  --fs-lg: clamp(1.8rem, 1rem + 2.2vw, 3.1rem);

  --gutter: clamp(20px, 4.2vw, 64px);
  --maxw: 1440px;
  --header-h: 76px;
  --radius: 22px;
  --radius-lg: clamp(26px, 3.4vw, 52px);
  --section-y: clamp(88px, 11vw, 176px);

  --ease-out: cubic-bezier(0.2, 0.75, 0.2, 1);
  --ease-snap: cubic-bezier(0.34, 1.32, 0.5, 1);
  --t-ui: 200ms;
  --t-in: 650ms;
  --shadow: 0 1px 2px rgba(11, 23, 51, 0.06), 0 18px 40px -12px rgba(11, 23, 51, 0.22);
  --shadow-lg: 0 2px 4px rgba(11, 23, 51, 0.06), 0 40px 80px -24px rgba(11, 23, 51, 0.35);
}

/* 3 · Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance; }
h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--blue); color: var(--white); }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
[data-tone="dark"] :focus-visible, .section--dark :focus-visible, .mobile-menu :focus-visible { outline-color: var(--blue-on-dark); }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 112px); }
.section--dark { background: var(--navy); color: var(--on-dark); }
section[id] { scroll-margin-top: var(--header-h); }

/* 4 · Utilidades, tipografía y botones */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 200; padding: 12px 18px; background: var(--navy); color: var(--ivory); border-radius: 10px; font-weight: 600; transform: translateY(-160%); transition: transform var(--t-ui) var(--ease-out); }
.skip-link:focus { transform: none; }
.muted { opacity: 0.72; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.65em;
  margin: 0 0 clamp(18px, 2vw, 28px);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; opacity: 0.55; }
.eyebrow-dot { display: none; }
.eyebrow-count { opacity: 0.6; letter-spacing: 0.04em; }
.h-xxl { font-size: var(--fs-xxl); }
.h-xl { font-size: var(--fs-xl); }
.h-lg { font-size: var(--fs-lg); line-height: 1.02; }
.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--ink-soft); max-width: 36ch; margin: 0; }
.section--dark .lede { color: var(--on-dark-soft); }
.accent-text { color: var(--blue); }

.icon { width: 1.1em; height: 1.1em; flex: none; }

.btn {
  --btn-bg: var(--navy); --btn-fg: var(--ivory); --btn-bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.85em 1.45em;
  border: 1.5px solid var(--btn-bd); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 1rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-ui) var(--ease-out), color var(--t-ui) var(--ease-out), border-color var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out), box-shadow var(--t-ui) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { transition: transform var(--t-ui) var(--ease-out); }
.btn--primary { --btn-bg: var(--blue); --btn-fg: var(--white); }
.btn--dark { --btn-bg: var(--navy); --btn-fg: var(--ivory); }
.btn--light { --btn-bg: var(--ivory); --btn-fg: var(--navy); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--line-strong); }
.btn--outline { --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: currentColor; color: inherit; }
.btn--small { min-height: 42px; padding: 0.6em 1.1em; font-size: 0.9375rem; }
.btn--large { min-height: 56px; padding: 1em 1.7em; font-size: 1.0625rem; }
.btn--block { width: 100%; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(11, 23, 51, 0.45); }
  .btn:hover .icon { transform: translateX(3px); }
  .btn--primary:hover { --btn-bg: var(--blue-hover); }
  .btn--dark:hover { --btn-bg: var(--navy-2); }
  .btn--ghost:hover { --btn-bd: var(--navy); --btn-bg: rgba(11, 23, 51, 0.04); }
  .btn--light:hover { --btn-bg: var(--white); }
  .btn--outline:hover { --btn-bg: rgba(127, 127, 127, 0.1); }
}
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; opacity: 0.7; transform: none; box-shadow: none; }

.link-arrow, .link-ext, .link-inline {
  display: inline-flex; align-items: center; gap: 0.5em; font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  padding-bottom: 3px; transition: background-size var(--t-ui) var(--ease-out), color var(--t-ui);
}
.link-inline { display: inline; }
.link-arrow .icon, .link-ext .icon { transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) {
  .link-arrow:hover, .link-ext:hover, .link-inline:hover { background-size: 0% 1.5px; background-position: 100% 100%; color: var(--blue); }
  .section--dark .link-arrow:hover, .section--dark .link-ext:hover { color: var(--blue-on-dark); }
  .link-arrow:hover .icon { transform: translateX(4px); }
  .link-ext:hover .icon { transform: translate(2px, -2px); }
}
.link-arrow--big { font-family: var(--font-display); font-size: clamp(1.5rem, 1rem + 1.8vw, 2.6rem); letter-spacing: -0.03em; font-weight: 700; background-size: 100% 2.5px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; transition: background-color var(--t-ui); }
.icon-button:hover { background: rgba(11, 23, 51, 0.06); }

.x { position: relative; width: 16px; height: 16px; display: inline-block; }
.x::before, .x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.x::before { transform: translate(-50%, -50%) rotate(45deg); }
.x::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* Marco de navegador para capturas reales */
.frame { margin: 0; position: relative; background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(11, 23, 51, 0.08); }
.frame-bar { display: flex; align-items: center; gap: 12px; height: clamp(22px, 2.4vw, 32px); padding-inline: 12px; background: #EDEBE4; border-bottom: 1px solid rgba(11, 23, 51, 0.07); }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(11, 23, 51, 0.2); }
.frame-url { flex: 0 1 auto; margin-inline: auto; padding: 2px 14px; border-radius: 99px; background: rgba(255, 255, 255, 0.75); font-size: 0.6875rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame-shot { position: relative; overflow: hidden; background: var(--ivory-2); }
.frame-shot img { width: 100%; height: auto; }
.frame-tag { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 99px; background: rgba(11, 23, 51, 0.88); color: var(--ivory); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.01em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.frame-tag span { font-weight: 400; opacity: 0.75; }

.detail-chip { margin: 0; background: var(--white); border-radius: 14px; padding: 8px 8px 0; box-shadow: var(--shadow-lg); border: 1px solid rgba(11, 23, 51, 0.08); }
.detail-chip img { border-radius: 8px; }
.detail-chip figcaption { padding: 8px 6px 9px; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

/* Marcas de corte */
.crop { position: absolute; width: 18px; height: 18px; border-color: var(--blue); border-style: solid; border-width: 0; opacity: 0.8; pointer-events: none; }
.c-tl { left: 0; top: 0; border-left-width: 1.5px; border-top-width: 1.5px; }
.c-tr { right: 0; top: 0; border-right-width: 1.5px; border-top-width: 1.5px; }
.c-bl { left: 0; bottom: 0; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.c-br { right: 0; bottom: 0; border-right-width: 1.5px; border-bottom-width: 1.5px; }

/* 5 · Cabecera */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--navy);
  transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out), box-shadow 300ms, transform 350ms var(--ease-out), height 300ms var(--ease-out);
}
.site-header.is-scrolled { --header-h: 66px; background: rgba(244, 242, 236, 0.86); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.site-header.is-scrolled[data-tone="dark"] { background: rgba(11, 23, 51, 0.86); box-shadow: 0 1px 0 var(--line-dark); }
.site-header[data-tone="dark"] { color: var(--ivory); }
.site-header.is-hidden { transform: translateY(-105%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; border-radius: 8px; }
.brand-mark { position: relative; width: 44px; height: 26px; flex: none; }
.brand-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 300ms; }
.brand-mark--dark { opacity: 0; }
.site-header[data-tone="dark"] .brand-mark--light, .mobile-menu .brand-mark--light { opacity: 0; }
.site-header[data-tone="dark"] .brand-mark--dark { opacity: 1; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.1875rem; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.brand-name span { font-weight: 700; opacity: 0.7; }
.main-nav ul { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.main-nav a { position: relative; display: inline-block; padding: 10px 0; font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 250ms var(--ease-out); }
.main-nav a:hover::after, .main-nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px 0 14px; border: 1.5px solid currentColor; border-radius: 99px; background: transparent; font-weight: 600; font-size: 0.9375rem; }
.burger { display: inline-grid; gap: 5px; width: 30px; height: 30px; place-content: center; }
.burger span { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--t-ui) var(--ease-out); }
.burger span:last-child { width: 11px; justify-self: end; }
@media (hover: hover) { .menu-toggle:hover .burger span:last-child { transform: scaleX(1.45); transform-origin: right; } }

@media (max-width: 1023px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 420px) { .brand-name { font-size: 1.0625rem; } .brand-mark { width: 38px; } .brand { gap: 9px; } .menu-toggle-label { display: none; } .menu-toggle { padding: 0 6px; } }

.mobile-menu {
  position: fixed; inset: 0; z-index: 100; background: var(--navy); color: var(--ivory);
  clip-path: inset(0 0 100% 0); transition: clip-path 480ms var(--ease-out); overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.mobile-menu-inner { min-height: 100%; display: flex; flex-direction: column; padding: 14px var(--gutter) calc(28px + env(safe-area-inset-bottom)); }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; min-height: 52px; }
.mobile-menu-title { font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; font-weight: 600; }
.menu-close { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line-dark); background: transparent; font-weight: 600; }
.mobile-links { margin-top: clamp(28px, 8vh, 64px); display: grid; }
.mobile-links li { border-bottom: 1px solid var(--line-dark); overflow: hidden; }
.mobile-links a { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em; font-size: clamp(2rem, 9vw, 3.25rem); line-height: 1; text-decoration: none; transform: translateY(105%); transition: transform 520ms var(--ease-out), color var(--t-ui); }
.mobile-links .idx { font-family: var(--font-text); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; color: var(--blue-on-dark); }
.mobile-menu.is-open .mobile-links a { transform: none; }
.mobile-menu.is-open .mobile-links li:nth-child(2) a { transition-delay: 50ms; }
.mobile-menu.is-open .mobile-links li:nth-child(3) a { transition-delay: 100ms; }
.mobile-menu.is-open .mobile-links li:nth-child(4) a { transition-delay: 150ms; }
.mobile-menu.is-open .mobile-links li:nth-child(5) a { transition-delay: 200ms; }
.mobile-links a:active { color: var(--blue-on-dark); }
.mobile-menu-foot { margin-top: auto; padding-top: 36px; display: grid; gap: 18px; }
.mobile-menu-contact { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.mobile-menu-contact a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; }

/* 6 · Hero */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(20px, 3vh, 40px)); padding-bottom: clamp(64px, 9vw, 128px); overflow: hidden; }
.hero::before { /* retícula muy sutil: la «mesa de trabajo» */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc((min(100vw, var(--maxw)) - 2 * var(--gutter)) / 12) 100%;
  background-position: calc(50% - (min(100vw, var(--maxw)) - 2 * var(--gutter)) / 2) 0;
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 70%, transparent);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 4vw, 72px); align-items: center; min-height: min(calc(100svh - var(--header-h) - 80px), 780px); }
.hero-title { font-size: var(--fs-h1); line-height: 0.93; letter-spacing: -0.045em; margin-bottom: clamp(22px, 2.6vw, 36px); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .line-in { display: inline-block; }
.line--accent .line-in { position: relative; color: var(--blue); }
.hero-lead { font-size: var(--fs-lede); line-height: 1.5; color: var(--ink-soft); max-width: 44ch; margin-bottom: clamp(26px, 3vw, 38px); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; align-items: center; margin: 26px 0 0; font-size: 0.9375rem; font-weight: 600; color: var(--ink-soft); }
.duo-dot { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--ivory); font-family: var(--font-display); font-size: 0.8125rem; font-weight: 800; border: 2px solid var(--ivory); }
.duo-dot--b { background: var(--blue); margin-left: -4px; margin-right: 12px; }

.hero-stage { position: relative; aspect-ratio: 1 / 0.9; margin-right: calc(-0.4 * var(--gutter)); }
.stage-layer { position: absolute; will-change: transform; }
.stage-layer--a { left: 5%; top: 9%; width: 91%; z-index: 1; }
.stage-layer--b { right: -3%; bottom: 13%; width: 60%; z-index: 2; }
.stage-layer--c { left: -4%; bottom: 2%; width: 33%; z-index: 3; }
.stage-guides { position: absolute; inset: 0; pointer-events: none; }
.ruler { position: absolute; color: var(--ink-soft); }
.ruler--top { left: 5%; right: 4%; top: 0; height: 14px; border-bottom: 1px solid var(--line-strong);
  background: repeating-linear-gradient(to right, var(--line-strong) 0 1px, transparent 1px 10px) bottom / 100% 5px no-repeat,
              repeating-linear-gradient(to right, var(--line-strong) 0 1px, transparent 1px 50px) bottom / 100% 10px no-repeat; }
.ruler--side { left: 0; top: 9%; bottom: 13%; width: 14px; border-right: 1px solid var(--line-strong);
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 1px, transparent 1px 10px) right / 5px 100% no-repeat,
              repeating-linear-gradient(to bottom, var(--line-strong) 0 1px, transparent 1px 50px) right / 10px 100% no-repeat; }
.rl { position: absolute; top: -16px; transform: translateX(-50%); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.rl[data-at="25"] { left: 25%; } .rl[data-at="53"] { left: 53%; } .rl[data-at="71"] { left: 71%; } .rl[data-at="100"] { left: 100%; transform: translateX(-100%); }
.guide { position: absolute; background-repeat: repeat; opacity: 0.6; }
.guide--v { top: 0; bottom: 0; width: 1px; background-image: linear-gradient(to bottom, var(--blue) 0 4px, transparent 4px 9px); background-size: 1px 9px; }
.guide--h { left: 0; right: 0; height: 1px; background-image: linear-gradient(to right, var(--blue) 0 4px, transparent 4px 9px); background-size: 9px 1px; }
.g1 { left: 5%; } .g2 { left: 96%; } .g3 { top: 9%; } .g4 { bottom: 13%; }
.measure { position: absolute; left: 5%; width: 91%; top: 4.4%; height: 12px; display: grid; place-items: center; }
.measure-line { position: absolute; inset: 50% 0 auto; height: 1.5px; background: var(--blue); }
.measure-line::before, .measure-line::after { content: ""; position: absolute; top: -5px; width: 1.5px; height: 11px; background: var(--blue); }
.measure-line::before { left: 0; } .measure-line::after { right: 0; }
.measure-label { position: relative; padding: 3px 10px; border-radius: 99px; background: var(--blue); color: var(--white); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.stage-guides .crop { width: 14px; height: 14px; }
.frame--second .frame-tag, .frame--main .frame-tag { bottom: 10px; left: 10px; }

@media (max-width: 1179px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: clamp(40px, 8vw, 64px); }
  .hero-stage { margin-right: 0; max-width: 760px; width: 100%; justify-self: center; }
}
@media (max-width: 560px) {
  .hero-stage { aspect-ratio: 1 / 0.98; }
  .stage-layer--a { left: 7%; width: 92%; }
  .stage-layer--b { right: -2%; width: 66%; bottom: 10%; }
  .stage-layer--c { left: 0; width: 40%; bottom: 0; }
  .ruler--side, .rl[data-at="53"], .rl[data-at="71"] { display: none; }
  .measure-label { font-size: 0.625rem; padding: 2px 8px; }
  .frame-tag { font-size: 0.6875rem; padding: 4px 9px; }
  .frame--main .frame-tag, .stage-layer--c figcaption { display: none; }
  .stage-layer--c { width: 34%; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* 7 · Franja tipográfica */
.ticker { position: relative; background: var(--navy); color: var(--ivory); overflow: hidden; padding-block: clamp(18px, 2.4vw, 30px); }
.ticker-track { display: flex; width: max-content; animation: ticker 42s linear infinite; }
.ticker.is-paused .ticker-track { animation-play-state: paused; }
@media (hover: hover) { .ticker:hover .ticker-track { animation-play-state: paused; } }
.ticker-row { display: flex; flex: none; }
.ticker-row li { display: inline-flex; align-items: center; gap: clamp(22px, 3vw, 44px); padding-right: clamp(22px, 3vw, 44px); font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em; font-size: clamp(1.75rem, 1rem + 2.6vw, 3.4rem); line-height: 1.15; white-space: nowrap; }
.ticker-row li:nth-child(even) { color: transparent; -webkit-text-stroke: 1.2px var(--ivory); }
.ticker-row li::after { content: ""; width: 0.32em; height: 0.32em; background: var(--blue); transform: rotate(45deg); flex: none; }
.ticker-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-dark); background: var(--navy); color: var(--ivory); display: grid; place-items: center; }
.pause-ico { width: 12px; height: 12px; border-inline: 3.5px solid currentColor; box-sizing: border-box; }
.ticker.is-paused .pause-ico { border: 0; width: 0; height: 0; border-left: 11px solid currentColor; border-block: 7px solid transparent; margin-left: 3px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* 8 · Proyectos */
.section-head { margin-bottom: clamp(48px, 7vw, 104px); }
.section-head--split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px clamp(24px, 5vw, 96px); align-items: end; }
.section-head--split .h-xl { max-width: 15ch; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

.project-list { display: grid; gap: clamp(88px, 12vw, 180px); }
.project { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px); align-items: end; }
.project-media { position: relative; display: block; text-decoration: none; }
.project--a .project-media { grid-column: 1 / span 8; }
.project--a .project-info { grid-column: 9 / span 4; }
.project--b .project-media { grid-column: 5 / span 8; grid-row: 1; }
.project--b .project-info { grid-column: 1 / span 4; grid-row: 1; align-self: start; padding-top: clamp(0px, 6vw, 96px); }
.project .frame-shot img { transition: transform 900ms var(--ease-out); transform-origin: 50% 0; }
.project .frame { transition: box-shadow 400ms var(--ease-out), transform 600ms var(--ease-out); }
.open-badge { position: absolute; top: clamp(14px, 3vw, 36px); right: clamp(14px, 3vw, 36px); z-index: 3; display: grid; place-items: center; width: clamp(56px, 6vw, 84px); aspect-ratio: 1; border-radius: 50%; background: var(--blue); color: var(--white); transform: scale(0.4) rotate(-45deg); opacity: 0; transition: transform 380ms var(--ease-snap), opacity 220ms; }
.open-badge .icon { width: 40%; height: 40%; }
.project:hover .open-badge, .project:focus-within .open-badge { transform: none; opacity: 1; }
.project:hover .frame-shot img, .project:focus-within .frame-shot img { transform: scale(1.035); }
.project:hover .frame, .project:focus-within .frame { transform: translateY(-6px); }
.detail-chip--project { position: absolute; left: clamp(-40px, -3vw, -12px); bottom: clamp(-48px, -4vw, -16px); width: 30%; z-index: 2; transition: transform 600ms var(--ease-out); }
.project:hover .detail-chip--project { transform: translate(-6px, 6px) rotate(-1.5deg); }
.project-index { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 2rem + 6vw, 8.5rem); line-height: 0.8; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px var(--navy); margin-bottom: clamp(16px, 2vw, 28px); }
.project-type { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.project-name { font-size: var(--fs-lg); line-height: 1; margin-bottom: 16px; }
.project-name a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 350ms var(--ease-out); }
.project-name a:hover, .project-name a:focus-visible { background-size: 100% 2px; }
.project-summary { color: var(--ink-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.tags li { padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line-strong); font-size: 0.8125rem; font-weight: 600; }
.project-links { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.projects-next { margin-top: clamp(88px, 11vw, 160px); padding-top: 28px; border-top: 1px solid var(--line-strong); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 32px; }
.projects-next p { margin: 0; font-size: var(--fs-lede); color: var(--ink-soft); }
@media (max-width: 1023px) {
  .project { grid-template-columns: 1fr; gap: 36px; }
  .project--a .project-media, .project--a .project-info, .project--b .project-media, .project--b .project-info { grid-column: 1; grid-row: auto; padding-top: 0; }
  .project-info { max-width: 620px; }
  .detail-chip--project { left: auto; right: -6px; bottom: -28px; width: 34%; }
  .open-badge { opacity: 1; transform: none; width: 52px; }
  .project-index { font-size: 3.5rem; }
}

/* 9 · Servicios */
.services { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.svc:not(.is-tabs) { grid-template-columns: 1fr; }
.svc-list { display: grid; border-top: 1px solid var(--line-dark); position: sticky; top: calc(var(--header-h) + 32px); }
.svc-tab { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; width: 100%; padding: clamp(18px, 2vw, 28px) 4px; border: 0; border-bottom: 1px solid var(--line-dark); background: none; color: var(--ivory); text-align: left; opacity: 0.45; transition: opacity var(--t-ui), padding var(--t-ui) var(--ease-out); position: relative; }
.svc-tab::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--blue-on-dark); transform: scaleX(0); transform-origin: left; transition: transform 450ms var(--ease-out); }
.svc-tab[aria-selected="true"] { opacity: 1; padding-left: 14px; }
.svc-tab[aria-selected="true"]::before { transform: scaleX(1); }
.svc-tab:hover { opacity: 0.85; }
.svc-tab[aria-selected="true"]:hover { opacity: 1; }
.svc-num { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; color: var(--blue-on-dark); font-variant-numeric: tabular-nums; }
.svc-name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 1rem + 1.7vw, 2.75rem); letter-spacing: -0.035em; line-height: 1; }
.svc-arrow .icon { width: 26px; height: 26px; transition: transform var(--t-ui) var(--ease-out); }
.svc-tab[aria-selected="true"] .svc-arrow .icon { transform: translateX(6px); color: var(--blue-on-dark); }
.svc-panels { position: relative; }
.svc-panel { position: relative; padding-block: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line-dark); }
.svc.is-tabs .svc-panel { border-top: 0; padding-top: clamp(8px, 1vw, 16px); min-height: 440px; }
.svc.is-tabs .svc-panel.is-entering { animation: panelIn 420ms var(--ease-out) both; }
.svc-panel-num { position: absolute; right: 0; top: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 3rem + 7vw, 11rem); line-height: 0.8; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.2px rgba(244, 242, 236, 0.22); pointer-events: none; }
.svc-panel-title { font-size: clamp(1.75rem, 1rem + 2vw, 3rem); margin-bottom: 18px; max-width: 12ch; }
.svc-need { font-size: var(--fs-lede); line-height: 1.5; color: var(--on-dark-soft); max-width: 40ch; margin-bottom: 26px; }
.svc-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-bottom: 30px; }
.svc-points li { position: relative; padding: 14px 0 14px 26px; border-top: 1px solid var(--line-dark); }
.svc-points li::before { content: ""; position: absolute; left: 2px; top: 1.32em; width: 9px; height: 9px; background: var(--blue); transform: rotate(45deg); }
.svc-extras { margin-top: clamp(64px, 8vw, 120px); padding-top: 28px; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px 40px; align-items: center; }
.svc-extras-title { margin: 0; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 9px 16px; border-radius: 99px; border: 1.5px solid var(--line-dark); font-weight: 600; font-size: 0.9375rem; }
.svc-extras-note { grid-column: 2; margin: 0; font-size: var(--fs-small); color: var(--on-dark-soft); }
@media (max-width: 960px) { .svc-points { grid-template-columns: 1fr; } .svc-extras { grid-template-columns: 1fr; } .svc-extras-note { grid-column: 1; } .svc-panel-num { font-size: 4.5rem; } }

/* 10 · Por qué */
.why-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.why-head { position: sticky; top: calc(var(--header-h) + 40px); }
.why-head .h-xl { max-width: 11ch; }
.duo { display: flex; align-items: center; gap: 10px; margin-top: clamp(28px, 3vw, 44px); }
.duo-badge { padding: 10px 20px; border-radius: 99px; background: var(--navy); color: var(--ivory); font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.duo-badge--b { background: var(--blue); }
.duo-plus { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--ink-soft); }
.why-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); counter-reset: why; }
.why-item { padding: clamp(22px, 2.4vw, 32px) 0; border-top: 1px solid var(--line-strong); }
.why-item:first-child { grid-column: 1 / -1; padding-bottom: clamp(32px, 4vw, 56px); }
.why-item:first-child h3 { font-size: clamp(1.8rem, 1rem + 2vw, 2.75rem); letter-spacing: -0.035em; }
.why-item:first-child p { font-size: var(--fs-lede); max-width: 40ch; }
.why-num { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--blue); letter-spacing: 0.06em; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.why-item h3 { font-size: 1.375rem; margin-bottom: 10px; }
.why-item p { margin: 0; color: var(--ink-soft); }
@media (max-width: 960px) { .why-grid { grid-template-columns: 1fr; } .why-head { position: static; } }
@media (max-width: 600px) { .why-list { grid-template-columns: 1fr; } }

/* 11 · Proceso */
.process { background: var(--blue-soft); }
.process-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.process-aside { position: sticky; top: calc(var(--header-h) + 40px); }
.process-aside .h-xl { max-width: 10ch; }
.process-counter { display: flex; align-items: flex-end; gap: 6px; margin-top: clamp(28px, 4vw, 56px); font-family: var(--font-display); font-weight: 800; letter-spacing: -0.06em; line-height: 0.8; }
.process-num-wrap { display: inline-block; overflow: hidden; padding-bottom: 0.04em; }
.process-num { display: inline-block; font-size: clamp(6rem, 3rem + 8vw, 12.5rem); color: var(--blue); font-variant-numeric: tabular-nums; }
.process-num.is-swap { animation: numSwap 450ms var(--ease-out); }
.process-total { font-size: clamp(1.6rem, 1rem + 1.5vw, 2.6rem); color: var(--ink-soft); padding-bottom: 0.3em; }
.process-rail { margin-top: 28px; height: 3px; background: rgba(11, 23, 51, 0.12); border-radius: 3px; overflow: hidden; }
.process-bar { display: block; height: 100%; background: var(--navy); transform-origin: left; transform: scaleX(0.25); transition: transform 500ms var(--ease-out); }
.step { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 40px); padding-block: clamp(36px, 5vw, 64px); border-top: 1.5px solid rgba(11, 23, 51, 0.16); transition: opacity 400ms var(--ease-out); }
.process.is-enhanced .step { min-height: 38vh; opacity: 0.38; }
.process.is-enhanced .step.is-active { opacity: 1; }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--blue); letter-spacing: -0.02em; padding-top: 0.25em; font-variant-numeric: tabular-nums; }
.step h2, .step h3 { font-size: clamp(1.6rem, 1rem + 1.6vw, 2.5rem); letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 14px; }
.step p { margin: 0; font-size: var(--fs-lede); line-height: 1.5; color: var(--ink-soft); max-width: 40ch; }
@media (max-width: 960px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-aside { position: static; }
  .process-counter, .process-rail { display: none; }
  .process.is-enhanced .step { min-height: 0; opacity: 1; }
}

/* 12 · Nosotros */
.about { overflow: hidden; }
.about-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 112px); align-items: center; }
.about-names { display: grid; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.06em; line-height: 0.82; font-size: clamp(4.6rem, 1rem + 12vw, 13rem); }
.about-name { color: transparent; -webkit-text-stroke: 1.5px var(--ivory); }
.about-name--b { color: var(--ivory); -webkit-text-stroke: 0; padding-left: 0.9em; }
.about-amp { color: var(--blue-on-dark); padding-left: 0.45em; font-size: 0.7em; line-height: 0.9; }
.about-place { margin-top: 28px; font-family: var(--font-text); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-soft); display: flex; align-items: center; gap: 12px; }
.about-place::before { content: ""; width: 42px; height: 1.5px; background: var(--blue-on-dark); }
.about-copy .h-lg { margin-bottom: 26px; max-width: 16ch; }
.about-copy p { color: var(--on-dark-soft); font-size: 1.125rem; }
.areas-label { margin: 34px 0 12px; font-size: var(--fs-small) !important; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.areas { display: flex; flex-wrap: wrap; gap: 8px; }
.areas li { padding: 7px 14px; border-radius: 99px; border: 1.5px solid var(--line-dark); font-weight: 600; font-size: 0.9375rem; }
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; } }

/* 13 · Preguntas frecuentes */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 40px); }
.faq-head .h-lg { max-width: 12ch; margin-bottom: 22px; }
.faq-more { color: var(--ink-soft); }
.faq-list { border-top: 1.5px solid var(--navy); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-q { font-family: var(--font-text); font-size: inherit; letter-spacing: 0; }
.faq-q button { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding: clamp(20px, 2.2vw, 28px) 0; border: 0; background: none; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); letter-spacing: -0.02em; line-height: 1.25; transition: color var(--t-ui); }
.faq-q button:hover { color: var(--blue); }
.plus { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: background-color var(--t-ui), border-color var(--t-ui), transform 350ms var(--ease-out); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; border-radius: 2px; transform: translate(-50%, -50%); transition: transform 300ms var(--ease-out); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-q button[aria-expanded="true"] .plus { background: var(--navy); border-color: var(--navy); color: var(--ivory); transform: rotate(180deg); }
.faq-q button[aria-expanded="true"] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 350ms var(--ease-out), visibility 350ms; }
.faq-a-inner { overflow: hidden; min-height: 0; }
.faq-a-inner p { margin: 0; padding: 0 64px clamp(22px, 2.4vw, 30px) 0; color: var(--ink-soft); font-size: 1.0625rem; max-width: 62ch; }
.faq-a.is-closed { grid-template-rows: 0fr; visibility: hidden; }
@media (max-width: 960px) { .faq-grid { grid-template-columns: 1fr; } .faq-head { position: static; } .faq-a-inner p { padding-right: 0; } }

/* 14 · Contacto y formulario */
.contact { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.contact-copy .h-xxl { margin-bottom: 26px; max-width: 11ch; font-size: clamp(2.9rem, 1rem + 5.2vw, 6rem); }
.contact-text { font-size: var(--fs-lede); color: var(--on-dark-soft); max-width: 36ch; }
.contact-alt-title { margin: clamp(40px, 5vw, 64px) 0 14px; font-family: var(--font-text); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-soft); }
.contact-alts { border-top: 1px solid var(--line-dark); }
.contact-alts li { border-bottom: 1px solid var(--line-dark); }
.contact-alts a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 16px 6px; text-decoration: none; transition: background-color var(--t-ui), padding var(--t-ui) var(--ease-out); border-radius: 4px; }
.contact-alts a > .icon:first-child { width: 42px; height: 42px; padding: 10px; border-radius: 50%; border: 1.5px solid var(--line-dark); }
.contact-alts strong { display: block; font-weight: 600; }
.contact-alts small { display: block; font-size: 0.9375rem; color: var(--on-dark-soft); word-break: break-all; }
.contact-alts a > .icon:last-of-type { transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) { .contact-alts a:hover { background: rgba(244, 242, 236, 0.05); padding-left: 14px; } .contact-alts a:hover > .icon:last-of-type { transform: translateX(4px); color: var(--blue-on-dark); } }

.contact-form-wrap { position: relative; }
.contact-form { background: var(--ivory); color: var(--navy); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 52px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6); }
.form-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-bottom: 24px; }
.form-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.025em; }
.form-req { margin: 0; font-size: var(--fs-small); color: var(--ink-soft); align-self: center; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { display: grid; gap: 7px; margin-bottom: 18px; align-content: start; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.req { color: var(--blue); }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 15px; border: 1.5px solid rgba(11, 23, 51, 0.2); border-radius: 12px; background: var(--white); font-size: 1rem; line-height: 1.4;
  transition: border-color var(--t-ui), box-shadow var(--t-ui);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(11, 23, 51, 0.38); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 87, 245, 0.18); }
.field [aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12); }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; }
.field-hint { margin: 0; font-size: 0.8125rem; color: var(--ink-soft); text-align: right; font-variant-numeric: tabular-nums; }
.field-hint.is-near { color: var(--warn); }
.field-error { margin: 0; display: flex; gap: 6px; align-items: flex-start; color: var(--err); font-size: 0.875rem; font-weight: 600; }
.field-error::before { content: "!"; display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--err); color: var(--white); font-size: 0.75rem; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; margin-top: 4px; }
.field--check input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; min-height: 0; padding: 0; margin: 1px 0 0; border-radius: 7px; display: grid; place-items: center; cursor: pointer; }
.field--check input::after { content: ""; width: 6px; height: 11px; border-right: 2.5px solid var(--white); border-bottom: 2.5px solid var(--white); transform: translateY(-1px) rotate(45deg) scale(0); transition: transform 180ms var(--ease-snap); }
.field--check input:checked { background: var(--blue); border-color: var(--blue); }
.field--check input:checked::after { transform: translateY(-1px) rotate(45deg) scale(1); }
.field--check label { font-weight: 400; font-size: 0.9375rem; line-height: 1.5; }
.field--check label a { font-weight: 600; text-underline-offset: 3px; }
.field--check .field-error { grid-column: 1 / -1; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 10px; }
.form-alt { margin: 0; font-size: var(--fs-small); color: var(--ink-soft); }
.form-alt a { font-weight: 600; text-underline-offset: 3px; word-break: break-all; }
.btn--submit .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: var(--white); animation: spin 0.8s linear infinite; }
.btn--submit.is-loading .spinner { display: inline-block; }
.btn--submit.is-loading .icon { display: none; }
.form-status:empty { display: none; }
.form-status, .form-notice, .error-summary { margin-top: 20px; padding: 16px 18px; border-radius: 14px; font-size: 0.9375rem; line-height: 1.5; }
.form-notice, .error-summary { margin: 0 0 22px; }
.form-status p, .form-notice p, .error-summary p { margin: 0 0 6px; }
.form-status p:last-child, .form-notice p:last-child { margin: 0; }
.is-success { background: var(--ok-bg); color: var(--ok); border: 1.5px solid rgba(23, 102, 63, 0.3); }
.is-error, .error-summary { background: var(--err-bg); color: var(--err); border: 1.5px solid rgba(179, 38, 30, 0.3); }
.is-pending { background: var(--warn-bg); color: var(--warn); border: 1.5px solid rgba(122, 78, 0, 0.3); }
.error-summary ul { list-style: disc; padding-left: 20px; }
.error-summary a { color: inherit; font-weight: 600; }
.form-status a, .form-notice a { color: inherit; font-weight: 600; }
.status-title { font-weight: 700; }
.contact-form.is-sent .field, .contact-form.is-sent .field-row, .contact-form.is-sent .form-actions { opacity: 0.45; pointer-events: none; }
@media (max-width: 1023px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } .btn--submit { width: 100%; } }

/* 15 · Pie */
.site-footer { background: var(--navy-3); color: var(--on-dark); padding-top: clamp(72px, 9vw, 128px); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 3.2fr) minmax(0, 2fr); gap: 40px clamp(24px, 3vw, 56px); }
.footer-logo { width: 64px; height: auto; margin-bottom: 22px; }
.footer-tagline { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 1rem + 1vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.15; max-width: 20ch; margin-bottom: 26px; }
.footer-h { font-family: var(--font-text); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-soft); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 4px; }
.footer-col a, .footer-col .link-button { display: inline-block; padding: 6px 0; text-decoration: none; color: var(--ivory); word-break: break-word; transition: color var(--t-ui); }
.footer-col .link-button { text-decoration: underline; text-decoration-color: var(--line-dark); }
.footer-col a:hover, .footer-col .link-button:hover { color: var(--blue-on-dark); }
.footer-col .muted { padding: 6px 0; }
.footer-word { margin: clamp(56px, 8vw, 120px) 0 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.055em; line-height: 0.78; font-size: calc((min(100vw, 1440px) - 2 * var(--gutter)) / 7.5); white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(244, 242, 236, 0.28); user-select: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 22px 0 calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-dark); font-size: var(--fs-small); color: var(--on-dark-soft); }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* 16 · WhatsApp flotante y cookies */
.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px 0 16px; border-radius: 99px; background: var(--navy); color: var(--ivory); text-decoration: none; font-weight: 600; box-shadow: 0 16px 30px -12px rgba(11, 23, 51, 0.55); transform: translateY(160%); opacity: 0; transition: transform 400ms var(--ease-out), opacity 300ms, background-color var(--t-ui); }
.wa-float .icon { width: 24px; height: 24px; }
.wa-float.is-visible { transform: none; opacity: 1; }
.wa-float:hover { background: var(--blue); }
@media (max-width: 640px) { .wa-float { width: 56px; padding: 0; justify-content: center; } .wa-float-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

.cc-banner { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 80; width: min(760px, calc(100% - 24px)); transform: translateX(-50%); background: var(--white); color: var(--navy); border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); animation: bannerIn 450ms var(--ease-out) both; }
.cc-banner-inner { display: grid; gap: 14px; padding: 20px 22px; }
.cc-text { margin: 0; font-size: 0.9375rem; line-height: 1.5; }
.cc-text a { font-weight: 600; text-underline-offset: 3px; }
.cc-actions, .cc-dialog-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cc-actions [data-cc-reject], .cc-dialog-actions [data-cc-reject] { order: 1; }
.cc-actions [data-cc-accept], .cc-dialog-actions [data-cc-accept] { order: 2; }
.cc-actions [data-cc-open], .cc-dialog-actions [data-cc-save] { order: 3; }
@media (max-width: 560px) {
  .cc-actions, .cc-dialog-actions { grid-template-columns: 1fr 1fr; }
  .cc-actions [data-cc-open], .cc-dialog-actions [data-cc-save] { grid-column: 1 / -1; }
}
.cc-dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 22px; background: var(--ivory); color: var(--navy); box-shadow: var(--shadow-lg); }
.cc-dialog::backdrop { background: rgba(7, 15, 36, 0.62); backdrop-filter: blur(3px); }
.cc-dialog[open] { animation: dialogIn 300ms var(--ease-out); }
.cc-dialog-inner { padding: clamp(20px, 4vw, 32px); }
.cc-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.cc-dialog-head h2 { font-size: 1.6rem; letter-spacing: -0.03em; }
.cc-dialog p { font-size: 0.9375rem; }
.cc-cat { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.cc-cat h3 { font-family: var(--font-text); font-size: 1rem; letter-spacing: 0; }
.cc-cat p { grid-column: 1; margin: 0; color: var(--ink-soft); font-size: 0.875rem; }
.cc-cat .cc-fixed { font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft); }
.switch { position: relative; grid-row: 1 / span 2; grid-column: 2; width: 52px; height: 30px; }
.switch input { appearance: none; -webkit-appearance: none; position: absolute; inset: 0; margin: 0; border-radius: 99px; background: rgba(11, 23, 51, 0.22); cursor: pointer; transition: background-color var(--t-ui); }
.switch input::after { content: ""; position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 220ms var(--ease-out); }
.switch input:checked { background: var(--blue); }
.switch input:checked::after { transform: translateX(22px); }
.cc-status:empty { display: none; }
.cc-status { margin: 12px 0 0; font-weight: 600; color: var(--ok); }
.cc-dialog-actions { margin-top: 20px; }

/* 16b · Páginas interiores, resumen de servicios y cierre */
.page-hero { position: relative; padding-top: calc(var(--header-h) + clamp(48px, 8vw, 120px)); padding-bottom: clamp(56px, 7vw, 104px); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc((min(100vw, var(--maxw)) - 2 * var(--gutter)) / 12) 100%;
  background-position: calc(50% - (min(100vw, var(--maxw)) - 2 * var(--gutter)) / 2) 0;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, transparent); }
.page-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 28px clamp(32px, 5vw, 96px); align-items: end; padding-block: clamp(18px, 2vw, 28px); }
.page-hero-grid .crop { width: 22px; height: 22px; }
.page-hero-grid .c-tl { left: calc(var(--gutter) - 22px); top: -8px; }
.page-hero-grid .c-br { right: calc(var(--gutter) - 22px); bottom: -8px; }
.page-title { font-size: var(--fs-xxl); letter-spacing: -0.05em; line-height: 0.92; max-width: 13ch; }
.page-title .line, .contact--page h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.page-title .line-in, .contact--page h1 .line-in { display: inline-block; animation: lineUp 820ms var(--ease-out) both; }
.page-lede { margin: 0; }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: 1fr; } .page-hero-grid .crop { display: none; } }
.section--after-hero { padding-top: clamp(24px, 4vw, 56px); }
.contact--page { border-radius: 0; padding-top: calc(var(--header-h) + clamp(48px, 7vw, 104px)); }
.contact--page .contact-copy .h-xxl { font-size: clamp(2.9rem, 1rem + 5.6vw, 6.6rem); }

.svc-rows { border-top: 1px solid var(--line-dark); }
.svc-rows li { border-bottom: 1px solid var(--line-dark); }
.svc-row { display: grid; grid-template-columns: auto minmax(0, 5fr) minmax(0, 6fr) auto; align-items: center; gap: 12px clamp(18px, 3vw, 48px); padding: clamp(22px, 2.6vw, 34px) 4px; text-decoration: none; color: var(--ivory); position: relative; transition: padding var(--t-ui) var(--ease-out); }
.svc-row::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--blue-on-dark); transform: scaleX(0); transform-origin: left; transition: transform 450ms var(--ease-out); }
.svc-row-need { color: var(--on-dark-soft); font-size: 1rem; line-height: 1.5; }
.svc-row .svc-arrow .icon { width: 26px; height: 26px; transition: transform var(--t-ui) var(--ease-out); }
.svc-row:hover, .svc-row:focus-visible { padding-left: 16px; }
.svc-row:hover::before, .svc-row:focus-visible::before { transform: scaleX(1); }
.svc-row:hover .svc-arrow .icon, .svc-row:focus-visible .svc-arrow .icon { transform: translateX(6px); color: var(--blue-on-dark); }
.svc-teaser-more { margin: clamp(36px, 4vw, 56px) 0 0; }
@media (max-width: 760px) { .svc-row { grid-template-columns: auto 1fr auto; } .svc-row-need { grid-column: 2 / 3; } .svc-row .svc-arrow { grid-row: 1; grid-column: 3; } }

.cta-band { padding-block: clamp(80px, 10vw, 152px); }
.cta-band-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 96px); align-items: end; padding-top: clamp(28px, 3vw, 40px); border-top: 1.5px solid var(--navy); }
.cta-band .h-xl { margin-bottom: 18px; max-width: 12ch; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 860px) { .cta-band-inner { grid-template-columns: 1fr; } .cta-band-actions { justify-content: flex-start; } .cta-band-actions .btn { flex: 1 1 100%; } }

/* 17 · Casos */
.case-hero { padding-top: calc(var(--header-h) + clamp(32px, 5vw, 72px)); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-small); color: var(--ink-soft); margin-bottom: clamp(28px, 4vw, 56px); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.breadcrumb a { text-underline-offset: 3px; }
.case-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 36px clamp(32px, 6vw, 112px); align-items: end; }
.case-title { font-size: clamp(2.8rem, 1rem + 6vw, 7.4rem); letter-spacing: -0.05em; line-height: 0.92; margin-bottom: 26px; max-width: 12ch; }
.case-summary { font-size: var(--fs-lede); line-height: 1.5; color: var(--ink-soft); max-width: 46ch; margin: 0; }
.case-meta { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; border-top: 1.5px solid var(--navy); }
.case-meta div { padding: 14px 0; border-bottom: 1px solid var(--line-strong); }
.case-meta div:nth-child(2) { grid-row: span 2; }
.case-meta dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.case-meta dd { margin: 0; font-weight: 600; line-height: 1.45; }
.case-cover-wrap { margin-top: clamp(48px, 6vw, 96px); }
.case-cover { position: relative; padding: clamp(14px, 2vw, 28px); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px clamp(32px, 6vw, 112px); }
.story-label { font-family: var(--font-text); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; padding-top: 18px; border-top: 1.5px solid var(--navy); }
.story-text { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 1rem + 1.1vw, 2.05rem); letter-spacing: -0.025em; line-height: 1.25; margin: 0; }
.work-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.work-grid .h-lg { margin-bottom: 36px; }
.detail-chip--work { max-width: 420px; }
.work-list li { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: clamp(22px, 2.6vw, 34px) 0; border-top: 1px solid var(--line-dark); }
.work-num { font-family: var(--font-display); font-weight: 800; color: var(--blue-on-dark); font-size: 1.125rem; padding-top: 0.2em; }
.work-list h3 { font-size: clamp(1.35rem, 1rem + 0.8vw, 1.85rem); letter-spacing: -0.025em; margin-bottom: 8px; }
.work-list p { margin: 0; color: var(--on-dark-soft); }
.gallery { display: grid; gap: clamp(56px, 7vw, 104px); }
.gallery-item { margin: 0; }
.gallery-item--1 { width: 82%; justify-self: end; }
.gallery-item--2 { width: 82%; }
.gallery-item figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-top: 16px; font-weight: 600; }
.gallery-item figcaption .muted { font-weight: 400; font-size: var(--fs-small); }
.cap-idx { color: var(--blue); font-size: 0.8125rem; letter-spacing: 0.06em; }
.case-next { background: var(--navy); color: var(--ivory); }
.next-link { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 24px; padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); text-decoration: none; }
.next-label { grid-column: 1 / -1; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-soft); }
.next-name { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; font-size: clamp(2.2rem, 1rem + 5vw, 6rem); transition: color var(--t-ui); }
.next-type { grid-column: 1; color: var(--on-dark-soft); }
.next-link .open-badge { position: static; grid-column: 2; grid-row: 2 / span 2; opacity: 1; transform: none; }
.next-thumb { position: absolute; right: 18%; top: 50%; width: clamp(200px, 22vw, 320px); transform: translateY(-50%) rotate(-3deg) scale(0.85); opacity: 0; transition: opacity 300ms, transform 500ms var(--ease-out); pointer-events: none; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-lg); }
@media (hover: hover) { .next-link:hover .next-thumb { opacity: 1; transform: translateY(-50%) rotate(-3deg) scale(1); } .next-link:hover .next-name { color: var(--blue-on-dark); } .next-link:hover .open-badge { transform: rotate(45deg); } }
.case-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(48px, 6vw, 88px); }
.case-cta .h-lg { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em; }
@media (max-width: 960px) {
  .case-hero-grid, .story-grid, .work-grid { grid-template-columns: 1fr; }
  .gallery-item--1, .gallery-item--2 { width: 100%; }
  .next-thumb { display: none; }
}

/* 18 · Legales y 404 */
.legal { padding-top: calc(var(--header-h) + clamp(32px, 5vw, 72px)); }
.legal-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px clamp(32px, 6vw, 112px); align-items: start; }
.legal-head { position: sticky; top: calc(var(--header-h) + 24px); }
.legal-head .h-xl { margin-bottom: 28px; font-size: clamp(2.2rem, 1rem + 3vw, 3.8rem); }
.draft-banner { padding: 16px 18px; border-radius: 14px; background: var(--warn-bg); color: var(--warn); border: 1.5px solid rgba(122, 78, 0, 0.3); font-size: 0.9375rem; margin-bottom: 24px; }
.draft-banner p { margin: 0; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.legal-nav a { padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--line-strong); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.legal-nav a[aria-current="page"] { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.legal-content { max-width: 70ch; }
.legal-content section { padding: 28px 0; border-top: 1px solid var(--line-strong); }
.legal-content h2 { font-size: 1.5rem; letter-spacing: -0.025em; margin-bottom: 16px; }
.legal-content p, .legal-content li { color: var(--ink-soft); }
.legal-content ul { list-style: disc; padding-left: 20px; margin-bottom: 1em; }
.pending { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; padding: 12px 14px; border: 1.5px dashed rgba(122, 78, 0, 0.55); border-radius: 12px; background: var(--warn-bg); color: var(--warn) !important; font-size: 0.9375rem; }
.pending-tag { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: var(--warn); color: var(--white); }
@media (max-width: 960px) { .legal-grid { grid-template-columns: 1fr; } .legal-head { position: static; } }
.notfound { padding-top: calc(var(--header-h) + 80px); min-height: 70vh; }
.notfound .lede { margin: 24px 0 32px; }

/* 19 · Animaciones */
/* Entrada del hero (CSS puro: funciona aunque falle el JS) */
.hero-title .line-in { animation: lineUp 820ms var(--ease-out) both; }
.hero-title .line-in[data-i="1"] { animation-delay: 80ms; }
.hero-title .line-in[data-i="2"] { animation-delay: 160ms; }
.hero-in { animation: fadeUp 650ms var(--ease-out) both; }
.hero-in[data-i="0"] { animation-delay: 0ms; }
.hero-in[data-i="3"] { animation-delay: 260ms; }
.hero-in[data-i="4"] { animation-delay: 360ms; }
.hero-in[data-i="5"] { animation-delay: 460ms; }
.stage-layer--a .frame { animation: snapIn 900ms var(--ease-snap) 120ms both; }
.stage-layer--b .frame { animation: snapInB 900ms var(--ease-snap) 320ms both; }
.stage-layer--c .detail-chip { animation: snapInC 900ms var(--ease-snap) 480ms both; }
.guide--v { transform-origin: top; animation: drawY 900ms var(--ease-out) 200ms both; }
.guide--h { transform-origin: left; animation: drawX 900ms var(--ease-out) 260ms both; }
.measure-line { animation: drawXc 700ms var(--ease-out) 700ms both; }
.measure-label { animation: pop 500ms var(--ease-snap) 1000ms both; }
.ruler, .crop, .rl { animation: fade 600ms ease 100ms both; }

@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes drawX { from { transform: scaleX(0); } }
@keyframes drawXc { from { transform: scaleX(0); } }
@keyframes drawY { from { transform: scaleY(0); } }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } }
@keyframes snapIn { from { transform: translate(3.5%, 3%) scale(0.96); } to { transform: none; } }
@keyframes snapInB { from { opacity: 0; transform: translate(8%, 10%) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes snapInC { from { opacity: 0; transform: translate(-12%, 14%) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes numSwap { from { transform: translateY(60%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bannerIn { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } }

/* Aparición al hacer scroll (solo si el JS está activo) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--t-in) var(--ease-out), transform var(--t-in) var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Cambio de ritmo: los bloques marino se «abren» al entrar en pantalla (navegadores compatibles) */
@supports (animation-timeline: view()) {
  @media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
    .services, .contact:not(.contact--page) { animation: openUp linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .project .frame-shot img { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  }
}
@keyframes openUp { from { clip-path: inset(0 3.5% 0 3.5% round var(--radius-lg)); } to { clip-path: inset(0 0 0 0 round var(--radius-lg) var(--radius-lg) 0 0); } }
@keyframes settle { from { translate: 0 -4%; } to { translate: 0 0; } }

/* 20 · Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none !important; width: auto; justify-content: center; }
  .ticker-row { flex-wrap: wrap; justify-content: center; }
  .ticker-row[aria-hidden="true"], .ticker-toggle { display: none; }
  .stage-layer { transform: none !important; }
  .process.is-enhanced .step { opacity: 1; }
}
