@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,500&family=Sora:wght@400;500;600;700&display=swap');

:root {
  --ink: #0d0d0f;
  --panel: #171719;
  --panel-soft: #202023;
  --line: rgba(255, 255, 255, .11);
  --muted: #aaa6b0;
  --paper: #f5f1f7;
  --purple: #7626e8;
  --purple-light: #9b5af2;
  --lavender: #d19aee;
  --radius: 22px;
  --max: 1180px;
  --shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: "Sora", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--lavender); outline-offset: 4px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; color: var(--ink); background: var(--lavender); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 112px 0; }
.section--tight { padding: 76px 0; }
.section--soft { background: var(--panel); }
.section--light { color: var(--ink); background: var(--paper); }
.section-head { display: grid; grid-template-columns: minmax(0, .8fr) minmax(280px, .45fr); gap: 60px; align-items: end; margin-bottom: 54px; }
.section-head p { margin: 0; color: var(--muted); }
.section--light .section-head p { color: #5e5964; }
.eyebrow { display: inline-flex; gap: 9px; align-items: center; margin: 0 0 18px; color: var(--lavender); font-size: .73rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { width: 24px; height: 1px; background: currentColor; content: ""; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2 { margin: 0; font-family: "Newsreader", serif; font-weight: 500; line-height: .98; letter-spacing: -.035em; }
h1 { max-width: 870px; font-size: clamp(3.25rem, 8vw, 7.3rem); }
h2 { font-size: clamp(2.6rem, 5.4vw, 5rem); }
h3 { margin: 0 0 12px; font-size: 1.08rem; line-height: 1.3; }
.display-accent { color: var(--lavender); font-style: italic; }
.lead { max-width: 700px; margin: 28px 0 0; color: #c4c0c8; font-size: clamp(1rem, 1.5vw, 1.18rem); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 50px; padding: 0 21px; justify-content: center; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 999px; font-size: .84rem; font-weight: 700; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { color: white; background: var(--purple); }
.button--primary:hover { background: var(--purple-light); }
.button--ghost { border-color: var(--line); background: rgba(255, 255, 255, .035); }
.button--ghost:hover { border-color: var(--lavender); }

.site-header { position: sticky; top: 0; z-index: 50; height: 78px; border-bottom: 1px solid transparent; background: rgba(13, 13, 15, .8); backdrop-filter: blur(18px); transition: border-color .2s, background .2s; }
.site-header.is-scrolled { border-color: var(--line); background: rgba(13, 13, 15, .95); }
.nav-shell { display: flex; height: 100%; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; z-index: 2; align-items: baseline; gap: 7px; color: #fff; font-size: .88rem; font-weight: 800; letter-spacing: .09em; }
.brand img { width: 38px; height: 38px; margin-right: 3px; align-self: center; object-fit: contain; }
.brand::after { color: #46c8f0; font-size: .56rem; font-weight: 800; letter-spacing: .13em; content: "TECH"; }
.nav-toggle { display: none; z-index: 2; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 100%; height: 1px; margin: 5px 0; background: white; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }
.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav > a, .dropdown-toggle { padding: 9px 0; border: 0; color: #ccc8d0; background: transparent; font-size: .78rem; cursor: pointer; }
.primary-nav > a:hover, .dropdown-toggle:hover, .primary-nav > a[aria-current="page"] { color: white; }
.nav-cta { padding: 10px 17px !important; color: white !important; background: var(--purple) !important; border-radius: 999px; }
.dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; gap: 7px; }
.dropdown-toggle::after { width: 6px; height: 6px; border-right: 1px solid; border-bottom: 1px solid; content: ""; transform: rotate(45deg) translateY(-2px); }
.dropdown-menu { position: absolute; top: calc(100% + 14px); left: -28px; display: grid; width: 340px; padding: 12px; visibility: hidden; opacity: 0; border: 1px solid rgba(255,255,255,.13); border-radius: 20px; background: rgba(23,23,25,.98); box-shadow: 0 30px 90px rgba(0,0,0,.48); transform: translateY(-9px) scale(.98); transform-origin: top left; transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.dropdown-menu a { display: flex; min-height: 52px; padding: 10px 12px; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 12px; color: #c9c5cd; font-size: .78rem; font-weight: 600; }
.dropdown-menu a::before { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 8px; color: var(--lavender); background: rgba(118,38,232,.15); font-size: .62rem; content: "01"; }
.dropdown-menu a:nth-child(2)::before { content: "02"; }.dropdown-menu a:nth-child(3)::before { content: "03"; }.dropdown-menu a:nth-child(4)::before { content: "04"; }
.dropdown-menu a::after { margin-left: auto; color: #77727c; content: "↗"; transition: color .2s, transform .2s; }
.dropdown-menu a:hover,
.dropdown-menu a[aria-current="page"] { color: white; border-color: rgba(209,154,238,.12); background: var(--panel-soft); }
.dropdown-menu a:hover::after { color: var(--lavender); transform: translate(2px,-2px); }
.dropdown.is-open .dropdown-menu { visibility: visible; opacity: 1; transform: translateY(0); }

.breadcrumb { padding-top: 26px; color: #807b86; font-size: .73rem; }
.breadcrumb ol { display: flex; margin: 0; padding: 0; flex-wrap: wrap; gap: 9px; list-style: none; }
.breadcrumb li + li::before { margin-right: 9px; content: "/"; }
.breadcrumb a:hover { color: var(--lavender); }
.inner-hero { position: relative; padding: 76px 0 86px; overflow: hidden; }
.inner-hero::before { position: absolute; top: -280px; right: -180px; width: 700px; height: 700px; background: radial-gradient(circle, rgba(118, 38, 232, .25), transparent 67%); pointer-events: none; content: ""; }
.hero-copy { position: relative; z-index: 1; }
.hero-visual { position: relative; height: clamp(340px, 51vw, 620px); margin-top: 68px; overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: var(--panel); box-shadow: var(--shadow); }
.hero-visual::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(13, 13, 15, .65)); content: ""; }
.hero-visual img { height: 100%; object-fit: cover; }
.hero-visual--diagram { height: auto; padding: clamp(24px, 6vw, 70px); }
.hero-visual--conversation { height: auto; padding: clamp(20px, 5vw, 56px); }
.hero-note { position: absolute; right: 24px; bottom: 24px; z-index: 1; max-width: 300px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(13, 13, 15, .82); backdrop-filter: blur(12px); font-size: .76rem; }

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; overflow: hidden; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.card::after { position: absolute; right: -45px; bottom: -55px; width: 125px; height: 125px; border: 1px solid rgba(209,154,238,.12); border-radius: 50%; box-shadow: 0 0 0 24px rgba(118,38,232,.025); content: ""; pointer-events: none; transition: transform .4s ease, border-color .25s ease; }
.card:hover { border-color: rgba(209,154,238,.4); box-shadow: 0 24px 55px rgba(0,0,0,.16); transform: translateY(-5px); }
.card:hover::after { border-color: rgba(209,154,238,.35); transform: scale(1.12); }
.section--light .card { border-color: rgba(13, 13, 15, .13); background: white; }
.card-index { display: block; margin-bottom: 50px; color: var(--lavender); font-family: "Newsreader", serif; font-size: 2rem; }
.card p { margin: 0; color: var(--muted); font-size: .88rem; }
.section--light .card p { color: #625d66; }
.icon-box { display: grid; width: 42px; height: 42px; margin-bottom: 34px; place-items: center; border-radius: 12px; color: var(--lavender); background: rgba(118, 38, 232, .15); font-weight: 700; }
.tag-list { display: flex; margin: 20px 0 0; padding: 0; flex-wrap: wrap; gap: 8px; list-style: none; }
.tag-list li, .badge { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: #c8c4cc; font-size: .7rem; }
.section--light .tag-list li { border-color: rgba(13, 13, 15, .14); color: #554f59; }
.split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 8vw; align-items: center; }
.split-media { min-height: 470px; overflow: hidden; border-radius: var(--radius); background: var(--panel); }
.split-media img { height: 100%; min-height: 470px; object-fit: cover; }
.split-copy p { color: var(--muted); }
.check-list { display: grid; margin: 28px 0 0; padding: 0; gap: 12px; list-style: none; }
.check-list li { display: flex; gap: 12px; color: #d4d0d7; font-size: .86rem; }
.check-list li::before { color: var(--lavender); content: "↗"; }
.section--light .check-list li { color: #4f4953; }
.steps { counter-reset: step; }
.step { position: relative; padding: 28px 28px 28px 80px; border-top: 1px solid var(--line); counter-increment: step; }
.step::before { position: absolute; left: 18px; color: var(--lavender); content: "0" counter(step); font-size: .75rem; font-weight: 700; }
.step p { max-width: 700px; margin: 6px 0 0; color: var(--muted); font-size: .86rem; }

.project-index { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project-tile { position: relative; min-height: 390px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 22px 58px rgba(0,0,0,.2); transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease; }
.project-tile img { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: transform .5s; }
.project-tile::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(13, 13, 15, .95)); content: ""; }
.project-tile:hover { border-color: rgba(209,154,238,.42); box-shadow: 0 32px 75px rgba(0,0,0,.34); transform: translateY(-7px); }
.project-tile:hover img { transform: scale(1.055); }
.project-tile-copy { position: absolute; right: 28px; bottom: 25px; left: 28px; z-index: 1; }
.project-tile-copy span { color: var(--lavender); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.project-tile-copy h3 { margin: 5px 0 0; font-family: "Newsreader", serif; font-size: 2rem; font-weight: 500; }
.project-tile-copy::after { display: inline-block; margin-top: 18px; color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .1em; content: "VER CASO  ↗"; }
.case { display: grid; grid-template-columns: 1.08fr .92fr; gap: 6vw; align-items: center; padding: 76px 0; border-top: 1px solid var(--line); }
.case:nth-child(even) .case-media { order: 2; }
.case-media { height: 480px; overflow: hidden; border-radius: var(--radius); }
.case-media img { height: 100%; object-fit: cover; }
.case-label { color: var(--lavender); font-size: .69rem; letter-spacing: .13em; text-transform: uppercase; }
.case h2 { margin-top: 13px; font-size: clamp(2.5rem, 4vw, 4.3rem); }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.case-grid p { margin: 6px 0 0; color: var(--muted); font-size: .8rem; }
.case-grid h3 { margin: 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }

.flow-map { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 70px; padding: 50px; border: 1px solid var(--line); border-radius: 28px; background: var(--panel); }
.flow-map::before { position: absolute; top: 50%; right: 15%; left: 15%; height: 1px; background: linear-gradient(90deg, var(--purple), var(--lavender)); content: ""; }
.flow-map--stacked { grid-template-columns: 1fr; gap: 14px; }
.flow-map--stacked::before { display: none; }
.flow-node { position: relative; z-index: 1; padding: 26px 18px; text-align: center; border: 1px solid var(--line); border-radius: 16px; background: var(--ink); }
.flow-node b { display: block; margin-bottom: 6px; font-size: .85rem; }
.flow-node span { color: var(--muted); font-size: .72rem; }
.integration-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.integration-cloud .badge { padding: 13px 17px; background: var(--panel); font-size: .78rem; }
.top-gap { margin-top: 22px; }

.device-stage { position: relative; min-height: 520px; padding: 50px; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(circle at 60% 15%, rgba(118,38,232,.28), transparent 43%), var(--panel); }
.desktop-mock { width: 78%; margin: 15px 0 0; padding: 10px; border: 1px solid #56515c; border-radius: 16px; background: #0b0b0d; box-shadow: var(--shadow); }
.browser-bar { display: flex; gap: 5px; height: 23px; align-items: center; }
.browser-bar i { width: 6px; height: 6px; border-radius: 50%; background: #605b64; }
.mock-page { display: grid; height: 340px; padding: 42px; align-content: end; border-radius: 8px; background: linear-gradient(145deg, rgba(118,38,232,.7), rgba(18,18,22,.4)), url('/assets/projects/staminex-agencia.webp') center/cover; }
.mock-page span { width: 55%; height: 12px; margin-top: 10px; border-radius: 8px; background: rgba(255,255,255,.75); }
.mock-page span:first-child { width: 75%; height: 32px; }
.mobile-mock { position: absolute; right: 8%; bottom: 22px; width: 170px; padding: 8px; border: 1px solid #625d68; border-radius: 26px; background: #0b0b0d; box-shadow: var(--shadow); }
.mobile-mock .mock-page { height: 320px; padding: 22px 15px; border-radius: 19px; }

.wa-panel { display: grid; grid-template-columns: 330px 1fr; min-height: 460px; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--panel); box-shadow: var(--shadow); }
.wa-panel--single { grid-template-columns: 1fr; min-height: 430px; }
.wa-sidebar { padding: 25px; border-right: 1px solid var(--line); }
.wa-chat { display: grid; padding: 42px; align-content: center; background: radial-gradient(circle at 80% 10%, rgba(118,38,232,.18), transparent 40%); }
.fake-line { height: 12px; margin-bottom: 13px; border-radius: 8px; background: #39383c; }
.fake-line.short { width: 55%; }
.chat-bubble { max-width: 390px; margin: 7px 0; padding: 15px 18px; border-radius: 18px 18px 18px 4px; background: #29282c; font-size: .78rem; }
.chat-bubble.out { margin-left: auto; border-radius: 18px 18px 4px; background: rgba(118,38,232,.45); }
.chat-actions { display: flex; margin-top: 10px; gap: 8px; }
.chat-actions span { padding: 8px 12px; border: 1px solid rgba(209,154,238,.4); border-radius: 999px; color: var(--lavender); font-size: .68rem; }

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { display: flex; width: 100%; padding: 24px 4px; align-items: center; justify-content: space-between; gap: 25px; border: 0; text-align: left; background: transparent; cursor: pointer; }
.faq-question span:last-child { color: var(--lavender); font-size: 1.5rem; transition: transform .2s; }
.faq-question[aria-expanded="true"] span:last-child { transform: rotate(45deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.faq-answer > div { overflow: hidden; }
.faq-answer p { max-width: 850px; margin: 0; padding: 0 4px 24px; color: var(--muted); }
.faq-question[aria-expanded="true"] + .faq-answer { grid-template-rows: 1fr; }

.related-card { display: flex; min-height: 230px; padding: 26px; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .2s; }
.related-card:hover { border-color: var(--lavender); transform: translateY(-3px); }
.related-card span { color: var(--lavender); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; }
.related-card h3 { max-width: 250px; margin: 30px 0 0; font-family: "Newsreader", serif; font-size: 2rem; font-weight: 500; }
.final-cta { position: relative; padding: 100px 30px; overflow: hidden; text-align: center; border: 1px solid var(--line); border-radius: 30px; background: var(--panel); }
.final-cta::before { position: absolute; inset: -70% 20% auto; height: 500px; background: radial-gradient(circle, rgba(118,38,232,.45), transparent 67%); content: ""; }
.final-cta > * { position: relative; }
.final-cta h2 { max-width: 800px; margin-inline: auto; }
.final-cta p { max-width: 620px; margin: 22px auto 0; color: var(--muted); }
.final-cta .button-row { justify-content: center; }
.site-footer { padding: 65px 0 30px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 80px; }
.footer-note { max-width: 360px; margin-top: 18px; color: var(--muted); font-size: .78rem; }
.footer-links { display: grid; align-content: start; gap: 9px; }
.footer-links strong { margin-bottom: 8px; color: #77727c; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-links a { color: #bbb7bf; font-size: .78rem; }
.footer-links a:hover { color: var(--lavender); }
.footer-bottom { display: flex; margin-top: 58px; padding-top: 23px; justify-content: space-between; border-top: 1px solid var(--line); color: #77727c; font-size: .68rem; }

.has-js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.has-js [data-reveal].is-visible { opacity: 1; transform: none; }
.has-gsap [data-reveal] { transition: none; will-change: opacity, transform; }

@media (max-width: 900px) {
  .section { padding: 84px 0; }
  .section-head, .split { grid-template-columns: 1fr; gap: 28px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .primary-nav { position: fixed; inset: 0; display: flex; padding: 105px 24px 35px; visibility: hidden; opacity: 0; align-items: stretch; flex-direction: column; gap: 4px; background: rgba(13,13,15,.98); transition: opacity .2s, visibility .2s; }
  .primary-nav.is-open { visibility: visible; opacity: 1; }
  .primary-nav > a, .dropdown-toggle { width: 100%; padding: 14px 4px; text-align: left; font-size: 1rem; }
  .dropdown-toggle { justify-content: space-between; }
  .nav-cta { margin-top: 12px; text-align: center !important; }
  .dropdown-menu { position: static; width: auto; max-height: 0; padding: 0 0 0 14px; overflow: hidden; visibility: visible; opacity: 1; border: 0; background: transparent; box-shadow: none; transform: none; transition: max-height .25s; }
  .dropdown.is-open .dropdown-menu { max-height: 260px; }
  .dropdown-menu a { padding: 10px 4px; }
  .case { grid-template-columns: 1fr; }
  .case:nth-child(even) .case-media { order: initial; }
  .case-media { height: 390px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .site-header { height: 68px; }
  .breadcrumb { padding-top: 18px; }
  .inner-hero { padding: 57px 0 68px; }
  .hero-visual { height: 400px; margin-top: 48px; border-radius: 20px; }
  .hero-note { right: 14px; bottom: 14px; left: 14px; max-width: none; }
  .grid--2, .grid--3, .grid--4, .project-index, .case-grid { grid-template-columns: 1fr; }
  .project-tile { min-height: 310px; }
  .case { padding: 55px 0; }
  .case-media, .split-media, .split-media img { min-height: 320px; height: 320px; }
  .flow-map { grid-template-columns: 1fr; gap: 22px; padding: 25px; }
  .flow-map::before { top: 15%; bottom: 15%; left: 50%; width: 1px; height: auto; }
  .device-stage { min-height: 430px; padding: 20px; }
  .desktop-mock { width: 95%; }
  .mock-page { height: 280px; padding: 25px; }
  .mobile-mock { right: 4%; width: 130px; }
  .mobile-mock .mock-page { height: 245px; }
  .wa-panel { grid-template-columns: 1fr; }
  .wa-sidebar { display: none; }
  .wa-chat { min-height: 430px; padding: 24px; }
  .final-cta { padding: 75px 20px; }
  .footer-grid { gap: 45px 25px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .has-js [data-reveal] { opacity: 1; transform: none; }
}
