/* =========================================================
   Bora Idea — estilos
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --bg: #121212;
  --bg-2: #171717;
  --surface: #1c1c1c;
  --surface-2: #232323;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #bebebe;
  --text-dim: #8c8c8c;
  --heading: #ededed;
  --accent: #ffab00;          /* dorado del logo */
  --accent-2: #ffd36b;
  --accent-ink: #171717;
  --glow: rgba(255, 171, 0, 0.18);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --grid-line: rgba(255, 255, 255, 0.035);

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f6f5f2;
  --bg-2: #efede8;
  --surface: #ffffff;
  --surface-2: #f3f2ee;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);
  --text: #4a4a4a;
  --text-dim: #777;
  --heading: #161616;
  --accent: #e89b00;
  --accent-2: #ffb21f;
  --accent-ink: #161616;
  --glow: rgba(255, 171, 0, 0.22);
  --shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.25);
  --grid-line: rgba(0, 0, 0, 0.045);
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
body.is-loading { overflow: hidden; }
main, footer { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { color: var(--heading); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
strong { color: var(--heading); font-weight: 600; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* Icons (stroke SVG) */
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Logos según tema */
[data-theme="dark"] .logo--light, [data-theme="light"] .logo--dark { display: none !important; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .6s var(--ease), visibility .6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { display: grid; justify-items: center; gap: 18px; }
.preloader__logo { width: 120px; animation: pulse 1.6s ease-in-out infinite; }
.preloader__bar { width: 180px; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .2s linear; }
.preloader__text { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); }
@keyframes pulse { 50% { opacity: .55; transform: scale(.97); } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 1001;
  height: 2px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 12px; --pad-x: 22px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  font-size: 15px; font-weight: 500; line-height: 1.2;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  transition: transform .35s var(--ease), background-color .3s, border-color .3s, color .3s, box-shadow .3s;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
}
.btn .i { transition: transform .35s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn--sm { --pad-y: 10px; --pad-x: 16px; font-size: 14px; }
.btn--lg { --pad-y: 16px; --pad-x: 28px; font-size: 16px; }
.btn--primary {
  background: var(--accent); color: var(--accent-ink); border-color: transparent;
  box-shadow: 0 8px 30px -10px var(--glow);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:hover { box-shadow: 0 12px 40px -8px rgba(255, 171, 0, .45); }
.btn--ghost { background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--heading); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  height: var(--header-h);
  transition: background-color .4s, border-color .4s, transform .5s var(--ease), height .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-color: var(--border);
  --header-h: 66px;
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.header__logo img { height: 40px; width: auto; transition: transform .4s var(--ease); }
.header__logo:hover img { transform: scale(1.05); }
.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.nav { margin-left: 24px; }
.nav__list { display: flex; gap: 4px; }
.nav__link {
  position: relative; display: block;
  padding: 8px 14px; font-size: 14.5px; font-weight: 500; color: var(--text);
  border-radius: 8px; transition: color .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--heading); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__mobile-ctas { display: none; }

.burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border-strong); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--heading); border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 60px) 0 120px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, var(--bg-2), var(--bg) 70%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  animation: gridMove 30s linear infinite;
}
@keyframes gridMove { to { background-position: 64px 64px; } }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.hero__glow--1 { width: 520px; height: 520px; top: -160px; right: -120px; background: var(--glow); animation: float 14s ease-in-out infinite; }
.hero__glow--2 { width: 420px; height: 420px; bottom: -180px; left: -140px; background: rgba(120, 120, 255, .08); animation: float 18s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(-60px, 50px) scale(1.1); } }

