/* ============ TOKENS ============ */
:root {
  --black: #0a0a0a;
  --black-soft: #121212;
  --ink-900: #161616;
  --ink-800: #1e1e1e;
  --ink-700: #2a2a2a;
  --ink-600: #3a3a3a;
  --ink-400: #8a8a8a;
  --white: #fafafa;
  --white-dim: #d8d8d8;

  --blue-500: #2f8fff;
  --blue-400: #5aa8ff;
  --lime-500: #d6ff3f;
  --lime-700: #a7c72e;

  --border-subtle: rgba(250, 250, 250, 0.12);
  --border-strong: rgba(250, 250, 250, 0.28);

  --font-display: 'Archivo Black', Impact, sans-serif;
  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-lg: 16px;
  --radius-pill: 999px;
  --ease: cubic-bezier(.4,0,.2,1);

  --x: 50%;
  --y: 40%;
}

/* ============ RESET ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body {
  margin: 0;
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  position: relative;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sec { padding: 88px 0; position: relative; z-index: 2; }
.h-display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; margin: 0; }
.eyebrow { font: 700 12px var(--font-body); text-transform: uppercase; letter-spacing: 0.16em; margin: 0 0 18px; color: var(--ink-400); }
.sec-title { font-size: clamp(28px, 4vw, 46px); margin-bottom: 16px; }
.sec-subtitle { color: var(--ink-400); max-width: 620px; font-size: 16px; line-height: 1.5; margin-bottom: 44px; }
.text-underline { text-decoration: underline; text-decoration-color: rgba(0,0,0,.4); }

/* ============ AMBIENT BACKGROUND ============ */
.bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.cursor-glow {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(480px circle at var(--x) var(--y), rgba(47,143,255,0.08), transparent 45%);
  mix-blend-mode: screen;
  transition: background 60ms linear;
}
.nav, .hero, footer, main { position: relative; z-index: 2; }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--blue-500), var(--lime-500));
  z-index: 300; pointer-events: none;
}

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 18px 24px;
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow 250ms var(--ease), border-color 250ms var(--ease), background 250ms var(--ease);
}
.nav.scrolled { background: rgba(10,10,10,0.9); box-shadow: 0 8px 30px rgba(0,0,0,0.4); border-bottom-color: rgba(47,143,255,0.25); }
.nav-inner { max-width: 1160px; margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.mark { display: inline-flex; align-items: flex-start; gap: 4px; }
.mark .w { font: 700 24px var(--font-display); color: var(--white); text-transform: lowercase; line-height: 1; }
.mark .ac { font: 700 9px var(--font-body); color: var(--ink-400); margin-top: 2px; }
.mark-badge { margin-top: 2px; flex-shrink: 0; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: var(--radius-pill);
  font: 700 15px var(--font-body);
  padding: 14px 26px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: transform 120ms var(--ease), box-shadow 120ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  pointer-events: none;
  animation: rippleOut 550ms ease-out;
}
@keyframes rippleOut { to { transform: scale(1); opacity: 0; } }
.btn-lime { background: var(--lime-500); color: var(--black); }
.btn-lime:hover { box-shadow: 0 6px 18px rgba(214,255,63,0.2); }
.btn-blue { background: var(--blue-500); color: var(--black); }
.btn-blue:hover { box-shadow: 0 6px 18px rgba(47,143,255,0.2); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid var(--border-strong); }
.btn-outline:hover { border-color: var(--blue-400); box-shadow: 0 0 14px rgba(47,143,255,0.15); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-lg { padding: 18px 34px; font-size: 17px; }

/* ============ HERO ============ */
.hero { padding: 120px 0 90px; position: relative; overflow: hidden; text-align: center; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; animation: floatOrb 12s ease-in-out infinite; }
.hero-orb.blue { width: 380px; height: 380px; background: var(--blue-500); opacity: 0.14; top: -120px; right: -100px; }
.hero-orb.lime { width: 260px; height: 260px; background: var(--lime-500); opacity: 0.11; bottom: -100px; left: -60px; animation-delay: -4s; }
@keyframes floatOrb { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-24px) scale(1.04); } }

