/* Diego Martinez · by DANIA — tokens derivados del logo DMP */
:root {
  --blue: #38BDF8;          /* azul del logo */
  --blue-deep: #0EA5E9;
  --signal: #7DD3FC;        /* cian de los nodos del logo */
  --ink: #000000;           /* navy profundo */
  --ink-2: #111113;
  --ink-3: #1B1B1E;
  --paper: #0A0A0B;
  --paper-2: #151517;
  --text: #F5F7FA;
  --text-muted: #A1A8B3;
  --on-ink: #F5F7FA;
  --on-ink-muted: #A1A8B3;
  --line: rgba(255, 255, 255, .1);
  --line-ink: rgba(255, 255, 255, .12);

  --f-display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;

  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --shadow: 0 1px 1px rgba(0,0,0,.04), 0 6px 14px -6px rgba(0,0,0,.12), 0 24px 48px -24px rgba(0,0,0,.25);
  --shadow-ink: 0 1px 0 rgba(255,255,255,.05) inset, 0 30px 60px -30px rgba(0,0,0,.6);
  --ease: cubic-bezier(.2,.7,.2,1);
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.02; margin: 0; letter-spacing: -.025em; }
p { margin: 0; }
mark { background: linear-gradient(transparent 60%, rgba(125,211,252,.45) 60%); color: inherit; padding: 0 .1em; }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--signal); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 13px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow--light { color: var(--signal); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent); }
.muted { color: var(--text-muted); }
.mono { font: 600 12px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; opacity: .6; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--blue); --fg: #000;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font: 700 16px/1 var(--f-body);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--signal { --bg: var(--signal); --fg: var(--ink); box-shadow: 0 10px 30px -10px rgba(125,211,252,.7); }
.btn--signal:hover { box-shadow: 0 16px 40px -12px rgba(125,211,252,.9); }
.btn--ghost { --bg: transparent; --fg: var(--on-ink); box-shadow: inset 0 0 0 1.5px var(--line-ink); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--signal); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--lg { min-height: 62px; padding: 0 34px; font-size: 18px; }
.link { color: var(--blue); font-weight: 700; text-decoration: none; background: linear-gradient(currentColor,currentColor) 0 100%/0 2px no-repeat; transition: background-size .3s var(--ease); }
.link:hover { background-size: 100% 2px; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, backdrop-filter .3s, box-shadow .3s; }
.nav.is-scrolled { background: rgba(0,0,0,.92); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line-ink); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { color: var(--on-ink-muted); text-decoration: none; font-weight: 600; font-size: 15px; transition: color .2s; }
.nav__links a:hover { color: var(--on-ink); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--on-ink); padding-top: 120px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -260px; top: -300px;
  background: radial-gradient(closest-side, rgba(56,189,248,.45), transparent 70%);
}
.hero__grain, .final .hero__grain {
  position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding-bottom: 72px; }
.hero .eyebrow { color: var(--signal); }
.hero__title { font-size: clamp(54px, 8.4vw, 124px); font-weight: 800; margin: 26px 0 28px; letter-spacing: -.045em; line-height: .92; }
.hero__title em { font-style: normal; color: var(--signal); position: relative; }
.hero__title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .07em; border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--signal));
  transform-origin: left; animation: underline 1.2s .6s var(--ease) both;
}
@keyframes underline { from { transform: scaleX(0); } }
.hero__lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--on-ink-muted); max-width: 36ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__visual { position: relative; }
.hero__photo { margin: 0; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-ink); aspect-ratio: 4 / 5.6; transform: rotate(1.5deg); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 16px;
  background: rgba(18,18,20,.86); backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px var(--line-ink), 0 20px 40px -18px rgba(0,0,0,.7);
  font-size: 14px; line-height: 1.25; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip b { display: block; font-weight: 700; color: var(--on-ink); }
