/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --fg: hsl(240, 33%, 14%);
  --primary: hsl(211, 100%, 40%);
  --primary-fg: #ffffff;
  --muted: hsl(215, 16%, 47%);
  --accent: hsl(18, 100%, 60%);
  --accent-fg: #ffffff;
  --border: hsl(220, 13%, 91%);
  --section-light: hsl(210, 33%, 97%);
  --cta-bg: hsl(220, 50%, 22%);
  --destructive: hsl(0, 84%, 60%);
  --radius: 0.5rem;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hidden { display: none !important; }

/* ===== Navbar ===== */
.navbar { padding: 1.5rem; }
.logo { height: 2.5rem; }

/* ===== Hero ===== */
.hero { padding: 1rem 1.5rem 5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.hero-title {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0rem;
}
.hero-form-wrapper { padding-top: 1rem; }
.hero-image { display: flex; justify-content: center; }
.hero-image img { max-width: 36rem; width: 100%;     margin-right: 20px;
 }

/* ===== Phone Form (hero) ===== */
.phone-form { max-width: 32rem; }
.phone-label {
  display: block;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.phone-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: box-shadow .2s;
}
.phone-input:focus {
  box-shadow: 0 0 0 2px var(--primary);
  border-color: transparent;
}
.phone-error {
  color: var(--destructive);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}
.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-fg);
  border: none;
  border-radius: var(--radius);
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .2s;
  margin-top: 1rem;
  white-space: nowrap;
}
.btn-cta:hover { opacity: 0.9; }
.btn-cta:disabled { opacity: 0.5; cursor: not-allowed; }
/* ===== PIN Step ===== */
.pin-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.pin-desc { color: var(--muted); font-size: 1rem; margin-bottom: 1.5rem; }
.pin-input { text-align: center; font-size: 1.75rem; letter-spacing: 0.5em; }
/* ===== Features Banner ===== */
.features-banner { overflow: hidden; }
.features-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
}
.features-text {
  background: var(--primary);
  padding: 4rem 4rem 4rem 4rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.features-text-inner { max-width: 36rem; }
.features-title {
  color: var(--primary-fg);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}
.features-desc {
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
}
.features-image {
  min-height: 250px;
  background-size: cover;
  background-position: center;
}

/* ===== How It Works ===== */
.how-it-works { padding: 4rem 1.5rem 6rem; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 56rem;
  margin: 0 auto;
}
.step { text-align: center; }
.step-icon { height: 4rem; width: 4rem; margin: 0 auto 1rem; }
.step-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.75rem; }
.step-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ===== Advantages ===== */
.advantages { background: var(--section-light); padding: 4rem 1.5rem 6rem; }
.advantages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.advantages-list { display: flex; flex-direction: column; gap: 1.5rem; }
.advantage-item { display: flex; align-items: flex-start; gap: 1rem; }
.bullet-icon { width: 2rem; height: 2rem; margin-top: 0.125rem; flex-shrink: 0; }
.advantage-item span { font-size: 1rem; line-height: 1.6; }
.advantages-image { display: flex; justify-content: center; }
.advantages-image img { max-width: 28rem; width: 100%; border-radius: var(--radius); }

/* ===== Factura Hoy ===== */
.factura-hoy { padding: 4rem 1.5rem 6rem; }
.factura-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.factura-image { display: flex; justify-content: center; }
.factura-image img { max-width: 24rem; width: 100%; }
.factura-content { display: flex; flex-direction: column; gap: 1rem; }
.factura-title { font-size: 2rem; font-weight: 700; }
.factura-desc { color: var(--muted); line-height: 1.7; }

/* ===== Second CTA ===== */
.second-cta {
  background: var(--cta-bg);
  padding: 4rem 1.5rem 6rem;
}
.cta-inner { max-width: 42rem; margin: 0 auto; text-align: center; }
.cta-title {
  color: var(--primary-fg);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 2rem;
}
.cta-form { width: 100%; }
.cta-label {
  display: block;
  color: var(--primary-fg);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  text-align: left;
}
.cta-row {
  display: flex;
  gap: 0.75rem;
}
.cta-input { flex: 1; border: none; }
.cta-row .btn-cta { margin-top: 0; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-grid,
  .advantages-grid,
  .factura-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
  .hero-image { order: 1; }
  .features-grid { grid-template-columns: 1fr; }
  .features-image { min-height: 250px; }
}

@media (max-width: 768px) {
  .container {padding: 0}
  .steps-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-row { flex-direction: column; }
  .section-title { font-size: 1.75rem; }
  .hero-title { font-size: 2rem; }
  .features-text { padding: 2.5rem 1.5rem; }
}