.hero__content { position: relative; z-index: 2; }
.hero__title { font-size: clamp(2.2rem, 5.4vw, 4.2rem); max-width: 21ch; margin: 22px 0 26px; line-height: 1.05; }
.hero__title .text-gradient { display: block; }
.hero__lead { max-width: 62ch; font-size: clamp(1rem, 1.4vw, 1.15rem); }
.hero__lead strong { display: inline-block; margin-top: 8px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* Entrada del hero */
[data-hero] { opacity: 0; transform: translateY(28px); filter: blur(6px); }
.is-ready [data-hero] { animation: heroIn 1s var(--ease) forwards; }
.is-ready [data-hero="2"] { animation-delay: .12s; }
.is-ready [data-hero="3"] { animation-delay: .26s; }
.is-ready [data-hero="4"] { animation-delay: .4s; }
@keyframes heroIn { to { opacity: 1; transform: none; filter: blur(0); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 34px; z-index: 2; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid var(--border-strong); border-radius: 20px;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--glow); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,171,0,.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255,171,0,0); } }
.text-gradient {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 30%, var(--heading) 50%, var(--accent-2) 70%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section__head { max-width: 820px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head.center { margin-inline: auto; text-align: center; }
.section__head .eyebrow { margin-bottom: 18px; }
.section__title { font-size: clamp(1.8rem, 3.8vw, 2.9rem); }
.section__title--xl { font-size: clamp(2rem, 4.6vw, 3.5rem); }
.section__title .text-gradient { display: inline; }
.section__lead { margin-top: 20px; font-size: clamp(1rem, 1.3vw, 1.08rem); }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease), background-color .4s;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }

/* Spotlight que sigue al cursor */
.spotlight { overflow: hidden; }
.spotlight::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 45%);
  transition: opacity .4s;
}
.spotlight:hover::before { opacity: 1; }

