/* ═══════════════════════════════════════════════════════
   QaXpert LITE — style.css
   Ultra-ligero: sin animaciones costosas, mobile-first
   ═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:   #01C96E;
  --green-d: #019952;
  --bg:      #0b0f0d;
  --bg-card: #111712;
  --border:  #1f2e24;
  --text:    #e8f0eb;
  --muted:   #7a9e87;
  --radius:  12px;
  --font:    'Montserrat', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── NAVBAR ─────────────────────────────────────── */
.navbar {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
}

.logo { text-decoration: none; font-size: 1.2rem; font-weight: 800; letter-spacing: -.5px; }
.logo-qa    { color: var(--green); }
.logo-chevron { color: var(--muted); margin: 0 1px; }
.logo-xpert { color: var(--text); }

/* ── PAGE LAYOUT ─────────────────────────────────── */
.page-outer {
  width: 100%;
  min-height: calc(100vh - 57px);
}

/* Mobile: columna única */
.page-grid {
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 48px;
  gap: 0;
}

.col-left, .col-right { width: 100%; }

/* Desktop: dos columnas lado a lado */
@media (min-width: 900px) {
  .page-outer {
    display: flex;
    align-items: stretch;
  }

  .page-grid {
    flex-direction: row;
    align-items: flex-start;
    max-width: 1100px;
    padding: 0 40px 64px;
    gap: 60px;
  }

  .col-left {
    flex: 1 1 0;
    padding-top: 40px;
    position: sticky;
    top: 80px;
    align-self: flex-start;
  }

  .col-right {
    flex: 0 0 420px;
    padding-top: 40px;
  }
}

/* ── HERO ────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 36px 0 28px;
}

.hero-badge {
  display: inline-block;
  background: rgba(1,201,110,.12);
  color: var(--green);
  border: 1px solid rgba(1,201,110,.25);
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 5px 14px;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -.5px;
}

.highlight { color: var(--green); }

.hero-sub {
  font-size: .95rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.hero-sub strong { color: var(--text); }

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-size: .78rem;
  color: var(--muted);
}
.trust-pills span {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
}

/* ── VIDEO SECTION ────────────────────────────────── */
.video-section {
  margin: 10px 0 24px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.video-container {
  width: 100%;
  max-width: 320px; /* Tamaño ideal para móvil y no exagerado en desktop */
  aspect-ratio: 9 / 16;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (min-width: 900px) {
  .video-section {
    justify-content: flex-start;
    margin-top: 20px;
  }
}

/* ── GUARANTEE SECTION ─────────────────────────────── */
.guarantee-box {
  background: rgba(1, 201, 110, 0.03);
  border: 1px dashed rgba(1, 201, 110, 0.3);
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.guarantee-box span {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.guarantee-box p {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
}

.guarantee-box strong {
  color: var(--green);
}

/* ── FORM CARD ───────────────────────────────────── */
.form-section { margin-top: 8px; }

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 22px;
}

.form-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

.form-sub {
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 22px;
}

.field-group { margin-bottom: 16px; }

.field-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: .03em;
}

.field-group input,
.field-group select {
  width: 100%;
  background: #0e1a12;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: .95rem;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
  appearance: none;
}

.field-group input::placeholder { color: #3d5945; }
.field-group input:focus,
.field-group select:focus { border-color: var(--green); }
.field-group input.invalid,
.field-group select.invalid { border-color: #ff6b6b; }

/* WhatsApp con prefijo visual */
.wa-wrap {
  display: flex;
  align-items: center;
  background: #0e1a12;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.wa-wrap:focus-within { border-color: var(--green); }
.wa-wrap.invalid { border-color: #ff6b6b; }

.wa-prefix {
  padding: 12px 10px 12px 14px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
  min-width: 54px;
  text-align: center;
  border-right: 1px solid var(--border);
  background: rgba(1,201,110,.05);
  transition: min-width .15s;
}

.wa-wrap input {
  border: none;
  background: transparent;
  border-radius: 0;
  padding-left: 10px;
}
.wa-wrap input:focus { border-color: transparent; }

/* ── SUBMIT BUTTON ───────────────────────────────── */
.btn-submit {
  width: 100%;
  background: var(--green);
  color: #000;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 800;
  padding: 15px;
  cursor: pointer;
  margin-top: 8px;
  letter-spacing: .01em;
  transition: background .2s, transform .1s;
}
.btn-submit:hover  { background: var(--green-d); }
.btn-submit:active { transform: scale(.98); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

.btn-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.privacy {
  text-align: center;
  font-size: .75rem;
  color: var(--muted);
  margin-top: 10px;
}

.form-server-error {
  color: #ff6b6b;
  font-size: .85rem;
  text-align: center;
  margin-top: 8px;
}

/* ── PROOF ───────────────────────────────────────── */
.proof {
  text-align: center;
  padding: 32px 0 0;
}
.stars { color: var(--green); font-size: 1.1rem; margin-bottom: 10px; }
.proof-quote {
  font-size: .95rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 6px;
}
.proof-author { font-size: .8rem; color: var(--muted); }

/* Desktop: testimonios en tarjetas en la columna izquierda */
.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  text-align: left;
}
.testi-card .stars { font-size: .9rem; margin-bottom: 8px; }
.testi-card .proof-quote { font-size: .88rem; margin-bottom: 8px; }
.testi-card .proof-author { font-size: .78rem; }

/* Visibilidad: por defecto móvil muestra proof-mobile, oculta proof-desktop */
.proof-desktop { display: none; }
.proof-mobile  { display: block; }

@media (min-width: 900px) {
  .proof-desktop { display: block; padding-top: 28px; }
  .proof-mobile  { display: none; }

  /* En desktop el hero queda alineado a la izquierda */
  .hero { text-align: left; }
  .trust-pills { justify-content: flex-start; }
}


/* ── SUCCESS OVERLAY ─────────────────────────────── */
.success-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
  z-index: 999;
  padding: 24px;
}
.success-overlay.show { opacity: 1; pointer-events: all; }

.success-card {
  background: var(--bg-card);
  border: 1px solid var(--green);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  max-width: 340px;
  width: 100%;
}
.success-icon {
  width: 56px; height: 56px;
  background: var(--green);
  color: #000;
  border-radius: 50%;
  font-size: 1.6rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.success-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.success-card p  { font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
