/* ============================================
   ComboWeb - Landing (estilo Platzi, rojo fuego)
   ============================================ */

:root {
  /* Near-black palette — content readability first */
  --bg-0: #050507;
  --bg-1: #08080b;
  --bg-2: #0c0c11;
  --bg-3: #111117;
  --border: #1a1a22;
  --border-2: #232330;
  --text: #f4f4f6;
  --text-dim: #a8a8b4;
  --text-mute: #6a6a78;

  --fire-1: #ffd54a;
  --fire-2: #ff7a1a;
  --fire-3: #ff3b1f;
  --fire-4: #e11900;
  --fire-5: #8a0a00;

  --grad-fire: linear-gradient(135deg, #ffb347 0%, #ff3b1f 45%, #b1140b 100%);
  --grad-fire-soft: linear-gradient(135deg, rgba(255,122,26,.18), rgba(255,59,31,.08));
  --grad-dark: linear-gradient(180deg, #08080b 0%, #050507 100%);

  --mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-fire: 0 10px 40px -10px rgba(255,59,31,.45);
  --shadow-card: 0 10px 30px -10px rgba(0,0,0,.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.25rem; }
.text-grad {
  background: var(--grad-fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fire-2);
  padding: 6px 14px;
  border: 1px solid rgba(255,122,26,.35);
  border-radius: 999px;
  background: rgba(255,122,26,.08);
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .95rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-fire);
  color: #fff;
  box-shadow: var(--shadow-fire);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 46px -8px rgba(255,59,31,.7); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--fire-2); color: var(--fire-1); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10,10,15,.72);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
}
.brand-logo {
  width: 32px; height: 32px;
  background: var(--grad-fire);
  border-radius: 8px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px -4px rgba(255,59,31,.6);
}
.brand-logo svg { width: 18px; height: 18px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: .92rem;
  color: var(--text-dim);
  font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--fire-1); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); }
.burger span { display: block; width: 18px; height: 2px; background: var(--text); margin: 3px auto; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,59,31,.35), transparent 60%);
  filter: blur(20px);
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -300px; left: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,122,26,.22), transparent 60%);
  filter: blur(20px);
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 { margin: 18px 0 24px; }
.hero p.lead { font-size: 1.15rem; color: var(--text-dim); max-width: 560px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-size: 1.8rem; font-weight: 800; background: var(--grad-fire); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats .stat span { font-size: .85rem; color: var(--text-mute); }

.hero-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
  margin-left: auto;
}
.hero-visual svg { width: 100%; height: 100%; animation: float 6s ease-in-out infinite; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, rgba(255,59,31,.4), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 320px; margin: 0 auto; }
}

/* ---------- Logos / trust ---------- */
.trust {
  padding: 30px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
}
.trust-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.trust-label { color: var(--text-mute); font-size: .85rem; text-transform: uppercase; letter-spacing: .15em; }
.trust-items { display: flex; gap: 40px; flex-wrap: wrap; color: var(--text-dim); font-weight: 700; opacity: .7; }

/* ---------- Section base ---------- */
section.block { padding: 100px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head p { color: var(--text-dim); margin-top: 16px; font-size: 1.05rem; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.service-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .2s, border-color .2s, background .2s;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-fire-soft);
  opacity: 0;
  transition: opacity .25s;
}
.service-card > * { position: relative; z-index: 1; }
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,122,26,.45);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--grad-fire);
  display: grid; place-items: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px -6px rgba(255,59,31,.55);
}
.service-icon svg { width: 28px; height: 28px; stroke: #fff; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--text-dim); font-size: .95rem; margin-bottom: 14px; }
.service-card ul { list-style: none; }
.service-card ul li {
  font-size: .85rem;
  color: var(--text-mute);
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}
.service-card ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--fire-2);
  font-weight: 700;
}

