/* =============================================================
   anklacode — styles.css
   Arquetipo: Glassmorphism Modern adaptado a marino + blanco,
   con el naranja "boya" solo como acento.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --navy: #0B1A2E;
  --navy-2: #10233D;
  --navy-3: #17305A;
  --navy-deep: #07121F;
  --white: #FFFFFF;
  --foam: #EEF2F6;
  --steel: #8A9BB0;
  --gray: #4A5B70;
  --buoy: #FF6B35;
  --buoy-dark: #C2410C;

  --line-light: rgba(11, 26, 46, 0.1);
  --line-dark: rgba(238, 242, 246, 0.12);

  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --header-h: 68px;
  --radius: 18px;
  --gutter: 16px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea { font: inherit; color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }
::selection { background: var(--buoy); color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--buoy-dark);
  outline-offset: 3px;
  border-radius: 6px;
}
.site-header :focus-visible,
.hero :focus-visible,
.section-dark :focus-visible,
.footer :focus-visible,
.mobile-menu :focus-visible,
.wa-float:focus-visible { outline-color: var(--buoy); }
section[tabindex="-1"]:focus { outline: none; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 300;
  padding: .6rem 1rem; border-radius: 10px;
  background: var(--white); color: var(--navy); font-weight: 500;
}
.skip-link:focus { top: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.ico {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* =============================================================
   4. Typography
   ============================================================= */
.eyebrow {
  display: inline-flex; align-items: center;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--buoy-dark);
  margin-bottom: 1.1rem;
}
.eyebrow-dark { color: var(--buoy); }
.eyebrow-num { display: inline-flex; align-items: center; }
.eyebrow-num::after { content: "/"; margin-inline: .6em; opacity: .45; }
.is-anchored .eyebrow { animation: anchorNudge .7s var(--ease-out); }

.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.035em;
  max-width: 22ch;
}
.section-lead {
  margin-top: 1rem;
  font-size: 1.08rem;
  color: var(--gray);
  max-width: 52ch;
}
.section-dark .section-lead { color: var(--steel); }
.text-link {
  color: var(--buoy-dark);
  font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  transition: background-size .35s var(--ease-out);
}
.text-link:hover { background-size: 0 1.5px; background-position: 100% 100%; }

/* =============================================================
   5. Components
   ============================================================= */

/* --- Logo --- */
.logo { display: inline-flex; align-items: center; gap: .55rem; }
.logo-mark { width: 34px; height: 34px; transform-origin: 59% 16%; }
.logo:hover .logo-mark,
.logo:focus-visible .logo-mark { animation: sway 1.1s var(--ease-out); }
.logo-text { display: inline-flex; align-items: baseline; color: var(--white); line-height: 1; }
.logo-ankla { font-family: var(--sans); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.055em; }
.logo-code { font-family: var(--mono); font-weight: 400; font-size: .9rem; color: var(--buoy); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-weight: 500; font-size: 1rem; line-height: 1.2;
  padding: .85em 1.45em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out),
              border-color .3s var(--ease-out), box-shadow .35s var(--ease-out),
              transform .35s var(--ease-out);
  white-space: nowrap;
}
.btn-sm { font-size: .92rem; padding: .62em 1.15em; }
.btn-lg { font-size: 1.04rem; padding: .95em 1.6em; }
.btn-block { width: 100%; }

