/* ═══════════════════════════════════════════════
   ATLAS AGENCY — v3
   Negro + Dorado · Inspirado en Funding Systems
═══════════════════════════════════════════════ */

:root {
  --black:      #0D0D0D;
  --black-2:    #141414;
  --black-3:    #1A1A1A;
  --black-card: #111111;
  --gold:       #C9A84C;
  --gold-h:     #DDB95A;
  --gold-dim:   #A88A3A;
  --white:      #FFFFFF;
  --gray:       #A8A8A8;
  --gray-d:     #555555;
  --border:     rgba(255,255,255,0.07);
  --border-g:   rgba(201,168,76,0.22);

  --r:  10px;
  --r2: 6px;
  --t:  0.2s ease;
  --mw: 1080px;
  --fh: 'Playfair Display', Georgia, serif;
  --fb: 'Inter', -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--fb);
  background: var(--black);
  color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  min-width: 0;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select { font-family: inherit; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 20px;
}

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

/* ── Breaks ── */
.br-desktop { display: none; }
@media (min-width: 768px) { .br-desktop { display: block; } }

/* ═══════════════════ BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fb);
  font-weight: 700;
  letter-spacing: 0.055em;
  border-radius: var(--r2);
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  cursor: pointer;
  white-space: nowrap;
  border: none;
  line-height: 1;
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
}
.btn-gold:hover {
  background: var(--gold-h);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201,168,76,0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.18);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-sm  { padding: 10px 20px; font-size: 0.8rem; }
.btn-lg  { padding: 15px 32px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ═══════════════════ NAVBAR */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(13,13,13,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,168,76,0.08);
  padding: 12px 0;
  transition: padding var(--t);
}
.navbar.scrolled { padding: 8px 0; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Logo SVG ── */
.logo-link { display: block; line-height: 0; }
.logo-svg  { height: 42px; width: auto; }

/* ── Contador en vivo ── */
.nav-live {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0   rgba(34,197,94,0.5); }
  60%  { box-shadow: 0 0 0 6px rgba(34,197,94,0);   }
  100% { box-shadow: 0 0 0 0   rgba(34,197,94,0);   }
}

.live-text {
  font-size: 0.8rem;
  color: var(--gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-text strong { color: var(--white); font-weight: 600; }

/* ── Popup social proof ── */
.viewer-popup {
  position: fixed;
  bottom: 24px;
  left: 20px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--black-3);
  border: 1px solid var(--border-g);
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  max-width: 240px;
}
.viewer-popup.vp-show {
  opacity: 1;
  transform: translateY(0);
}

.vp-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(201,168,76,0.12);
  border: 1px solid var(--border-g);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.vp-body {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.4;
}
.vp-body strong { color: var(--white); font-weight: 600; }

.nav-cta { display: none; }
@media (min-width: 540px) { .nav-cta { display: inline-flex; } }

/* ═══════════════════ SECTIONS */
section { padding: 80px 0; }
.section-alt  { background: var(--black-2); }
.section-main { background: var(--black); }

h2 {
  font-family: var(--fh);
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-g);
  background: rgba(201,168,76,0.07);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-desc {
  font-size: 0.97rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.75;
}

.sub-cta {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--gray-d);
  letter-spacing: 0.04em;
}

.gold-line {
  width: 48px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 44px;
}

/* ═══════════════════ HERO */
.hero {
  padding: 148px 0 88px;
  text-align: center;
  background: var(--black);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 100px;
  border: 1px solid var(--border-g);
  background: rgba(201,168,76,0.06);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--fh);
  font-size: clamp(1.9rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.13;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.gold { color: var(--gold); }

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.75;
}
.hero-sub strong { color: var(--white); }

.hero-trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
}
@media (min-width: 640px) {
  .hero-trust {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 20px;
  }
}
.trust-item {
  font-size: 0.84rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 6px;
}
.chk { color: var(--gold); font-weight: 700; }

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
@media (min-width: 480px) {
  .hero-ctas { flex-direction: row; justify-content: center; }
}

.hero-note {
  font-size: 0.78rem;
  color: var(--gray-d);
}

/* ═══════════════════ PROBLEMA */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 36px 0 32px;
  text-align: left;
}
@media (max-width: 560px) {
  .pain-grid { grid-template-columns: 1fr; }
}

.pain-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 20px;
  transition: border-color var(--t);
}
.pain-card:hover { border-color: rgba(201,168,76,0.16); }