.icon-box {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--accent); font-size: 20px;
  transition: transform .5s var(--ease), background-color .3s;
}
.icon-box--lg { width: 58px; height: 58px; font-size: 26px; border-radius: 16px; }
.card:hover .icon-box, .partner:hover .icon-box { transform: rotate(-8deg) scale(1.08); }
.spin-slow { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Clients marquee ---------- */
.clients { padding: 34px 0 30px; border-block: 1px solid var(--border); background: var(--bg-2); }
.clients__title { text-align: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 20px; padding-inline: var(--gutter); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; flex-shrink: 0; }
.marquee__group li { display: flex; align-items: center; gap: 10px; padding: 0 36px; font-size: clamp(1rem, 1.6vw, 1.3rem); font-weight: 500; color: var(--heading); white-space: nowrap; opacity: .85; transition: color .3s, opacity .3s; }
.marquee__group li:hover { color: var(--accent); opacity: 1; }
.marquee__group .i { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Problem ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { padding: 34px 30px; text-align: center; }
.stat__num { font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 600; line-height: 1; color: var(--heading); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat__unit { color: var(--accent); }
.stat__label { margin-top: 14px; font-size: 15px; }

.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.pain { padding: 30px; }
.pain h3 { font-size: 1.1rem; margin: 20px 0 10px; }
.pain p { font-size: 15px; }

/* ---------- Solutions ---------- */
.solutions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.solution { padding: clamp(28px, 4vw, 44px); }
.solution h3 { font-size: 1.4rem; margin: 24px 0 12px; text-transform: uppercase; letter-spacing: .02em; }
.checklist { margin-top: 20px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; color: var(--heading); font-size: 15px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}
.checklist li::after {
  content: ""; position: absolute; left: 6px; top: 7px; width: 6px; height: 9px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---------- GPTs split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split__text .eyebrow { margin-bottom: 18px; }
.numbered { margin-top: 34px; display: grid; gap: 22px; }
.numbered li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.numbered li:last-child { border-bottom: 0; }
.numbered span { font-weight: 600; color: var(--accent); font-size: 1.1rem; }
.numbered h3 { font-size: 1.08rem; margin-bottom: 6px; }
.numbered p { font-size: 15px; }

.media-frame { position: relative; border-radius: var(--radius-lg); }
.media-frame img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow); }
.chat-bubble {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px; font-size: 14px; color: var(--heading);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  animation: bob 6s ease-in-out infinite;
}
.chat-bubble--1 { top: 10%; left: -28px; }
.chat-bubble--2 { bottom: 10%; right: -24px; animation-delay: -3s; }
.chat-bubble__avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 12px; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- Demos ---------- */
.demos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.demo { display: flex; flex-direction: column; padding: 14px 14px 24px; }
.demo__shot {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 10.5; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface-2);
}
.demo__shot::before { /* barra de navegador */
  content: ""; position: absolute; inset: 0 0 auto; height: 22px; z-index: 2;
  background: var(--surface-2) radial-gradient(circle, #ff5f57 3px, transparent 3.5px) 12px 50% / 10px 10px no-repeat;
  border-bottom: 1px solid var(--border);
}
.demo__shot::after {
  content: ""; position: absolute; top: 8px; left: 28px; width: 6px; height: 6px; border-radius: 50%; z-index: 3;
  background: #febc2e; box-shadow: 10px 0 0 #28c840;
}
.demo__shot img {
  position: absolute; top: 22px; left: 0; width: 100%; height: auto;
  transition: transform 4.5s cubic-bezier(.45, 0, .25, 1);
}
/* Auto-scroll de la captura al hacer hover */
.demo:hover .demo__shot img { transform: translateY(calc(-100% + var(--frame-h, 280px) - 22px)); }
.demo__tag { margin-top: 22px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.demo h3 { font-size: 1.25rem; margin: 8px 0 10px; }
.demo p { font-size: 14.5px; flex-grow: 1; }
.demo__actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* ---------- Slider (genérico) ---------- */
.slider { position: relative; min-width: 0; }
.slider__viewport { overflow: hidden; border-radius: var(--radius-lg); }
.slider__track { display: flex; gap: 22px; transition: transform .8s var(--ease); will-change: transform; touch-action: pan-y; }
.slider__track.is-dragging { transition: none; cursor: grabbing; }
.slider__arrow {
  position: absolute; top: 42%; z-index: 5; transform: translateY(-50%);
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px); color: var(--heading); font-size: 20px;
  transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.slider__arrow:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-50%) scale(1.08); }
.slider__arrow--prev { left: -22px; }
.slider__arrow--next { right: -22px; }
.slider__footer { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.slider__progress { width: 160px; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.slider__progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .6s var(--ease); }
.slider__count { font-size: 14px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.slider__current { color: var(--heading); font-weight: 600; }

/* Portfolio */
.project { flex: 0 0 calc((100% - 44px) / 3); display: flex; flex-direction: column; padding: 12px 12px 24px; }
.project__img { overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; background: var(--surface-2); }
.project__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.project:hover .project__img img { transform: scale(1.06); }
.project__body { padding: 20px 10px 0; display: flex; flex-direction: column; flex-grow: 1; }
.project__tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.project h3 { font-size: 1.25rem; margin: 6px 0 8px; }
.project p { font-size: 14.5px; flex-grow: 1; }
.project .btn { align-self: flex-end; margin-top: 18px; }

/* Templates */
.templates { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 70px); align-items: center; }
.templates__intro .eyebrow { margin-bottom: 18px; }
.templates__intro p { margin-top: 16px; }
.templates__subtitle { font-size: 1.15rem; margin: 30px 0 14px; }
.benefits { display: grid; gap: 10px; }
.benefits li { color: var(--heading); font-size: 15px; }

.slider--single .slider__track { gap: 0; }
.tpl { flex: 0 0 100%; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 26px; padding: 22px; }
.tpl:hover { transform: none; }
.tpl__shot { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); min-height: 420px; }
.tpl__shot img { position: absolute; inset: 0 0 auto; width: 100%; transition: transform 6s cubic-bezier(.45, 0, .25, 1); }
.tpl__shot:hover img { transform: translateY(calc(-100% + var(--frame-h, 420px))); }
.tpl__name { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.tpl__for { font-size: 15px; color: var(--heading); margin: 8px 0 12px; font-weight: 500; text-transform: uppercase; line-height: 1.4; }
.tpl__desc { font-size: 14px; }
.tpl__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.tpl__cols h4 { font-size: 1rem; margin-bottom: 8px; }
.tpl__cols li { font-size: 13.5px; padding: 3px 0; }
.tpl__price { margin-top: 20px; font-size: 1.5rem; font-weight: 600; color: var(--heading); }
.tpl__price small { font-size: .55em; font-weight: 400; color: var(--text-dim); margin-right: 4px; }
.tpl__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; position: relative; }
.process::before { /* línea de conexión */
  content: ""; position: absolute; left: 0; right: 0; top: 48px; height: 1px; z-index: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(var(--line, 0)); transform-origin: left; transition: transform 1.6s var(--ease);
  opacity: .5;
}
.process__step { padding: 28px 22px; z-index: 1; }
.process__step:nth-child(even) { margin-top: 48px; }
.process__num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); border: 1px solid var(--accent); color: var(--accent); font-weight: 600; font-size: 14px; }
.process__step h3 { font-size: 1.1rem; margin: 18px 0 10px; }
.process__step p { font-size: 14px; }