.btn-primary { background: var(--buoy); color: var(--navy); }
.btn-primary:hover { background: #FF7D4D; box-shadow: 0 12px 30px -10px rgba(255, 107, 53, .55); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.btn-ghost:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--foam); transform: translateY(-2px); }

.btn-ico { width: 1.25em; height: 1.25em; flex: none; }
.btn-ico path:first-child, .wa-float path:first-child { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.btn-ico path + path, .wa-float path + path { fill: currentColor; }

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Splash --- */
.splash {
  position: fixed; inset: 0; z-index: 250;
  display: grid; place-items: center;
  background: radial-gradient(60% 50% at 50% 45%, #13294A 0%, var(--navy) 70%);
  cursor: pointer;
  transition: transform .6s var(--ease-io), opacity .6s var(--ease-io);
  /* Red de seguridad: se oculta sola a los 4,5 s aunque falle el JS */
  animation: splashSafety .5s 4.5s forwards;
}
.splash.is-out { transform: translateY(-100%); }
.no-splash .splash { display: none; }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }

.splash-inner { display: grid; justify-items: center; gap: 1.4rem; }
.splash-mark { position: relative; width: 120px; height: 120px; }
.splash-svg { position: relative; width: 100%; height: 100%; animation: anchorDrop .45s 1.12s var(--ease-out) both; }
.splash-svg > * {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  animation: draw .3s var(--ease-io) forwards;
}
.splash-svg .s-bar { animation-delay: .1s; }
.splash-svg .s-lt, .splash-svg .s-gt { animation-delay: .38s; animation-duration: .28s; }
.splash-svg .s-ring { animation-delay: .66s; }
.splash-svg .s-cross { animation-delay: .86s; animation-duration: .26s; }

.splash-ripple, .splash-ripple::after {
  position: absolute; left: 50%; top: 86%;
  width: 90px; height: 90px; margin: -45px 0 0 -45px;
  border-radius: 50%;
  border: 1.5px solid rgba(238, 242, 246, .5);
  opacity: 0;
  transform: scale(.15);
  animation: ripple 1.1s 1.32s ease-out forwards;
}
.splash-ripple::after { content: ""; left: 0; top: 0; margin: -1.5px; animation-delay: 1.48s; }

.splash-word {
  display: flex; align-items: baseline;
  color: var(--white); line-height: 1; min-height: 2.6rem;
}
.splash-ankla {
  font-weight: 700; font-size: 2.5rem; letter-spacing: -0.055em;
  opacity: 0;
  animation: fadeUp .35s 1.35s var(--ease-out) forwards;
}
.splash-code { font-family: var(--mono); font-size: 1.5rem; color: var(--buoy); }
.splash-code:empty { display: none; }
.splash-caret {
  display: inline-block; width: 2px; height: 1.3rem; margin-left: 2px;
  background: var(--buoy);
  align-self: flex-end;
  opacity: 0;
  animation: caretOn 0s 1.6s forwards, blink .8s 1.6s steps(1) infinite;
}
.splash-skip {
  position: absolute; bottom: max(28px, env(safe-area-inset-bottom));
  font-family: var(--mono); font-size: .75rem; letter-spacing: .08em;
  color: var(--steel);
  opacity: 0; animation: fadeUp .5s .7s forwards;
}

/* --- Header --- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(11, 26, 46, .82);
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
@supports (backdrop-filter: blur(12px)) {
  .site-header {
    background: rgba(11, 26, 46, .55);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
  }
}
.site-header.is-scrolled {
  background: rgba(11, 26, 46, .9);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.nav { display: none; }
.nav-list { position: relative; display: flex; gap: .2rem; }
.nav-list a {
  display: block; padding: .5rem .8rem;
  font-size: .95rem; font-weight: 500;
  color: rgba(238, 242, 246, .78);
  transition: color .25s;
}
.nav-list a:hover, .nav-list a.is-active { color: var(--white); }
.nav-indicator {
  position: absolute; bottom: -2px; left: 0;
  height: 2px; width: var(--iw, 0); border-radius: 2px;
  background: var(--buoy);
  transform: translateX(var(--ix, 0));
  opacity: var(--io, 0);
  transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity .3s;
  pointer-events: none;
}
.header-cta { display: none; }

.menu-toggle {
  position: relative; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line-dark);
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px;
  background: var(--white);
  transition: transform .4s var(--ease-out), top .4s var(--ease-out);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* absolute (no fixed): el backdrop-filter del header vuelve "fixed" relativo a él */
.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: 2rem var(--gutter) max(2rem, env(safe-area-inset-bottom));
  background: var(--navy);
  opacity: 0; transform: translateY(-10px);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu ul { display: grid; }
.mobile-menu li a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1rem 0;
  font-size: 1.7rem; font-weight: 500; letter-spacing: -0.03em;
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
}
.mm-num { font-family: var(--mono); font-size: .8rem; color: var(--buoy); letter-spacing: .05em; }
.menu-open { overflow: hidden; }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 20px) 0 64px;
  display: flex; align-items: center;
  background: var(--navy);
  color: var(--white);
  overflow: clip;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-mesh {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at 75% 30%, rgba(30, 64, 112, .75) 0%, transparent 70%),
    radial-gradient(35% 40% at 15% 80%, rgba(23, 48, 90, .8) 0%, transparent 70%),
    radial-gradient(30% 30% at 45% 10%, rgba(19, 41, 74, .9) 0%, transparent 70%);
  filter: blur(40px);
  animation: meshDrift 32s ease-in-out infinite;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(238, 242, 246, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 242, 246, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 60% 40%, #000 20%, transparent 75%);
}
.hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 40%), rgba(46, 88, 150, .32), transparent 70%);
  transition: opacity .6s;
}
.hero-inner { display: grid; gap: 28px; align-items: center; }
/* En celular el mar con el ancla va arriba del título, así se ve sin bajar */
.hero-visual { order: -1; }
.hero-copy { max-width: 620px; }
.hero-title {
  font-size: clamp(2.6rem, 7.4vw, 4.9rem);
  line-height: 1;
  letter-spacing: -0.045em;
  max-width: 13ch;
}
.hl { position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em;
  height: .09em; border-radius: 99px;
  background: var(--buoy);
  transform-origin: left center;
}
.hero-sub {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--steel);
  max-width: 46ch;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

