/* =========================================================
   SolarXVision — Sol Caribe Tech · Polished
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700;800;900&family=Instrument+Serif:ital@0;1&family=Inter+Tight:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --ink: #0A0E1A;
  --ink-soft: #1A1F2E;
  --azul: #1E40FF;
  --azul-hot: #3557FF;
  --azul-deep: #0A1A4A;
  --azul-ink: #060E2A;
  --sol: #FFD21F;
  --sol-hot: #FF8A1F;
  --bone: #FFFFFF;
  --bone-2: #F6F7F9;
  --mist: #EAECF0;
  --line: #DFE1E6;
  --grass: #0E7A3E;
  --white: #FFFFFF;

  --display: 'Jost', system-ui, sans-serif;
  --body: 'Inter Tight', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;

  --img-radius: 16px;

  --shadow-sm: 0 1px 3px rgba(10, 14, 26, 0.06), 0 1px 2px rgba(10, 14, 26, 0.04);
  --shadow: 0 8px 24px -8px rgba(10, 14, 26, 0.12), 0 2px 6px -2px rgba(10, 14, 26, 0.06);
  --shadow-md: 0 16px 48px -16px rgba(10, 14, 26, 0.18);
  --shadow-lg: 0 24px 64px -20px rgba(10, 14, 26, 0.28);
  --shadow-img: 0 20px 60px -16px rgba(10, 14, 26, 0.22), 0 4px 12px -4px rgba(10, 14, 26, 0.08);
  --shadow-sol: 0 12px 32px -8px rgba(255, 210, 31, 0.5);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* 8px spacing scale */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-10: 80px;
  --sp-12: 96px;
  --sp-16: 128px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; background-color: #FFFFFF; }
body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bone);
  overflow-x: hidden;
  font-feature-settings: 'ss01' on, 'cv11' on;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, button, textarea { font-family: inherit; }
ul { list-style: none; }

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.3;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; color: var(--ink); }
h1 { font-size: clamp(42px, 7vw, 96px); }
h2 { font-size: clamp(32px, 5vw, 64px); }
h3 { font-size: clamp(21px, 2.4vw, 28px); }

p.lede {
  font-size: clamp(17px, 1.3vw, 20px);
  color: #3D4355;
  max-width: 52ch;
  line-height: 1.6;
}

.mono-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6B7280;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { position: relative; padding: clamp(var(--sp-10), 10vw, var(--sp-16)) 0; }
.section-head { max-width: 780px; margin-bottom: clamp(var(--sp-6), 7vw, var(--sp-10)); }
.section-head .mono-label { margin-bottom: var(--sp-2); display: block; }

/* ---------- Global image styling ---------- */
.img-styled {
  border-radius: var(--img-radius);
  object-fit: cover;
  box-shadow: var(--shadow-img);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.img-styled:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: var(--sp-2) 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--sol {
  background: var(--sol);
  color: var(--ink);
  box-shadow: var(--shadow-sol);
}
.btn--sol:hover {
  background: linear-gradient(95deg, var(--sol) 0%, var(--sol-hot) 100%);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px rgba(255, 138, 31, 0.55);
}

.btn--ink { background: var(--ink); color: var(--bone); }
.btn--ink:hover { background: var(--azul); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(10,14,26,0.15);
}
.btn--ghost:hover { background: var(--ink); color: var(--bone); }

.btn--lg { padding: 20px var(--sp-4); font-size: 16px; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  padding: var(--sp-2) 0;
  padding-top: var(--sp-2);
  background: var(--bone);
  transition: border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: #FFFFFF;
  border-bottom-color: var(--line);
}
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.nav__logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.nav__logo .lx { font-family: var(--display); font-style: normal; font-weight: 900; font-size: 1.15em; color: var(--azul); }
.nav__links { display: flex; gap: var(--sp-4); font-size: 14.5px; font-weight: 500; }
.nav__links a { position: relative; color: #3D4355; transition: color 0.2s; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--sol); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__right { display: flex; align-items: center; gap: var(--sp-2); }
.nav__phone {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  font-family: var(--mono); font-size: 13px; font-weight: 500;
}
.nav__phone svg { color: var(--azul); }
.nav__burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); align-items: center; justify-content: center; position: relative; z-index: 110; }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--bone);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: var(--sp-3) var(--gutter) var(--sp-4);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  z-index: 105;
}
.nav.is-menu-open .nav__mobile {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav__mobile-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.nav__mobile-links a {
  padding: var(--sp-2) 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}
.nav__mobile-links a:last-child { border-bottom: none; margin-top: var(--sp-1); }
.nav__mobile-links a:hover { color: var(--azul); }
.nav__mobile-phone {
  display: inline-flex !important;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--display) !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  color: var(--azul) !important;
  letter-spacing: -0.01em;
}