/* ---------- Partners ---------- */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.partner { padding-top: 26px; border-top: 1px solid var(--border); position: relative; }
.partner::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--accent); transition: width .8s var(--ease); }
.partner:hover::before { width: 100%; }
.partner h3 { font-size: 1.12rem; margin: 20px 0 10px; }
.partner p { font-size: 15px; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.member { padding: 36px 28px; text-align: center; }
.member__photo { width: 150px; height: 150px; margin: 0 auto 22px; border-radius: 50%; padding: 4px; background: conic-gradient(from var(--a, 0deg), var(--accent), transparent 30%, transparent 70%, var(--accent)); animation: ring 6s linear infinite; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid var(--surface); transition: transform .6s var(--ease); }
.member:hover .member__photo img { transform: scale(1.05); }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ring { to { --a: 360deg; } }
.member h3 { font-size: 1.2rem; }
.member__role { margin: 6px 0 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.member p:last-child { font-size: 14.5px; }

/* ---------- CTA ---------- */
.cta__box {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(48px, 8vw, 90px) clamp(22px, 6vw, 80px);
  border-radius: 28px; border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
}
.cta__box > *:not(.cta__glow) { position: relative; z-index: 1; }
.cta__box .section__title { max-width: 22ch; margin-inline: auto; }
.cta__box .section__lead { max-width: 56ch; margin: 20px auto 34px; }
.cta__glow { position: absolute; inset: -40%; background: conic-gradient(from var(--a, 0deg), transparent, var(--glow), transparent 30%); animation: ring 10s linear infinite; filter: blur(40px); }
.cta__note { margin-top: 26px; font-size: 14px; font-style: italic; color: var(--text-dim); }

/* ---------- Footer ---------- */
.footer { padding: 80px 0 30px; border-top: 1px solid var(--border); background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer__logo { height: 64px; width: auto; margin-bottom: 18px; }
.footer__tag { color: var(--heading); font-weight: 500; margin-bottom: 10px; }
.footer__brand p { font-size: 14.5px; margin-bottom: 10px; max-width: 46ch; }
.footer__title { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; font-weight: 500; }
.footer__list { display: grid; gap: 10px; font-size: 14.5px; }
.footer__list a { transition: color .3s, padding .3s var(--ease); }
.footer__list a:hover { color: var(--accent); padding-left: 4px; }
.footer__social { display: flex; gap: 10px; margin-top: 24px; }
.footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border-strong); font-size: 18px; transition: background-color .3s, color .3s, transform .3s var(--ease); }
.footer__social a:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-3px); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-dim); }

