/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #05090c;
  --bg-2: #081117;
  --bg-3: #0c1a21;
  --ink: #eef4f4;
  --ink-2: #b9c8ca;
  --ink-3: #6f8589;
  --accent: #2fd3d6;
  --accent-2: #1aa7ad;
  --accent-soft: rgba(47, 211, 214, .14);
  --line: rgba(238, 244, 244, .10);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.65; font-weight: 400;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.05; font-weight: 400; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(5rem, 12vw, 9rem); position: relative; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--ink); color: var(--bg); z-index: 9999; border-radius: 6px; }
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. Typography
   ============================================================= */
.w-apia { font-family: var(--serif); color: var(--ink); font-weight: 400; }
.w-digital {
  font-family: var(--serif); font-weight: 400;
  background: linear-gradient(180deg, #7cf0f0 0%, var(--accent) 45%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  font-size: .72rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.5rem; font-weight: 500;
}
.display {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.3rem, 5.4vw, 4.4rem); letter-spacing: -.01em; line-height: 1.04;
}
.display em { font-style: italic; color: var(--accent); }
.lead { color: var(--ink-2); font-size: clamp(1.02rem, 1.4vw, 1.15rem); max-width: 58ch; margin-top: 1.6rem; font-weight: 300; }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem 1.8rem; border-radius: 999px; font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 600;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background .4s, color .4s, border-color .4s;
}
.btn-primary {
  background: linear-gradient(135deg, #5ee8e8, var(--accent-2)); color: #03181a;
  box-shadow: 0 0 0 0 rgba(47,211,214,.0), 0 10px 30px -10px rgba(47,211,214,.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px -4px rgba(47,211,214,.55), 0 14px 34px -10px rgba(47,211,214,.7); }
.btn-ghost { border: 1px solid rgba(238,244,244,.28); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-sm { padding: .65rem 1.2rem; font-size: .68rem; }
.btn-block { width: 100%; }

/* Splash */
.splash {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: grid; place-items: center;
  animation: splashOut .7s var(--ease-out) 1.6s forwards; /* CSS safety net */
}
.splash img { width: min(220px, 50vw); animation: splashPulse 1.4s ease-in-out infinite alternate; mix-blend-mode: screen; }
.is-ready .splash { animation: splashOut .7s var(--ease-out) .25s forwards; }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }
@keyframes splashPulse { from { opacity: .45; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; transition: background .5s, backdrop-filter .5s, border-color .5s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(5,9,12,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-logo { font-size: 1.85rem; line-height: 1; display: inline-flex; gap: 0; }
.nav-links { display: none; align-items: center; gap: 2.2rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.nav-links a:not(.btn) { color: var(--ink-2); position: relative; transition: color .3s; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; }
.nav-toggle span { display: block; width: 24px; height: 1px; background: var(--ink); transition: transform .4s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav-links.is-open {
  display: flex; flex-direction: column; position: fixed; inset: 76px 0 auto; padding: 2rem var(--gutter) 2.5rem;
  background: rgba(5,9,12,.96); backdrop-filter: blur(14px); gap: 1.6rem; border-bottom: 1px solid var(--line);
}

/* =============================================================
   6. Sections
   ============================================================= */
/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding-block: 7rem 5rem; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: saturate(1.05) blur(6px) brightness(.55); transform: scale(1.08); opacity: .85; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,9,12,.35) 0%, rgba(5,9,12,.25) 35%, rgba(5,9,12,.85) 68%, var(--bg) 100%); }
.hero-dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.hero-glow { position: absolute; left: 50%; bottom: 18%; width: 70vw; height: 40vh; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(47,211,214,.16), transparent); z-index: -1; filter: blur(30px); }
.hero-symbol { width: clamp(150px, 20vw, 260px); margin-bottom: -.4rem; filter: drop-shadow(0 0 24px rgba(47,211,214,.35)); }
.hero { align-items: center; }
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.kicker { text-align: center; display: inline-flex; align-items: center; gap: .7rem; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 1.6rem; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(5,9,12,.4); backdrop-filter: blur(6px); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: dotPulse 2.4s ease-in-out infinite; }
@keyframes dotPulse { 50% { opacity: .35; } }
.hero-title { font-size: clamp(4rem, 13vw, 10.5rem); line-height: .95; letter-spacing: -.02em; display: flex; gap: 0; flex-wrap: wrap; justify-content: center; text-shadow: 0 0 60px rgba(47,211,214,.08); }
.hero-sub { margin-top: 1rem; font-size: clamp(.8rem, 1.6vw, 1.35rem); letter-spacing: .48em; text-transform: uppercase; color: var(--accent); font-weight: 300; padding-left: .48em; }
.hero-line { width: min(460px, 70%); height: 1px; margin: 1.8rem 0 1.5rem; background: linear-gradient(90deg, transparent, var(--accent), #c9ffff, var(--accent), transparent); box-shadow: 0 0 18px rgba(47,211,214,.8); }
.hero-claim { font-size: clamp(.78rem, 1.4vw, 1.05rem); letter-spacing: .3em; text-transform: uppercase; font-weight: 500; }
.hero-claim strong { color: var(--accent); font-weight: 700; }
.hero-lead { margin-top: 1.8rem; max-width: 56ch; color: var(--ink-2); font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.4rem; }
.hero-scroll { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); width: 24px; height: 40px; border: 1px solid rgba(238,244,244,.3); border-radius: 14px; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: scrollCue 2s var(--ease-out) infinite; }
@keyframes scrollCue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Manifesto */
.manifesto-grid { display: grid; gap: 1rem; }
.pillars { display: grid; gap: 2rem; margin-top: 4rem; border-top: 1px solid var(--line); padding-top: 2.5rem; }
.pillar-num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.4rem; }
.pillar h3 { font-family: var(--serif); font-size: 1.8rem; margin: .4rem 0 .6rem; }
.pillar p { color: var(--ink-2); font-weight: 300; }

/* Services */
.services { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }
.section-head { max-width: 760px; margin-bottom: 4rem; }
.cards { display: grid; gap: 1.2rem; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; padding: 2.4rem 2rem; border-radius: 18px;
  background: linear-gradient(180deg, rgba(12,26,33,.7), rgba(8,17,23,.7));
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .6s var(--ease-out), border-color .5s;
  transform-style: preserve-3d;
}
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(380px circle at var(--mx) var(--my), rgba(47,211,214,.13), transparent 60%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.card:hover { border-color: rgba(47,211,214,.38); }
.card:hover::before { opacity: 1; }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); border: 1px solid rgba(47,211,214,.3); margin-bottom: 1.8rem; }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.card-icon circle[r=".9"] { fill: var(--accent); }
.card h3 { font-family: var(--serif); font-size: 1.75rem; margin-bottom: .8rem; }
.card p { color: var(--ink-2); font-weight: 300; font-size: .97rem; }

/* Figures */
.figures { border-block: 1px solid var(--line); padding-block: 3.5rem; background: var(--bg-2); }
.figures-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.4rem 1.5rem; }
.figure strong { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(2.8rem, 6vw, 4.2rem); line-height: 1; color: var(--accent); }
.figure span { display: block; margin-top: .6rem; color: var(--ink-2); font-size: .9rem; font-weight: 300; max-width: 22ch; }

/* Method */
.method-grid { display: grid; gap: 3.5rem; align-items: center; }
.method-visual { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(circle at 50% 60%, rgba(47,211,214,.12), transparent 65%), var(--bg-2); padding: 2rem; }
.method-visual img { width: 100%; mix-blend-mode: screen; transition: transform 1.2s var(--ease-out); }
.method-visual:hover img { transform: scale(1.04); }
.steps { margin-top: 3rem; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-n { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--accent); line-height: 1.2; }
.step h3 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: .3rem; }
.step p { color: var(--ink-2); font-weight: 300; }