/* ================================================
   HERO
   ================================================ */
.hero { padding: clamp(var(--sp-6), 8vw, var(--sp-12)) 0 clamp(var(--sp-10), 10vw, var(--sp-16)); overflow: visible; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(var(--sp-5), 6vw, var(--sp-10));
  align-items: center;
}
.hero__h1 { margin-bottom: var(--sp-3); }
.hero__h1 .line2 { display: block; }
.hero__sub { margin-bottom: var(--sp-5); font-size: clamp(17px, 1.3vw, 20px); color: #3D4355; max-width: 50ch; line-height: 1.6; }
.hero__sub b { color: var(--ink); font-weight: 700; background: linear-gradient(transparent 62%, rgba(255,210,31,0.45) 62%); padding: 0 3px; }

.hero__cta { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.hero__cta .ghost-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: #3D4355; font-size: 15px; }
.hero__cta .ghost-link:hover { color: var(--ink); }
.hero__cta .ghost-link .dot {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease);
}
.hero__cta .ghost-link:hover .dot { background: var(--ink); color: var(--bone); border-color: var(--ink); }

.hero__proof { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.hero__proof-item { display: flex; align-items: center; gap: var(--sp-1); }
.hero__proof .stars { color: var(--sol); letter-spacing: 2px; font-size: 14px; }
.hero__proof-text { font-size: 13.5px; color: #3D4355; }
.hero__proof-text b { color: var(--ink); font-weight: 600; }

/* Hero images */
.hero__visual { position: relative; max-width: 560px; margin-left: auto; }
.hero__img-stack { position: relative; padding-bottom: var(--sp-5); padding-right: var(--sp-3); }
.hero__img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
}
.hero__img--main {
  position: relative; z-index: 1;
  aspect-ratio: 4 / 3;
  object-position: center 40%;
}
.hero__img--secondary {
  position: absolute;
  bottom: 0; right: 0;
  width: 52%;
  aspect-ratio: 4 / 3;
  z-index: 2;
  border: 5px solid var(--bone);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-position: center;
}

/* ================================================
   TRUST STRIP
   ================================================ */
.trust {
  background: var(--azul-deep);
  color: var(--bone);
  padding: var(--sp-3) 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.trust::before, .trust::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none;
}
.trust::before { left: 0; background: linear-gradient(90deg, var(--azul-deep), transparent); }
.trust::after { right: 0; background: linear-gradient(-90deg, var(--azul-deep), transparent); }
.marquee { display: flex; gap: var(--sp-6); animation: marquee 38s linear infinite; width: max-content; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247,244,236,0.75);
  white-space: nowrap;
}
.marquee__item .divider { width: 4px; height: 4px; border-radius: 50%; background: var(--sol); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================================================
   SERVICES (dark)
   ================================================ */
.services { background: var(--bone); }
.services--dark {
  background: var(--azul-ink);
  color: var(--bone);
  overflow: hidden;
}
.services--dark::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.services--dark h2, .services--dark h3 { color: var(--bone); }
.services--dark .lede { color: rgba(247,244,236,0.7); }
.services--dark .service {
  background: linear-gradient(175deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border-color: rgba(255,255,255,0.1);
}
.services--dark .service:hover { border-color: rgba(255,210,31,0.4); box-shadow: 0 20px 56px -20px rgba(0,0,0,0.4); }
.services--dark .service p { color: rgba(247,244,236,0.7); }
.services--dark .service ul li { color: rgba(247,244,236,0.65); }
.services--dark .service ul li::before { color: var(--sol); }
.services--dark .service__num { color: rgba(247,244,236,0.45); }
.services--dark .service ul { border-top-color: rgba(255,255,255,0.08); }

.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.service {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: var(--sp-4) var(--sp-3);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--ink); }
.service__num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: #8A8C94; margin-bottom: var(--sp-3); }
.service__icon {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: var(--ink); color: var(--sol);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-3);
  transition: background 0.3s var(--ease);
}
.service:hover .service__icon { background: var(--azul); }
.service h3 { font-size: 22px; margin-bottom: var(--sp-1); }
.service p { font-size: 15px; color: #3D4355; line-height: 1.6; margin-bottom: var(--sp-3); }
.service ul { display: grid; gap: var(--sp-1); padding-top: var(--sp-2); border-top: 1px dashed var(--line); }
.service ul li { display: flex; gap: var(--sp-1); font-size: 13.5px; color: #3D4355; }
.service ul li::before { content: '+'; color: var(--azul); font-weight: 700; flex-shrink: 0; }

/* Service card image (for Tesla Powerwall) */
.service__img-wrap {
  margin-top: auto;
  padding-top: var(--sp-3);
}
.service__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border-radius: var(--img-radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.08);
}
.services--dark .service__img { border-color: rgba(255,255,255,0.1); }

/* Services bottom image strip */
.services__img-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-top: clamp(var(--sp-6), 6vw, var(--sp-10));
}
.services__img-strip img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-img);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.services__img-strip img:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