/* Hero visual: mar con boya y ancla interactiva */
.hero-visual { position: relative; width: 100%; max-width: 560px; margin-inline: auto; }
.sea {
  position: relative;
  height: 240px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(238, 242, 246, .12);
  background: linear-gradient(180deg, rgba(7, 18, 31, .55) 0%, rgba(7, 18, 31, .2) 100%);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .05);
  user-select: none;
  -webkit-user-select: none;
}
.sea-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.sea-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.sea.is-live .sea-fallback { display: none; }
.sea-handle {
  position: absolute; left: 0; top: 0;
  width: 110px; height: 110px; margin: -55px 0 0 -55px;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
  display: none;
}
.sea.is-live .sea-handle { display: block; }
.sea.is-dragging .sea-handle { cursor: grabbing; }
.sea-handle:focus-visible { outline: 2px dashed var(--buoy); outline-offset: 4px; }
.sea-hint {
  position: absolute; left: 14px; top: 14px;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .8rem; border-radius: 99px;
  background: rgba(11, 26, 46, .75);
  border: 1px solid rgba(238, 242, 246, .14);
  font-size: .78rem; font-weight: 500; color: var(--foam);
  opacity: 0; transform: translateY(-6px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  pointer-events: none;
}
.sea-hint svg { width: 18px; height: 18px; fill: none; stroke: var(--buoy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; animation: hintWiggle 1.8s ease-in-out infinite; }
.sea.show-hint .sea-hint { opacity: 1; transform: none; }
.sea-depth {
  position: absolute; left: 16px; bottom: 12px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em;
  color: var(--steel);
  display: none;
}
.sea.is-live .sea-depth { display: block; }
.sea-depth span { color: var(--foam); }

/* Quiénes somos: navegador + celular */
.demo-visual { position: relative; width: 100%; max-width: 560px; margin-inline: auto; }
.mock {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(238, 242, 246, .14);
  background: rgba(16, 35, 61, .92);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
}
@supports (backdrop-filter: blur(12px)) {
  .mock { background: rgba(255, 255, 255, .05); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); }
}
.mock-bar {
  display: flex; align-items: center; gap: .8rem;
  height: 40px; padding: 0 14px;
  border-bottom: 1px solid rgba(238, 242, 246, .1);
}
.mock-dots { display: inline-flex; gap: 6px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(238, 242, 246, .22); }
.mock-dots i:first-child { background: var(--buoy); }
.mock-url {
  flex: 1; display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; border-radius: 6px;
  background: rgba(238, 242, 246, .07);
  font-family: var(--mono); font-size: .72rem; color: var(--steel);
}
.mock-url svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.mock-tag {
  font-family: var(--mono); font-size: .68rem; color: var(--steel);
  padding: 3px 8px; border-radius: 6px; border: 1px solid rgba(238, 242, 246, .12);
  transition: color .3s, border-color .3s;
}
.mock.is-built .mock-tag { color: var(--buoy); border-color: rgba(255, 107, 53, .4); }

.mock-body { position: relative; height: 300px; }
.mock-code, .mock-site { position: absolute; inset: 0; transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }

.mock-code {
  padding: 18px 20px;
  background: var(--navy-deep);
  font-family: var(--mono); font-size: .8rem; line-height: 1.85;
  color: var(--foam);
  opacity: 0;
}
.cl { white-space: pre; overflow: hidden; width: calc(var(--n) * 1ch + 1px); max-width: 100%; }
.t-p { color: var(--steel); }
.t-t { color: var(--foam); font-weight: 500; }
.t-a { color: #A9B8CB; }
.t-s { color: var(--buoy); }
.t-c { color: var(--steel); opacity: .8; }

.mock.is-coding .mock-code { opacity: 1; }
.mock.is-coding .cl { animation: typeLine calc(var(--n) * 18ms) steps(var(--n)) both; animation-delay: calc(var(--s) * 1s); }
.mock.is-coding .cl:last-child::after {
  content: ""; display: inline-block; width: 7px; height: 1em; vertical-align: -2px;
  background: var(--buoy); animation: blink .8s steps(1) infinite;
}
.mock.is-coding .mock-site { opacity: 0; transform: scale(.98); }
.mock.is-built .mock-code { opacity: 0; transform: translateY(-8px); }

.mock-site {
  padding: 14px 16px;
  background: var(--white);
  color: var(--navy);
  display: grid; grid-template-rows: auto 1fr auto; gap: 14px;
}
.ms-nav { display: flex; align-items: center; gap: 10px; }
.ms-logo { width: 18px; height: 18px; border-radius: 5px; background: var(--navy); }
.ms-links { display: flex; gap: 6px; margin-left: auto; }
.ms-links i { width: 28px; height: 6px; border-radius: 4px; background: var(--foam); }
.ms-btn-sm { width: 46px; height: 16px; border-radius: 99px; background: var(--buoy); }
.ms-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; align-items: center; }
.ms-hero-copy { display: grid; gap: 7px; justify-items: start; }
.ms-kicker { font-family: var(--mono); font-size: .58rem; color: var(--gray); letter-spacing: .02em; }
.ms-title { font-size: 1.65rem; line-height: 1; letter-spacing: -0.045em; overflow-wrap: anywhere; }
.demo-long .ms-title { font-size: 1.15rem !important; }
.demo-long .ph-title { font-size: .78rem; }
.ph-title { overflow-wrap: anywhere; }
.ms-line { width: 100%; height: 6px; border-radius: 4px; background: var(--foam); }
.ms-line-short { width: 65%; }
.ms-cta {
  margin-top: 4px; padding: 6px 12px; border-radius: 99px;
  background: var(--buoy); color: var(--navy);
  font-size: .66rem; font-weight: 700;
}
.ms-hero-img {
  height: 112px; border-radius: 12px;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, .25) 0 18px, transparent 19px),
    linear-gradient(160deg, var(--navy-3), var(--navy));
}
.ms-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ms-card {
  height: 52px; border-radius: 9px;
  background: linear-gradient(var(--white), var(--white)) 8px 30px / 55% 5px no-repeat, var(--foam);
  border-top: 18px solid #DCE4EC;
}
.mock.is-built .b { animation: buildIn .55s var(--ease-out) both; animation-delay: calc(var(--b) * 90ms + 150ms); }