.hero-grid-floor {
  position: absolute; left: 50%; bottom: -30%; width: 240%; height: 60%;
  transform: translateX(-50%) perspective(500px) rotateX(72deg);
  background-image:
    linear-gradient(to right, rgba(47,143,255,0.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(47,143,255,0.22) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to top, black, transparent 72%);
  mask-image: linear-gradient(to top, black, transparent 72%);
  animation: gridMove 8s linear infinite;
  pointer-events: none;
  opacity: 0.35;
}
@keyframes gridMove { from { background-position: 0 0; } to { background-position: 0 64px; } }

.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; transition: transform 300ms var(--ease); will-change: transform; }
.hero h1 { font-size: clamp(34px, 6.4vw, 68px); line-height: 1.05; color: var(--white); }
.hero h1 .accent {
  background: linear-gradient(90deg, var(--lime-500), var(--blue-400), var(--lime-500));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradientShift 7s linear infinite;
}
@keyframes gradientShift { to { background-position: 200% center; } }
.hero p { font: 400 19px/1.6 var(--font-body); color: var(--white-dim); max-width: 560px; margin: 28px auto 0; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }
.microcopy { margin-top: 14px; font-size: .85rem; color: var(--ink-400); }
.hero-stats { display: flex; gap: 48px; margin-top: 64px; flex-wrap: wrap; justify-content: center; }
.hero-stat { max-width: 160px; }
.hero-stat b { display: block; font: 400 34px var(--font-display); color: var(--white); }
.hero-stat span { font: 500 14px var(--font-body); color: var(--ink-400); }

/* ============ CARD GRIDS (problema / autoridad) ============ */
.prob-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-bottom: 44px; }
@media (min-width: 640px) { .prob-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .prob-grid { grid-template-columns: repeat(4, 1fr); } }

.prob-card {
  position: relative;
  overflow: hidden;
  background: rgba(22,22,22,0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  padding: 26px 24px;
  transition: border-color 200ms var(--ease);
  will-change: transform;
}
.prob-card:hover { border-color: color-mix(in srgb, var(--card-accent, var(--blue-500)) 45%, var(--border-subtle)); }
.prob-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 40%), rgba(255,255,255,0.06), transparent 60%);
  opacity: 0; transition: opacity 200ms var(--ease);
}
.prob-card:hover::after { opacity: 1; }
.prob-card:hover { box-shadow: 0 16px 36px rgba(0,0,0,0.4); }
.prob-card p { font-size: 1rem; line-height: 1.5; color: var(--white-dim); margin: 0; }

.autoridad-icon { font-size: 1.4rem; color: var(--lime-500); margin-bottom: 10px; }
.autoridad-card h3 { font: 700 17px var(--font-body); color: var(--white); margin: 0 0 8px; }
.autoridad-card p { font-size: .92rem; color: var(--ink-400); }