/* ================================================
   BENEFITS
   ================================================ */
.benefits { background: var(--bone-2); }
.benefits__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(var(--sp-5), 7vw, var(--sp-12)); align-items: center; }
.benefits h2 { max-width: 14ch; }
.benefits__img {
  margin: var(--sp-4) 0;
}
.benefits__img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-img);
  border: 1px solid var(--line);
}
.benefits__lede { margin-top: 0; color: #3D4355; font-size: 16px; max-width: 42ch; line-height: 1.65; }
.benefits__cta { margin-top: var(--sp-4); }
.benefits__list { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; }
.benefits__list li {
  background: var(--bone);
  padding: var(--sp-3);
  display: flex; align-items: center; gap: var(--sp-2);
  transition: background 0.3s var(--ease);
}
.benefits__list li:hover { background: var(--bone-2); }
.benefits__list .check {
  width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--sol);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.benefits__list .txt { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.benefits__list .sub { font-size: 13px; color: #6B7280; margin-top: 3px; font-weight: 400; }

/* ================================================
   PROCESS
   ================================================ */
.process { background: var(--bone); border-top: 1px solid var(--line); }
.process__track { position: relative; margin-top: clamp(var(--sp-6), 6vw, var(--sp-10)); }
.process__line { position: absolute; left: 0; right: 0; top: 42px; height: 2px; background: var(--line); }
.process__line::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--fill, 10%);
  background: linear-gradient(90deg, var(--azul), var(--sol));
  transition: width 1.4s var(--ease);
}
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); position: relative; }
.step { display: flex; flex-direction: column; align-items: flex-start; }
.step__dot {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--bone); border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.15em; font-weight: 700; color: var(--ink);
  margin-bottom: var(--sp-3); position: relative; z-index: 2;
  transition: all 0.4s var(--ease);
}
.step.is-active .step__dot { background: var(--ink); color: var(--sol); border-color: var(--ink); transform: scale(1.05); }
.step h3 { font-size: 22px; margin-bottom: var(--sp-1); }
.step p { font-size: 14.5px; color: #3D4355; line-height: 1.6; }

/* ================================================
   TESTIMONIALS
   ================================================ */
.testis { background: var(--azul-deep); color: var(--bone); overflow: hidden; }
.testis::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 10%, rgba(255,210,31,0.1), transparent 45%);
}
.testis h2 { color: var(--bone); }
.testis__grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--sp-3);
  position: relative;
}
.testi {
  padding: var(--sp-3); border-radius: var(--radius-xl);
  background: linear-gradient(175deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; gap: var(--sp-2);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.testi:hover { transform: translateY(-6px); border-color: rgba(255,210,31,0.35); }
.testi--feat { grid-row: span 2; background: linear-gradient(175deg, rgba(255,210,31,0.12), rgba(255,210,31,0.02)); }
.testi__stars { color: var(--sol); letter-spacing: 3px; font-size: 15px; }
.testi__quote { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(18px, 1.5vw, 24px); line-height: 1.4; color: var(--bone); letter-spacing: -0.01em; }
.testi--feat .testi__quote { font-size: clamp(24px, 2.2vw, 34px); }
.testi__who { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: var(--sp-2); border-top: 1px solid rgba(255,255,255,0.1); }
.testi__av { width: 44px; height: 44px; border-radius: 50%; background: var(--sol); color: var(--azul-ink); font-family: var(--display); font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.testi__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid rgba(255,255,255,0.15); }
.testi__name { font-size: 15px; font-weight: 600; color: var(--bone); }
.testi__place { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(247,244,236,0.55); margin-top: 3px; }

/* Testimonial image */
.testi__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--img-radius);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.3);
}