/* Celular */
.phone {
  position: absolute; right: -2%; bottom: -4%;
  width: 128px; height: 252px;
  padding: 6px; border-radius: 26px;
  background: #182A44;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(255, 255, 255, .08);
  animation: bob 7s ease-in-out infinite;
  display: none;
}
.phone-notch { position: absolute; top: 11px; left: 50%; width: 34px; height: 8px; margin-left: -17px; border-radius: 99px; background: #182A44; z-index: 2; }
.phone-screen {
  height: 100%; border-radius: 20px; overflow: hidden;
  background: var(--white); color: var(--navy);
  padding: 24px 10px 10px;
  display: flex; flex-direction: column; gap: 7px;
}
.ph-nav { display: flex; justify-content: space-between; align-items: center; }
.ph-nav i { width: 14px; height: 14px; border-radius: 4px; background: var(--navy); }
.ph-nav b { width: 16px; height: 8px; border-top: 2px solid var(--navy); border-bottom: 2px solid var(--navy); }
.ph-img { height: 62px; border-radius: 9px; background: linear-gradient(160deg, var(--navy-3), var(--navy)); }
.ph-title { font-size: .95rem; letter-spacing: -0.04em; line-height: 1; margin-top: 2px; }
.ph-line { height: 5px; border-radius: 3px; background: var(--foam); }
.ph-line-short { width: 70%; }
.ph-cta { align-self: flex-start; padding: 4px 9px; border-radius: 99px; background: var(--buoy); font-size: .55rem; font-weight: 700; }
.ph-card { flex: 1; border-radius: 8px; background: var(--foam); }

/* --- Beneficios --- */
.benefits { background: var(--white); border-bottom: 1px solid var(--line-light); }
.benefits-list { display: grid; }
.benefit {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line-light);
}
.benefit:last-child { border-bottom: 0; }
.benefit .ico { width: 28px; height: 28px; color: var(--navy); margin-top: 2px; }
.benefit h3 { font-size: 1.05rem; letter-spacing: -0.015em; }
.benefit p { font-size: .94rem; color: var(--gray); margin-top: .2rem; }

/* --- Secciones genéricas --- */
.section { position: relative; padding-block: clamp(80px, 11vw, 136px); background: var(--white); }
.section-foam { background: var(--foam); }
.section-dark { background: var(--navy); color: var(--white); }
.section-head { margin-bottom: clamp(40px, 6vw, 64px); }

/* --- Servicios --- */
.services { display: grid; gap: 16px; }
.service {
  position: relative;
  display: flex; flex-direction: column;
  color: inherit;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line-light);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .45s;
}
.service:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(11, 26, 46, .35); border-color: rgba(11, 26, 46, .18); }
.service-ico {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--navy); color: var(--foam);
  margin-bottom: 1.3rem;
  transition: color .3s, transform .45s var(--ease-out);
}
.service-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service:hover .service-ico { color: var(--buoy); transform: rotate(-6deg); }
.service h3 { font-size: 1.22rem; letter-spacing: -0.02em; }
.service p { margin-top: .5rem; color: var(--gray); flex: 1; }
.service-more {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.2rem;
  font-weight: 500; color: var(--buoy-dark);
}
.service-more span { transition: transform .35s var(--ease-out); }
.service:hover .service-more span { transform: translateX(4px); }

/* --- Quiénes somos --- */
.about-inner { display: grid; gap: 56px; align-items: center; }
.about-text { margin-top: 1.4rem; font-size: 1.12rem; color: var(--foam); max-width: 56ch; }
.about-list { display: grid; gap: .8rem; margin-top: 1.8rem; }
.about-list li { position: relative; padding-left: 2rem; color: var(--foam); }
.about-list li::before {
  content: ""; position: absolute; left: 3px; top: .5em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--buoy); border-bottom: 2px solid var(--buoy);
  transform: rotate(-45deg);
}
.team-chips { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.team-chips li {
  display: grid; gap: .1rem;
  padding: .75rem 1.1rem; border-radius: 14px;
  background: rgba(238, 242, 246, .06);
  border: 1px solid var(--line-dark);
}
.team-chips strong { font-size: 1rem; }
.team-chips span { font-family: var(--mono); font-size: .76rem; color: var(--steel); }

/* --- Cómo trabajamos --- */
.steps { display: grid; gap: 0; counter-reset: none; }
.step { position: relative; padding: 0 0 2.4rem 68px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: 22px; top: 48px; bottom: 4px; width: 1px;
  background: var(--line-light);
}
.step:last-child::before { display: none; }
.step-num {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 45px; height: 45px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-family: var(--mono); font-size: .85rem; font-weight: 500;
  transition: background-color .35s, color .35s;
}
.step:hover .step-num { background: var(--buoy); color: var(--navy); }
.step h3 { font-size: 1.25rem; padding-top: .55rem; letter-spacing: -0.02em; }
.step p { margin-top: .45rem; color: var(--gray); max-width: 34ch; }

/* --- Trabajos --- */
.works { display: grid; gap: 20px; }
.work-link { display: block; border-radius: var(--radius); }
.work-browser {
  border-radius: 14px; overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line-light);
  box-shadow: 0 18px 40px -30px rgba(11, 26, 46, .4);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.work-link:hover .work-browser { transform: translateY(-5px); box-shadow: 0 30px 60px -30px rgba(11, 26, 46, .45); }
.work-bar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line-light); }
.work-bar .mock-dots i { background: #D5DDE6; }
.work-bar .mock-dots i:first-child { background: var(--buoy); }
.work-url {
  flex: 1; height: 20px; display: flex; align-items: center; padding: 0 8px; border-radius: 5px;
  background: var(--foam); font-family: var(--mono); font-size: .66rem; color: var(--gray);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.work-shot { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.work-placeholder {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(-45deg, rgba(11, 26, 46, .035) 0 10px, transparent 10px 20px),
    #F6F8FA;
  font-family: var(--mono); font-size: .78rem; color: var(--gray);
}
.work-feature { display: grid; gap: 1.4rem; align-items: center; }
.work-feature .work-browser { box-shadow: 0 30px 60px -34px rgba(11, 26, 46, .5); }
.work-feature video.work-shot { height: auto; background: #F6F8FA; }
.work-media { position: relative; }
.work-toggle {
  position: absolute; right: 12px; bottom: 12px;
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(11, 26, 46, .72); color: #fff; border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: .75; transition: opacity .25s, transform .25s var(--ease-out), background .25s;
}
.work-toggle:hover, .work-toggle:focus-visible { opacity: 1; background: var(--navy); transform: scale(1.06); }
.work-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.work-toggle .i-play { fill: currentColor; stroke-width: 1.5; }
.work-toggle .i-play, .work-toggle.is-paused .i-pause { display: none; }
.work-toggle.is-paused .i-play { display: block; }
.work-info { display: grid; gap: .7rem; justify-items: start; }
.work-info h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.025em; }
.work-info p { color: var(--gray); max-width: 42ch; }
.work-visit {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: .3rem;
  font-weight: 600; color: var(--navy); padding: .7rem 1.1rem; border-radius: 99px;
  border: 1px solid var(--line-light); background: var(--white);
  transition: border-color .3s, color .3s, transform .3s var(--ease-out);
}
.work-visit:hover { border-color: var(--buoy); color: var(--buoy-dark); transform: translateY(-2px); }
@media (min-width: 900px) {
  .work-feature { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 2.6rem; }
}
.work-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem .2rem 0; }
.work-meta h3 { font-size: 1.08rem; letter-spacing: -0.015em; }
.work-tag {
  flex: none; font-family: var(--mono); font-size: .72rem; color: var(--navy);
  padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line-light); background: var(--white);
}

/* --- Preguntas --- */
.faq { display: grid; gap: 12px; align-items: start; }
.faq-col { display: grid; gap: 12px; align-content: start; }
.faq-item {
  padding: 0 22px;
  border-radius: 16px;
  background: var(--foam);
  border: 1px solid transparent;
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.faq-item[open] { background: var(--white); border-color: var(--line-light); box-shadow: 0 18px 40px -30px rgba(11, 26, 46, .4); }
.faq-item summary {
  position: relative;
  display: block; list-style: none; cursor: pointer;
  padding: 1.2rem 2.2rem 1.2rem 0;
  font-size: 1.06rem; font-weight: 500; letter-spacing: -0.015em;
  transition: color .25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--buoy-dark); }
.faq-item summary::before, .faq-item summary::after {
  content: ""; position: absolute; right: 2px; top: 50%;
  width: 14px; height: 2px; margin-top: -1px; border-radius: 2px;
  background: currentColor;
  transition: transform .35s var(--ease-out);
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); }
.faq-a { padding: 0 2.2rem 1.3rem 0; color: var(--gray); }
.faq-item[open] .faq-a { animation: faqIn .4s var(--ease-out); }

