/* ── Hero split layout ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: calc(130px + var(--promo-h)) 0 80px;
  text-align: left;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 96px;
  align-items: start;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 8px;
}

#hero .hero-partners { justify-content: flex-start; margin-bottom: 40px; animation: fadeIn .7s ease .3s both; }
#hero .hero-h         { margin-bottom: 24px; }
#hero .hero-p         { text-align: left; margin: 0 0 40px; max-width: none; font-size: 18px; }
#hero .hero-actions   { justify-content: flex-start; margin-bottom: 0; }

/* Form column */
.hero-form-col {
  position: relative; z-index: 2;
  animation: fadeUp .9s cubic-bezier(.22,1,.36,1) .38s both;
}

/* Form card — same look as contacto.html */
.hero-form-card {
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: 16px;
  padding: 32px 32px 24px;
}

/* Form internals — mirror of contacto.css */
.form-title { font-size: 24px; font-weight: 500; color: var(--text-1); margin-bottom: 4px; letter-spacing: -.022em; }
.form-sub { font-size: 15px; color: var(--text-2); font-weight: 300; margin-bottom: 22px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 15px; font-weight: 500; color: var(--text-2); letter-spacing: .02em; }

.form-input,
.form-textarea {
  background: var(--bg-0);
  border: 1px solid var(--border-1);
  border-radius: var(--r1);
  padding: 12px 12px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text-1);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-3); }
.form-input:focus,
.form-textarea:focus {
  border-color: var(--border-2);
  box-shadow: 0 0 0 3px rgba(255,255,255,.04);
}
.form-textarea { resize: vertical; min-height: 78px; line-height: 1.6; }

.form-submit {
  margin-top: 16px; width: 100%; justify-content: center;
  font-size: 16px; padding: 12px 24px; border-radius: var(--r1);
}
.form-fine { font-size: 13px; color: var(--text-3); text-align: center; margin-top: 10px; }

.form-success { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 48px 20px; }
.form-success.visible { display: flex; }
.success-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,202,27,.1); border: 1px solid rgba(255,202,27,.25); display: flex; align-items: center; justify-content: center; }
.form-success h3 { font-size: 22px; font-weight: 500; color: var(--text-1); }
.form-success p  { font-size: 15px; color: var(--text-2); max-width: 300px; }

/* Responsive */
@media (max-width: 1100px) {
  .hero-split { grid-template-columns: 1fr 460px; gap: 72px; }
}
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 48px; }
  #hero { padding: calc(100px + var(--promo-h)) 0 64px; }
  #hero .hero-p { text-align: center; }
  #hero .hero-actions { justify-content: center; align-self: center; }
}
@media (max-width: 480px) {
  .hero-form-card { padding: 24px 20px; }
  #hero .hero-p { font-size: 17px; }
}

/* ── 3 pasos — sticky scroll-driven ── */
#pasos {
  height: 260vh;
  padding: 0;
}

.pasos-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.pasos-sticky .wrap { padding-top: 0; padding-bottom: 0; width: 100%; }
#pasos .section-header { text-align: left; margin-left: 0; }

.pasos-grid {
  display: grid;
  grid-template-columns: 1fr 56px 1fr 56px 1fr;
  max-width: 1040px; margin: 0 auto;
  align-items: center;
}

.paso-line {
  height: 1px;
  align-self: center;
  background: linear-gradient(to right, rgba(255,202,27,.35), rgba(255,202,27,.15));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .7s cubic-bezier(.22,1,.36,1);
}
.paso.entered + .paso-line {
  transform: scaleX(1);
  transition-delay: .55s;
}
.paso {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 40px 24px;
  background: var(--bg-1); border: 1px solid var(--border-1); border-radius: var(--r4);
  position: relative; overflow: hidden;
  opacity: 0;
  transform: translateY(360px);
  transition: border-color .4s, opacity .5s cubic-bezier(.22,1,.36,1), transform 1.1s cubic-bezier(.22,1,.36,1);
}
.paso.entered {
  opacity: 1;
  transform: translateY(0);
}
.paso::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--r4);
  pointer-events: none;
  background: radial-gradient(circle 220px at top center, rgba(255,202,27,.18) 0%, transparent 70%);
  opacity: 0; transition: opacity .5s;
}
.paso:hover { border-color: var(--accent-border); }
.paso:hover::after { opacity: 1; }
.paso-icon {
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255,202,27,.07); border: 1px solid rgba(255,202,27,.22);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0; margin-bottom: 28px;
  position: relative; z-index: 1;
  transition: background .3s, border-color .3s;
}
.paso:hover .paso-icon { background: rgba(255,202,27,.12); border-color: rgba(255,202,27,.38); }
.paso-num  { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 14px; position: relative; z-index: 1; }
.paso-h    { font-size: 26px; font-weight: 600; color: var(--text-1); line-height: 1.25; margin-bottom: 16px; letter-spacing: -.025em; position: relative; z-index: 1; }
.paso-p    { font-size: 15px; color: var(--text-3); line-height: 1.7; position: relative; z-index: 1; }