/* Sectors */
.sectors { background: var(--bg-2); }
.sector-list { display: flex; flex-wrap: wrap; gap: .8rem; }
.sector-list li { padding: .9rem 1.5rem; border: 1px solid var(--line); border-radius: 999px; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--ink); transition: border-color .4s, color .4s, background .4s; }
.sector-list li:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* FAQ */
.faq-grid { display: grid; gap: 3rem; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 1.5rem 2.5rem 1.5rem 0; position: relative; font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-weight: 300; font-size: 1.6rem; color: var(--accent); transition: transform .4s var(--ease-out); }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { color: var(--ink-2); font-weight: 300; padding-bottom: 1.6rem; max-width: 60ch; }

/* Contact */
.contact { overflow: hidden; }
.contact-glow { position: absolute; right: -10%; top: 10%; width: 60vw; height: 60vw; background: radial-gradient(closest-side, rgba(47,211,214,.1), transparent); pointer-events: none; }
.contact-grid { display: grid; gap: 3.5rem; position: relative; }
.contact-mail-old { margin-top: 2rem; font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.contact-mail a { color: var(--accent); border-bottom: 1px solid rgba(47,211,214,.35); transition: border-color .3s; word-break: break-all; }
.contact-mail a:hover { border-color: var(--accent); }
.form { display: grid; gap: 1.2rem; padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(12,26,33,.75), rgba(8,17,23,.75)); backdrop-filter: blur(10px); }
.form label { display: grid; gap: .45rem; }
.form label span { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.form input, .form textarea { font: inherit; color: var(--ink); background: rgba(5,9,12,.6); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem; resize: vertical; transition: border-color .3s, box-shadow .3s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,211,214,.15); }
.form .is-invalid { border-color: #e2687a; }
.form-note { font-size: .85rem; color: var(--ink-3); text-align: center; }
.form-note.is-ok { color: var(--accent); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 3rem; }
.footer-inner { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.footer-claim { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; }
.footer-claim strong { color: var(--accent); }
.footer-copy { font-size: .8rem; color: var(--ink-3); }

/* =============================================================
   7. Effects
   ============================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 720px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .figures-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .manifesto-grid { grid-template-columns: 1fr 3fr; gap: 3rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .method-grid { grid-template-columns: 1fr 1.1fr; gap: 6rem; }
  .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 5rem; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
  .footer-inner { grid-template-columns: 1fr auto 1fr; justify-items: stretch; text-align: left; }
  .footer-claim { text-align: center; }
  .footer-copy { text-align: right; }
}

/* =============================================================
   9. Reduced-motion (only intrusive effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll span, .splash img { animation: none; }
}

@media (max-width: 539px) { .kicker { letter-spacing: .18em; font-size: .62rem; } .hero-sub { letter-spacing: .3em; } }

/* Contact visibility */
.hero-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 2rem; margin-top: 2rem; }
.hero-contact a { display: inline-flex; align-items: center; gap: .6rem; font-size: 1rem; color: var(--ink); font-weight: 500; letter-spacing: .02em; transition: color .3s; }
.hero-contact a:hover { color: var(--accent); }
.hero-contact svg, .cc-icon svg, .wa-float svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav-phone { color: var(--ink) !important; font-weight: 600; letter-spacing: .08em !important; }
.nav-phone::after { display: none; }
.contact-cards { display: grid; gap: .9rem; margin-top: 2.2rem; }
.contact-card { display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.3rem; border-radius: 16px; border: 1px solid rgba(47,211,214,.3); background: linear-gradient(135deg, rgba(47,211,214,.10), rgba(12,26,33,.6)); transition: transform .5s var(--ease-out), border-color .4s, box-shadow .5s; }
.contact-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 40px -14px rgba(47,211,214,.55); }
.cc-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); flex: none; }
.cc-icon svg { width: 22px; height: 22px; }
.contact-card small { display: block; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.contact-card strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: var(--ink); word-break: break-word; line-height: 1.2; }
.footer-contact { font-size: .9rem; color: var(--ink-2); }
.footer-contact a:hover { color: var(--accent); }
.wa-float { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #5ee8e8, var(--accent-2)); box-shadow: 0 10px 30px -8px rgba(47,211,214,.7); transition: transform .4s var(--ease-out); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 26px; height: 26px; stroke: #03181a; }
@media (min-width: 960px) { .footer-inner { grid-template-columns: auto 1fr auto auto; gap: 2.5rem; align-items: center; } .footer-contact { text-align: center; } }

/* Services detailed */
.services-list { display: grid; gap: 1.2rem; }
.service { --mx: 50%; --my: 50%; position: relative; display: flex; flex-direction: column; padding: clamp(1.8rem, 3vw, 2.6rem); border-radius: 20px; background: linear-gradient(180deg, rgba(12,26,33,.75), rgba(8,17,23,.75)); border: 1px solid var(--line); overflow: hidden; transition: transform .6s var(--ease-out), border-color .5s; }
.service::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(47,211,214,.12), transparent 60%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.service:hover { border-color: rgba(47,211,214,.38); }
.service:hover::before { opacity: 1; }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; }
.service-top .card-icon { margin-bottom: 1.6rem; }
.service-num { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--ink-3); }
.service h3 { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.4rem); }
.service-hook { color: var(--accent); font-family: var(--serif); font-style: italic; font-size: 1.25rem; margin: .3rem 0 1rem; }
.service-desc { color: var(--ink-2); font-weight: 300; }
.service-label { margin-top: 1.6rem; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.service-inc { margin-top: .8rem; display: grid; gap: .55rem; }
.service-inc li { position: relative; padding-left: 1.7rem; font-size: .95rem; color: var(--ink); }
.service-inc li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent); transform: rotate(-45deg) translateY(-2px); }
.service-ideal { margin-top: 1.5rem; padding: 1rem 1.1rem; border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(47,211,214,.2); font-size: .93rem; color: var(--ink-2); }
.service-ideal strong { display: block; color: var(--accent); font-weight: 600; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: .35rem; }
.service-cta { margin-top: auto; padding-top: 1.6rem; display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--accent); align-self: flex-start; }
.service-cta span { transition: transform .4s var(--ease-out); }
.service-cta:hover span { transform: translateX(5px); }
.services .section-head .lead { margin-inline: 0; }
@media (min-width: 720px) { .services-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .services-list { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   Asistente IA (chat)
   ============================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wa-float { bottom: 5.6rem; width: 48px; height: 48px; right: 1.6rem; }
.wa-float svg { width: 22px; height: 22px; }
.chat { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 120; }
.chat-fab { position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #8af3f3, var(--accent) 45%, var(--accent-2)); box-shadow: 0 0 0 6px rgba(47,211,214,.12), 0 14px 36px -8px rgba(47,211,214,.75); transition: transform .4s var(--ease-out); }
.chat-fab:hover { transform: scale(1.06); }
.chat-fab svg { width: 26px; height: 26px; fill: none; stroke: #03181a; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; position: absolute; transition: opacity .3s, transform .4s var(--ease-out); }
.chat-fab .i-close { opacity: 0; transform: rotate(-90deg); }
.chat.is-open .chat-fab .i-open { opacity: 0; transform: rotate(90deg); }
.chat.is-open .chat-fab .i-close { opacity: 1; transform: none; }
.chat-badge { position: absolute; top: -4px; right: -4px; background: var(--bg); color: var(--accent); border: 1px solid var(--accent); font-size: .6rem; font-weight: 700; letter-spacing: .08em; padding: .15rem .4rem; border-radius: 999px; transition: opacity .3s; }
.chat.is-open .chat-badge { opacity: 0; }
.chat-panel { position: absolute; right: 0; bottom: calc(100% + 14px); width: min(390px, calc(100vw - 2rem)); height: min(580px, calc(100svh - 120px)); display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, rgba(12,26,33,.97), rgba(5,9,12,.98)); border: 1px solid rgba(47,211,214,.28); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 50px -20px rgba(47,211,214,.45); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; visibility: hidden; transform: translateY(16px) scale(.97); transform-origin: bottom right; transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), visibility 0s .45s; }
.chat.is-open .chat-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease-out), transform .45s var(--ease-out); }
.chat-head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); background: rgba(47,211,214,.05); }
.chat-avatar { width: 42px; height: 42px; object-fit: contain; border-radius: 12px; background: var(--bg); border: 1px solid rgba(47,211,214,.3); padding: 5px; }
.chat-title { font-family: var(--serif); font-size: 1.25rem; line-height: 1.1; }
.chat-status { display: flex; align-items: center; gap: .45rem; font-size: .72rem; color: var(--ink-3); margin-top: .2rem; }
.chat-status .dot { width: 6px; height: 6px; }
.chat-x { margin-left: auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-2); transition: background .3s; }
.chat-x:hover { background: rgba(238,244,244,.06); }
.chat-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.chat-body { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .7rem; scrollbar-width: thin; scrollbar-color: rgba(47,211,214,.3) transparent; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: .75rem 1rem; border-radius: 16px; font-size: .92rem; line-height: 1.55; animation: msgIn .4s var(--ease-out); }
.msg p + p, .msg p + ul, .msg ul + p { margin-top: .5rem; }
.msg ul { padding-left: 1.1rem; list-style: disc; }
.msg a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.msg-bot { align-self: flex-start; background: rgba(238,244,244,.06); border: 1px solid var(--line); border-bottom-left-radius: 5px; color: var(--ink); }
.msg-bot strong { color: var(--accent); font-weight: 600; }
.msg-user { align-self: flex-end; background: linear-gradient(135deg, #5ee8e8, var(--accent-2)); color: #03181a; border-bottom-right-radius: 5px; font-weight: 500; }
.msg-error { border-color: rgba(226,104,122,.4); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.typing { display: inline-flex; gap: 5px; padding: .3rem 0; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: typing 1.2s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.chat-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .3rem; }
.chat-chips button { font-size: .8rem; padding: .5rem .85rem; border-radius: 999px; border: 1px solid rgba(47,211,214,.35); color: var(--accent); background: rgba(47,211,214,.06); transition: background .3s, color .3s; text-align: left; }
.chat-chips button:hover { background: var(--accent); color: #03181a; }
.chat-form { display: flex; align-items: flex-end; gap: .6rem; padding: .8rem .9rem; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: none; max-height: 120px; font: inherit; font-size: .93rem; color: var(--ink); background: rgba(5,9,12,.7); border: 1px solid var(--line); border-radius: 14px; padding: .7rem .9rem; transition: border-color .3s; }
.chat-form textarea:focus { outline: none; border-color: var(--accent); }
.chat-send { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #5ee8e8, var(--accent-2)); transition: transform .3s var(--ease-out), opacity .3s; }
.chat-send:hover { transform: translateY(-1px); }
.chat-send:disabled { opacity: .45; cursor: default; }
.chat-send svg { width: 20px; height: 20px; fill: none; stroke: #03181a; stroke-width: 1.8; stroke-linejoin: round; }
.chat-foot { font-size: .68rem; color: var(--ink-3); text-align: center; padding: 0 1rem .8rem; }
.chat-foot a { color: var(--ink-2); }
@media (max-width: 539px) {
  .chat-panel { position: fixed; inset: auto .6rem calc(1.2rem + 74px) .6rem; width: auto; height: min(70svh, 560px); }
}
.chat.is-open ~ .wa-float { opacity: 0; pointer-events: none; }
.wa-float { transition: transform .4s var(--ease-out), opacity .3s; }
.chat-foot a { white-space: nowrap; }

/* Servicio destacado: Diseño web */
.service-featured { grid-column: 1 / -1; display: grid; gap: 2.5rem; padding: clamp(2rem, 4vw, 3.4rem); border-color: rgba(47,211,214,.3); background: radial-gradient(120% 140% at 0% 0%, rgba(47,211,214,.10), transparent 55%), linear-gradient(180deg, rgba(12,26,33,.85), rgba(8,17,23,.85)); }
.service-featured h3 { font-size: clamp(2.3rem, 4vw, 3.2rem); }
.service-featured .service-hook { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.3; margin: .6rem 0 1.4rem; color: var(--ink); }
.service-featured .service-desc + .service-desc { margin-top: 1rem; }
.sf-statement { margin-top: 1.6rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2vw, 1.6rem); color: var(--accent); }
.sf-side { display: flex; flex-direction: column; }
.sf-side .service-label { margin-top: 0; }
.sf-side .service-inc li { font-size: 1rem; padding-block: .15rem; }
.sf-quote { margin: 2rem 0; padding: 1.4rem 1.5rem; border-left: 2px solid var(--accent); background: var(--accent-soft); border-radius: 0 14px 14px 0; }
.sf-quote p { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.3; }
.sf-quote em { color: var(--accent); }
.sf-quote .sf-quote-sub { font-family: var(--sans); font-size: .93rem; color: var(--ink-2); margin-top: .8rem; line-height: 1.6; font-weight: 300; }
.sf-side .btn { align-self: flex-start; margin-top: auto; }
@media (min-width: 960px) { .service-featured { grid-template-columns: 1.25fr 1fr; gap: 4rem; align-items: start; } .sf-side { padding-top: 5.2rem; } }
@media (min-width: 720px) { .services-list > .service:last-child { grid-column: 1 / -1; } }
@media (min-width: 1280px) { .services-list > .service:last-child { grid-column: span 2; } }

/* Dos destacados + rejilla 2x2 para el resto */
@media (min-width: 720px) { .services-list > .service:last-child { grid-column: auto; } }
@media (min-width: 1280px) { .services-list { grid-template-columns: repeat(2, 1fr); } .services-list > .service:last-child { grid-column: auto; } }
.sf-alt { background: radial-gradient(120% 140% at 100% 0%, rgba(47,211,214,.10), transparent 55%), linear-gradient(180deg, rgba(12,26,33,.85), rgba(8,17,23,.85)); }
@media (min-width: 960px) { .sf-alt { grid-template-columns: 1fr 1.25fr; } .sf-alt .sf-side { order: -1; } }

/* Estrategia: destacado amplio */
.sf-lead { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.5rem) !important; color: var(--ink) !important; line-height: 1.35; margin-bottom: 1rem; }
.sf-wide .sf-side { gap: 1.2rem; }
.sf-wide .sf-quote { margin: 0; }
.sf-wide .sf-quote .sf-quote-sub + .sf-quote-sub { margin-top: .6rem; }
.sf-wide .sf-quote strong { color: var(--accent); font-weight: 600; }
.sf-wide .service-ideal { margin-top: 0; }
.sf-includes { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 2.2rem; }
.sfi-grid { margin-top: 1.4rem; display: grid; gap: 1rem; }
.sfi-grid li { padding: 1.4rem 1.4rem 1.5rem; border-radius: 16px; border: 1px solid var(--line); background: rgba(5,9,12,.45); transition: border-color .4s, transform .5s var(--ease-out); }
.sfi-grid li:hover { border-color: rgba(47,211,214,.4); transform: translateY(-3px); }
.sfi-n { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.2rem; }
.sfi-grid h4 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; line-height: 1.2; margin: .35rem 0 .5rem; }
.sfi-grid p { color: var(--ink-2); font-weight: 300; font-size: .93rem; }
.sf-cta { grid-column: 1 / -1; display: grid; gap: 1.6rem; padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: 18px; border: 1px solid rgba(47,211,214,.3); background: linear-gradient(120deg, rgba(47,211,214,.14), rgba(47,211,214,.03)); }
.sf-cta-title { font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.15; }
.sf-cta-title em { color: var(--accent); }
.sf-cta-text { color: var(--ink-2); font-weight: 300; margin-top: .6rem; }
.sf-cta-q { font-family: var(--serif); font-size: 1.4rem; }
.sf-cta-side .btn { margin-top: 1.2rem; }
@media (min-width: 720px) { .sfi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .sf-wide .sf-side { padding-top: 5.2rem; } .sfi-grid { grid-template-columns: repeat(3, 1fr); } .sf-cta { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 3rem; } }
/* Tres tarjetas restantes */
@media (min-width: 720px) { .services-list > .service:last-child { grid-column: 1 / -1; } }
@media (min-width: 1280px) { .services-list { grid-template-columns: repeat(3, 1fr); } .services-list > .service:last-child { grid-column: auto; } }

.sf-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.sf-chips li { padding: .45rem .95rem; border-radius: 999px; border: 1px solid rgba(47,211,214,.35); color: var(--accent); font-size: .8rem; letter-spacing: .06em; background: rgba(47,211,214,.06); }
/* Dos tarjetas restantes */
@media (min-width: 720px) { .services-list > .service:last-child { grid-column: auto; } }
@media (min-width: 1280px) { .services-list { grid-template-columns: repeat(2, 1fr); } }

/* Contenido: 5 puntos (3 + 2 centrados) */
@media (min-width: 960px) { .sfi-5 { grid-template-columns: repeat(6, 1fr); } .sfi-5 li { grid-column: span 2; } .sfi-5 li:nth-child(4) { grid-column: 2 / span 2; } }
/* Una tarjeta restante: ocupa todo el ancho con texto en dos columnas */
@media (min-width: 720px) { .services-list > .service:last-child { grid-column: 1 / -1; } }
@media (min-width: 960px) { .services-list > .service:last-child:not(.service-featured) { display: grid; grid-template-columns: 1.2fr 1fr; column-gap: 4rem; } .services-list > .service:last-child:not(.service-featured) > * { grid-column: 1; } .services-list > .service:last-child:not(.service-featured) > .service-label, .services-list > .service:last-child:not(.service-featured) > .service-inc, .services-list > .service:last-child:not(.service-featured) > .service-ideal, .services-list > .service:last-child:not(.service-featured) > .service-cta { grid-column: 2; } .services-list > .service:last-child:not(.service-featured) > .service-label { grid-row: 1; align-self: end; } .services-list > .service:last-child:not(.service-featured) > .service-inc { grid-row: 2 / span 3; } }

.sf-tag { display: inline-block; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: .7rem; }

/* Método ampliado */
.step-sub { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--accent) !important; margin-bottom: .5rem; font-weight: 400 !important; }
.step p + p { margin-top: .5rem; }
.step p strong { color: var(--ink); font-weight: 500; }
.method-close { margin-top: 2.4rem; font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.3; }
.method-close em { color: var(--accent); }
@media (min-width: 960px) { .method-grid { align-items: start; } .method-visual { position: sticky; top: 110px; } }