/* --- Contacto --- */
.contact { overflow: clip; isolation: isolate; }
.contact-mesh { z-index: -1; opacity: .8; }
.contact-grid { display: grid; gap: 24px; align-items: start; }

/* Tarjeta de vidrio (la usa la demo de Servicios) */
.panel {
  display: grid; gap: 1.1rem;
  padding: 26px 20px;
  border-radius: 22px;
  background: rgba(16, 35, 61, .95);
  border: 1px solid var(--line-dark);
}
@supports (backdrop-filter: blur(12px)) {
  .panel { background: rgba(255, 255, 255, .05); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
}
.optional { font-weight: 400; color: var(--steel); font-size: .88em; }
.field-row { display: grid; gap: 1.1rem; }

/* --- Tarjeta principal de WhatsApp (mismo estilo que las otras tarjetas) --- */
.wa-card {
  display: grid; gap: 1.1rem;
  padding: 24px 20px;
  border-radius: 20px;
  background: rgba(238, 242, 246, .05);
  border: 1px solid rgba(255, 107, 53, .45);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .7);
}
.wa-card :focus-visible { outline-color: var(--buoy); }
.wa-card-top { display: flex; align-items: center; gap: 14px; }
.wa-card-title { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.015em; }

/* Opciones en grilla pareja: 2 columnas en celular, 3 en compu */
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.quick-btn {
  min-height: 48px;
  padding: .5rem .75rem; border-radius: 12px;
  border: 1.5px solid rgba(238, 242, 246, .16);
  background: rgba(238, 242, 246, .03);
  color: var(--foam); font-weight: 500; font-size: .94rem; text-align: center;
  transition: background-color .25s, border-color .25s, color .25s;
}
@media (min-width: 540px) { .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quick-btn:hover { border-color: var(--buoy); }
.quick-btn[aria-pressed="true"] { background: var(--buoy); border-color: var(--buoy); color: var(--navy); }

/* --- Otras formas de contacto --- */
.contact-side { display: grid; gap: 14px; }
.side-title { font-size: 1.05rem; font-weight: 700; color: var(--foam); }
.contact-cards { display: grid; gap: 10px; }
.contact-cards a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(238, 242, 246, .05);
  border: 1px solid var(--line-dark);
  transition: background-color .25s, border-color .25s, transform .3s var(--ease-out);
}
.contact-cards a:hover { background: rgba(238, 242, 246, .09); border-color: rgba(255, 107, 53, .5); transform: translateX(3px); }
.cc-ico {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255, 107, 53, .12);
}
.cc-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--buoy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cc-text { display: grid; min-width: 0; line-height: 1.35; }
.cc-text strong { font-size: 1rem; }
.cc-text span { font-size: .88rem; color: var(--steel); overflow-wrap: anywhere; }
.cc-ico-lg { width: 52px; height: 52px; border-radius: 14px; }
.cc-ico-lg svg { width: 26px; height: 26px; }