.chip small { color: var(--on-ink-muted); font-size: 12.5px; }
.chip__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,196,0,.16); color: #FFC400; font-size: 16px; }
.chip__ico--ok { background: rgba(125,211,252,.16); color: var(--signal); font-weight: 800; }
.chip__ico--msg { background: rgba(56,189,248,.25); color: #7DD3FC; }
.chip--a { left: -48px; top: 14%; }
.chip--b { right: -28px; top: 46%; animation-delay: -2s; }
.chip--c { left: -24px; bottom: 9%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-8px); } }

.marquee { border-top: 1px solid var(--line-ink); overflow: hidden; padding: 22px 0; }
.marquee__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 12px; font: 700 clamp(20px, 2.2vw, 28px)/1 var(--f-display); letter-spacing: -.02em; color: var(--on-ink); opacity: .78; white-space: nowrap; }
.marquee__ico { width: 1.05em; height: 1.05em; flex: none; }
.marquee i { width: 10px; height: 10px; border-radius: 50%; background: var(--signal); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Problema ---------- */
.pain { padding: clamp(80px, 11vw, 150px) 0; }
.pain__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px 80px; }
.pain__title { font-size: clamp(36px, 4.6vw, 64px); font-weight: 800; }
.pain__title span { color: var(--text-muted); font-weight: 700; }
.pain__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-self: end; }
.pain__list li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); }
.pain__list b { font: 700 15px/1.6 var(--f-display); color: var(--blue); }
.pain__list p { font-size: 18px; }
.pain__answer { grid-column: 1 / -1; font: 700 clamp(26px, 3vw, 40px)/1.15 var(--f-display); letter-spacing: -.02em; margin-top: 30px; }