/* ---------- Floating ---------- */
.theme-toggle, .whatsapp { position: fixed; bottom: 22px; z-index: 900; display: grid; place-items: center; border-radius: 50%; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); transition: transform .4s var(--ease); }
.theme-toggle { right: 112px; width: 50px; height: 50px; background: var(--heading); color: var(--bg); font-size: 22px; }
.theme-toggle:hover { transform: rotate(-20deg) scale(1.06); }
[data-theme="dark"] .i--sun, [data-theme="light"] .i--moon { display: none; }
.whatsapp { right: 22px; width: 58px; height: 58px; background: #25d366; color: #fff; }
.whatsapp svg { width: 30px; height: 30px; }
.whatsapp::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: waPulse 2.4s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.whatsapp:hover { transform: scale(1.08); }
.whatsapp__label {
  position: absolute; right: calc(100% + 12px); white-space: nowrap;
  padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 500;
  background: var(--surface); color: var(--heading); border: 1px solid var(--border-strong);
  opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity .3s, transform .4s var(--ease);
}
.whatsapp:hover .whatsapp__label, .whatsapp.is-hinting .whatsapp__label { opacity: 1; transform: none; }

/* ---------- Selector de idioma ---------- */
.lang { position: fixed; left: 22px; bottom: 26px; z-index: 900; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 50px; padding: 0 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--border-strong); color: var(--heading);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.5);
  font-size: 14px; font-weight: 600; letter-spacing: .04em;
  transition: border-color .3s, transform .4s var(--ease);
}
.lang__btn:hover { border-color: var(--accent); transform: translateY(-2px); }
.lang__btn > .i:first-child { color: var(--accent); font-size: 18px; }
.lang__chev { font-size: 14px; transition: transform .35s var(--ease); }
.lang__btn[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }
.lang__menu {
  position: absolute; left: 0; bottom: calc(100% + 10px); min-width: 190px;
  padding: 6px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.97); transform-origin: bottom left;
  transition: opacity .25s, transform .35s var(--ease), visibility .25s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 12px; border-radius: 10px; font-size: 14.5px; color: var(--text); text-align: left;
  transition: background-color .2s, color .2s;
}
.lang__menu button:hover { background: var(--surface-2); color: var(--heading); }
.lang__menu button[aria-checked="true"] { color: var(--heading); font-weight: 600; }
.lang__menu button[aria-checked="true"]::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.lang__badge {
  display: inline-grid; place-items: center; width: 30px; height: 22px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--heading);
}
.lang__menu button[aria-checked="true"] .lang__badge { background: var(--accent); border-color: transparent; color: var(--accent-ink); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal--right { transform: translateX(40px); }
.reveal.is-visible { opacity: 1; transform: none; }
.card.reveal.is-visible:hover { transform: translateY(-6px); transition-delay: 0s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: inline-block; }
  .nav.is-open {
    display: flex; flex-direction: column; justify-content: space-between;
    position: fixed; inset: var(--header-h) 0 0; margin: 0; padding: 30px var(--gutter) 40px;
    background: var(--bg); border-top: 1px solid var(--border);
    animation: menuIn .5s var(--ease);
  }
  .nav.is-open .nav__list { flex-direction: column; gap: 4px; }
  .nav.is-open .nav__link { font-size: 1.6rem; font-weight: 600; color: var(--heading); padding: 12px 0; }
  .nav.is-open .nav__link::after { left: 0; right: auto; width: 40px; }
  .nav.is-open .nav__list li { opacity: 0; animation: heroIn .6s var(--ease) forwards; }
  .nav.is-open .nav__list li:nth-child(2) { animation-delay: .05s; }
  .nav.is-open .nav__list li:nth-child(3) { animation-delay: .1s; }
  .nav.is-open .nav__list li:nth-child(4) { animation-delay: .15s; }
  .nav.is-open .nav__list li:nth-child(5) { animation-delay: .2s; }
  .nav.is-open .nav__mobile-ctas { display: grid; gap: 12px; }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-10px); } }

  .process { grid-template-columns: repeat(3, 1fr); }
  .process::before { display: none; }
  .process__step:nth-child(even) { margin-top: 0; }
  .demos { grid-template-columns: repeat(2, 1fr); }
  .project { flex-basis: calc((100% - 22px) / 2); }
  .templates { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hide-sm { display: none; }
  .stats, .pains, .partners, .team { grid-template-columns: 1fr; }
  .solutions { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .chat-bubble--1 { left: 10px; }
  .chat-bubble--2 { right: 10px; }
  .process { grid-template-columns: 1fr 1fr; }
  .tpl { grid-template-columns: 1fr; }
  .tpl__shot { min-height: 300px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .slider__arrow--prev { left: 6px; }
  .slider__arrow--next { right: 6px; }
  .stats { gap: 14px; }
  .reveal--right { transform: translateY(36px); }
}

@media (max-width: 600px) {
  :root { --header-h: 66px; }
  .header__logo img { height: 34px; }
  .hero { padding-bottom: 100px; }
  .hero__ctas .btn { width: 100%; white-space: normal; }
  .demos { grid-template-columns: 1fr; }
  .project { flex-basis: 100%; }
  .process { grid-template-columns: 1fr; }
  .tpl__cols { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .theme-toggle { right: 106px; width: 46px; height: 46px; bottom: 26px; }
  .lang { left: 16px; bottom: 26px; }
  .lang__btn { height: 46px; }
  .whatsapp__label { display: none; }
  .slider__arrow { top: auto; bottom: -6px; width: 42px; height: 42px; transform: none; }
  .slider__arrow:hover { transform: scale(1.06); }
  .slider__arrow--prev { left: 0; }
  .slider__arrow--next { right: 0; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, [data-hero] { opacity: 1; transform: none; filter: none; }
  .marquee__track { animation: none; }
}
