/* ============================================================
   SCALIA BUSINESS SOLUTIONS — stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root{
  --bg: #070f0e;
  --bg-soft: #0a1614;
  --surface: #0f1e1b;
  --surface-hover: #13251f;
  --border: rgba(124,199,192,0.14);
  --border-strong: rgba(124,199,192,0.32);

  --teal-900: #082420;
  --teal-700: #10564b;
  --teal-600: #17786a;
  --teal-500: #1f9c8a;
  --teal-400: #35b3a0;
  --mint-300: #7cc7c0;
  --mint-200: #a9ddd6;

  --white: #f6fbfa;
  --text: #e9f4f2;
  --muted: #9db6b1;
  --muted-2: #708984;

  --gradient: linear-gradient(135deg, #12695c 0%, #7cc7c0 100%);
  --gradient-soft: linear-gradient(135deg, rgba(18,105,92,.20), rgba(124,199,192,.20));
  --gradient-text: linear-gradient(120deg, #6fd7c4 0%, #a9ddd6 45%, #7cc7c0 100%);

  --eco-teal: #2fc7ae;
  --eco-violet: #8b6cf2;
  --eco-orange: #f2984a;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-glow: 0 20px 60px -24px rgba(18,105,92,.55);

  --container: 1180px;
  --nav-h: 76px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; }
::selection{ background: var(--teal-500); color:#04110e; }

.container{ max-width: var(--container); margin:0 auto; padding: 0 24px; }
@media(min-width:768px){ .container{ padding: 0 40px; } }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color: var(--mint-300);
  margin: 0 0 16px;
}
.eyebrow::before{ content:''; width:6px; height:6px; border-radius:50%; background: var(--mint-300); box-shadow: 0 0 12px var(--mint-300); }

.gradient-text{
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip:text; color: transparent;
}

h1,h2,h3,h4{ margin:0; font-weight:800; letter-spacing:-0.02em; line-height:1.08; }
h2{ font-size: clamp(1.9rem, 3.6vw, 2.85rem); }
h3{ font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
p{ margin:0; }
.lead{ color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.13rem); line-height:1.65; }

.section{ padding: 108px 0; position: relative; }
@media(max-width:768px){ .section{ padding: 76px 0; } }
.section-head{ max-width: none; margin: 0 0 56px; }

.section-alt{ background: var(--bg-soft); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-weight:700; font-size:15px; letter-spacing:-0.01em;
  padding: 14px 26px; border-radius: var(--radius-sm);
  border:1px solid transparent; white-space:nowrap;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn-primary{ background: var(--gradient); color:#04120f; box-shadow: var(--shadow-glow); }
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 26px 70px -20px rgba(124,199,192,.55); }
.btn-secondary{ background: rgba(124,199,192,.06); border-color: var(--border-strong); color: var(--white); }
.btn-secondary:hover{ background: rgba(124,199,192,.14); transform: translateY(-2px); }
.btn-sm{ padding: 10px 18px; font-size: 13.5px; }
.btn-block{ width:100%; }

/* ============ NAV ============ */
.nav{
  position: fixed; top:0; left:0; right:0; z-index:100;
  height: var(--nav-h);
  display:flex; align-items:center;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.nav.is-scrolled{
  background: rgba(7,15,14,.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner{ display:flex; align-items:center; justify-content:space-between; width:100%; }
.nav-logo img{ height: 50px; width:auto; }
.nav-links{ display:none; align-items:center; gap:30px; }
.nav-links a{ font-size:14.5px; font-weight:500; color: var(--muted); transition: color .2s; }
.nav-links a:hover{ color: var(--white); }
.nav-actions{ display:flex; align-items:center; gap:10px; }
.nav-burger{
  display:flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius: var(--radius-sm);
  background: rgba(124,199,192,.08); border:1px solid var(--border);
}
.nav-burger span{ display:block; width:16px; height:1.5px; background: var(--white); position:relative; }
.nav-burger span::before,.nav-burger span::after{ content:''; position:absolute; left:0; width:16px; height:1.5px; background: var(--white); transition: transform .25s ease; }
.nav-burger span::before{ top:-5px; } .nav-burger span::after{ top:5px; }

@media(min-width: 940px){
  .nav-links{ display:flex; }
  .nav-burger{ display:none; }
}

.nav-mobile{
  position: fixed; inset:0; z-index:99;
  background: var(--bg);
  display:flex; flex-direction:column; justify-content:center;
  padding: 32px;
  transform: translateY(-100%); opacity:0; visibility:hidden;
  transition: transform .4s ease, opacity .4s ease, visibility .4s;
}
.nav-mobile.is-open{ transform: translateY(0); opacity:1; visibility:visible; }
.nav-mobile ul{ display:flex; flex-direction:column; gap:22px; margin-bottom:36px; }
.nav-mobile ul a{ font-size: 1.7rem; font-weight:700; }

/* ============ HERO ============ */
.hero{
  position: relative; overflow:hidden;
  padding: calc(var(--nav-h) + 100px) 0 100px;
  isolation: isolate;
}
.hero-bg{ position:absolute; inset:0; z-index:-1; background: var(--bg); }
.hero-bg::before,.hero-bg::after{
  content:''; position:absolute; border-radius:50%; filter: blur(90px);
  animation: drift 22s ease-in-out infinite alternate;
}
.hero-bg::before{
  width:640px; height:640px; top:-220px; left:-160px;
  background: radial-gradient(circle at 30% 30%, rgba(31,156,138,.55), transparent 70%);
}
.hero-bg::after{
  width:560px; height:560px; bottom:-260px; right:-140px;
  background: radial-gradient(circle at 70% 70%, rgba(124,199,192,.35), transparent 70%);
  animation-delay: -8s;
}
.hero-grid{
  position:absolute; inset:0; z-index:-1;
  background-image:
    linear-gradient(rgba(124,199,192,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,199,192,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 40%, transparent 90%);
}
@keyframes drift{ 0%{ transform: translate(0,0) scale(1); } 100%{ transform: translate(40px,30px) scale(1.08); } }

/* Starfield twinkle */
.hero-stars{ position:absolute; inset:0; z-index:-1; overflow:hidden; pointer-events:none; }
.star{
  position:absolute; border-radius:50%; background: var(--mint-200);
  opacity:.25; box-shadow:0 0 6px rgba(169,221,214,.8);
}
@media (prefers-reduced-motion:no-preference){
  .star{ animation-name: twinkle; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
}
@keyframes twinkle{ 0%,100%{ opacity:.15; transform:scale(.8); } 50%{ opacity:.9; transform:scale(1.3); } }

.hero-inner{ display:grid; grid-template-columns: 1fr; align-items:center; gap:48px; }
@media(min-width:960px){
  .hero-inner{ grid-template-columns: 1.15fr .85fr; gap:32px; }
}

.hero-content{ max-width: none; }
.hero-badge{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 16px; border-radius: 999px;
  border:1px solid var(--border-strong); background: rgba(124,199,192,.06);
  font-size:12.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  color: var(--mint-200); margin-bottom: 28px;
}
.hero-badge .dot{ width:6px; height:6px; border-radius:50%; background: var(--mint-300); box-shadow:0 0 10px var(--mint-300); }
.hero h1{ font-size: clamp(2.35rem, 6.2vw, 4.5rem); }
.hero-lead{ max-width: none; margin: 26px 0 0; color: var(--muted); font-size: clamp(1rem,1.4vw,1.18rem); line-height:1.65; }
.hero-ctas{ display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; gap:16px; margin-top:40px; }
.hero-micro{ margin-top:18px; font-size:13px; color: var(--muted-2); }

/* Hero orbit graphic */
.hero-orbit{
  position:relative; width:100%; max-width:400px; aspect-ratio:1/1;
  margin:0 auto; justify-self:center;
}
.orbit-glow{
  position:absolute; inset:14%; border-radius:50%;
  background: radial-gradient(circle, rgba(47,199,174,.55), transparent 70%);
  filter: blur(32px);
}
.orbit-ring{ position:absolute; border-radius:50%; border:1px solid var(--border); }
.ring-outer{ inset:0; }
.ring-inner{ inset:18%; }
@media (prefers-reduced-motion:no-preference){
  .orbit-glow{ animation: orbitPulse 3.5s ease-in-out infinite; }
}
@keyframes orbitPulse{ 0%,100%{ opacity:.6; transform:scale(1); } 50%{ opacity:1; transform:scale(1.12); } }

/* Comets: bright dots that sweep around the rings — this is what makes the motion obvious,
   since a rotating dashed circle looks static (the dash pattern repeats every frame). */
.orbit-track{ position:absolute; inset:0; }
.track-inner{ inset:18%; }
@media (prefers-reduced-motion:no-preference){
  .track-outer{ animation: orbitSpin 7s linear infinite; }
  .track-inner{ animation: orbitSpin 5s linear infinite reverse; }
}
@keyframes orbitSpin{ to{ transform: rotate(360deg); } }
.orbit-comet{
  position:absolute; top:-5px; left:50%; width:10px; height:10px; border-radius:50%;
  transform:translateX(-50%);
}
.comet-teal{ background:var(--eco-teal); box-shadow:0 0 14px 4px var(--eco-teal), 0 0 28px 10px rgba(47,199,174,.55); }
.comet-violet{ background:var(--eco-violet); box-shadow:0 0 14px 4px var(--eco-violet), 0 0 28px 10px rgba(139,108,242,.55); }

.orbit-center{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:76px; height:76px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: var(--gradient); color:#04120f;
  box-shadow: 0 0 0 1px var(--border-strong), 0 0 50px 6px rgba(47,199,174,.45), 0 20px 50px -12px rgba(18,105,92,.75);
}
@media (prefers-reduced-motion:no-preference){
  .orbit-center{ animation: centerPulse 3.5s ease-in-out infinite; }
}
@keyframes centerPulse{ 0%,100%{ box-shadow: 0 0 0 1px var(--border-strong), 0 0 50px 6px rgba(47,199,174,.45), 0 20px 50px -12px rgba(18,105,92,.75); } 50%{ box-shadow: 0 0 0 1px var(--border-strong), 0 0 70px 14px rgba(47,199,174,.65), 0 20px 50px -12px rgba(18,105,92,.75); } }

.orbit-badge{
  position:absolute; width:52px; height:52px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid; box-shadow: 0 14px 30px -12px rgba(0,0,0,.7);
  transform: translate(-50%,-50%);
}
.badge-mkt{ top:4%; left:50%; background: rgba(47,199,174,.14); border-color: var(--eco-teal); color: var(--eco-teal); }
.badge-sales{ top:80%; left:8%; background: rgba(139,108,242,.14); border-color: var(--eco-violet); color: var(--eco-violet); }
.badge-auto{ top:80%; left:92%; background: rgba(242,152,74,.14); border-color: var(--eco-orange); color: var(--eco-orange); }
@media (prefers-reduced-motion:no-preference){
  .orbit-badge{ animation: badgeFloat 3.2s ease-in-out infinite; }
  .badge-sales{ animation-delay: -1.1s; }
  .badge-auto{ animation-delay: -2.2s; }
}
@keyframes badgeFloat{ 0%,100%{ transform: translate(-50%,-50%) translateY(0); } 50%{ transform: translate(-50%,-50%) translateY(-12px); } }

@media(max-width:959px){
  .hero-orbit{ max-width:280px; margin-top:8px; }
  .orbit-center{ width:60px; height:60px; }
  .orbit-badge{ width:44px; height:44px; }
}

/* ============ REVEAL ANIM ============ */
.reveal{ opacity:1; transform:none; transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.is-ready{ opacity:0; transform: translateY(28px); }
.reveal.is-ready.in-view{ opacity:1; transform: translateY(0); }

/* ============ PROBLEM ============ */
.problem-cards{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:24px; margin-bottom:56px; }
.card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.card:hover{ border-color: var(--border-strong); transform: translateY(-4px); background: var(--surface-hover); }
.card-num{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius: 12px; margin-bottom:20px;
  background: var(--gradient-soft); border:1px solid var(--border-strong);
  font-weight:800; color: var(--mint-200);
}
.card h3{ margin-bottom:10px; }
.card p{ color: var(--muted); font-size:14.5px; line-height:1.6; }

/* ============ ECOSISTEMA CIRCULAR (Marketing / Ventas / Automatización) ============ */

.ecosystem{
  position:relative; width:100%; max-width:820px; margin:56px auto 0;
  aspect-ratio: 440 / 340;
}
.eco-svg{ position:absolute; inset:0; width:100%; height:100%; overflow:visible; }

.eco-orbit-bg{ fill:none; stroke:var(--border); stroke-width:1; stroke-dasharray:3 6; opacity:.5; }

.eco-path{
  fill:none; stroke-width:4.5; stroke-linecap:round;
  stroke-dasharray:520; stroke-dashoffset:520;
  transition: stroke-dashoffset 1.4s cubic-bezier(.2,.7,.2,1);
  filter: drop-shadow(0 0 6px rgba(124,199,192,.25));
}
.reveal.in-view .eco-path{ stroke-dashoffset:0; }
.eco-path.seg-2{ transition-delay:.28s; }
.eco-path.seg-3{ transition-delay:.56s; }

.eco-connector{ stroke:var(--border-strong); stroke-width:1.25; opacity:.55; }

.eco-arrow-badge{ opacity:0; transition: opacity .5s ease .9s; }
.reveal.in-view .eco-arrow-badge{ opacity:1; }
.eco-arrow-badge circle{ fill:var(--bg); stroke:var(--border-strong); stroke-width:1.25; }
.eco-arrow-badge path{ stroke:var(--text); stroke-width:1.6; fill:none; stroke-linecap:round; stroke-linejoin:round; }

.eco-node{
  position:absolute; z-index:2; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; border-radius:50%; background:var(--surface); border:1px solid var(--border-strong);
  transform:translate(-50%,-50%); padding: 8px 14px; gap:2px;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.eco-node:hover{ transform:translate(-50%,-50%) scale(1.04); }
.eco-node-icon{
  width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  margin-bottom:4px; background:var(--bg-soft);
}
.eco-node-label{ font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.eco-node-sub{ font-size:11.5px; color:var(--muted); line-height:1.3; }

.eco-node.is-marketing{ left:29.5%; top:26.5%; width:clamp(118px,17vw,168px); height:clamp(118px,17vw,168px); }
.eco-node.is-sales{ left:70.5%; top:26.5%; width:clamp(118px,17vw,168px); height:clamp(118px,17vw,168px); }
.eco-node.is-automation{ left:50%; top:82.5%; width:clamp(118px,17vw,168px); height:clamp(118px,17vw,168px); }
.eco-node.is-center{ left:50%; top:48.1%; width:clamp(104px,15vw,150px); height:clamp(104px,15vw,150px); background:var(--bg-soft); }

.eco-node.is-marketing{ border-color:rgba(47,199,174,.4); }
.eco-node.is-marketing:hover{ box-shadow:0 0 26px rgba(47,199,174,.25); }
.eco-node.is-marketing .eco-node-icon{ color:var(--eco-teal); }
.eco-node.is-marketing .eco-node-label{ color:var(--eco-teal); }

.eco-node.is-sales{ border-color:rgba(139,108,242,.4); }
.eco-node.is-sales:hover{ box-shadow:0 0 26px rgba(139,108,242,.25); }
.eco-node.is-sales .eco-node-icon{ color:var(--eco-violet); }
.eco-node.is-sales .eco-node-label{ color:var(--eco-violet); }

.eco-node.is-automation{ border-color:rgba(242,152,74,.4); }
.eco-node.is-automation:hover{ box-shadow:0 0 26px rgba(242,152,74,.25); }
.eco-node.is-automation .eco-node-icon{ color:var(--eco-orange); }
.eco-node.is-automation .eco-node-label{ color:var(--eco-orange); }

.eco-node.is-center .eco-node-label{ color:var(--white); font-size:13px; }
.eco-node.is-center .eco-node-icon{ color:var(--mint-200); }
.eco-node.is-center .eco-node-sub{ font-size:10.5px; }

.eco-chip{
  position:absolute; z-index:2; display:flex; align-items:center; gap:6px;
  padding:7px 13px; border-radius:999px; border:1px solid var(--border);
  background:var(--surface); font-size:12px; font-weight:600; color:var(--text);
  white-space:nowrap; transition: border-color .2s ease, color .2s ease;
}
.eco-chip::before{ content:''; width:6px; height:6px; border-radius:50%; flex:none; }
.eco-chip:hover{ color:var(--white); border-color:var(--border-strong); }

.eco-chip.is-mkt::before{ background:var(--eco-teal); }
.eco-chip.is-sales{ flex-direction:row-reverse; }
.eco-chip.is-sales::before{ background:var(--eco-violet); }
.eco-chip.is-auto::before{ background:var(--eco-orange); }

/* Anchored from the edge each chip grows AWAY from, so long labels never push
   past the container: left-side chips grow rightward, right-side leftward. */
.eco-chip.mkt-1{ left:2%; top:10.3%; transform:translate(0,-50%); }
.eco-chip.mkt-2{ left:2%; top:23.5%; transform:translate(0,-50%); }
.eco-chip.mkt-3{ left:2%; top:36.8%; transform:translate(0,-50%); }
.eco-chip.mkt-4{ left:2%; top:50%; transform:translate(0,-50%); }

.eco-chip.sales-1{ right:2%; top:10.3%; transform:translate(0,-50%); }
.eco-chip.sales-2{ right:2%; top:23.5%; transform:translate(0,-50%); }
.eco-chip.sales-3{ right:2%; top:36.8%; transform:translate(0,-50%); }
.eco-chip.sales-4{ right:2%; top:50%; transform:translate(0,-50%); }

.eco-chip.auto-1{ left:2%; top:75%; transform:translate(0,-50%); }
.eco-chip.auto-2{ left:24%; top:75%; transform:translate(0,-50%); }
.eco-chip.auto-3{ left:2%; top:89%; transform:translate(0,-50%); }
.eco-chip.auto-4{ left:24%; top:89%; transform:translate(0,-50%); }

@media (prefers-reduced-motion:no-preference){
  .eco-node{ animation: eco-pulse 6s ease-in-out infinite; }
  .eco-node.is-sales{ animation-delay: -2s; }
  .eco-node.is-automation{ animation-delay: -4s; }
  @keyframes eco-pulse{
    0%,100%{ box-shadow:0 0 0 rgba(124,199,192,0); }
    50%{ box-shadow:0 0 22px rgba(124,199,192,.14); }
  }
}

@media(max-width:760px){
  .ecosystem{ display:none; }
}

.ecosystem-mobile{ display:none; }
@media(max-width:760px){
  .ecosystem-mobile{
    display:flex; flex-direction:column; align-items:center; gap:0;
    max-width:420px; margin:48px auto 0;
  }
  .eco-m-node{
    width:100%; background:var(--surface); border:1px solid var(--border-strong); border-radius:var(--radius-lg);
    padding:22px 24px; text-align:center; position:relative;
  }
  .eco-m-node .eco-node-icon{ margin:0 auto 8px; }
  .eco-m-node .eco-node-label{ font-size:13px; margin-bottom:4px; }
  .eco-m-node.is-marketing{ border-color:rgba(47,199,174,.4); }
  .eco-m-node.is-marketing .eco-node-icon,.eco-m-node.is-marketing .eco-node-label{ color:var(--eco-teal); }
  .eco-m-node.is-sales{ border-color:rgba(139,108,242,.4); }
  .eco-m-node.is-sales .eco-node-icon,.eco-m-node.is-sales .eco-node-label{ color:var(--eco-violet); }
  .eco-m-node.is-automation{ border-color:rgba(242,152,74,.4); }
  .eco-m-node.is-automation .eco-node-icon,.eco-m-node.is-automation .eco-node-label{ color:var(--eco-orange); }
  .eco-m-node.is-center{ background:var(--bg-soft); }
  .eco-m-connector{ width:2px; height:32px; background:linear-gradient(var(--border-strong),var(--border-strong)); }
  .eco-m-chips{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:14px; }
}

.ecosystem-footer{
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
  margin:56px auto 0; max-width:920px; padding:28px 32px; border-radius:var(--radius-lg);
  border:1px solid var(--border); background:var(--surface);
}
.ecosystem-footer .btn{ flex:none; }

/* ============ LOS TRES PILARES (Marketing / Sales / Automation) ============ */
.pillar-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:24px; align-items:stretch; }
.pillar-card{
  display:flex; flex-direction:column;
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px 32px; transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.pillar-card:hover{ border-color: var(--border-strong); transform: translateY(-4px); background: var(--surface-hover); }
.pillar-icon{
  width:48px; height:48px; border-radius:12px; margin-bottom:22px;
  background: var(--gradient-soft); border:1px solid var(--border-strong);
  display:flex; align-items:center; justify-content:center; color: var(--mint-200);
}
.pillar-label{ font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color: var(--mint-300); margin-bottom:10px; }
.pillar-card h3{ font-size:1.25rem; margin-bottom:12px; }
.pillar-card .lead{ font-size:14.5px; }

.section-cta{ display:flex; justify-content:center; margin-top:48px; }


/* ============ VERTICALES ============ */
.vertical-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:24px; }
.vertical-card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; display:flex; flex-direction:column; gap:16px;
}
.vertical-top{ display:flex; align-items:center; justify-content:space-between; gap:12px; }

/* Industry icons: same teal/violet/orange language as the ecosystem diagram */
.ind-icon{
  width:52px; height:52px; border-radius:14px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  border:1px solid; transition: transform .3s ease;
}
.ind-icon.is-teal{ color:var(--eco-teal); background:rgba(47,199,174,.12); border-color:rgba(47,199,174,.4); --glow:47,199,174; }
.ind-icon.is-violet{ color:var(--eco-violet); background:rgba(139,108,242,.12); border-color:rgba(139,108,242,.4); --glow:139,108,242; }
.ind-icon.is-orange{ color:var(--eco-orange); background:rgba(242,152,74,.12); border-color:rgba(242,152,74,.4); --glow:242,152,74; }
.vertical-card:hover .ind-icon{ transform: scale(1.08) rotate(-6deg); }
@media (prefers-reduced-motion:no-preference){
  .ind-icon{ animation: indFloat 4.5s ease-in-out infinite, indGlow 4.5s ease-in-out infinite; }
  .vertical-card:nth-child(2) .ind-icon{ animation-delay:-.8s; }
  .vertical-card:nth-child(3) .ind-icon{ animation-delay:-1.6s; }
  .vertical-card:nth-child(4) .ind-icon{ animation-delay:-2.4s; }
  .vertical-card:nth-child(5) .ind-icon{ animation-delay:-3.2s; }
  .vertical-card:nth-child(6) .ind-icon{ animation-delay:-4s; }
}
@keyframes indFloat{ 0%,100%{ translate:0 0; } 50%{ translate:0 -5px; } }
@keyframes indGlow{ 0%,100%{ box-shadow:0 0 0 0 rgba(var(--glow),0); } 50%{ box-shadow:0 0 22px 2px rgba(var(--glow),.35); } }
.vertical-card p{ color: var(--muted); font-size:14.5px; line-height:1.6; }
.industry-grid{ grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); }
@media(min-width:900px){ .industry-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); } }

/* ============ DEMOSTRACIÓN: TIMELINE ============ */
.timeline{ position:relative; max-width:740px; margin:0 auto; }
.timeline::before{
  content:''; position:absolute; left:19px; top:6px; bottom:6px; width:2px;
  background: linear-gradient(var(--mint-300), transparent); opacity:.35;
}
.timeline-step{ position:relative; display:flex; gap:22px; padding-bottom:32px; }
.timeline-step:last-child{ padding-bottom:0; }
.timeline-dot{
  flex:none; width:40px; height:40px; border-radius:50%; z-index:1;
  background: var(--bg); border:1px solid var(--border-strong);
  display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:800; color: var(--mint-300);
  position:relative;
}
.timeline-dot::before{ content:''; position:absolute; inset:-1px; border-radius:50%; background: var(--gradient); opacity:0; z-index:-1; }
.timeline-step.is-highlight .timeline-dot{ background: var(--gradient); color:#04120f; border-color:transparent; box-shadow: var(--shadow-glow); }

/* Traffic-light effect: the green fill moves down 1 → 5, then rests one beat and repeats */
@media (prefers-reduced-motion:no-preference){
  .timeline-step.is-highlight .timeline-dot{ background: var(--bg); color: var(--mint-300); border-color: var(--border-strong); box-shadow:none; }
  .timeline-dot{ animation: dotLight 10.8s linear infinite; animation-delay: var(--d,0s); }
  .timeline-dot::before{ animation: dotFill 10.8s linear infinite; animation-delay: var(--d,0s); }
  .timeline-step:nth-child(2){ --d:1.8s; }
  .timeline-step:nth-child(3){ --d:3.6s; }
  .timeline-step:nth-child(4){ --d:5.4s; }
  .timeline-step:nth-child(5){ --d:7.2s; }
}
@keyframes dotFill{ 0%{opacity:0;} 2%{opacity:1;} 14%{opacity:1;} 17%{opacity:0;} 100%{opacity:0;} }
@keyframes dotLight{
  0%{ color:var(--mint-300); border-color:var(--border-strong); box-shadow:none; }
  2%,14%{ color:#04120f; border-color:transparent; box-shadow:0 0 28px 2px rgba(124,199,192,.45); }
  17%,100%{ color:var(--mint-300); border-color:var(--border-strong); box-shadow:none; }
}
.timeline-body{ flex:1; background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-md); padding: 20px 24px; }
.timeline-time{ font-size:11.5px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color: var(--mint-300); margin-bottom:6px; }
.timeline-body h3{ font-size:16.5px; margin-bottom:8px; }
.timeline-body p{ color: var(--muted); font-size:14px; line-height:1.6; }

/* ============ FAQ ============ */
.faq-list{ max-width: 780px; margin:0 auto; display:flex; flex-direction:column; gap:14px; }
.faq-item{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-md); overflow:hidden; }
.faq-q{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px;
  background:none; border:none; color: var(--white); text-align:left;
  padding: 22px 26px; font-size:16px; font-weight:700;
}
.faq-q .icon{ flex:none; width:22px; height:22px; position:relative; }
.faq-q .icon::before,.faq-q .icon::after{ content:''; position:absolute; background: var(--mint-300); border-radius:2px; transition: transform .3s ease; }
.faq-q .icon::before{ width:14px; height:2px; top:10px; left:4px; }
.faq-q .icon::after{ width:2px; height:14px; top:4px; left:10px; }
.faq-item.is-open .faq-q .icon::after{ transform: rotate(90deg); opacity:0; }
.faq-a{ max-height:0; overflow:hidden; transition: max-height .35s ease; }
.faq-a-inner{ padding: 0 26px 24px; color: var(--muted); font-size:14.5px; line-height:1.65; }

/* ============ CTA FINAL ============ */
.cta-final{
  border-radius: var(--radius-lg); border:1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(18,105,92,.3), var(--surface) 70%);
  padding: 72px 40px; text-align:center; box-shadow: var(--shadow-glow);
}
.cta-final h2{ max-width:640px; margin:0 auto; }
.cta-final .lead{ max-width:520px; margin: 18px auto 0; }
.cta-final .hero-ctas{ margin-top:36px; justify-content:center; }

/* ============ FOOTER ============ */
.footer{ border-top:1px solid var(--border); padding: 72px 0 32px; background: var(--bg-soft); }
.footer-grid{ display:grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 40px; padding-bottom:56px; }
@media(max-width:900px){ .footer-grid{ grid-template-columns: repeat(2,1fr); } }
@media(max-width:520px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-brand img{ height:28px; margin-bottom:18px; }
.footer-brand p{ color: var(--muted); font-size:14px; max-width:280px; line-height:1.6; margin-bottom:22px; }
.footer-col h4{ font-size:13px; text-transform:uppercase; letter-spacing:.08em; color: var(--mint-300); margin-bottom:18px; }
.footer-col ul{ display:flex; flex-direction:column; gap:12px; }
.footer-col a{ font-size:14.5px; color: var(--muted); transition: color .2s; }
.footer-col a:hover{ color: var(--white); }
.social-row{ display:flex; gap:12px; }
.social-row a{
  width:38px; height:38px; border-radius:10px; border:1px solid var(--border); background: rgba(124,199,192,.05);
  display:flex; align-items:center; justify-content:center; transition: border-color .2s, transform .2s;
}
.social-row a:hover{ border-color: var(--border-strong); transform: translateY(-2px); }
.footer-bottom{ border-top:1px solid var(--border); padding-top:28px; display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; color: var(--muted-2); font-size:13px; }

/* WhatsApp float button */
.wa-float{
  position: fixed; bottom: 24px; right: 24px; z-index:80;
  width:56px; height:56px; border-radius:50%;
  background: var(--gradient); display:flex; align-items:center; justify-content:center;
  box-shadow: 0 14px 40px -10px rgba(18,105,92,.65);
  transition: transform .25s ease;
}
.wa-float:hover{ transform: scale(1.08); }

/* Back-to-top float button */
.back-to-top{
  position: fixed; bottom: 24px; left: 24px; z-index:80;
  width:44px; height:44px; border-radius:50%;
  background: var(--surface); border:1px solid var(--border-strong);
  display:flex; align-items:center; justify-content:center;
  color: var(--mint-200); cursor:pointer; padding:0;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.5);
  transition: transform .25s ease, opacity .25s ease, visibility .25s ease;
  opacity:0; visibility:hidden; transform: translateY(8px);
}
.back-to-top.is-visible{ opacity:1; visibility:visible; transform: translateY(0); }
.back-to-top:hover{ transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-hover); }

@media(max-width:600px){
  .footer-bottom{ flex-direction:column; }
  /* Long single-line CTA labels must wrap instead of forcing horizontal overflow. */
  .hero-ctas .btn{ white-space:normal; text-align:center; flex:1 1 100%; }

  .hero .hero-content{ text-align:center; display:flex; flex-direction:column; align-items:center; }
  .hero-badge{ margin-left:auto; margin-right:auto; }
  .hero-ctas{ justify-content:center; }

  .cta-final .cta-contact-lead{ text-align:left; max-width:none; margin-left:0; margin-right:0; }
  .cta-contact-lead br{ display:none; }
}

/* ============ DIAGNÓSTICO (precalificador de leads) ============ */
.q-page{ position:relative; overflow:hidden; isolation:isolate; padding: calc(var(--nav-h) + 56px) 0 96px; min-height:100vh; }
.q-layout{ display:grid; grid-template-columns:1fr; gap:40px; align-items:start; }
@media(min-width:960px){ .q-layout{ grid-template-columns: .85fr 1.15fr; gap:56px; } .q-intro{ position:sticky; top:calc(var(--nav-h) + 32px); } }
.q-intro h1{ font-size: clamp(2rem, 4.4vw, 3.2rem); }
.q-points{ list-style:none; margin:32px 0 0; padding:0; display:grid; gap:14px; }
.q-points li{ display:flex; gap:12px; align-items:flex-start; color:var(--muted); font-size:14.5px; line-height:1.55; }
.q-dot{ flex:none; width:8px; height:8px; border-radius:50%; margin-top:7px; }
.q-dot.is-teal{ background:var(--eco-teal); box-shadow:0 0 10px var(--eco-teal); }
.q-dot.is-violet{ background:var(--eco-violet); box-shadow:0 0 10px var(--eco-violet); }
.q-dot.is-orange{ background:var(--eco-orange); box-shadow:0 0 10px var(--eco-orange); }

.q-card{ background:var(--surface); border:1px solid var(--border-strong); border-radius:var(--radius-lg); padding:36px; box-shadow:var(--shadow-glow); }
@media(max-width:600px){ .q-card{ padding:24px 20px; } }

.q-progress{ margin-bottom:28px; }
.q-progress-top{ display:flex; justify-content:space-between; gap:12px; font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; margin-bottom:10px; }
#q-step-label{ color:var(--mint-300); }
#q-step-name{ color:var(--muted-2); }
.q-bar{ height:4px; border-radius:4px; background:rgba(124,199,192,.12); overflow:hidden; }
.q-bar span{ display:block; height:100%; width:25%; border-radius:4px; background:linear-gradient(90deg,var(--eco-teal),var(--eco-violet),var(--eco-orange)); transition:width .4s ease; }

.q-hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.q-title{ font-size:1.35rem; margin-bottom:24px; outline:none; }
.q-step[hidden]{ display:none; }
.q-field{ margin:0 0 24px; padding:0; border:0; min-width:0; }
.q-field > label, .q-field > legend{ display:block; padding:0; font-size:14px; font-weight:700; color:var(--white); margin-bottom:10px; }
.q-optional{ font-weight:500; color:var(--muted-2); }
.q-field input[type=text], .q-field input[type=email], .q-field input[type=tel], .q-field textarea, .q-field select{
  width:100%; font:inherit; font-size:15px; color:var(--text);
  background:var(--bg-soft); border:1px solid var(--border-strong); border-radius:var(--radius-sm);
  padding:13px 14px; transition:border-color .2s ease, box-shadow .2s ease;
}
.q-field textarea{ resize:vertical; min-height:84px; }
.q-field input::placeholder, .q-field textarea::placeholder{ color:var(--muted-2); }
.q-field input:focus, .q-field textarea:focus, .q-field select:focus{ outline:none; border-color:var(--mint-300); box-shadow:0 0 0 3px rgba(124,199,192,.18); }
.q-field.has-error input[type=text], .q-field.has-error input[type=email], .q-field.has-error input[type=tel], .q-field.has-error textarea, .q-field.has-error select{ border-color:#e5737a; }

.q-options{ display:flex; flex-wrap:wrap; gap:10px; }
.q-options-col{ flex-direction:column; }
.q-opt{ position:relative; cursor:pointer; }
.q-opt input{ position:absolute; opacity:0; inset:0; width:100%; height:100%; margin:0; cursor:pointer; }
.q-opt span{
  display:block; font-size:14px; font-weight:600; color:var(--text);
  padding:10px 16px; border-radius:999px; background:var(--bg-soft); border:1px solid var(--border-strong);
  transition:border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.q-options-col .q-opt span{ border-radius:var(--radius-sm); }
.q-opt:hover span{ border-color:var(--mint-300); }
.q-opt input:focus-visible + span{ box-shadow:0 0 0 3px rgba(124,199,192,.35); }
.q-opt input:checked + span{ background:rgba(124,199,192,.16); border-color:var(--mint-300); color:var(--white); }


.q-error{ color:#f08a90; font-size:13px; margin-top:8px; min-height:0; }
.q-error:empty{ display:none; }
.q-error-global{ margin:0 0 16px; }

.q-actions{ display:flex; justify-content:space-between; gap:12px; margin-top:8px; }
.q-actions .btn[hidden]{ display:none; }
.q-actions #q-next{ margin-left:auto; }
@media(max-width:600px){ .q-actions{ flex-direction:column-reverse; } .q-actions #q-next{ margin-left:0; } .q-actions .btn{ width:100%; white-space:normal; } }

.q-done{ text-align:center; padding:24px 0; }
.q-done .lead{ max-width:440px; margin:0 auto 28px; }
.q-done-icon{ width:64px; height:64px; margin:0 auto 22px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#04120f; background:var(--gradient); box-shadow:var(--shadow-glow); }
.q-fallback{ color:var(--muted); font-size:14px; margin:-12px 0 24px; }
.q-fallback a{ color:var(--mint-300); text-decoration:underline; }
.q-done .q-title{ margin-bottom:14px; }
@media(max-width:959px){ .q-points{ display:none; } .q-page{ padding-top:calc(var(--nav-h) + 24px); } }

/* Diagnóstico: campos del formulario dinámico */
.q-field[hidden]{ display:none; }
.q-field select{ appearance:none; -webkit-appearance:none; cursor:pointer; padding-right:40px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237cc7c0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center; }
.q-field select option{ background:var(--surface); color:var(--text); }
.q-req{ color:var(--mint-300); }
.q-sub{ color:var(--muted); font-size:14.5px; line-height:1.6; margin:-12px 0 24px; }
.q-sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.q-other{ margin-top:10px; width:100%; }
.q-other[hidden]{ display:none; }
.q-count{ font-size:12px; color:var(--muted-2); margin-top:6px; text-align:right; }
.q-count.is-ok{ color:var(--mint-300); }
.q-note{ margin:0 0 24px; padding:16px 18px; border:1px solid var(--border-strong); border-left:3px solid var(--mint-300); border-radius:var(--radius-sm); background:rgba(124,199,192,.06); }
.q-note strong{ display:block; color:var(--white); font-size:14px; margin-bottom:8px; }
.q-note p{ color:var(--muted); font-size:13.5px; line-height:1.6; margin:0 0 6px; }
.q-note p:last-child{ margin-bottom:0; }
.q-cards{ display:grid; grid-template-columns:1fr; gap:12px; }
@media(min-width:600px){ .q-cards{ grid-template-columns:1fr 1fr; } }
.q-svc .q-card-body{ display:block; height:100%; border-radius:var(--radius-md); padding:16px 18px; }
.q-svc strong{ display:block; font-size:14.5px; color:var(--white); margin-bottom:6px; line-height:1.35; }
.q-svc small{ display:block; font-size:12.5px; font-weight:500; color:var(--muted); line-height:1.5; }
.q-svc.is-teal input:checked + span{ background:rgba(47,199,174,.14); border-color:var(--eco-teal); }
.q-svc.is-violet input:checked + span{ background:rgba(139,108,242,.14); border-color:var(--eco-violet); }
.q-svc.is-orange input:checked + span{ background:rgba(242,152,74,.14); border-color:var(--eco-orange); }
.q-done .btn{ margin-top:4px; }

.q-help{ font-size:13px; line-height:1.5; color:var(--muted); margin:-4px 0 10px; }