@media (max-width: 900px) {
  #pasos { height: auto; padding: var(--section) 0; }
  .pasos-sticky { position: static; height: auto; justify-content: flex-start; }
  .paso { opacity: 1; transform: none; }
  .pasos-grid { grid-template-columns: 1fr; gap: 16px; max-width: 480px; }
  .paso-line { display: none; }
  .paso { padding: 32px 24px; }
}
@media (max-width: 480px) { .pasos-grid { max-width: 100%; } }

/* ── Todo en un solo sistema ── */
#todo-uno { padding: var(--section) 0; }

/* ── Sección comparación ── */
#comparacion { padding: var(--section) 0; }

.comp-intro {
  font-size: clamp(36px, 4.8vw, 58px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.025em;
  color: var(--text-1);
  max-width: 1060px;
  margin-top: 20px;
}

/* Word-by-word scroll illumination */
.comp-intro .sw {
  color: rgba(255,255,255,.14);
  transition: color .4s ease;
  display: inline;
}
.comp-intro .sw.lit { color: var(--text-1); }

.comp-vs { color: var(--accent); white-space: nowrap; }

.comp-toggle-inline {
  display: inline-flex;
  align-items: center;
  width: 64px; height: 30px;
  background: var(--accent);
  border-radius: 100px;
  position: relative;
  vertical-align: middle;
  margin: 0 6px;
  flex-shrink: 0;
  cursor: pointer;
  transition: background .4s ease;
}
.comp-toggle-knob {
  position: absolute;
  left: 38px;
  width: 22px; height: 22px;
  background: rgba(0,0,0,.8); border-radius: 50%;
  transition: left .6s cubic-bezier(.34,1.45,.64,1), background .4s ease;
}

/* Toggle OFF state */
.comp-toggle-inline.off { background: var(--bg-2); border: 1px solid var(--border-1); }
.comp-toggle-inline.off .comp-toggle-knob { left: 4px; background: var(--text-3); }

/* Texto atenuado cuando toggle está apagado */
.comp-intro.off .sw.lit { color: var(--text-3); }
.comp-intro.off .comp-vs { color: var(--text-3); transition: color .4s; }

.comp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 52px;
  align-items: stretch;
}

.comp-card {
  border-radius: 16px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}

.comp-card--no {
  background: var(--bg-1);
  border: 1px solid var(--border-1);
}

.comp-card--yes {
  background: rgba(255,202,27,.06);
  border: 1px solid rgba(255,202,27,.22);
  box-shadow: 0 0 80px rgba(255,202,27,.06);
}

.comp-card-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255,202,27,.12) 0%, transparent 70%);
  transition: opacity .4s;
}

/* Card "Con TFactura" apagada */
.comp-card--yes.off {
  background: var(--bg-1);
  border-color: var(--border-1);
  box-shadow: none;
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.comp-card--yes.off .comp-card-glow { opacity: 0; }
.comp-card--yes.off .comp-label--yes {
  background: rgba(255,255,255,.05);
  color: var(--text-3);
  border-color: var(--border-1);
}
.comp-card--yes.off .comp-icon--yes {
  background: rgba(255,255,255,.05);
  border-color: var(--border-1);
  color: var(--text-3);
}
.comp-card--yes.off .comp-item { color: var(--text-3); }
.comp-card--yes { transition: background .4s, border-color .4s, box-shadow .4s; }

.comp-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 16px; border-radius: 100px; margin-bottom: 24px;
}

.comp-label--no  { background: rgba(255,255,255,.05); color: var(--text-3); border: 1px solid var(--border-1); }
.comp-label--yes { background: rgba(255,202,27,.12); color: var(--accent); border: 1px solid rgba(255,202,27,.28); }

.comp-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }

.comp-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-0);
  font-size: 15px; line-height: 1.6;
  color: var(--text-2);
}
.comp-item:last-child { border-bottom: none; padding-bottom: 0; }
.comp-card--yes .comp-item { color: rgba(255,255,255,.78); }

.comp-icon {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.comp-icon--no  { background: rgba(255,80,80,.08);   border: 1px solid rgba(255,80,80,.18);   color: rgba(255,100,100,.8); }
.comp-icon--yes { background: rgba(255,202,27,.1);   border: 1px solid rgba(255,202,27,.25);  color: var(--accent); }

@media (max-width: 720px) {
  .comp-grid { grid-template-columns: 1fr; }
  .comp-intro { font-size: clamp(34px, 8.5vw, 46px); }
}