/* Formulario secundario: una tarjeta más que se despliega */
.callback {
  border-radius: 16px;
  border: 1px solid var(--line-dark);
  background: rgba(238, 242, 246, .05);
  transition: background-color .25s, border-color .25s;
}
.callback:hover, .callback[open] { border-color: rgba(255, 107, 53, .5); }
.callback summary {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  list-style: none; cursor: pointer;
  padding: 14px 48px 14px 16px;
  color: var(--white);
}
.callback summary::-webkit-details-marker { display: none; }
.callback summary::after {
  content: ""; position: absolute; right: 20px; top: 50%;
  width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--buoy); border-bottom: 2px solid var(--buoy);
  transform: rotate(45deg);
  transition: transform .3s var(--ease-out), margin .3s;
}
.callback[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.callback .form { display: grid; gap: 1rem; padding: 4px 16px 18px; animation: faqIn .35s var(--ease-out); }

.form-legal { font-size: .85rem; color: var(--steel); text-align: center; }
.link-btn {
  font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px;
  padding: 0; background: none; border: 0; cursor: pointer;
}
.link-btn:hover { color: var(--buoy); }

/* --- Demo "Probá cómo se vería tu negocio" --- */
.demo-block {
  margin-top: clamp(48px, 7vw, 72px);
  padding: 32px 20px;
  border-radius: 28px;
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(30, 64, 112, .6), transparent 70%),
    var(--navy);
  color: var(--white);
  box-shadow: 0 40px 80px -40px rgba(11, 26, 46, .55);
}
.demo-block :focus-visible { outline-color: var(--buoy); }
.demo-grid { display: grid; gap: 32px; align-items: center; }
.demo { gap: 1rem; }
.demo-title { font-size: 1.15rem; font-weight: 700; }
.demo-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1rem; }
.demo-note { font-size: .86rem; color: var(--steel); max-width: 28ch; }
.field select {
  width: 100%;
  padding: .8rem 2.4rem .8rem .95rem;
  border-radius: 12px;
  border: 1px solid rgba(238, 242, 246, .18);
  background: rgba(7, 18, 31, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A9BB0' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center / 18px;
  color: var(--white);
  font: inherit; font-size: 1rem;
  appearance: none; -webkit-appearance: none;
  cursor: pointer;
}
.field select option { color: var(--navy); }
.field select:focus { outline: none; border-color: var(--buoy); box-shadow: 0 0 0 3px rgba(255, 107, 53, .25); }

/* --- Todas nuestras webs incluyen --- */
.includes {
  margin-top: clamp(48px, 7vw, 72px);
  padding: 28px 22px;
  border-radius: 22px;
  background: var(--foam);
}
.includes-title { font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 1.2rem; }
.includes-list { display: grid; gap: .8rem 1.6rem; }
.includes-list li { position: relative; padding-left: 2rem; color: var(--navy); font-weight: 500; }
.includes-list li::before {
  content: ""; position: absolute; left: 2px; top: .1em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy);
}
.includes-list li::after {
  content: ""; position: absolute; left: 8px; top: calc(.1em + 6px);
  width: 8px; height: 5px;
  border-left: 2px solid var(--buoy); border-bottom: 2px solid var(--buoy);
  transform: rotate(-45deg);
}

/* --- Privacidad --- */
.privacy {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0; border: 0; border-radius: 22px;
  background: var(--white); color: var(--navy);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6);
}
.privacy::backdrop { background: rgba(7, 18, 31, .7); }
.privacy-body { display: grid; gap: 1rem; padding: 28px 24px; }
.privacy h2 { font-size: 1.6rem; }
.privacy p { color: var(--gray); }
.privacy strong { color: var(--navy); }
.privacy form { margin-top: .4rem; }
.form-note { color: var(--steel); font-size: .95rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .9rem; font-weight: 500; color: var(--foam); }
.field input, .field textarea {
  width: 100%;
  padding: .8rem .95rem;
  border-radius: 12px;
  border: 1px solid rgba(238, 242, 246, .18);
  background: rgba(7, 18, 31, .55);
  color: var(--white);
  font-size: 1rem;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input::placeholder, .field textarea::placeholder { color: var(--steel); opacity: .85; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--buoy); box-shadow: 0 0 0 3px rgba(255, 107, 53, .25); }
.field input[aria-invalid="true"] { border-color: var(--buoy); }
.form-status { min-height: 1.4em; font-size: .92rem; color: var(--foam); }
.form-status.is-error { color: #FFB59A; }
.form.is-sending button[type="submit"] { opacity: .7; pointer-events: none; }

/* --- Footer --- */
.footer {
  background: var(--navy-deep);
  color: var(--foam);
  padding: 64px 0 28px;
}
.footer-inner { display: grid; gap: 40px; }
.footer-brand p { margin-top: 1rem; color: var(--steel); max-width: 30ch; }
.footer-label { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); margin-bottom: .9rem; }
.footer-nav ul, .footer-contact ul { display: grid; gap: .55rem; }
.footer-nav a, .footer-contact a { color: var(--foam); transition: color .25s; overflow-wrap: anywhere; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--buoy); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark);
  font-size: .88rem; color: var(--steel);
}
.to-top { color: var(--foam); transition: color .25s; }
.to-top:hover { color: var(--buoy); }

/* --- Botón flotante WhatsApp --- */
.wa-float {
  position: fixed; z-index: 90;
  right: 16px; bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center;
  height: 56px; min-width: 56px; padding: 0 16px;
  border-radius: 99px;
  background: var(--buoy); color: var(--navy);
  box-shadow: 0 14px 30px -10px rgba(11, 26, 46, .55), 0 0 0 3px rgba(11, 26, 46, .9);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), opacity .3s;
}
.wa-float.is-hidden { opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; }
.wa-float svg { width: 24px; height: 24px; flex: none; }
.wa-float-label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  font-weight: 700; font-size: .95rem;
  transition: max-width .45s var(--ease-out), margin .45s var(--ease-out);
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float:hover .wa-float-label, .wa-float:focus-visible .wa-float-label { max-width: 120px; margin-left: .5rem; }
.menu-open .wa-float { opacity: 0; pointer-events: none; }