/* ---------- Process ---------- */
.process {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.process-step {
  padding: 28px 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: step;
  position: relative;
}
.process-step::before {
  content: "0" counter(step);
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--grad-fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.process-step h4 { margin-bottom: 8px; font-size: 1.05rem; }
.process-step p { color: var(--text-dim); font-size: .9rem; }

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.why-card {
  padding: 28px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.why-card .chip {
  align-self: flex-start;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,59,31,.12);
  color: var(--fire-1);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.why-card h4 { font-size: 1.1rem; }
.why-card p { color: var(--text-dim); font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: rgba(255,122,26,.4); }
.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--fire-2);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 24px 20px; color: var(--text-dim); font-size: .95rem; }

/* ============================================
   STEP FORM
   ============================================ */
.form-wrap {
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
  padding: 100px 0 120px;
  border-top: 1px solid var(--border);
}
.form-card {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 560px;
}
@media (max-width: 880px) {
  .form-card { grid-template-columns: 1fr; }
}

/* Left: illustration + hint */
.form-side {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,122,26,.25), transparent 60%),
    linear-gradient(160deg, #1a0a08 0%, #0a0506 100%);
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.form-side::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at center, rgba(255,59,31,.15), transparent 70%);
  animation: pulseBg 8s ease-in-out infinite;
}
@keyframes pulseBg { 0%,100% { opacity: .6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }
.form-side-inner { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }
.form-mascot {
  width: 100%;
  max-width: 260px;
  margin: 10px auto 20px;
  animation: float 6s ease-in-out infinite;
}
.form-legend {
  background: rgba(10,5,6,.55);
  border: 1px solid rgba(255,122,26,.25);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: auto;
  backdrop-filter: blur(8px);
}
.form-legend .legend-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--fire-2);
  font-weight: 700;
  margin-bottom: 6px;
}
.form-legend .legend-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  min-height: 1.4em;
}
.form-legend .legend-hint {
  font-size: .85rem;
  color: var(--text-dim);
  margin-top: 6px;
}

/* Right: steps */
.form-main {
  padding: 44px 44px 36px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 560px) { .form-main { padding: 32px 24px; } }

.progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-3);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--grad-fire);
  border-radius: 3px;
  transition: width .35s ease;
}
.progress-text { font-size: .8rem; color: var(--text-mute); font-weight: 600; white-space: nowrap; }

.step {
  display: none;
  animation: stepIn .35s ease;
}
.step.active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-label {
  font-size: .75rem;
  color: var(--fire-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: 8px;
}
.step h3 { font-size: 1.6rem; margin-bottom: 8px; }
.step .step-desc { color: var(--text-dim); margin-bottom: 22px; font-size: .95rem; }

/* Inputs */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label { font-size: .85rem; color: var(--text-dim); font-weight: 600; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--fire-2);
  box-shadow: 0 0 0 3px rgba(255,122,26,.18);
}
.field .err {
  color: #ff6b5b;
  font-size: .82rem;
  min-height: 1.1em;
}

/* Option cards (radio / checkbox pretty) */
.options { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .options { grid-template-columns: 1fr; } }
.option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
  user-select: none;
}
.option:hover { border-color: rgba(255,122,26,.5); transform: translateY(-1px); }
.option input { display: none; }
.option .opt-box {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border);
  flex-shrink: 0;
  margin-top: 2px;
  display: grid;
  place-items: center;
  transition: all .15s;
}
.option input[type="radio"] + .opt-box { border-radius: 50%; }
.option .opt-box::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: inherit;
  background: var(--grad-fire);
  transform: scale(0);
  transition: transform .15s;
}
.option input:checked + .opt-box { border-color: var(--fire-2); }
.option input:checked + .opt-box::after { transform: scale(1); }
.option input:checked ~ .opt-content { color: #fff; }
.option:has(input:checked) {
  border-color: var(--fire-2);
  background: rgba(255,59,31,.08);
}
.opt-content { flex: 1; }
.opt-content strong { display: block; font-size: .95rem; margin-bottom: 2px; }
.opt-content small { color: var(--text-mute); font-size: .82rem; }

/* Acceptance checkboxes (last step) */
.accept-list { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 20px; }
.accept-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s;
}
.accept-item:hover { border-color: rgba(255,122,26,.4); }
.accept-item input { display: none; }
.accept-item .opt-box {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border);
  flex-shrink: 0;
  margin-top: 2px;
  display: grid;
  place-items: center;
  transition: all .15s;
}
.accept-item .opt-box::after {
  content: "";
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--grad-fire);
  transform: scale(0);
  transition: transform .15s;
}
.accept-item input:checked + .opt-box { border-color: var(--fire-2); }
.accept-item input:checked + .opt-box::after { transform: scale(1); }
.accept-item:has(input:checked) { border-color: var(--fire-2); background: rgba(255,59,31,.06); }
.accept-item span { font-size: .92rem; color: var(--text-dim); }