.agitation {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.agitation__hook {
  text-align: center;
  font: 700 1.15rem/1.4 var(--font-body);
  color: var(--lime-500);
}
.agitation__body {
  text-align: left;
  font: 400 1rem/1.6 var(--font-body);
  color: var(--white-dim);
}

.journey {
  max-width: 900px;
  margin: 56px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}
.journey__lead { text-align: center; font: 700 1.05rem var(--font-body); color: var(--white); margin-bottom: 28px; }
.journey__steps { display: grid; gap: 24px; grid-template-columns: 1fr; margin-bottom: 28px; }
@media (min-width: 768px) { .journey__steps { grid-template-columns: repeat(3, 1fr); } }
.journey__step { text-align: center; }
.journey__icon { display: block; font-size: 1.6rem; margin-bottom: 10px; transition: transform 200ms var(--ease); }
.journey__step:hover .journey__icon { transform: scale(1.15) rotate(-4deg); }
.journey__step p { font: 400 14px/1.5 var(--font-body); color: var(--ink-400); margin: 0; }
.journey__step strong { color: var(--white-dim); }
.journey__close { text-align: center; font: 600 1rem/1.5 var(--font-body); color: var(--lime-500); max-width: 640px; margin: 0 auto; }

/* ============ PROCESS (método) ============ */
.process-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.process-grid--3 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .process-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.process-step { position: relative; padding-top: 8px; transition: transform 300ms var(--ease); }
.process-step:hover { transform: translateY(-6px); }
.process-step::before { content: ""; display: block; width: 100%; height: 1px; background: var(--border-subtle); margin-bottom: 24px; }
.process-num { font-size: clamp(32px, 4vw, 48px); color: var(--blue-500); line-height: 1; margin-bottom: 16px; }
.process-step:nth-child(even) .process-num { color: var(--lime-500); }
.process-title { font: 700 18px var(--font-body); color: var(--white); margin-bottom: 10px; }
.process-txt { font: 400 15px/1.5 var(--font-body); color: var(--ink-400); }
.cta-mid { text-align: center; margin-top: 56px; }

/* ============ TESTIMONIOS (Trust Pilot style) ============ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card {
  position: relative; overflow: hidden;
  background: rgba(22,22,22,0.6);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.testi-card:hover { box-shadow: 0 16px 36px rgba(0,0,0,0.4); }
.rubro-icono { font-size: 1.6rem; margin-bottom: 4px; display: inline-block; transition: transform 250ms var(--ease); }
.testi-card:hover .rubro-icono { transform: scale(1.2) rotate(-6deg); }
.testi-name { font: 700 16px var(--font-body); color: var(--white); }
.testi-quote { font: 400 15px/1.5 var(--font-body); color: var(--ink-400); margin: 0; }
.testi-result {
  font: 500 14px/1.5 var(--font-body);
  color: var(--card-accent, var(--lime-500));
  margin: 0;
}

/* ============ MARQUEE (para cuando se active) ============ */
.marcas { padding: 48px 0; position: relative; z-index: 2; }
.marcas-titulo { text-align: center; color: var(--ink-400); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 28px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: scroll 25s linear infinite; }
.marquee-track img { height: 40px; filter: grayscale(1) brightness(2); opacity: .7; transition: .3s; }
.marquee-track img:hover { filter: none; opacity: 1; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============ GARANTÍA ============ */
.garantia { background: var(--lime-500); color: var(--black); padding: 64px 0; position: relative; z-index: 2; }
.garantia__texto { text-align: center; font-size: clamp(1.15rem, 3vw, 1.6rem); font-weight: 700; max-width: 800px; margin: 0 auto; line-height: 1.4; }

/* ============ SERVICIOS — CARRUSEL 3D ============ */
.carousel-3d { position: relative; perspective: 1500px; }
.carousel-3d:focus-visible { outline: none; }
.carousel-stage { position: relative; height: 560px; }

.c-slide {
  position: absolute; top: 0; left: 50%; width: min(560px, 88vw);
  transition: transform 600ms var(--ease), opacity 500ms var(--ease), filter 500ms var(--ease);
  will-change: transform, opacity;
}
.c-slide .svc-card { height: 100%; }

.svc-card {
  position: relative;
  overflow: hidden;
  background: rgba(20,20,20,0.72);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  padding: 44px 40px 40px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  transition: border-color 200ms var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.svc-card:hover { border-color: color-mix(in srgb, var(--card-accent, var(--blue-500)) 50%, var(--border-subtle)); }
.svc-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 40%), rgba(255,255,255,0.08), transparent 60%);
  opacity: 0; transition: opacity 200ms var(--ease);
}
.svc-card:hover::after { opacity: 1; }

.svc-badge { font: 700 12px var(--font-body); text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 18px; }
.svc-title { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.1; color: var(--white); margin: 0 0 22px; max-width: 460px; }
.svc-price { font-size: clamp(30px, 4.4vw, 46px); line-height: 1; margin-bottom: 12px; }
.svc-card.pop .svc-price { animation: pricePop 420ms var(--ease); }
@keyframes pricePop { 0% { transform: scale(0.85); opacity: .5; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
.svc-price-unit { font-family: var(--font-body); font-size: 16px; font-weight: 600; color: var(--ink-400); margin-left: 4px; }
.svc-meta { font: 500 15px var(--font-body); color: var(--ink-400); margin-bottom: 28px; }
.svc-list { display: flex; flex-direction: column; gap: 14px; flex-grow: 1; margin-bottom: 32px; }
.svc-list li { display: flex; align-items: flex-start; gap: 12px; font: 400 16px/1.4 var(--font-body); color: var(--white-dim); }
.svc-check { flex-shrink: 0; }

.accent-blue { --card-accent: var(--blue-500); }
.accent-blue .svc-badge, .accent-blue .svc-price, .accent-blue .svc-check { color: var(--blue-500); }
.accent-blue:hover { box-shadow: 0 20px 44px rgba(0,0,0,0.5), 0 0 26px rgba(47,143,255,0.12); }

.accent-lime { --card-accent: var(--lime-500); }
.accent-lime .svc-badge, .accent-lime .svc-price, .accent-lime .svc-check { color: var(--lime-500); }
.accent-lime:hover { box-shadow: 0 20px 44px rgba(0,0,0,0.5), 0 0 26px rgba(214,255,63,0.1); }

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 32px; }
.carousel-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink-800); border: 1px solid var(--border-subtle);
  color: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 150ms var(--ease), transform 150ms var(--ease), box-shadow 150ms var(--ease);
}
.carousel-arrow:hover { background: var(--ink-700); box-shadow: 0 0 20px rgba(47,143,255,0.3); }
.carousel-arrow:active { transform: scale(0.92); }
.carousel-arrow svg { width: 18px; height: 18px; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-600); border: none; cursor: pointer; padding: 0; transition: background 150ms var(--ease), transform 150ms var(--ease); }
.carousel-dot.active { background: var(--white); transform: scale(1.2); box-shadow: 0 0 8px var(--blue-500); }