.pain-x {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  color: #F87171;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.pain-card h3 { font-size: 0.93rem; font-weight: 700; margin-bottom: 7px; }
.pain-card p  { font-size: 0.84rem; color: var(--gray); line-height: 1.65; }

.reframe {
  background: var(--black-card);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 22px 26px;
  margin: 0 0 32px;
  text-align: left;
}
.reframe p { font-size: 1rem; line-height: 1.7; }
.reframe strong { color: var(--gold); }

/* ═══════════════════ SOLUCIÓN */
.steps-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  margin: 44px 0 40px;
  flex-wrap: wrap;
}

.step-card {
  background: var(--black-3);
  border: 1px solid var(--border-g);
  border-radius: var(--r);
  padding: 32px 24px;
  flex: 1;
  min-width: 210px;
  max-width: 290px;
  text-align: left;
  transition: border-color var(--t), transform var(--t);
}
.step-card:hover {
  border-color: rgba(201,168,76,0.4);
  transform: translateY(-2px);
}
@media (max-width: 720px) {
  .step-card { max-width: 100%; width: 100%; }
  .step-sep  { display: none; }
}

.step-n {
  font-family: var(--fh);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.28;
  line-height: 1;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 10px; }
.step-card p  { font-size: 0.85rem; color: var(--gray); line-height: 1.7; }

.step-sep {
  font-size: 1.4rem;
  color: var(--gold);
  opacity: 0.35;
  align-self: center;
  flex-shrink: 0;
  padding: 0 4px;
}

/* ═══════════════════ PRUEBA SOCIAL */
.proof-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 16px;
}

.proof-item { padding: 0 32px; }
.proof-n {
  font-family: var(--fh);
  font-size: clamp(1.55rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.proof-l { font-size: 0.82rem; color: var(--gray); line-height: 1.55; }
.proof-sep {
  width: 1px; height: 56px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

@media (max-width: 680px) {
  .proof-row  { flex-direction: column; gap: 24px; }
  .proof-sep  { width: 40px; height: 1px; }
  .proof-item { padding: 0; }
}

/* ═══════════════════ PARA QUIÉN */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 40px 0;
  text-align: left;
}

.aud-card {
  background: var(--black-3);
  border: 1px solid var(--border-g);
  border-radius: var(--r2);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: border-color var(--t), transform var(--t);
}
.aud-card:hover {
  border-color: rgba(201,168,76,0.38);
  transform: translateY(-1px);
}
.aud-i { font-size: 1.2rem; flex-shrink: 0; }

.qualifier {
  background: var(--black-3);
  border: 1px solid var(--border-g);
  border-radius: var(--r);
  padding: 22px 28px;
  max-width: 600px;
  margin: 0 auto;
}
.qualifier p { font-size: 0.93rem; color: var(--gray); line-height: 1.75; }
.qualifier strong { color: var(--white); }

/* ═══════════════════ AUTORIDAD */
.authority-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 40px;
  text-align: left;
}

.auth-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 22px;
  transition: border-color var(--t), transform var(--t);
}
.auth-card:hover {
  border-color: rgba(201,168,76,0.22);
  transform: translateY(-2px);
}
.auth-i  { font-size: 1.7rem; margin-bottom: 16px; }
.auth-card h3 { font-size: 0.93rem; font-weight: 700; margin-bottom: 9px; }
.auth-card p  { font-size: 0.84rem; color: var(--gray); line-height: 1.7; }

/* ═══════════════════ FORMULARIO */
.form-section { background: var(--black); padding: 80px 0; }

.form-header {
  text-align: center;
  margin-bottom: 36px;
}
.form-header h2 { margin-bottom: 10px; }
.form-header p { font-size: 0.93rem; color: var(--gray); }

.form-box {
  max-width: 600px;
  margin: 0 auto;
  background: var(--black-3);
  border: 1px solid var(--border-g);
  border-radius: 14px;
  padding: 36px 36px 32px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
}
@media (max-width: 520px) {
  .form-box { padding: 26px 18px 24px; border-radius: 10px; }
}

/* Progreso */
.f-progress { margin-bottom: 28px; }
.f-progress-track {
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.f-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
}
.f-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--gray-d);
  letter-spacing: 0.04em;
}

/* Steps */
.f-step { display: none; animation: stepIn 0.28s ease; }
.f-step.active { display: block; }

@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.f-q {
  font-family: var(--fh);
  font-size: clamp(1rem, 2.8vw, 1.25rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}
.f-note {
  font-size: 0.76rem;
  color: var(--gray-d);
  font-style: italic;
  margin-bottom: 18px;
}

/* Opciones */
.f-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.f-opts.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 440px) { .f-opts.grid2 { grid-template-columns: 1fr; } }

