:root {
  --bg: #FFFFFF;
  --bg-tint: #F6F7FB;
  --ink: #181B20;
  --ink-soft: #565B66;
  --line: #E4E6ED;
  --blue: #2F5FFF;
  --blue-deep: #1E3FCC;
  --coral: #FF6B4A;
  --card: #FFFFFF;
  --cta-bg: #181B20;
}
:root[data-theme="dark"] {
  --bg: #0d111b;
  --bg-tint: #151c2a;
  --ink: #f4f7ff;
  --ink-soft: #aeb8ca;
  --line: #2c3850;
  --blue: #79a0ff;
  --blue-deep: #9ab7ff;
  --coral: #ff896f;
  --card: #151c2a;
  --cta-bg: #070b13;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; margin: 0; color: var(--ink); }
p { margin: 0; color: var(--ink-soft); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
.wrap { width: 100%; max-width: none; margin: 0; padding: 0 clamp(18px, 5vw, 72px); }
section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 60px 0; } }

/* Nav */
nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; justify-content: flex-start; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.15rem; }
.brand span { color: var(--blue); }
nav ul { display: flex; gap: 28px; list-style: none; margin: 0 0 0 auto; padding: 0; }
nav ul a { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); transition: color .2s; padding-bottom: 4px; border-bottom: 2px solid transparent; }
nav ul a:hover { color: var(--blue); }
nav ul a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); }
.nav-links { display: flex; }
.menu-toggle { display: none; }
@media (max-width: 640px) { .nav-links { display: none; } }
@media (max-width: 640px) { nav .btn { margin-left: auto; } }
.language-toggle { background: transparent; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); cursor: pointer; font: inherit; font-size: 0.78rem; font-weight: 700; padding: 8px 10px; transition: border-color .2s, color .2s; }
.language-toggle:hover { border-color: var(--blue); color: var(--blue); }
.theme-toggle { align-items: center; background: transparent; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); cursor: pointer; display: inline-flex; font-size: 1rem; height: 36px; justify-content: center; margin-left: 8px; transition: background .25s, border-color .25s, color .25s, transform .25s; width: 36px; }
.theme-toggle:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: rotate(15deg); }
.floating-whatsapp { align-items: center; background: #25d366; border-radius: 999px; bottom: 24px; box-shadow: 0 12px 28px rgba(37,211,102,.3); color: #073b1d; display: inline-flex; gap: 8px; padding: 13px 17px; position: fixed; right: 24px; transition: transform .3s, box-shadow .3s; z-index: 20; }
.floating-whatsapp:hover { box-shadow: 0 16px 34px rgba(37,211,102,.4); color: #073b1d; transform: translateY(-4px); }
.floating-whatsapp span { align-items: center; border: 2px solid currentColor; border-radius: 50%; display: inline-flex; font-size: 15px; height: 22px; justify-content: center; line-height: 1; width: 22px; }
.floating-whatsapp b { font-size: .84rem; }

.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; font-weight: 600; font-size: 0.95rem; padding: 12px 22px; border-radius: 999px; border: none; cursor: pointer; transition: background .2s, transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; transform: translate3d(var(--button-x, 0px), var(--button-y, 0px), 0); }
.btn:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: transparent; }