.combo-note {
  margin-top: 48px; text-align: center;
  background: rgba(22,22,22,0.6);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.combo-note p { font-size: 1.02rem; margin: 0; }
.mantenimiento { text-align: center; color: var(--ink-400); margin-top: 28px; font-size: .9rem; }

/* ============ FAQ (acordeón animado) ============ */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: rgba(22,22,22,0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 200ms var(--ease);
}
.faq-item.open { border-color: color-mix(in srgb, var(--blue-500) 40%, var(--border-subtle)); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 22px;
  font: 700 16px var(--font-body);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  gap: 12px;
}
.faq-icon { color: var(--lime-500); font-size: 1.4rem; flex-shrink: 0; transition: transform 250ms var(--ease); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms var(--ease);
}
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer-inner p { margin: 0 22px 18px; color: var(--ink-400); font-size: 15px; line-height: 1.5; }

/* ============ CTA FINAL ============ */
.cta-final {
  position: relative; overflow: hidden;
  background: var(--lime-500);
  border-radius: var(--radius-lg);
  padding: 72px 40px;
  text-align: center;
}
.cta-final::before {
  content: ""; position: absolute; inset: -40%; pointer-events: none;
  background: radial-gradient(circle, rgba(10,10,10,0.1), transparent 60%);
  animation: floatOrb 7s ease-in-out infinite;
}
.cta-final .wrap { position: relative; padding: 0; max-width: 720px; }
.cta-final h2 { font-size: clamp(30px, 5vw, 56px); color: var(--black); margin-bottom: 16px; }
.cta-final p { font: 500 17px/1.5 var(--font-body); color: rgba(10,10,10,0.7); margin-bottom: 36px; }
.cta-final__btn { background: var(--black); color: var(--lime-500); }
.cta-final__btn:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.4); }

/* ============ FOOTER ============ */
.footer { padding: 40px 24px; border-top: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font: 14px var(--font-body); color: var(--ink-400); }
.footer-links a:hover { color: var(--lime-500); }
#footerYear { font: 14px var(--font-body); color: var(--ink-400); }

/* ============ WA FLOAT ============ */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--lime-500); color: var(--black);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 24px rgba(0,0,0,0.45);
  border: none; cursor: pointer;
  transition: transform 150ms var(--ease);
  animation: floatBob 3.4s ease-in-out infinite;
}
@keyframes floatBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.wa-float:hover { animation-play-state: paused; }
.wa-float::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--lime-500); opacity: 0.35;
  animation: pulseRing 3.2s ease-out infinite;
  pointer-events: none;
}
@keyframes pulseRing { 0% { transform: scale(0.9); opacity: 0.6; } 100% { transform: scale(1.7); opacity: 0; } }
.wa-float svg { width: 28px; height: 28px; position: relative; }

/* ============ SCROLL REVEAL ============ */
[data-reveal] {
  opacity: 0;
  transform: perspective(900px) rotateX(10deg) translateY(28px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
}
[data-reveal].in-view { opacity: 1; transform: perspective(900px) rotateX(0deg) translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
  .nav-right .btn span.long { display: none; }
  .sec { padding: 56px 0; }
  .hero { padding: 96px 0 48px; }
  .hero-stats { gap: 32px; }
  .cta-final { padding: 48px 24px; }
  .carousel-stage { height: 640px; }
  .footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb, .hero-grid-floor, .prob-card, .svc-card, .cta-final::before, .wa-float::before, .hero h1 .accent { animation: none; }
  html { scroll-behavior: auto; }
}