.accept-note {
  background: rgba(255,122,26,.08);
  border: 1px dashed rgba(255,122,26,.35);
  color: var(--text-dim);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: .88rem;
  margin-bottom: 18px;
}

/* Nav buttons */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}
.step-nav .btn { flex: none; }
.step-nav .btn-primary { min-width: 240px; justify-content: center; }
@media (max-width: 560px) {
  .step-nav { flex-direction: column-reverse; align-items: stretch; }
  .step-nav .btn { width: 100%; justify-content: center; min-width: 0; }
}

/* Summary step */
.summary-box {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 18px;
  max-height: 280px;
  overflow-y: auto;
}
.summary-box dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; }
.summary-box dt { color: var(--text-mute); font-size: .82rem; }
.summary-box dd { color: #fff; font-size: .9rem; font-weight: 600; word-break: break-word; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
  color: var(--text-mute);
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h5 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer ul a:hover { color: var(--fire-2); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================
   MOTION + MODERN VISUAL LAYER
   ============================================ */

body {
  position: relative;
  background:
    radial-gradient(800px 420px at 10% -10%, rgba(255,122,26,.12), transparent 70%),
    radial-gradient(620px 380px at 90% 8%, rgba(255,59,31,.10), transparent 72%),
    var(--bg-0);
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 36vmax;
  height: 36vmax;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(18px);
}

body::before {
  top: -15vmax;
  left: -8vmax;
  background: radial-gradient(circle, rgba(255,122,26,.18), transparent 65%);
  animation: bgOrbA 16s ease-in-out infinite alternate;
}

body::after {
  right: -14vmax;
  bottom: -14vmax;
  background: radial-gradient(circle, rgba(225,25,0,.22), transparent 68%);
  animation: bgOrbB 18s ease-in-out infinite alternate;
}

@keyframes bgOrbA {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(2vmax, 3vmax) scale(1.1); }
}

@keyframes bgOrbB {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-2vmax, -2vmax) scale(1.08); }
}

.anim-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

.anim-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

section.block::before,
.form-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(94%, 1220px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255,122,26,.48), transparent);
  opacity: .55;
}

section.block::after,
.form-wrap::after {
  content: "";
  position: absolute;
  inset: 14% 8% auto;
  height: 45%;
  border-radius: 26px;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0, rgba(255,59,31,.09), transparent 72%);
  z-index: 0;
}

.section-head,
.services-grid,
.process-grid,
.why-grid,
.faq-list {
  position: relative;
  z-index: 1;
}

.service-card,
.process-step,
.why-card,
.faq-item {
  position: relative;
  box-shadow: 0 14px 34px -18px rgba(0,0,0,.65);
}

.service-card::after,
.process-step::after,
.why-card::after,
.faq-item::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255,122,26,.26), rgba(255,59,31,.04), rgba(255,122,26,.24));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: .35;
  transition: opacity .25s ease;
  pointer-events: none;
}

.service-card:hover::after,
.process-step:hover::after,
.why-card:hover::after,
.faq-item:hover::after {
  opacity: .95;
}

/* ============================================
   FULLSCREEN FORM EXPERIENCE
   ============================================ */

.form-wrap {
  min-height: 100vh;
  padding: 36px 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.form-intro {
  margin-bottom: 20px;
  animation: softDrop .8s ease both;
}

@keyframes softDrop {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-card {
  width: min(1320px, calc(100vw - 32px));
  margin: 0 auto;
  min-height: calc(100vh - 150px);
  border-radius: 26px;
  border: 1px solid rgba(255,122,26,.24);
  box-shadow:
    0 30px 70px -34px rgba(0,0,0,.9),
    0 0 0 1px rgba(255,122,26,.16),
    0 0 72px -34px rgba(255,59,31,.48);
  background:
    linear-gradient(180deg, rgba(255,122,26,.05), rgba(255,122,26,0) 28%),
    var(--bg-2);
}

.form-side {
  border-right: 1px solid rgba(255,122,26,.18);
}

.form-side::after {
  content: "";
  position: absolute;
  inset: 12% 10% auto;
  height: 38%;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 50%, rgba(46,168,255,.2), rgba(255,59,31,.12) 48%, transparent 76%);
  filter: blur(8px);
}

.form-mascot {
  max-width: 310px;
  margin: 8px auto 12px;
  animation: botFloat 5.6s ease-in-out infinite;
  transform-origin: center bottom;
}

.form-mascot.is-step-change {
  animation: botBop .65s ease, botFloat 5.6s ease-in-out infinite .65s;
}

@keyframes botFloat {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-16px) rotate(1.2deg); }
}