nav { transition: box-shadow .35s ease, background .35s ease; }
nav.is-scrolled { box-shadow: 0 10px 30px rgba(24, 27, 32, .08); background: rgba(255,255,255,.78); }
:root[data-theme="dark"] nav { background: rgba(13,17,27,.96); border-bottom-color: var(--line); }
:root[data-theme="dark"] nav.is-scrolled { background: rgba(13,17,27,.96); box-shadow: 0 10px 30px rgba(0,0,0,.28); }
:root[data-theme="dark"] nav .brand,
:root[data-theme="dark"] nav ul a,
:root[data-theme="dark"] nav .language-toggle,
:root[data-theme="dark"] nav .theme-toggle { color: #f4f7ff; }
:root[data-theme="dark"] nav .brand span,
:root[data-theme="dark"] nav ul a:hover,
:root[data-theme="dark"] nav .language-toggle:hover { color: #9ab7ff; }
:root[data-theme="dark"] nav ul a[aria-current="page"] { color: #fff; border-bottom-color: #79a0ff; }
.hero-card { transition: transform .7s cubic-bezier(.2,.8,.2,1), box-shadow .7s ease; }
.hero-card:hover { transform: translateY(-8px) rotate(.6deg); box-shadow: 0 24px 55px rgba(47,95,255,.14); }
.hero-card { animation: card-float 5s ease-in-out 1.5s infinite; }
.hero-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.5) 48%, transparent 68%); transform: translateX(-125%); animation: card-shine 5s ease-in-out 2.3s infinite; }
.hero-card { position: relative; overflow: hidden; }
.hero-dashboard { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 12px 30px rgba(24,27,32,.1); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.hero-card:hover .hero-dashboard { transform: scale(1.025); }
.comparison { border-radius: 12px; height: auto; min-height: 350px; overflow: hidden; position: relative; user-select: none; }
.comparison-view { inset: 0; position: absolute; }
.comparison-polished { clip-path: inset(0 0 0 50%); }
.comparison-view img { display: block; height: 100%; object-fit: cover; width: 100%; }
.comparison-basic { background: #dfe2e8; padding: 32px; }
.comparison-page { background: #fff; border: 1px solid #c4c8d0; color: #69717e; height: 100%; padding: 24px 20px; }
.basic-top { border-bottom: 1px solid #d9dce2; font: 700 9px 'Inter', sans-serif; letter-spacing: .08em; padding-bottom: 14px; }
.basic-title { color: #252a32; font: 600 27px Georgia, serif; margin: 54px 0 18px; }
.basic-line { background: #d9dce2; height: 9px; margin-bottom: 10px; width: 78%; }
.basic-line.short { width: 48%; }
.basic-box { background: #e5e7eb; height: 66px; margin: 25px 0; width: 100%; }
.comparison-page button { background: #aab0ba; border: 0; color: #fff; font: 700 8px 'Inter', sans-serif; padding: 11px 15px; }
.comparison-label { background: rgba(13,17,27,.78); border-radius: 999px; color: #fff; font: 700 10px 'Inter', sans-serif; left: 14px; padding: 7px 10px; position: absolute; text-transform: uppercase; top: 14px; }
.comparison-polished .comparison-label { left: auto; right: 14px; }
.comparison-range { cursor: ew-resize; height: 100%; inset: 0; opacity: 0; position: absolute; width: 100%; z-index: 4; }
.comparison-handle { align-items: center; background: #fff; border: 3px solid var(--blue); border-radius: 50%; box-shadow: 0 4px 16px rgba(24,27,32,.25); color: var(--blue); display: flex; height: 42px; justify-content: center; left: 50%; pointer-events: none; position: absolute; top: 50%; transform: translate(-50%,-50%); width: 42px; z-index: 3; }
.comparison-handle span { font-size: 18px; font-weight: 700; }
.comparison-hint { background: var(--blue); border-radius: 999px; bottom: 14px; color: #fff; font-size: 10px; font-weight: 700; left: 50%; padding: 7px 11px; pointer-events: none; position: absolute; transform: translateX(-50%); white-space: nowrap; z-index: 5; }
.mock-block { background-size: 180% 180%; animation: gradient-pulse 4s ease-in-out infinite alternate; }
.mock-line { animation: line-pulse 2.8s ease-in-out infinite alternate; }
.mock-line:nth-of-type(3) { animation-delay: .25s; }
.mock-line:nth-of-type(4) { animation-delay: .5s; }
.service, .price-card, .case-detail, .testi { transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease, border-color .3s ease; }
.service:hover, .price-card:hover, .case-detail:hover, .testi:hover { transform: translateY(-8px); box-shadow: 0 18px 45px rgba(24,27,32,.1); border-color: rgba(47,95,255,.32); }
.case-visual { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.case-detail:hover .case-visual { transform: scale(1.035); }

body.motion-ready .motion-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease var(--reveal-delay, 0ms), transform .8s cubic-bezier(.2,.8,.2,1) var(--reveal-delay, 0ms); }
body.motion-ready .motion-reveal.is-visible { opacity: 1; transform: translateY(0); }
body.motion-ready .hero h1.motion-reveal { transform: translateY(34px); transition-duration: 1s; }
body.motion-ready .hero h1.motion-reveal.is-visible { transform: translateY(0); }
body.reduce-motion .motion-reveal { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@keyframes card-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(.7deg); } }
@keyframes card-shine { 0%, 35% { transform: translateX(-125%); } 65%, 100% { transform: translateX(125%); } }
@keyframes gradient-pulse { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
@keyframes line-pulse { 0% { opacity: .55; } 100% { opacity: 1; } }

.eyebrow { color: var(--coral); font-weight: 600; font-size: 0.95rem; margin-bottom: 18px; display: block; }
.section-head { max-width: 56ch; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 600; }

/* Hero (home) */
.hero { padding: 84px 0 68px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero p.lead { margin-top: 20px; font-size: 1.1rem; max-width: 46ch; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card { background: var(--bg-tint); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.browser-bar { display: flex; gap: 6px; margin-bottom: 18px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-line { height: 10px; border-radius: 6px; background: var(--line); margin-bottom: 10px; }
.mock-block { height: 90px; border-radius: 12px; background: linear-gradient(135deg, var(--blue) 0%, var(--coral) 100%); margin: 16px 0; opacity: 0.9; }
.stat-row { display: flex; gap: 22px; margin-top: 18px; }
.stat b { font-family: 'Fraunces', serif; font-size: 1.4rem; display: block; color: var(--ink); }
.stat span { font-size: 0.8rem; color: var(--ink-soft); }

/* Page hero (subpages) */
.page-hero { padding: 56px 0 8px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; }
.page-hero p { margin-top: 14px; font-size: 1.05rem; max-width: 52ch; }
.error-page { min-height: calc(100vh - 190px); display: grid; place-items: center; text-align: center; padding: 80px 0; }
.error-page .wrap { display: grid; justify-items: center; }
.error-code { color: var(--blue); font-family: 'Fraunces', Georgia, serif; font-size: clamp(5rem, 18vw, 11rem); font-weight: 600; letter-spacing: -.08em; line-height: .85; }
.error-page h1 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 28px; }
.error-page p { margin-top: 14px; max-width: 46ch; }
.error-page .hero-actions { justify-content: center; }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

/* Services */
.service { border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px; background: var(--card); }
.service .num { font-family: 'Fraunces', serif; font-size: 1rem; color: var(--blue); font-weight: 600; }
.service h3 { font-size: 1.2rem; font-weight: 600; margin: 14px 0 10px; }
.service p { font-size: 0.95rem; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card { border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px; background: var(--card); display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.price-card .tag { font-size: 0.78rem; font-weight: 600; color: var(--coral); }
.price-card h3 { font-size: 1.2rem; margin: 10px 0 6px; }
.price-card .price { font-family: 'Fraunces', serif; font-size: 2rem; margin: 10px 0 16px; }
.price-card .price small { font-family: 'Inter'; font-size: 0.9rem; color: var(--ink-soft); font-weight: 400; }
.price-card .price del { color: var(--ink-soft); font-family: 'Inter'; font-size: .95rem; font-weight: 500; margin-right: 5px; opacity: .7; }
.price-card .price strong { color: var(--coral); font-weight: 600; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; flex-grow: 1; }
.price-card li { font-size: 0.9rem; color: var(--ink-soft); padding: 7px 0; border-top: 1px solid var(--line); }
.price-card li:first-child { border-top: none; }

/* Portfolio cards */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .portfolio-grid { grid-template-columns: 1fr; } }
.case { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.case-visual { height: 150px; }
.case-body { padding: 22px; }
.case-tag { font-size: 0.78rem; font-weight: 600; color: var(--coral); }
.case h3 { font-size: 1.15rem; margin: 8px 0 8px; }
.case p { font-size: 0.92rem; }

/* Case detail (portfolio page) */
.case-detail { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-bottom: 28px; }
.case-detail .case-visual { height: 130px; }
.case-detail .case-body { padding: 30px; }
.case-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 18px; }
@media (max-width: 760px) { .case-cols { grid-template-columns: 1fr; } }
.case-cols h4 { font-size: 0.82rem; text-transform: none; font-weight: 600; color: var(--blue); margin-bottom: 6px; }
.case-cols p { font-size: 0.9rem; }
.quote { margin-top: 20px; padding: 16px 20px; background: var(--bg-tint); border-radius: 12px; font-style: italic; font-size: 0.92rem; }
.quote span { display: block; margin-top: 8px; font-style: normal; font-size: 0.82rem; color: var(--ink); font-weight: 600; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { padding-top: 18px; border-top: 2px solid var(--line); }
.step .n { font-family: 'Fraunces', serif; color: var(--blue); font-size: 1.4rem; }
.step h3 { font-size: 1rem; font-weight: 600; margin: 8px 0 6px; }
.step p { font-size: 0.88rem; }

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .testi-grid { grid-template-columns: 1fr; } }
.testi { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--card); }
.testi p { font-size: 0.95rem; font-style: italic; }
.testi .who { margin-top: 14px; font-size: 0.85rem; font-weight: 600; color: var(--ink); font-style: normal; }

/* FAQ */
.faq-item { border-top: 1px solid var(--line); padding: 20px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 8px; }
.faq-item p { font-size: 0.92rem; }
.legal-content { max-width: 780px; }
.legal-content h2 { font-size: 1.35rem; margin: 38px 0 10px; }
.legal-content p { margin-bottom: 16px; }
.legal-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.privacy-consent { margin: 4px 0 18px; color: var(--ink-soft); font-size: .86rem; line-height: 1.5; }
.privacy-consent label { align-items: flex-start; display: flex; gap: 9px; }
.privacy-consent input { accent-color: var(--blue); margin-top: 4px; }
.privacy-consent a { color: var(--blue); text-decoration: underline; }
.trust-strip { background: var(--bg-tint); border-block: 1px solid var(--line); padding: 25px 0; }
.trust-strip .wrap { align-items: center; display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; }
.trust-item { color: var(--ink-soft); font-size: .9rem; }
.trust-item strong { color: var(--ink); display: block; font-family: 'Fraunces', serif; font-size: 1.45rem; }
.process-grid { display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }
.process-item { border-top: 2px solid var(--line); padding-top: 18px; }
.process-item .num { color: var(--blue); font-family: 'Fraunces', serif; font-size: 1.35rem; }
.process-item h3 { font-size: 1.15rem; margin: 10px 0 7px; }
.process-item p { font-size: .9rem; }
.promo-note { background: color-mix(in srgb, var(--coral) 12%, var(--bg)); border: 1px solid color-mix(in srgb, var(--coral) 35%, var(--line)); border-radius: 12px; color: var(--ink); margin: 0 0 25px; padding: 14px 18px; }
.case-actions { margin-top: 22px; }
@media (max-width: 860px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  nav .wrap { gap: 9px; }
  .menu-toggle { align-items: center; background: transparent; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; height: 36px; justify-content: center; margin-left: auto; padding: 0; width: 36px; }
  .menu-toggle span { background: var(--ink); display: block; height: 2px; transition: transform .25s, opacity .25s; width: 16px; }
  nav.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  nav.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  nav.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  nav ul.nav-links { background: var(--bg); border-bottom: 1px solid var(--line); display: none; flex-direction: column; gap: 0; left: 0; margin: 0; padding: 8px 5vw 16px; position: absolute; right: 0; top: 100%; }
  nav.menu-open ul.nav-links { display: flex; }
  nav ul.nav-links a { display: block; padding: 13px 0; }
  nav .btn { display: none; }
  .language-toggle, .theme-toggle { flex: 0 0 auto; }
  .floating-whatsapp { bottom: 16px; right: 16px; }
  .floating-whatsapp b { display: none; }
  .process-grid { grid-template-columns: 1fr; }
}

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg-tint); color: var(--ink); font-family: inherit; font-size: 0.95rem; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.wa-card { background: var(--bg-tint); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.wa-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.wa-btn { margin-top: 18px; background: #25D366; }
.wa-btn:hover { background: #1DA851; }
#form-status { font-size: 0.88rem; margin-top: 10px; color: var(--blue); display: none; }
#form-status.success { color: #159447; }
#form-status.error { color: var(--coral); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cta-band { background: var(--cta-bg); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.cta-band p { color: #C7CBD6; margin-top: 12px; }
.cta-band .hero-actions { justify-content: center; margin-top: 26px; }

footer { border-top: 1px solid var(--line); padding: 52px 0; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; font-size: 0.95rem; color: var(--ink-soft); }
.footer-brand { display: inline-flex; align-items: center; gap: 14px; font-weight: 600; }
.footer-brand img { width: 46px; height: 46px; border-radius: 12px; flex: 0 0 auto; box-shadow: 0 8px 22px rgba(47,95,255,.18); }
@media (max-width: 560px) {
  footer { padding: 38px 0; }
  footer .wrap { align-items: flex-start; flex-direction: column; font-size: 0.88rem; }
  .footer-brand img { width: 42px; height: 42px; }
}

a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