/* ---------- Sistema / bento ---------- */
.system { background: var(--ink); color: var(--on-ink); padding: clamp(80px, 11vw, 150px) 0; position: relative; overflow: hidden; }
.system::before { content: ""; position: absolute; left: -300px; bottom: -300px; width: 800px; height: 800px; background: radial-gradient(closest-side, rgba(125,211,252,.14), transparent 70%); }
.sec-head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 860px; position: relative; }
.sec-head h2 { font-size: clamp(36px, 4.8vw, 68px); font-weight: 800; margin: 18px 0 18px; }
.sec-head__sub { font-size: 18px; color: var(--on-ink-muted); max-width: 52ch; }
.sec-head--split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 60px; align-items: end; }
.sec-head--split h2 { margin: 0; }
.services .sec-head__sub, .plans .sec-head__sub, .process .sec-head__sub { color: var(--text-muted); }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(0, auto); gap: 18px; position: relative; }
.card {
  background: linear-gradient(180deg, var(--ink-2), #060607);
  border-radius: var(--r-l); padding: 26px; box-shadow: 0 0 0 1px var(--line-ink);
  display: flex; flex-direction: column; gap: 14px; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(125,211,252,.35), 0 30px 60px -30px rgba(125,211,252,.25); }
.card h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 700; }
.card .muted { color: var(--on-ink-muted); font-size: 15px; }
.card__top { display: flex; justify-content: space-between; align-items: center; }
.tag { font: 700 12px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--signal); padding: 7px 10px; border-radius: 99px; background: rgba(125,211,252,.1); }
.card--cal { grid-column: span 7; }
.card--feed { grid-column: span 5; grid-row: span 2; }
.card--stats { grid-column: span 4; }
.card--web { grid-column: span 3; }
.card--rev { grid-column: span 12; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 20px 40px; }
.card--rev .card__top { width: 100%; }
.card--rev h3 { flex: 1 1 260px; }
.card--rev .muted { flex: 1 1 260px; }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: auto; }
.cal__day { background: rgba(255,255,255,.03); border: 1px solid var(--line-ink); border-radius: 12px; padding: 10px 8px; min-height: 124px; display: flex; flex-direction: column; gap: 6px; }
.cal__day span { font-size: 12px; font-weight: 700; color: var(--on-ink-muted); text-transform: uppercase; letter-spacing: .06em; }
.cal__day.is-today { border-color: var(--signal); background: rgba(125,211,252,.06); }
.cal__day.is-today span { color: var(--signal); }
.p { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 6px 7px; border-radius: 7px; line-height: 1.1; color: #fff; }
.p--ig { background: linear-gradient(135deg, #D6249F, #FD5949); }
.p--fb { background: #1877F2; }
.p--tk { background: #111; box-shadow: inset 2px 0 0 #25F4EE, inset -2px 0 0 #FE2C55; }
.p--gb { background: #fff; color: #1a73e8; }

.phone { margin-top: auto; background: #fff; border-radius: 26px; padding: 12px; box-shadow: 0 0 0 6px #26262A, 0 30px 60px -20px rgba(0,0,0,.6); max-width: 360px; width: 100%; align-self: center; }
.phone__bar { display: flex; align-items: center; gap: 10px; padding: 4px 4px 12px; color: var(--text); font-weight: 700; font-size: 14px; }
.phone__bar img { width: 44px; height: auto; }
.phone__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border-radius: 12px; overflow: hidden; }
.phone__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.spark { width: 100%; height: 110px; margin-top: auto; }
.spark__line { stroke-dasharray: 520; stroke-dashoffset: 520; transition: stroke-dashoffset 1.8s var(--ease); }
.is-in .spark__line { stroke-dashoffset: 0; }
.kpis { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; justify-content: space-between; }
.kpis b { display: block; font-size: 14px; }
.kpis span { font-size: 12.5px; color: var(--on-ink-muted); }

.browser { margin-top: auto; background: #fff; border-radius: 14px; overflow: hidden; color: #0B1426; }
.browser__bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: var(--paper-2); font-size: 11px; color: var(--text-muted); }
.browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: #C8D2E2; }
.browser__bar span { margin-left: 8px; background: #fff; border-radius: 6px; padding: 3px 8px; flex: 1; }
.browser__body { padding: 14px 14px 52px; display: grid; gap: 8px; position: relative; }
.sk { height: 8px; border-radius: 4px; background: var(--paper-2); width: 85%; }
.sk--h { height: 16px; width: 70%; background: var(--text); opacity: .85; }
.sk--s { width: 55%; }
.browser__btn { justify-self: start; margin-top: 4px; background: var(--blue); color: #000; font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 99px; }
.bubble { position: absolute; right: 10px; bottom: 10px; background: var(--ink); color: var(--on-ink); font-size: 11.5px; padding: 8px 11px; border-radius: 12px 12px 3px 12px; box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); }

.qr { display: flex; align-items: center; gap: 16px; }
.qr__code { width: 96px; height: 96px; border-radius: 12px; background: #fff; padding: 6px; image-rendering: pixelated; }
.qr__stars { color: #FFC400; font-size: 26px; letter-spacing: 4px; }

/* ---------- Servicios ---------- */
.services { padding: clamp(80px, 11vw, 150px) 0; }
.services .sec-head h2, .plans .sec-head h2 { font-size: clamp(40px, 5.6vw, 80px); }
.svc { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
.svc__item { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; transition: transform .35s var(--ease); }
.svc__item:hover { transform: translateY(-4px); }
.svc__item--lead { background: var(--blue); color: #000; grid-row: span 2; border: 0; }
.svc__n { font: 700 14px/1 var(--f-display); color: var(--blue); }
.svc__item--lead .svc__n { color: var(--signal); }
.svc__item h3 { font-size: clamp(28px, 3vw, 42px); font-weight: 800; }
.svc__item--lead h3 { font-size: clamp(38px, 4.4vw, 64px); margin-top: auto; }
.svc__item p { color: var(--text-muted); }
.svc__item ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; font-weight: 600; font-size: 15.5px; }
.svc__item ul li { display: flex; align-items: center; gap: 10px; }
.svc__item ul li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex: none; }
.svc__item--lead p { color: rgba(255,255,255,.88); }
.svc__item--lead ul li::before { background: var(--signal); }
.svc__extra { grid-column: span 2; border: 1.5px dashed rgba(56,189,248,.35); border-radius: var(--r-l); padding: 24px 28px; display: flex; align-items: center; }
.svc__extra p { color: var(--text-muted); }
.svc__extra b { color: var(--text); }

/* ---------- Restaurantes ---------- */
.focus { padding: 0 0 clamp(80px, 11vw, 150px); }
.focus__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 80px; align-items: center; background: var(--paper-2); border-radius: var(--r-l); padding: clamp(28px, 5vw, 72px); }
.focus h2 { font-size: clamp(36px, 4.4vw, 62px); font-weight: 800; margin: 16px 0 18px; }
.focus__copy p + p { margin-top: 12px; }
.focus__copy > p:not(.eyebrow) { font-size: 18px; }
.focus__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.focus__tags li { padding: 12px 18px; border-radius: 99px; background: var(--ink-2); font-weight: 700; font-size: 15px; box-shadow: 0 0 0 1px var(--line); transition: background .2s, color .2s; }
.focus__tags li:first-child { background: var(--ink); color: var(--signal); }
.focus__tags li:hover { background: var(--blue); color: #000; }

/* ---------- Proceso ---------- */
.process { padding: 0 0 clamp(80px, 11vw, 150px); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--signal)); opacity: .5; }
.steps li { padding-right: 28px; position: relative; }
.steps__n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--blue); font: 800 22px/1 var(--f-display); color: var(--blue); margin-bottom: 22px; position: relative; transition: background .3s, color .3s; }
.steps li:hover .steps__n { background: var(--blue); color: #000; }
.steps h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.steps p { color: var(--text-muted); font-size: 16px; }

/* ---------- Planes ---------- */
.plans { padding: clamp(80px, 11vw, 150px) 0; background: var(--ink); }
.tiers { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 18px; align-items: stretch; }
.tier { border-radius: var(--r-l); padding: 34px 30px; background: var(--paper); display: flex; flex-direction: column; gap: 12px; position: relative; transition: transform .35s var(--ease); }
.tier:hover { transform: translateY(-4px); }
.tier__name { font: 700 13px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.tier h3 { font-size: clamp(26px, 2.4vw, 34px); font-weight: 800; }
.tier p { color: var(--text-muted); }
.tier--hi { background: var(--ink); color: var(--on-ink); transform: translateY(-14px); box-shadow: var(--shadow); }
.tier--hi:hover { transform: translateY(-18px); }
.tier--hi .tier__name { color: var(--signal); }
.tier--hi p { color: var(--on-ink-muted); }
.tier__badge { position: absolute; top: 22px; right: 22px; background: var(--signal); color: var(--ink); font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 99px; }
.plans__cta { margin-top: 36px; font-size: 18px; }

/* ---------- CTA final ---------- */
.final { position: relative; isolation: isolate; overflow: hidden; background: var(--blue); color: #000; padding: clamp(90px, 12vw, 170px) 0; }
.final::before { content: ""; position: absolute; z-index: -1; inset: auto -20% -60% auto; width: 900px; height: 900px; background: radial-gradient(closest-side, rgba(125,211,252,.55), transparent 70%); }
.final h2 { font-size: clamp(42px, 7vw, 108px); font-weight: 800; letter-spacing: -.045em; line-height: .95; max-width: 14ch; }
.final__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.final .btn--ghost { --fg: #000; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.45); }
.final .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #000; }
.final .btn--signal { background: var(--ink); color: var(--signal); box-shadow: 0 16px 40px -16px rgba(0,0,0,.8); }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--on-ink-muted); padding: 56px 0 110px; font-size: 15px; }
.foot__in { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 40px; align-items: center; }
.foot img { height: 36px; width: auto; }
.foot__dania { color: var(--on-ink); }
.foot__dania b { color: var(--signal); letter-spacing: .06em; }
.foot__copy { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line-ink); font-size: 14px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--on-ink); }

/* ---------- CTA pulgar (móvil) ---------- */
.thumb { display: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ================= Tablet ================= */
@media (max-width: 1020px) {
  .nav__links { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .chip--a { left: -8px; } .chip--b { right: -8px; } .chip--c { left: 0; }
  .pain__grid, .sec-head--split, .focus__grid { grid-template-columns: 1fr; }
  .card--cal { grid-column: span 12; }
  .card--feed { grid-column: span 6; grid-row: span 2; }
  .card--stats, .card--web { grid-column: span 6; }
  .svc { grid-template-columns: 1fr 1fr; }
  .svc__item--lead { grid-column: span 2; grid-row: auto; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .steps::before { display: none; }
  .tiers { grid-template-columns: 1fr; }
  .tier--hi { transform: none; } .tier--hi:hover { transform: translateY(-4px); }
}

/* ================= Móvil: experiencia propia ================= */
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav__in { height: 64px; }
  .nav__logo img { height: 28px; }
  .nav .btn span { display: none; }
  .nav .btn { width: 44px; padding: 0; min-height: 44px; }
  .hero { padding-top: 92px; }
  .hero__grid { padding-bottom: 44px; gap: 36px; }
  .hero__title { font-size: clamp(50px, 15vw, 72px); margin: 18px 0 20px; }
  .hero__ctas .btn { width: 100%; }
  .hero__photo { transform: none; aspect-ratio: 4 / 4.6; }
  .chip { font-size: 13px; padding: 10px 12px 10px 10px; }
  .chip__ico { width: 30px; height: 30px; }
  .chip--a { top: 6%; left: -6px; } .chip--b { top: auto; bottom: 28%; right: -6px; } .chip--c { bottom: 5%; left: -6px; }

  /* bento → carrusel táctil con scroll-snap */
  .bento {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 18px; scrollbar-width: none; align-items: flex-start;
  }
  .bento::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 86%; scroll-snap-align: center; }
  .card--cal .cal { margin-top: 8px; }
  .card--rev { flex-direction: column; align-items: flex-start; }
  .cal { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .cal__day { min-height: 84px; padding: 8px 6px; }
  .p { font-size: 10.5px; padding: 5px; }

  .svc { grid-template-columns: 1fr; }
  .svc__item--lead, .svc__extra { grid-column: auto; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding: 0 0 28px; }
  .steps li::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: linear-gradient(var(--blue), var(--signal)); opacity: .4; }
  .steps li:last-child::before { display: none; }
  .steps__n { grid-row: span 2; margin: 0; }
  .final__ctas .btn { width: 100%; }
  .foot__in { grid-template-columns: 1fr; }

  .thumb {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; z-index: 60; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 56px; border-radius: 999px; background: var(--signal); color: var(--ink);
    font-weight: 800; font-size: 16px; text-decoration: none;
    box-shadow: 0 14px 30px -10px rgba(0,0,0,.55);
    transform: translateY(140%); transition: transform .4s var(--ease);
  }
  .thumb svg { width: 22px; height: 22px; fill: currentColor; }
  .thumb.is-on { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .spark__line { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* === Paleta negro + celeste (27-sep-2026): ajustes de contraste === */
.svc__item--lead p { color: rgba(0,0,0,.72); }
.svc__item--lead .svc__n { color: #000; }
.svc__item--lead ul li::before { background: #000; }
.phone__bar { color: #0B1426; }
.browser__bar { background: #EEF1F5; color: #6B7280; }
.sk { background: #E3E7EE; }
.sk--h { background: #0B1426; }
.tier { background: var(--ink-2); border: 1px solid var(--line); }
.tier--hi { background: var(--ink-3); box-shadow: 0 0 0 1.5px var(--blue), var(--shadow); }
.focus__tags li:first-child { background: var(--blue); color: #000; }
.final h2 { color: #000; }
.hero__title em::after { background: linear-gradient(90deg, var(--blue-deep), var(--signal)); }


/* =====================================================================
   ANIMACIONES (28-sep-2026): intro con logo, logo vivo, titular,
   foto 3D + parallax, barra de progreso, marquee con inercia,
   línea del proceso y titular final que se rellena.
   ===================================================================== */

/* ---------- Logo vivo (el logo real, sin redibujar) ---------- */
.logo-anim { position: relative; display: inline-block; line-height: 0; isolation: isolate; }
.logo-anim img { display: block; width: 100%; height: auto; }
.logo-anim::after {               /* destello que recorre SOLO las letras del logo */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.95) 48%, rgba(170,245,255,.9) 52%, transparent 62%);
  background-size: 260% 100%; background-position: 130% 0; background-repeat: no-repeat;
  -webkit-mask: url(assets/logo-dmp.webp) center / 100% 100% no-repeat; mask: url(assets/logo-dmp.webp) center / 100% 100% no-repeat;
  mix-blend-mode: screen; opacity: .9;
}
.node {                           /* luz sobre cada nodo cian del logo */
  position: absolute; left: var(--x); top: var(--y); width: calc(var(--s) * 2.6); aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(.4); border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, #fff 0 18%, rgba(125, 249, 255, .95) 32%, rgba(34, 227, 245, .35) 52%, transparent 70%);
  mix-blend-mode: screen;
}
.logo-anim--nav { width: 66px; }
.logo-anim--nav::after { animation: logoShine 7s ease-in-out 3s infinite; }
.logo-anim--nav .node { animation: nodePulse 7s ease-in-out infinite; animation-delay: calc(3.4s + var(--d) * .22s); }
.nav__logo:hover .logo-anim::after { animation: logoShine 1.1s ease-out; }
.logo-anim--foot { width: 72px; }
.logo-anim--foot .node { animation: nodePulse 5s ease-in-out infinite; animation-delay: calc(var(--d) * .3s); }
@keyframes logoShine { 0%, 100% { background-position: 130% 0; } 18% { background-position: -30% 0; } 19%, 99% { background-position: 130% 0; } }
@keyframes nodePulse {
  0%, 14%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  5% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ---------- Intro (solo 1ª visita por sesión; se oculta sola aunque falle el JS) ---------- */
.intro { display: none; }
.play-intro .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: #000; cursor: pointer;
  animation: introOut .55s ease 2.05s forwards;
}
.intro.is-done { animation: introOut .45s ease forwards; }
.intro__logo { width: min(64vw, 440px); animation: introLogo 1.9s var(--ease) both; }
.intro .logo-anim { width: 100%; }
.intro .logo-anim::after { animation: introShine 1.2s ease-in-out .55s both; }
.intro .node { animation: introNode .5s var(--ease) both; animation-delay: calc(.35s + var(--d) * .17s); }
.intro::after {                   /* halo celeste detrás del logo */
  content: ""; position: absolute; width: 60vmin; height: 60vmin; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(56, 189, 248, .35), transparent 70%); animation: introHalo 1.9s ease both;
}
@keyframes introLogo { 0% { opacity: 0; transform: scale(.86); filter: blur(10px); } 30% { opacity: 1; transform: scale(1); filter: blur(0); } 82% { opacity: 1; transform: scale(1.02); } 100% { opacity: 0; transform: scale(1.08) translateY(-10px); } }
@keyframes introShine { from { background-position: 130% 0; } to { background-position: -30% 0; } }
@keyframes introNode { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); } 60% { opacity: 1; transform: translate(-50%, -50%) scale(1.25); } 100% { opacity: .85; transform: translate(-50%, -50%) scale(1); } }
@keyframes introHalo { 0% { opacity: 0; transform: scale(.6); } 40% { opacity: 1; } 100% { opacity: .6; transform: scale(1.2); } }
@keyframes introOut { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ---------- Titular palabra a palabra ---------- */
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .w > span { display: inline-block; transform: translateY(105%); opacity: 0; filter: blur(8px); animation: wordUp .9s var(--ease) forwards; animation-delay: calc(var(--i) * 85ms + .15s); }
.play-intro .hero__title .w > span { animation-delay: calc(var(--i) * 85ms + 2.1s); }
.hero__title em::after { animation-delay: 1s; }
.play-intro .hero__title em::after { animation-delay: 2.9s; }
@keyframes wordUp { to { transform: none; opacity: 1; filter: blur(0); } }

/* ---------- Foto del hero: inclinación 3D + parallax ---------- */
.hero__visual { perspective: 1100px; translate: 0 calc(var(--sp, 0) * -70px); }
.hero__photo { position: relative; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(calc(1.5deg - var(--sp, 0) * 4deg)) scale(calc(1 + var(--sp, 0) * .05)); transition: transform .35s var(--ease); will-change: transform; }
.hero__glare { position: absolute; inset: 0; pointer-events: none; opacity: var(--go, 0); transition: opacity .4s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, .32), transparent 46%); mix-blend-mode: soft-light; }
.chip { translate: 0 calc(var(--sp, 0) * var(--dp, 80) * -1px); }
.hero__copy { translate: 0 calc(var(--sp, 0) * 50px); opacity: calc(1 - var(--sp, 0) * .7); }

/* ---------- Barra de progreso ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; transform-origin: 0 50%; transform: scaleX(var(--pp, 0));
  background: linear-gradient(90deg, var(--blue-deep), var(--signal)); box-shadow: 0 0 12px rgba(125, 211, 252, .7); }

/* ---------- Marquee con inercia del scroll ---------- */
.marquee__track { transform-origin: center; }
.marquee { transform: skewX(var(--skew, 0deg)); transition: transform .25s ease-out; }

/* ---------- Línea del proceso que se dibuja ---------- */
.steps::before { transform-origin: 0 50%; transform: scaleX(var(--steps, 0)); opacity: .9; }
.steps__n { transition: background .4s, color .4s, box-shadow .4s; }
.steps li.is-lit .steps__n { background: var(--blue); color: #000; box-shadow: 0 0 0 6px rgba(56, 189, 248, .18); }

/* ---------- Tarjetas del sistema con inclinación ---------- */
.card { transform: perspective(900px) rotateX(var(--crx, 0deg)) rotateY(var(--cry, 0deg)) translateY(var(--cty, 0)); }
.card:hover { --cty: -4px; }

/* ---------- Titular final que se rellena ---------- */
.final__fill .fw { color: rgba(0, 0, 0, .2); transition: color .5s ease; }
.final__fill .fw.on { color: #000; }

/* ---------- Móvil y movimiento reducido ---------- */
@media (max-width: 1020px) { .hero__photo { transform: rotate(calc(var(--sp, 0) * -3deg)) scale(calc(1 + var(--sp, 0) * .04)); } .card { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
  .hero__title .w > span { transform: none; opacity: 1; filter: none; }
  .final__fill .fw { color: #000; }
  .hero__visual, .chip, .hero__copy { translate: none; opacity: 1; }
  .hero__photo { transform: none; }
  .progress { display: none; }
  .steps::before { transform: none; }
  .node { display: none; }
}
.card:hover { transform: perspective(900px) rotateX(var(--crx, 0deg)) rotateY(var(--cry, 0deg)) translateY(-4px); }
/* Móvil: parallax suave para que la foto y las notificaciones no tapen los botones */
@media (max-width: 1020px) {
  .hero__visual { translate: 0 calc(var(--sp, 0) * -12px); }
  .chip { translate: 0 calc(var(--sp, 0) * var(--dp, 80) * -.18px); }
  .hero__copy { translate: none; opacity: calc(1 - var(--sp, 0) * .35); }
}