/* ================================================
   FAQ
   ================================================ */
.faq { background: var(--bone); }
.faq__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(var(--sp-5), 7vw, var(--sp-12)); align-items: flex-start; }
.faq__aside p { margin-top: var(--sp-2); color: #3D4355; max-width: 32ch; line-height: 1.6; }
.faq__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  text-align: left;
  padding: var(--sp-3) 4px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  font-family: var(--display); font-weight: 600; font-size: clamp(16px, 1.4vw, 20px); letter-spacing: -0.015em; color: var(--ink);
  transition: color 0.2s;
}
.faq__q:hover { color: var(--azul); }
.faq__toggle {
  width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--sol);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease);
  flex-shrink: 0;
}
.faq__item.is-open .faq__toggle { transform: rotate(45deg); background: var(--azul); }
.faq__a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s var(--ease);
}
.faq__a-inner { padding: 0 var(--sp-8) var(--sp-3) 4px; color: #3D4355; font-size: 16px; line-height: 1.65; }
.faq__item.is-open .faq__a { max-height: 360px; }

/* ================================================
   CONVERSION FORM
   ================================================ */
.convert {
  background: var(--azul);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}
.convert::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255,210,31,0.18), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255,138,31,0.12), transparent 45%);
  pointer-events: none;
}
.convert__head { text-align: center; max-width: 680px; margin: 0 auto var(--sp-6); position: relative; z-index: 2; }
.convert__head h2 { color: var(--bone); }
.convert__head p { margin-top: var(--sp-2); color: rgba(247,244,236,0.85); font-size: 17px; }

.form-card {
  max-width: 720px; margin: 0 auto;
  background: var(--bone);
  border-radius: var(--radius-2xl);
  padding: clamp(var(--sp-4), 4vw, var(--sp-6));
  box-shadow: var(--shadow-lg);
  position: relative; z-index: 2;
  color: var(--ink);
}
.form-card__progress { display: flex; align-items: center; gap: 12px; margin-bottom: var(--sp-4); font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #6B7280; }
.form-card__progress .bar { flex: 1; height: 3px; background: var(--mist); border-radius: 2px; overflow: hidden; }
.form-card__progress .bar span { display: block; width: 50%; height: 100%; background: linear-gradient(90deg, var(--azul), var(--sol)); transition: width 0.5s var(--ease); }
.form-card.step-2 .form-card__progress .bar span { width: 100%; }

.form-step { display: none; }
.form-step.is-active { display: block; animation: fade-up 0.45s var(--ease-out); }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.field { display: block; margin-bottom: var(--sp-2); }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin-bottom: var(--sp-1); }
.field .help { font-size: 12px; color: #6B7280; font-weight: 400; margin-left: 6px; }
.field input, .field select {
  width: 100%; padding: 14px var(--sp-2);
  background: var(--bone-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: 16px; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--azul); background: var(--bone);
  box-shadow: 0 0 0 4px rgba(30,64,255,0.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }

.radio-row, .chip-row { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.chip {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  padding: 12px var(--sp-2);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--bone-2);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked), .chip.is-checked { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.chip:has(input:checked) .dot, .chip.is-checked .dot { background: var(--sol); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mist); transition: background 0.2s; }

.chip-group-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: #6B7280; margin: var(--sp-2) 0 var(--sp-1); }

.form-actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); align-items: center; justify-content: space-between; }
.form-actions .back { font-size: 14px; color: #6B7280; font-weight: 500; display: inline-flex; align-items: center; gap: var(--sp-1); }
.form-actions .back:hover { color: var(--ink); }
.form-note { font-size: 12.5px; color: #6B7280; margin-top: var(--sp-2); text-align: left; display: flex; align-items: flex-start; justify-content: center; gap: var(--sp-1); }
.form-note svg { margin-top: 2px; }

.form-success { display: none; text-align: center; padding: var(--sp-3) 0; }
.form-card.is-done .form-step { display: none; }
.form-card.is-done .form-success { display: block; animation: fade-up 0.5s var(--ease-out); }
.form-success .tick {
  width: 76px; height: 76px; border-radius: 50%; background: #48f765; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--sp-3);
}
.form-success h3 { font-size: 32px; margin-bottom: 12px; }
.form-success p { color: #3D4355; max-width: 44ch; margin: 0 auto; }

/* ================================================
   FOOTER
   ================================================ */
.foot { background: var(--ink); color: var(--bone); padding: var(--sp-10) 0 var(--sp-4); }
.foot__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-5); padding-bottom: var(--sp-6); border-bottom: 1px solid rgba(247,244,236,0.1); }
.foot__logo { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -0.03em; margin-bottom: var(--sp-2); display: flex; align-items: center; gap: 10px; }
.foot__logo .lx { font-family: var(--display); font-style: normal; font-weight: 900; color: var(--sol); }
.foot__desc { color: rgba(247,244,236,0.6); max-width: 34ch; line-height: 1.65; font-size: 15px; }
.foot h4 { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(247,244,236,0.4); margin-bottom: var(--sp-2); font-family: var(--mono); font-weight: 500; }
.foot ul { display: grid; gap: var(--sp-1); }
.foot ul a { color: rgba(247,244,236,0.8); font-size: 15px; transition: color 0.2s; }
.foot ul a:hover { color: var(--sol); }
.foot__bot { display: flex; justify-content: space-between; align-items: center; padding-top: var(--sp-3); font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: rgba(247,244,236,0.4); }
.foot__bot .licenses { display: flex; gap: var(--sp-3); }

/* ================================================
   REVEAL ANIMATION
   ================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ================================================
   TESTIMONIALS CAROUSEL (mobile)
   ================================================ */
.testis__carousel { position: relative; }
.testis__dots { display: none; }

/* Swipe hint (mobile only) */
.testis__swipe-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: var(--sp-1);
}
.testis__swipe-hint svg { opacity: 0.5; }