@keyframes botBop {
  0% { transform: translateY(0) scale(1) rotate(0); }
  40% { transform: translateY(-6px) scale(1.03) rotate(-2deg); }
  100% { transform: translateY(0) scale(1) rotate(0); }
}

.bot-speech {
  position: relative;
  margin: -18px auto 14px;
  max-width: 280px;
  background: rgba(10,5,6,.88);
  border: 2px solid rgba(255,122,26,.45);
  border-radius: 20px;
  padding: 16px 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 34px rgba(255,59,31,.3), inset 0 0 40px rgba(255,122,26,.04);
  z-index: 2;
}

.bot-speech::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-bottom: 15px solid rgba(255,122,26,.45);
}

.bot-speech::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 12px solid rgba(10,5,6,.88);
}

.bot-speech-text {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  text-align: center;
  transition: opacity .25s ease, transform .25s ease;
}

.bot-speech.is-speaking .bot-speech-text {
  opacity: .35;
  transform: translateY(4px);
}

.form-legend {
  border-color: rgba(255,122,26,.38);
  box-shadow: 0 16px 34px -24px rgba(255,59,31,.8);
}

.form-legend .legend-label,
.form-legend .legend-text,
.form-legend .legend-hint {
  transition: transform .25s ease, opacity .25s ease;
}

.form-legend.is-updating .legend-label,
.form-legend.is-updating .legend-text,
.form-legend.is-updating .legend-hint {
  opacity: .5;
  transform: translateY(4px);
}

.form-main {
  position: relative;
  overflow: hidden;
}

.form-main::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,26,.12), transparent 70%);
  filter: blur(6px);
}

.step {
  transform-origin: top center;
}

.step.active {
  animation: stepInModern .45s cubic-bezier(.22, .7, .16, 1);
}

@keyframes stepInModern {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.field input,
.field textarea,
.option,
.accept-item,
.summary-box {
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}

.field input:focus,
.field textarea:focus {
  box-shadow: 0 0 0 3px rgba(255,122,26,.2), 0 12px 26px -20px rgba(255,59,31,.9);
}

.summary-box {
  background: linear-gradient(180deg, rgba(255,122,26,.07), rgba(255,122,26,.02)) , var(--bg-3);
}

.step-nav .btn-primary {
  position: relative;
  overflow: hidden;
}

.step-nav .btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.25), transparent);
  transition: left .45s ease;
}

.step-nav .btn-primary:hover::before {
  left: 120%;
}

@media (max-width: 980px) {
  .form-card {
    width: min(1320px, calc(100vw - 18px));
    min-height: calc(100vh - 100px);
  }

  .form-side {
    border-right: 0;
    border-bottom: 1px solid rgba(255,122,26,.15);
  }

  .form-mascot {
    max-width: 250px;
    margin-bottom: 8px;
  }
}

@media (max-width: 560px) {
  .form-wrap {
    padding: 24px 0 16px;
  }

  .form-card {
    width: calc(100vw - 12px);
    min-height: calc(100vh - 86px);
    border-radius: 20px;
  }

  .bot-step-ticker {
    height: 32px;
  }

  .bot-step-ticker-text {
    font-size: .78rem;
  }
}

/* ============================================
   THREE.JS 3D LAYERS  +  DEV-PORTFOLIO REWORK
   ============================================ */

/* Solid near-black base so text always reads cleanly */
body {
  background: var(--bg-0);
}
body::before,
body::after {
  display: none;
}

/* Global background canvas — sits behind everything, very low intensity */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
  opacity: .55;            /* tuned way down so content stays king */
}

/* Very subtle scanline texture */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.010) 0px,
      rgba(255, 255, 255, 0.010) 1px,
      transparent 1px,
      transparent 3px
    );
  opacity: .22;
}

