* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
  color: #111111;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* --- Header --- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  max-width: 1120px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}
.topbar-logo { height: 34px; flex-shrink: 0; }
.topbar nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: flex-end;
}
.topbar nav a {
  color: #444;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.topbar .nav-cta {
  background: #dc2626;
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 13.5px !important;
}

@media (max-width: 640px) {
  .topbar { justify-content: center; text-align: center; padding: 14px 16px; }
  .topbar-logo { height: 30px; }
  .topbar nav { width: 100%; justify-content: center; }
  .topbar nav a.nav-link { display: none; }

  .hero { padding: 32px 16px 24px; }
  .hero-content h1 { font-size: 26px; }
  .hero-content .lead { font-size: 15px; }
  .hero-visual { order: -1; margin-bottom: 8px; }
  .hero-visual .phone-frame { max-width: 220px; }

  .trust-strip { padding: 20px 16px; gap: 16px; }
  .how { padding: 40px 16px; }
  .section-title { font-size: 21px; }
  .faq { padding: 0 16px 56px; }
  .site-footer { padding: 28px 16px; }
}

/* --- Hero --- */
.hero {
  padding: 48px 24px 32px;
  max-width: 1120px;
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

.hero-visual { display: flex; justify-content: center; }
.hero-visual .phone-frame {
  background: #111;
  border-radius: 24px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.15);
  max-width: 320px;
}
.hero-img { width: 100%; border-radius: 16px; display: block; }

.hero-content { max-width: 500px; }
.eyebrow {
  color: #dc2626;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}
.hero-content h1 {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  color: #111;
}
.hero-content .lead {
  color: #555;
  font-size: 16.5px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.value-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.value-list li {
  font-size: 14.5px;
  color: #333;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}
.value-list .check {
  color: #16a34a;
  font-weight: 800;
  flex-shrink: 0;
}

.form-card {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 24px;
}
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lead-form input {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  color: #111;
  font-size: 15px;
  font-family: inherit;
}
.lead-form input::placeholder { color: #999; }
.lead-form input:focus { outline: none; border-color: #dc2626; }
.lead-form input[type="file"] {
  padding: 12px 16px;
  color: #555;
  font-size: 14px;
}
.lead-form input[type="file"]::file-selector-button {
  background: #111;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  margin-right: 12px;
  cursor: pointer;
  font-family: inherit;
}
.lead-form button {
  margin-top: 6px;
  padding: 16px;
  border: none;
  border-radius: 10px;
  background: #dc2626;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.lead-form button:hover { background: #b91c1c; }

.trust {
  margin-top: 16px;
  font-size: 13px;
  color: #888;
  text-align: center;
}
.form-error { color: #dc2626; margin-bottom: 12px; font-size: 14px; }

/* --- Trust strip --- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 28px 24px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.trust-item { font-size: 13.5px; color: #555; display: flex; align-items: center; gap: 8px; }

/* --- Cómo funciona --- */
.how { padding: 64px 24px; max-width: 1120px; margin: 0 auto; }
.section-title { text-align: center; font-size: 26px; font-weight: 800; margin: 0 0 12px; }
.section-sub { text-align: center; color: #666; font-size: 15px; margin-bottom: 44px; }
.how-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 800px) { .how-grid { grid-template-columns: repeat(3, 1fr); } }
.how-card {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
}
.how-num {
  width: 42px; height: 42px; border-radius: 50%;
  background: #dc2626; color: #fff; font-weight: 800; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.how-card h3 { font-size: 17px; margin: 0 0 8px; }
.how-card p { font-size: 14px; color: #666; line-height: 1.55; margin: 0; }

/* --- FAQ --- */
.faq { padding: 0 24px 80px; max-width: 760px; margin: 0 auto; }
.faq details {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 4px 20px;
  margin-bottom: 12px;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 15.5px;
  list-style: none;
  color: #111;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: #dc2626;
  flex-shrink: 0;
  transition: transform 0.15s ease;
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: #666; font-size: 14.5px; line-height: 1.6; }

/* --- Footer --- */
.site-footer {
  background: #fafafa;
  border-top: 1px solid #eee;
  padding: 36px 24px;
  text-align: center;
}
.footer-logo { height: 28px; margin-bottom: 12px; opacity: 0.9; }
.site-footer p { font-size: 12.5px; color: #999; margin: 0; }

/* --- Páginas simples (gracias / factura) --- */
.wrap {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.wrap .hero-inner { max-width: 460px; width: 100%; text-align: center; }
.wrap h1 { font-size: 28px; margin-bottom: 16px; font-weight: 800; color: #111; }
.wrap .lead { color: #555; font-size: 15.5px; margin-bottom: 24px; line-height: 1.55; }