/* =============================================================
   7. Effects
   ============================================================= */

/* Reveal al hacer scroll (solo con JS; sin JS todo se ve) */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease-out) var(--rd, 0s), transform .9s var(--ease-out) var(--rd, 0s);
  animation: revealSafety 0s 7s forwards; /* red de seguridad si falla el JS */
}
.js .reveal.is-visible { opacity: 1; transform: none; animation: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* Entrada del hero: arranca cuando termina la animación de carga */
.js .hero-in { animation: heroIn .9s var(--ease-out) both; animation-delay: calc(var(--d, 0s) + 4.6s); }
.js.no-splash .hero-in,
.js.splash-done .hero-in { animation-name: heroIn2; animation-delay: var(--d, 0s); }
.js .hl::after { animation: hlDraw .8s var(--ease-out) both; animation-delay: 5.3s; }
.js.no-splash .hl::after,
.js.splash-done .hl::after { animation-name: hlDraw2; animation-delay: .75s; }

@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes heroIn2 { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes hlDraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hlDraw2 { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes revealSafety { to { opacity: 1; transform: none; } }

@keyframes draw {
  0% { stroke-dashoffset: 1; opacity: 0; }
  1% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes anchorDrop {
  0% { transform: translateY(0); }
  55% { transform: translateY(13px); }
  78% { transform: translateY(7px); }
  100% { transform: translateY(9px); }
}
@keyframes ripple {
  0% { opacity: 0; transform: scale(.15); }
  15% { opacity: .35; }
  100% { opacity: 0; transform: scale(3.2); }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes caretOn { to { opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes sway {
  0% { transform: rotate(0); }
  25% { transform: rotate(9deg); }
  50% { transform: rotate(-6deg); }
  75% { transform: rotate(3deg); }
  100% { transform: rotate(0); }
}
@keyframes anchorNudge {
  0% { transform: translateY(-8px); opacity: .4; }
  60% { transform: translateY(3px); opacity: 1; }
  100% { transform: none; }
}
@keyframes meshDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-4%, 3%, 0) scale(1.12); }
}
@keyframes typeLine { from { width: 0; } }
@keyframes buildIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes hintWiggle { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px) rotate(-8deg); } }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* =============================================================
   8. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  :root { --gutter: 24px; }
  .benefits-list { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
  .benefit:nth-last-child(2) { border-bottom: 0; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .phone { display: block; }
  .demo-visual { padding: 0 48px 40px 0; }
  .sea { height: 320px; }
  .panel { padding: 32px; }
  .wa-card { padding: 30px 28px; }
  .includes { padding: 32px; }
  .includes-list { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .mock-body { height: 330px; }
  .mock-code { font-size: .86rem; }
  .ms-title { font-size: 2rem; }
  .ms-hero-img { height: 130px; }
  .header-cta { display: inline-flex; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .nav { display: block; }
  .menu-toggle, .mobile-menu { display: none; }
  .hero-inner { grid-template-columns: 1.02fr 1fr; gap: 48px; }
  .demo-visual { padding: 0 40px 40px 0; }
  .sea { height: 480px; }
  .benefits-list { grid-template-columns: repeat(4, 1fr); }
  .benefit { padding: 2.2rem 1.6rem 2.2rem 0; border-bottom: 0; }
  .benefit + .benefit { padding-left: 1.6rem; border-left: 1px solid var(--line-light); }
  .services { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .about-inner { grid-template-columns: 1.1fr 1fr; gap: 80px; }
  .about-side .about-list { margin-top: 0; }
  .demo-block { padding: 56px; }
  .demo-grid { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .hero-visual { order: 0; }
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .step { padding: 72px 0 0; }
  .step::before { left: 60px; right: -20px; top: 22px; bottom: auto; width: auto; height: 1px; }
  .step:last-child::before { display: none; }
  .step h3 { padding-top: 0; }
  .includes-list { grid-template-columns: repeat(4, 1fr); }
  .faq { grid-template-columns: 1fr 1fr; gap: 16px; }
  .faq-col { gap: 16px; }
  .contact-grid { grid-template-columns: 1.25fr 1fr; gap: 32px; }
}

@media (min-width: 1280px) {
  :root { --gutter: 32px; }
  .nav-list { gap: .4rem; }
  .hero-inner { gap: 72px; }
  .mock-body { height: 350px; }
}

/* =============================================================
   Versión celular: más compacta y ordenada (misma web, otro armado)
   ============================================================= */
.swipe-hint { display: none; }

@media (max-width: 719px) {
  .section { padding-block: 56px; }
  .section-head { margin-bottom: 24px; }
  .section-title { font-size: 1.8rem; }
  .section-lead { font-size: 1rem; margin-top: .6rem; }
  .eyebrow { margin-bottom: .7rem; }

  /* Inicio */
  .hero { min-height: 0; padding-bottom: 44px; }
  .hero-title { font-size: 2.5rem; }
  .hero-sub { margin-top: 1rem; font-size: 1.02rem; }
  .hero-ctas { margin-top: 1.5rem; }
  .hero-ctas .btn { width: 100%; }

  /* Beneficios: grilla de 2×2 */
  .benefits { padding-block: 20px; border-bottom: 0; }
  .benefits-list { grid-template-columns: 1fr 1fr; gap: 10px; }
  .benefit, .benefit:nth-last-child(2) {
    flex-direction: column; gap: .55rem;
    padding: 14px; border: 0; border-radius: 14px;
    background: var(--foam);
  }
  .benefit p { display: none; }
  .benefit h3 { font-size: .95rem; line-height: 1.25; }
  .benefit .ico { width: 24px; height: 24px; margin: 0; }

  /* Servicios y Trabajos: carrusel que se desliza de costado */
  .swipe-hint { display: inline-flex; gap: .4rem; margin-top: .9rem; font-size: .85rem; font-weight: 500; color: var(--buoy-dark); }
  .swipe-hint span { display: inline-block; animation: hintWiggle 1.8s ease-in-out infinite; }
  .carousel {
    display: flex; gap: 12px;
    overflow-x: auto; overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 18px;
    scrollbar-width: none;
  }
  .carousel::-webkit-scrollbar { display: none; }
  .carousel > * { flex: 0 0 82%; scroll-snap-align: start; }
  .service { padding: 22px; }
  .service:hover { transform: none; }

  /* Demo */
  .demo-block { margin-top: 28px; padding: 18px 14px; border-radius: 22px; }
  .demo-grid { gap: 18px; }
  .mock-body { height: 240px; }
  .ms-title { font-size: 1.35rem; }
  .ms-hero-img { height: 90px; }
  .demo { padding: 20px 16px; }
  .demo-foot .btn { width: 100%; }

  /* Quiénes somos */
  .about-inner { gap: 22px; }
  .about-text { font-size: 1.02rem; margin-top: 1rem; }
  .about-list { margin-top: 0; gap: .6rem; }
  .team-chips { margin-top: 1.4rem; }

  /* Cómo trabajamos */
  .step { padding: 0 0 1.5rem 58px; }
  .step-num { width: 40px; height: 40px; font-size: .8rem; }
  .step::before { left: 20px; top: 44px; }
  .step h3 { font-size: 1.12rem; padding-top: .45rem; }
  .includes { margin-top: 26px; padding: 20px 16px; }
  .includes-title { font-size: 1.1rem; }
  .includes-list { grid-template-columns: 1fr 1fr; gap: .75rem 1rem; }
  .includes-list li { font-size: .9rem; line-height: 1.35; padding-left: 1.65rem; }
  .includes-list li::before { width: 18px; height: 18px; top: 0; }
  .includes-list li::after { left: 7px; top: 5px; }

  /* Preguntas */
  .faq-item { padding: 0 16px; }
  .faq-item summary { font-size: 1rem; padding-block: 1rem; }

  /* Contacto: al tocarlo en el menú se ve entera la tarjeta de WhatsApp */
  .contact.section { padding-block: 44px 60px; }
  .contact .section-title { font-size: 1.75rem; }
  .contact-cards a, .callback summary { padding-block: 11px; }

  /* Pie */
  .footer { padding: 44px 0 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  /* El email entero en un renglón (si no, se cortaba "gmail.co / m") */
  .footer-contact a[href^="mailto:"] { font-size: .86rem; white-space: nowrap; overflow-wrap: normal; }
  .footer-bottom { margin-top: 28px; }
  .wa-float { height: 52px; min-width: 52px; padding: 0 14px; }
}

/* Servicios, Cómo trabajamos, Trabajos, Preguntas y Contacto entran completas en la pantalla
   (computadora): al tocarlas en el menú se ve todo sin bajar.
   En Servicios entran las 6 tarjetas; la demo queda debajo, para verla bajando. */
@media (min-width: 960px) and (min-height: 600px) {
  .section-fit {
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    display: flex; flex-direction: column; justify-content: center;
    padding-block: clamp(28px, 5vh, 64px);
  }
  .section-fit > .container { width: 100%; }
  .section-head-row {
    display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; align-items: end;
    margin-bottom: clamp(24px, 4.5vh, 48px);
  }
  .section-head-row .eyebrow { grid-column: 1 / -1; }
  .section-head-row .section-title { font-size: clamp(1.9rem, 3vw, 2.6rem); max-width: none; }
  .section-head-row .section-lead { margin-top: 0; }
  .section-fit .includes { margin-top: clamp(24px, 4.5vh, 48px); padding-block: 26px; }
  .section-fit .step { padding-top: 64px; }
  .section-fit .faq-item summary { padding-block: 1.05rem; }
  /* Servicios: tarjetas más compactas */
  .section-fit .service { padding: 22px 24px; }
  .section-fit .service-ico { width: 42px; height: 42px; border-radius: 12px; margin-bottom: .9rem; }
  .section-fit .service-ico svg { width: 21px; height: 21px; }
  .section-fit .service p { margin-top: .35rem; }
  .section-fit .service-more { margin-top: .8rem; }
  /* Trabajos: el video se achica según el alto de la pantalla, así entra entero */
  .section-fit .work-feature {
    grid-template-columns: minmax(0, min(62%, calc((100svh - var(--header-h) - 250px) * 1.6))) minmax(0, 1fr);
  }
}
/* Notebooks con pantalla baja: todo un poco más apretado para que entre */
@media (min-width: 960px) and (min-height: 600px) and (max-height: 820px) {
  .section-fit .section-head-row .section-title { font-size: 2rem; }
  .section-fit .eyebrow { margin-bottom: .7rem; }
  .wa-card { gap: .85rem; padding-block: 22px; }
  .quick-btn { min-height: 38px; padding-block: .35rem; }
  .contact-cards { gap: 8px; }
  .contact-cards a, .callback summary { padding-block: 10px; }
  .section-fit .includes-list { gap: .5rem 1.6rem; }
  .section-fit .service { padding: 18px 22px; }
  .section-fit .service-ico { width: 38px; height: 38px; margin-bottom: .7rem; }
  .section-fit .service h3 { font-size: 1.12rem; }
  .section-fit .service p { font-size: .94rem; }
  .section-fit .service-more { margin-top: .6rem; }
}

/* =============================================================
   9. Reduced motion (solo lo intrusivo)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone { animation: none; }
}
