/* =====================================================================
   SCROLLO — Landing page styles
   Mobile-first. Sin frameworks. Variables CSS para marca.
   ===================================================================== */

:root {
  --bg: #111214;
  --bg-alt: #17181b;
  --bg-card: #1b1c1f;
  --text: #ffffff;
  --text-muted: #a9acb3;
  --accent: #c0ff00;
  --accent-soft: rgba(192, 255, 0, 0.12);
  --border: rgba(255, 255, 255, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1120px;
  --container-narrow: 720px;
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, button { font-family: inherit; }

/* Respeta la preferencia del usuario por menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Tipografía ---------- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.h1 {
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.08;
  font-size: clamp(2.1rem, 6vw, 3.75rem);
  letter-spacing: -0.01em;
}

.h2 {
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  max-width: 18ch;
}

h3 {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 46ch;
  margin-top: 20px;
}

.section-intro {
  color: var(--text-muted);
  max-width: 56ch;
  margin-top: 14px;
  font-size: 1.02rem;
}

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

p { color: var(--text-muted); }
.card p, .step p, .faq-item p { font-size: 0.96rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  transition: transform 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #111214;
}
.btn-primary:hover, .btn-primary:focus-visible { background: #d4ff40; }
.btn:active { transform: scale(0.97); }
.btn-large { padding: 16px 32px; font-size: 1.02rem; }
.btn-small { padding: 10px 18px; font-size: 0.85rem; }
.btn-full { width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 18, 20, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}
.logo {
  display: inline-flex;
  align-items: center;
}
.logo-img {
  height: 34px;
  width: auto;
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 12vw, 120px) clamp(56px, 9vw, 96px);
}
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.hero-glow-s {
  width: clamp(280px, 45vw, 620px);
  height: auto;
  display: block;
  opacity: 0.08;
  filter: blur(1px);
  transform: translateX(20%);
}
.hero-inner { position: relative; }
.hero-cta { margin-top: 34px; }
.microcopy {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Secciones ---------- */
.section {
  padding-block: clamp(56px, 9vw, 108px);
  border-top: 1px solid var(--border);
}
.section-alt { background: var(--bg-alt); }
.section-cta { background: var(--bg-alt); }

/* ---------- Grids / Cards ---------- */
.grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card-flat {
  background: transparent;
  border: 1px solid var(--border);
}

.icon { color: var(--accent); flex-shrink: 0; }
.icon-boxed {
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 9px;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
}
.card-flat .icon { margin-bottom: 12px; }

/* ---------- Qué hacemos (lista de inclusiones) ---------- */
.includes-list {
  margin-top: 40px;
  border-top: 1px solid var(--border);
}
.include-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 20px;
  row-gap: 12px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.include-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.include-item h3 {
  margin: 0;
  flex: 1 1 auto;
}
.include-item p {
  flex-basis: 100%;
  margin: 0;
}

/* ---------- Proceso (steps) ---------- */
.steps {
  display: grid;
  gap: 32px;
  margin-top: 48px;
}
.step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
}
.step-number {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}
.step .icon-boxed { margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 36px; display: grid; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 14px; }

/* ---------- Formulario ---------- */
.lead-form {
  margin-top: 40px;
  display: grid;
  gap: 18px;
}
.form-row { display: grid; gap: 6px; }
.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.form-row input,
.form-row select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-size: 0.98rem;
  width: 100%;
}
.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0ff00' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 40px;
}
.form-row-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-direction: row;
}
.form-row-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.form-row-checkbox label {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.form-row-checkbox a { color: var(--accent); text-decoration: underline; }

/* Honeypot: oculto de forma accesible pero presente en el DOM/tab order evitado */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-success {
  margin-top: 40px;
  text-align: center;
  padding: 40px 20px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.form-success svg { margin-inline: auto; margin-bottom: 12px; }
.form-success h3 { font-size: 1.3rem; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 44px 28px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 24px;
}
.footer-brand p { margin-top: 8px; max-width: 40ch; font-size: 0.9rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* ---------- CTA sticky (móvil) ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(17, 18, 20, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { gap: 6px; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

@media (min-width: 900px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .include-item {
    display: grid;
    grid-template-columns: 56px 240px 1fr;
    align-items: center;
    column-gap: 28px;
    padding: 30px 0;
  }
  .include-icon { width: 52px; height: 52px; }
  .include-item p { flex-basis: auto; max-width: 56ch; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -18px;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    opacity: 0.4;
    transform: translateY(-50%) rotate(45deg);
  }
  .hero-cta { display: flex; align-items: center; gap: 20px; }
  .microcopy { margin-top: 0; }
}

@media (min-width: 960px) {
  .sticky-cta { display: none; } /* el CTA del header cubre desktop */
}

@media (max-width: 959px) {
  .header-inner .btn-small { padding: 9px 16px; font-size: 0.8rem; }
}