/* All content sits above the 3D bg with SOLID surfaces */
.nav, .hero, section.block, .form-wrap, .footer, .trust {
  position: relative;
  z-index: 2;
}

/* Solid sections — no transparency over content areas */
.nav {
  background: rgba(5, 5, 7, 0.85);
  border-bottom: 1px solid var(--border);
}
section.block,
.form-wrap,
.footer,
.trust,
.process {
  background-color: var(--bg-0);
}

/* Only the hero allows the 3D to bleed in slightly */
.hero {
  background-color: transparent;
  padding: 110px 0 100px;
}
.hero::before,
.hero::after { display: none; }

/* Cards are SOLID dark, no transparency, no blur */
.service-card,
.process-step,
.why-card,
.faq-item,
.form-card {
  background: var(--bg-2);
  backdrop-filter: none;
}

/* Subtle hover lift instead of glassy bg */
.service-card:hover,
.why-card:hover,
.process-step:hover {
  background: var(--bg-3);
}

/* ============================================
   DEV-PORTFOLIO TYPOGRAPHY & TAGS
   ============================================ */

/* Mono tag system: // 01.servicios */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 500;
  color: var(--fire-2);
  letter-spacing: 0;
  text-transform: lowercase;
  margin-bottom: 18px;
}
.section-tag::before {
  content: "//";
  color: var(--text-mute);
  font-weight: 400;
}
.section-tag .num {
  color: var(--fire-1);
  font-weight: 700;
}

/* Override the original eyebrow look to feel mono/dev */
.eyebrow {
  font-family: var(--mono);
  text-transform: lowercase;
  letter-spacing: 0;
  font-weight: 500;
  font-size: .82rem;
  color: var(--fire-2);
  padding: 0;
  border: 0;
  background: transparent;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "//";
  color: var(--text-mute);
  font-weight: 400;
}

/* Section heads: left-aligned, more breathing room */
.section-head {
  text-align: left;
  margin: 0 0 64px;
  max-width: 760px;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}
.section-head p {
  color: var(--text-dim);
  margin-top: 18px;
  font-size: 1rem;
  max-width: 580px;
}

/* Process steps numbered counter feels mono too */
.process-step::before {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.6rem;
}

/* Service cards: dev-style header with kind label */
.service-card {
  padding: 30px 28px 28px;
  border-radius: 12px;
}
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.service-card p { font-size: .92rem; }
.service-card ul li { font-family: var(--mono); font-size: .78rem; }
.service-card ul li::before { content: "›"; color: var(--fire-2); }

/* Why cards: simplified flat dev style */
.why-card { border-radius: 12px; padding: 26px; }
.why-card .chip {
  font-family: var(--mono);
  text-transform: lowercase;
  letter-spacing: 0;
  background: transparent;
  color: var(--fire-2);
  padding: 0;
  font-size: .78rem;
}
.why-card .chip::before {
  content: "#";
  color: var(--text-mute);
  margin-right: 2px;
}

/* FAQ simplified */
.faq-item { border-radius: 10px; }
.faq-item summary { font-family: var(--mono); font-weight: 500; font-size: .95rem; }

/* Trust strip: mono pills */
.trust {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-label { font-family: var(--mono); font-size: .75rem; }
.trust-items { font-family: var(--mono); font-weight: 500; gap: 24px; opacity: .85; }
.trust-items span {
  padding: 4px 10px;
  border: 1px solid var(--border-2);
  border-radius: 6px;
  font-size: .8rem;
  color: var(--text-dim);
}

/* ============================================
   SIDE SECTION INDICATOR (dev-portfolio vibe)
   ============================================ */
.side-nav {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--text-mute);
  padding: 12px 12px 12px 10px;
  background: rgba(5, 5, 7, 0.78);
  border: 1px solid var(--border);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  /* Total width ≈ 150px including padding+border */
}
.side-nav a .dash { width: 16px; }
.side-nav a:hover .dash,
.side-nav a.is-active .dash { width: 32px; }
.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-mute);
  transition: color .18s ease;
  text-decoration: none;
}
.side-nav a .dash {
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--text-mute);
  transition: width .25s ease, background .25s ease;
}
.side-nav a:hover,
.side-nav a.is-active {
  color: var(--fire-1);
}
.side-nav a:hover .dash,
.side-nav a.is-active .dash {
  width: 40px;
  background: var(--fire-2);
}
.side-nav .num { color: var(--fire-2); font-weight: 700; }
@media (max-width: 1100px) { .side-nav { display: none; } }