.f-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: var(--black-card);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: var(--r2);
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
  position: relative;
  user-select: none;
}
.f-opt:hover {
  border-color: rgba(201,168,76,0.35);
  background: rgba(201,168,76,0.03);
}
.f-opt.sel {
  border-color: var(--gold);
  background: rgba(201,168,76,0.07);
}
.f-opt input[type="radio"] {
  position: absolute; opacity: 0; width: 0; height: 0;
}

.f-opt-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.f-ico { font-size: 1.15rem; flex-shrink: 0; }
.f-opt-inner span:last-child {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
}

.f-chk {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: transparent;
  flex-shrink: 0;
  transition: all var(--t);
}
.f-opt.sel .f-chk {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

/* Campos de texto */
.f-field { margin-bottom: 16px; }
.f-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.f-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--black-card);
  border: 1.5px solid rgba(255,255,255,0.09);
  border-radius: var(--r2);
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--t);
  -webkit-appearance: none;
  min-width: 0;
}
.f-input::placeholder { color: var(--gray-d); }
.f-input:focus { border-color: var(--gold); }
.f-input.err   { border-color: #F87171; }

.f-select {
  width: 100%;
  padding: 12px 36px 12px 14px;
  background: var(--black-card);
  border: 1.5px solid rgba(255,255,255,0.09);
  border-radius: var(--r2);
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--t);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23555'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  min-width: 0;
}
.f-select:focus { border-color: var(--gold); }
.f-select option { background: var(--black-3); color: var(--white); }

.phone-row { display: flex; gap: 8px; width: 100%; }
.f-code { width: 120px; flex-shrink: 0; }
.f-tel  { flex: 1; min-width: 0; }

.f-disclaimer {
  text-align: center;
  font-size: 0.72rem;
  color: var(--gray-d);
  margin-top: 10px;
  letter-spacing: 0.04em;
}

/* Btn bloque con margen */
.btn-block { margin-top: 4px; }

/* Success */
.f-success { text-align: center; padding: 12px 0; }
.f-success-ring {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: rgba(201,168,76,0.08);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  animation: popIn 0.45s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.f-success-chk { font-size: 1.6rem; color: var(--gold); font-weight: 700; }
.f-success h3 {
  font-family: var(--fh);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.f-success > p {
  font-size: 0.9rem; color: var(--gray); line-height: 1.7; margin-bottom: 22px;
}
.f-next-steps {
  background: var(--black-card);
  border-radius: var(--r2);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  text-align: left;
  margin-bottom: 16px;
}
.f-ns {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 0.86rem; color: var(--gray);
}
.f-ns-n {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.f-reserva { font-size: 0.77rem; color: var(--gray-d); font-style: italic; }

/* ═══════════════════ FAQ */
.faq-list {
  max-width: 680px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.faq-item {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  transition: border-color var(--t);
}
.faq-item:hover { border-color: rgba(201,168,76,0.15); }

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 20px;
  font-size: 0.91rem;
  font-weight: 600;
  color: var(--white);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--t);
}
.faq-btn:hover { color: var(--gold); }
.faq-btn[aria-expanded="true"] { color: var(--gold); }

.faq-ico {
  font-size: 0.9rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform var(--t);
}
.faq-btn[aria-expanded="true"] .faq-ico { transform: rotate(180deg); }

.faq-body { display: none; padding: 0 20px 16px; }
.faq-body.open { display: block; }
.faq-body p {
  font-size: 0.86rem; color: var(--gray); line-height: 1.8;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ═══════════════════ CTA FINAL */
.final-cta { padding: 88px 0; }
.final-cta h2 { margin-bottom: 14px; }
.final-cta .section-desc { margin-bottom: 32px; }

/* ═══════════════════ FOOTER */
.footer {
  padding: 44px 0;
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.footer-logo-svg { height: 54px; width: auto; }
.footer-legal { font-size: 0.74rem; color: var(--gray-d); max-width: 500px; line-height: 1.65; }
.footer-copy  { font-size: 0.7rem; color: rgba(255,255,255,0.16); }

/* ═══════════════════ FADE IN */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════ RESPONSIVE FINE-TUNING */
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .hero { padding: 112px 0 68px; }
  .final-cta { padding: 64px 0; }
}

@media (max-width: 480px) {
  h2 { font-size: 1.55rem; }
  .hero h1 { font-size: 1.85rem; }
  .hero-badge { font-size: 0.72rem; padding: 6px 14px; }
  .audience-grid { grid-template-columns: 1fr; }
  .authority-grid { grid-template-columns: 1fr; }
}
