/* Carro Hoy — hoja de estilos */

:root {
  --color-bg: #0a0d0c;
  --color-bg-alt: #121614;
  --color-surface: #191f1c;
  --color-border: #2b332f;
  --color-text: #f2f4f3;
  --color-text-muted: #a4aca8;
  --color-accent: #1fb672;
  --color-accent-dark: #16965c;
  --color-gold: #e6b94d;
  --color-silver: #c7cbd1;
  --radius: 10px;
  --max-width: 1180px;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 12, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.2px;
}

.brand .brand-hoy { color: var(--color-accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--color-surface);
  color: var(--color-text);
}

.nav-cta {
  background: var(--color-accent) !important;
  color: #fff !important;
}
.nav-cta:hover { background: var(--color-accent-dark) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--color-text);
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    padding: 10px 20px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 20px 80px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 15%, rgba(31, 182, 114, 0.22), transparent 55%),
    radial-gradient(circle at 82% 78%, rgba(230, 185, 77, 0.12), transparent 50%),
    linear-gradient(180deg, #0a0d0c, #0d1210 60%, #0a0d0c);
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(31, 182, 114, 0.12);
  border: 1px solid rgba(31, 182, 114, 0.4);
  color: var(--color-accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin: 0 0 16px;
  font-weight: 700;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .accent { color: var(--color-accent); }

.hero p {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.12s, background 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--color-accent); color: #06140d; }
.btn-primary:hover { background: var(--color-accent-dark); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover { border-color: var(--color-accent); }

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.trust-chips {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 720px;
  margin: 0 auto;
}

.trust-chip {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
}

.trust-chip strong { color: var(--color-text); }

/* ---------- Sections ---------- */

section { padding: 68px 20px; }

.section-title {
  text-align: center;
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-sub {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 auto 44px;
}

.alt-bg { background: var(--color-bg-alt); }

/* ---------- Steps (Cómo Funciona) ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  counter-reset: step;
}

.step-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(31, 182, 114, 0.15);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 16px;
}

.step-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.step-card p { margin: 0; color: var(--color-text-muted); font-size: 0.94rem; }

/* ---------- Info blocks ---------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.info-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px;
}

.info-block .info-icon { font-size: 1.6rem; margin-bottom: 12px; display: block; }
.info-block h3 { margin-top: 0; margin-bottom: 8px; color: var(--color-silver); }
.info-block p { margin: 0; color: var(--color-text-muted); font-size: 0.94rem; }

/* ---------- Lead form (hero of the page) ---------- */

.lead-section {
  background:
    radial-gradient(circle at 85% 20%, rgba(230, 185, 77, 0.08), transparent 45%),
    var(--color-bg-alt);
}

.lead-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .lead-layout { grid-template-columns: 1fr; }
}

.lead-copy h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 0; }
.lead-copy p { color: var(--color-text-muted); }

.lead-points { list-style: none; padding: 0; margin: 24px 0 0; }
.lead-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.lead-points .check {
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
}

.form-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
}

.form-row { margin-bottom: 18px; }

.form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 560px) {
  .two-col { grid-template-columns: 1fr; }
}

.payment-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 560px) {
  .payment-choice { grid-template-columns: 1fr; }
}

.payment-option {
  position: relative;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.payment-option:has(input:checked) {
  border-color: var(--color-accent);
  background: rgba(31, 182, 114, 0.08);
}

.payment-option input { position: absolute; top: 14px; right: 14px; width: auto; }

.payment-option .opt-title { font-weight: 600; display: block; margin-bottom: 4px; }
.payment-option .opt-sub { font-size: 0.82rem; color: var(--color-text-muted); }

.honeypot-field { position: absolute; left: -9999px; top: -9999px; }

.form-success {
  display: none;
  background: rgba(31, 182, 114, 0.12);
  border: 1px solid var(--color-accent);
  color: #7fe0b3;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 18px;
}

.form-success.show { display: block; }

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 14px;
  text-align: center;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 4px 20px;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  color: var(--color-accent);
  font-size: 1.3rem;
  font-weight: 400;
  margin-left: 12px;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item p {
  margin: 0 0 18px;
  color: var(--color-text-muted);
  font-size: 0.94rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 40px 20px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto 24px;
}

.footer-grid h4 { color: var(--color-silver); margin: 0 0 12px; font-size: 1rem; }
.footer-grid p, .footer-grid a { color: var(--color-text-muted); font-size: 0.9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a:hover { color: var(--color-text); }

.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.2rem; margin-bottom: 10px; }
.footer-brand .brand-hoy { color: var(--color-accent); }

.placeholder-note {
  display: inline-block;
  background: rgba(230, 185, 77, 0.12);
  border: 1px dashed var(--color-gold);
  color: var(--color-gold);
  font-size: 0.72rem;
  padding: 1px 7px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.footer-bottom {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