/* Reserve space for side-nav on wide screens so content never collides.
   side-nav width ≈ 150px + left:20px + safety = 200px gutter. */
@media (min-width: 1101px) {
  .container {
    max-width: 1200px;
    margin-left: 0;
    margin-right: auto;
    padding-left: 220px;
    padding-right: 40px;
  }
}
@media (min-width: 1500px) {
  /* On very wide screens center the container but keep enough left gutter */
  .container {
    margin-left: max(220px, calc((100vw - 1200px) / 2));
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* form-card also needs to clear the side-nav */
@media (min-width: 1101px) {
  .form-card {
    width: min(1320px, calc(100vw - 260px));
    margin-left: 220px;
    margin-right: auto;
  }
}
@media (min-width: 1500px) {
  .form-card {
    width: min(1320px, calc(100vw - 240px));
    margin-left: max(220px, calc((100vw - 1320px) / 2));
  }
}

/* ============================================
   HERO 3D CANVAS
   ============================================ */
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 520px;
  margin-left: auto;
  display: grid;
  place-items: center;
}
.hero-visual img { display: none; }
#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}
#hero-canvas:active { cursor: grabbing; }

.hero-orb-label {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0;
  text-transform: lowercase;
  pointer-events: none;
}
.hero-orb-label::before { content: "$"; color: var(--fire-2); margin-right: 4px; }
.hero-orb-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--fire-2);
  box-shadow: 0 0 10px var(--fire-2);
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .55; }
}

/* ============================================
   SERVICE CARD 3D MINI ICONS
   ============================================ */
.service-card { position: relative; }
.service-3d {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 56px;
  height: 56px;
  pointer-events: none;
  opacity: .85;
  z-index: 2;
}
.service-3d canvas { width: 100% !important; height: 100% !important; }

/* ============================================
   CUSTOM FIRE CURSOR (kept, slightly subtler)
   ============================================ */
.fire-cursor-dot,
.fire-cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  will-change: transform;
}
.fire-cursor-dot {
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--fire-1);
  box-shadow: 0 0 10px var(--fire-2);
  transition: transform .05s linear;
}
.fire-cursor-ring {
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  border: 1px solid rgba(255, 122, 26, .45);
  background: transparent;
  transition: width .22s ease, height .22s ease, margin .22s ease, border-color .22s ease, background .22s ease;
}
.fire-cursor-ring.is-hover {
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  border-color: var(--fire-1);
  background: radial-gradient(circle, rgba(255, 59, 31, .10), transparent 65%);
}
@media (hover: none), (max-width: 880px) {
  .fire-cursor-dot, .fire-cursor-ring { display: none; }
}
/* Cursor normal del sistema en todo el sitio */
.fire-cursor-dot, .fire-cursor-ring { display: none !important; }
@media (hover: hover) and (pointer: fine) {
  body { cursor: auto; }
  a, button, label, .option, .accept-item, .faq-item summary,
  .btn, [role="button"] {
    cursor: pointer;
  }
  input, textarea, select { cursor: text; }
  select, input[type="radio"], input[type="checkbox"] { cursor: pointer; }
}

/* ============================================
   FORM polish — solid surfaces
   ============================================ */
.form-side {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,122,26,.10), transparent 60%),
    var(--bg-1);
}
.form-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  box-shadow:
    0 30px 70px -34px rgba(0,0,0,.9),
    0 0 0 1px var(--border);
}
.form-legend { background: rgba(8,8,11,.9); }
.bot-speech { background: var(--bg-1); }
.summary-box { background: var(--bg-3); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea,
.option,
.accept-item {
  background: var(--bg-3);
}

/* Step labels in mono */
.step-label,
.legend-label {
  font-family: var(--mono);
  text-transform: lowercase;
  letter-spacing: 0;
}
.step-label::before, .legend-label::before {
  content: "// ";
  color: var(--text-mute);
}

/* Mobile mini tweaks */
@media (max-width: 880px) {
  .service-3d { width: 44px; height: 44px; top: 14px; right: 14px; }
  #bg-canvas { opacity: .35; }
  .scanlines { opacity: .15; }
  .section-head { margin-bottom: 44px; }
}