/* CTA after testimonials */
.testis__cta {
  text-align: center;
  margin-top: clamp(var(--sp-5), 5vw, var(--sp-8));
  position: relative;
  z-index: 2;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; margin: var(--sp-5) auto 0; }
  .hero__img--secondary { right: 0; bottom: 0; width: 48%; }
  .services__grid { grid-template-columns: 1fr; }
  .services__img-strip { grid-template-columns: 1fr; }
  .benefits__grid, .faq__grid { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); row-gap: var(--sp-5); }
  .process__line { display: none; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__phone { display: none; }

  /* Testimonials carousel */
  .testis__grid {
    display: flex !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: var(--sp-2);
    padding-bottom: var(--sp-3);
    scrollbar-width: none;
  }
  .testis__grid::-webkit-scrollbar { display: none; }
  .testi {
    flex: 0 0 85%;
    max-width: 85%;
    scroll-snap-align: center;
  }
  .testi:hover { transform: none; }
  .testi--feat { grid-row: auto; flex: 0 0 88%; max-width: 88%; }
  .testis__dots {
    display: flex;
    justify-content: center;
    gap: var(--sp-1);
    margin-top: var(--sp-2);
  }
  .testis__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: none; cursor: pointer; padding: 0;
    transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .testis__dot.is-active {
    background: var(--sol);
    transform: scale(1.3);
  }

  /* Swipe hint visible on mobile */
  .testis__swipe-hint { display: flex; }

  /* Same font size for all testimonial quotes on mobile */
  .testi__quote, .testi--feat .testi__quote { font-size: 20px; }

  /* Smaller buttons on mobile */
  .btn { padding: 14px 22px; font-size: 14px; }
  .btn--lg { padding: 16px 26px; font-size: 15px; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr; }
  .foot__bot { flex-direction: column; gap: var(--sp-2); text-align: center; }
  .hero__img--secondary { width: 45%; }
  .services__img-strip img { aspect-ratio: 4 / 3; }

  /* Even smaller buttons on small phones */
  .btn { padding: 12px 20px; font-size: 13.5px; }
  .btn--lg { padding: 14px 22px; font-size: 14px; }

  /* Fix form submit not overflowing */
  .form-actions { flex-wrap: wrap; }
  .form-actions .btn { width: 100%; justify-content: center; }

  .testi { flex: 0 0 92%; max-width: 92%; }
  .testi--feat { flex: 0 0 92%; max-width: 92%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  .marquee { animation: none; }
}
