:root {
  --carbon: #111110;
  --carbon-2: #1a1a18;
  --carbon-3: #222220;
  --hueso: #F3F1EC;
  --rojo: #E5231B;
  --gris: #9a9892;
  --linea: #2a2a27;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--carbon); color: var(--hueso);
  font-family: var(--display); font-optical-sizing: auto; font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--rojo); color: var(--carbon); }
:focus-visible { outline: 2px solid var(--rojo); outline-offset: 3px; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.mono { font: 400 12px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--gris); }
.mono b { color: var(--rojo); font-weight: 500; margin-right: 10px; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- botones (rectángulos, como el rótulo) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--rojo); color: var(--carbon); font-weight: 700; font-size: 16px; letter-spacing: -.005em;
  padding: 15px 22px; border: 2px solid var(--rojo); cursor: pointer;
  transition: transform .18s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn .ic { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-line { background: transparent; color: var(--hueso); border-color: #3a3a36; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-sm .ic { width: 17px; height: 17px; }
.btn-full { width: 100%; }
.btn-big { padding: 20px 28px; font-size: 19px; }
@media (hover: hover) {
  .btn:hover { background: var(--hueso); border-color: var(--hueso); }
  .btn-line:hover { background: transparent; border-color: var(--hueso); color: var(--hueso); }
}

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.stuck { background: rgba(17,17,16,.82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--linea); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.logo { display: block; width: 86px; flex: none; }
.logo svg { width: 100%; height: auto; display: block; overflow: visible; }
.logo .L { transition: transform .45s var(--ease); }
@media (hover: hover) {
  .logo:hover .L { animation: salto .55s var(--ease); }
  .logo:hover .L:nth-child(2) { animation-delay: .05s; } .logo:hover .L:nth-child(3) { animation-delay: .1s; } .logo:hover .L:nth-child(4) { animation-delay: .15s; }
}
@keyframes salto { 0% { transform: translateY(0); } 40% { transform: translateY(-10px); } 100% { transform: translateY(0); } }
.links { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.links a { color: var(--gris); transition: color .2s; position: relative; padding: 6px 0; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rojo); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
@media (hover: hover) { .links a:hover { color: var(--hueso); } .links a:hover::after { transform: scaleX(1); } }
@media (max-width: 820px) { .links { display: none; } }

.t-short { display: none; }
@media (max-width: 520px) { .t-long { display: none; } .t-short { display: inline; } }
/* ---------- tipografía ---------- */
.h1 { font-size: clamp(50px, 9.4vw, 128px); font-weight: 800; line-height: .94; letter-spacing: -.05em; }
.h1, .h2, .h3 { text-wrap: balance; }
.h2 { font-size: clamp(32px, 5vw, 60px); font-weight: 800; line-height: 1; letter-spacing: -.04em; max-width: 18ch; }
.h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.lead { font-size: clamp(18px, 1.9vw, 22px); color: #c9c7c0; max-width: 40ch; line-height: 1.5; }
.sub, .lead { text-wrap: pretty; }
.sub { color: var(--gris); max-width: 52ch; margin-top: 18px; font-size: 18px; }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gris); margin-bottom: 28px; }

/* el rótulo rojo: se abre de izquierda a derecha y las letras suben */
.ln { display: inline-block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; vertical-align: bottom; }
.ln-in { display: inline-block; transform: translateY(105%); animation: sube .9s var(--ease) .1s forwards; }
.slab { position: relative; display: inline-block; overflow: hidden; padding: .02em .14em .13em; margin-top: .06em; color: var(--carbon); }
.slab::before { content: ""; position: absolute; inset: 0; background: var(--rojo); transform-origin: left; transform: scaleX(0); animation: abre .85s var(--ease) .3s forwards; }
.slab-t { position: relative; display: inline-block; transform: translateY(110%); animation: sube .85s var(--ease) .62s forwards; }
.slab.static::before { transform: scaleX(1); animation: none; }
.slab.static .slab-t { transform: none; animation: none; }
@keyframes abre { to { transform: scaleX(1); } }
@keyframes sube { to { transform: translateY(0); } }

/* ---------- hero ---------- */
.hero { padding: 150px 0 56px; min-height: 100svh; display: flex; align-items: center; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--linea) 1px, transparent 1px), linear-gradient(90deg, var(--linea) 1px, transparent 1px); background-size: 80px 80px; opacity: .22; mask-image: radial-gradient(ellipse 75% 70% at 70% 45%, #000 0%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 75% 70% at 70% 45%, #000 0%, transparent 75%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; }
.hero .lead { margin-top: 34px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 36px; }

/* rótulos: lo que hacemos */
.tags { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.t { display: inline-flex; align-items: baseline; gap: 14px; padding: 16px 24px 18px; font-size: clamp(21px, 2.35vw, 34px); font-weight: 800; letter-spacing: -.035em; line-height: 1; text-transform: uppercase; white-space: nowrap; border: 2px solid var(--hueso); clip-path: inset(0 100% 0 0); animation: entraRotulo .9s var(--ease) forwards; transition: transform .35s var(--ease); }
.t span { font: 500 12px/1 var(--mono); letter-spacing: .06em; opacity: .65; }
.t-r { background: var(--rojo); border-color: var(--rojo); color: var(--carbon); }
.t-h { background: var(--hueso); color: var(--carbon); }
.t-o { background: transparent; color: var(--hueso); }
.t:nth-child(1) { animation-delay: .6s; } .t:nth-child(2) { animation-delay: .72s; margin-left: 9%; }
.t:nth-child(3) { animation-delay: .84s; margin-left: 3%; } .t:nth-child(4) { animation-delay: .96s; margin-left: 13%; }
.t:nth-child(5) { animation-delay: 1.08s; margin-left: 6%; }
@keyframes entraRotulo { to { clip-path: inset(0 0 0 0); } }
@media (hover: hover) { .t:hover { transform: translateX(10px); } }
@media (max-width: 960px) {
  .hero { padding-top: 120px; min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .t:nth-child(n) { margin-left: 0; }
  .t:nth-child(2n) { margin-left: 7%; }
}
@media (max-width: 480px) { .t { padding: 13px 16px 15px; gap: 10px; font-size: 19px; } }
/* ---------- confianza ---------- */
.confianza { padding: 52px 0 56px; border-block: 1px solid var(--linea); background: var(--carbon-2); overflow: hidden; }
.confianza .mono { text-align: center; margin-bottom: 32px; padding-inline: 24px; }
.marq { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marq-track { display: flex; width: max-content; margin-inline: auto; }
.marq-set { display: flex; align-items: center; flex: none; }
.marq-set li { padding: 0 38px; flex: none; }
.marq.on .marq-track { margin-inline: 0; animation: marq var(--dur, 30s) linear infinite; }
@media (hover: hover) { .marq.on:hover .marq-track { animation-play-state: paused; } }
@keyframes marq { to { transform: translateX(-50%); } }
.marq img { height: 44px; width: auto; max-width: 190px; object-fit: contain; filter: brightness(0) invert(1); opacity: .6; transition: opacity .3s, transform .3s var(--ease); }
.marq .lg-newledup { filter: none; }
.marq .lg-drhelp { height: 40px; }
@media (hover: hover) { .marq a:hover img { opacity: 1; transform: translateY(-2px); } }
@media (max-width: 560px) { .marq-set li { padding: 0 26px; } .marq img { height: 38px; } }
/* ---------- por qué APEX ---------- */
.duo { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.duo .sec-h { margin-bottom: 0; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } .duo .sec-h { margin-bottom: 8px; } }
.reglas li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 28px 0; border-top: 1px solid var(--linea); }
.reglas li:last-child { border-bottom: 1px solid var(--linea); }
.reglas .n { font: 500 13px/1.9 var(--mono); color: var(--rojo); }
.reglas h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 10px; }
.reglas p { color: var(--gris); font-size: 17px; max-width: 46ch; }
/* ---------- secciones ---------- */
.sec { padding: clamp(80px, 11vw, 150px) 0 0; }
.sec[hidden] { display: none; }
.sec-h { margin-bottom: clamp(40px, 6vw, 72px); }
.sec-h .mono { margin-bottom: 20px; }

/* ---------- listas ---------- */
.tick li { position: relative; padding-left: 24px; color: #c9c7c0; font-size: 16px; line-height: 1.5; margin-bottom: 10px; }
.tick li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; background: var(--rojo); }
/* ---------- trabajos ---------- */
.trab { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tr { display: block; background: var(--carbon-2); border: 1px solid var(--linea); padding: 14px 14px 24px; transition: border-color .3s, transform .5s var(--ease); }
.tr-pic { aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 20px; background: #000; }
.tr-pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.tr .mono, .tr h3, .tr p, .tr .link { margin-inline: 10px; }
.tr .mono { margin-bottom: 8px; }
.tr h3 { font-size: 26px; font-weight: 800; letter-spacing: -.035em; margin-bottom: 6px; }
.tr p:not(.mono) { color: var(--gris); font-size: 16px; }
.link { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; font-weight: 700; border-bottom: 2px solid var(--rojo); padding-bottom: 3px; transition: gap .25s var(--ease), color .2s; }
@media (hover: hover) { .tr:hover { transform: translateY(-4px); border-color: #4a4a45; } .tr:hover .tr-pic img { transform: scale(1.04); } .tr:hover .link { gap: 14px; color: var(--rojo); } }
@media (max-width: 900px) { .trab { grid-template-columns: 1fr; } .tr-pic { aspect-ratio: 16 / 8; } }
/* ---------- testimonios ---------- */
.testis { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.testi { background: var(--carbon-2); border: 1px solid var(--linea); padding: 30px; }
.testi q { display: block; font-size: 21px; line-height: 1.35; font-weight: 500; letter-spacing: -.015em; quotes: none; }
.testi q::before { content: "\201C"; color: var(--rojo); font-weight: 800; }
.testi q::after { content: "\201D"; color: var(--rojo); font-weight: 800; }
.testi footer { margin-top: 22px; display: flex; align-items: center; gap: 14px; }
.testi footer b { display: block; font-size: 15px; } .testi footer span { color: var(--gris); font-size: 14px; }
.testi footer img { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: .6; margin-left: auto; }

/* ---------- planes ---------- */
.planes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--carbon-2); border: 1px solid var(--linea); padding: 34px 30px 30px; transition: border-color .3s, transform .5s var(--ease); }
.plan-main { background: var(--carbon-3); border: 2px solid var(--rojo); }
.tag { position: absolute; top: -1px; right: -1px; background: var(--rojo); color: var(--carbon); font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; }
.city { font-size: clamp(38px, 4.4vw, 56px); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin: 14px 0 14px; }
.pdesc { color: var(--gris); font-size: 16px; min-height: 5.1em; }
.precio { font-size: clamp(46px, 5vw, 64px); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin: 26px 0 24px; padding-top: 26px; border-top: 1px solid var(--linea); display: flex; align-items: flex-start; gap: 4px; }
.precio span { font-size: .42em; margin-top: .22em; letter-spacing: 0; color: var(--rojo); }
.precio small { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gris); align-self: flex-end; margin: 0 8px .9em 0; }
.plan .tick { flex: 1; margin-bottom: 28px; }
.plan .tick li { font-size: 15.5px; }
@media (hover: hover) { .plan:hover { transform: translateY(-4px); border-color: #4a4a45; } .plan-main:hover { border-color: var(--rojo); } }
@media (max-width: 980px) { .planes { grid-template-columns: 1fr; } .pdesc { min-height: 0; } }

.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 16px; border: 1px solid var(--linea); }
.extras > div { padding: 26px 28px; border-right: 1px solid var(--linea); }
.extras > div:last-child { border-right: 0; }
.extras .mono { margin-bottom: 10px; }
.extras p:last-child { color: #c9c7c0; font-size: 16px; } .extras b { color: var(--hueso); }
@media (max-width: 820px) { .extras { grid-template-columns: 1fr; } .extras > div { border-right: 0; border-bottom: 1px solid var(--linea); } .extras > div:last-child { border-bottom: 0; } }

/* ---------- proceso ---------- */
.pasos { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--linea); }
.pasos li { padding: 28px 26px 8px 0; border-right: 1px solid var(--linea); padding-left: 26px; }
.pasos li:first-child { padding-left: 0; } .pasos li:last-child { border-right: 0; }
.pasos .n { font: 500 13px var(--mono); color: var(--rojo); }
.pasos h3 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin: 40px 0 12px; }
.pasos p { color: var(--gris); font-size: 16px; }
@media (max-width: 900px) { .pasos { grid-template-columns: 1fr 1fr; } .pasos li { padding: 28px 22px 28px 0; border-bottom: 1px solid var(--linea); } .pasos li:nth-child(2n) { border-right: 0; padding-left: 22px; } .pasos li:nth-child(2n+1) { padding-left: 0; } .pasos h3 { margin-top: 22px; } }
@media (max-width: 560px) { .pasos { grid-template-columns: 1fr; } .pasos li, .pasos li:nth-child(2n) { border-right: 0; padding: 26px 0; } }

/* ---------- hugo ---------- */
.hugo-txt p { font-size: clamp(18px, 1.8vw, 21px); color: #d8d6cf; margin-bottom: 20px; line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chips li { font: 500 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; border: 1px solid #3a3a36; padding: 9px 13px; color: var(--gris); }

/* ---------- faq ---------- */
.faq-list details { border-top: 1px solid var(--linea); }
.faq-list details:last-child { border-bottom: 1px solid var(--linea); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; transition: color .2s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font: 400 28px/1 var(--mono); color: var(--rojo); transition: transform .35s var(--ease); flex: none; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--gris); padding: 0 40px 26px 0; font-size: 17px; }
@media (hover: hover) { .faq-list summary:hover { color: var(--rojo); } }

/* ---------- cierre ---------- */
.final { margin-top: clamp(90px, 12vw, 160px); padding: clamp(80px, 11vw, 150px) 0; border-top: 1px solid var(--linea); background: var(--carbon-2); }
.final-h { margin-bottom: 30px; }
.final .lead { margin-bottom: 8px; }
.final .cta { margin-top: 30px; }
.foot { padding: 34px 0 40px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); width: 58px; height: 58px; background: var(--rojo); color: var(--carbon); display: grid; place-items: center; z-index: 40; cursor: pointer; opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .4s, transform .4s var(--ease), background .2s; }
.wa-float.on { opacity: 1; transform: none; pointer-events: auto; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:active { transform: scale(.94); }
@media (hover: hover) { .wa-float:hover { background: var(--hueso); } }

/* ---------- movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ln-in, .slab-t { transform: none; animation: none; }
  .slab::before { transform: scaleX(1); animation: none; }
  .t { clip-path: none; animation: none; }
}

/* ---------- apps ---------- */
.apps { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.apps .sec-h { margin-bottom: 36px; }
.menu li { display: grid; grid-template-columns: 52px 1fr; gap: 6px; padding: 22px 0; border-top: 1px solid var(--linea); }
.menu li:last-child { border-bottom: 1px solid var(--linea); }
.menu .n { font: 500 13px/1.9 var(--mono); color: var(--rojo); }
.menu h3 { font-size: 22px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 6px; }
.menu p { color: var(--gris); font-size: 16px; max-width: 46ch; }
.apps .cta { margin-top: 32px; }

.phones { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2.4vw, 28px); align-items: start; }
.app-2 { margin-top: 56px; }
.phone { display: block; aspect-ratio: 390 / 844; border-radius: 30px; border: 7px solid #2c2c29; background: #000; overflow: hidden; position: relative; box-shadow: 0 30px 60px -22px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.03); transition: transform .6s var(--ease); margin-bottom: 20px; }
.phone::after { content: ""; position: absolute; top: 7px; left: 50%; width: 28%; height: 14px; background: #000; border-radius: 99px; transform: translateX(-50%); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.app .mono { margin-bottom: 6px; }
.app h3 { font-size: 26px; font-weight: 800; letter-spacing: -.035em; margin-bottom: 6px; }
.app p:not(.mono) { color: var(--gris); font-size: 15px; line-height: 1.45; }
.app .link { margin-top: 12px; }
@media (hover: hover) { .app:hover .phone { transform: translateY(-6px) rotate(-1.2deg); } .app-2:hover .phone { transform: translateY(-6px) rotate(1.2deg); } }
@media (max-width: 960px) { .apps { grid-template-columns: 1fr; } .phones { max-width: 560px; } }
@media (max-width: 480px) { .phone { border-width: 5px; border-radius: 22px; } .app-2 { margin-top: 36px; } .app h3 { font-size: 22px; } }
