/* ============================================================
   ApexSignal – styles.css
   ============================================================ */

:root {
  --gold: #C9A84C;
  --gold-dim: #7a6130;
  --gold-glow: rgba(201,168,76,0.18);
  --bg: #080A0E;
  --bg2: #0E1118;
  --bg3: #131720;
  --surface: rgba(255,255,255,0.04);
  --border: rgba(201,168,76,0.18);
  --text: #F0EDE6;
  --muted: #7A7975;
  --green: #2ECC71;
  --red: #E74C3C;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 6%;
  background: rgba(8,10,14,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: 0.06em; color: var(--gold); }
.nav-cta {
  background: var(--gold); color: #000; font-weight: 500; font-size: 0.85rem;
  padding: 0.55rem 1.4rem; border-radius: 4px; text-decoration: none;
  letter-spacing: 0.04em; transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* NAV sesión */
.nav-user-name { font-size: 0.82rem; color: var(--muted); }
.nav-user-name strong { color: var(--text); }
.nav-btn-logout {
  font-size: 0.82rem; color: var(--muted); background: none; border: none;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  padding: 0.45rem 0.9rem; border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.2s, color 0.2s;
}
.nav-btn-logout:hover { border-color: var(--gold); color: var(--gold); }
#nav-auth { display: none; align-items: center; gap: 0.8rem; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 7rem 6% 5rem;
  position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -55%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(201,168,76,0.1); border: 1px solid var(--border);
  border-radius: 100px; padding: 0.35rem 1rem;
  font-size: 0.78rem; letter-spacing: 0.08em; color: var(--gold);
  margin-bottom: 2rem; text-transform: uppercase;
}
.hero-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

h1 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: 1.05;
  letter-spacing: -0.02em; margin-bottom: 1.5rem;
}
h1 em { font-style: normal; color: var(--gold); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted); font-weight: 300;
  max-width: 520px; line-height: 1.7; margin-bottom: 2.8rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.btn-primary {
  background: var(--gold); color: #000; font-weight: 500;
  padding: 0.9rem 2.2rem; border-radius: 5px; text-decoration: none;
  font-size: 0.95rem; letter-spacing: 0.03em; transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-ghost {
  border: 1px solid var(--border); color: var(--text);
  padding: 0.9rem 2.2rem; border-radius: 5px; text-decoration: none;
  font-size: 0.95rem; letter-spacing: 0.03em; transition: border-color 0.2s;
}
.btn-ghost:hover { border-color: var(--gold); }

/* ── CHART PREVIEW ── */
.chart-preview {
  margin: 4rem auto 0; max-width: 900px; width: 100%;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 80px rgba(201,168,76,0.08);
  position: relative; z-index: 1;
}
.chart-preview img { width: 100%; display: block; }
.chart-preview-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

/* ── STATS ── */
#stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--border);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stat-item { background: var(--bg); padding: 2.5rem 2rem; text-align: center; }
.stat-num { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 2.6rem; color: var(--gold); display: block; }
.stat-label { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.3rem; }

/* ── FEATURES ── */
#features { padding: 7rem 6%; max-width: 1100px; margin: 0 auto; }
.section-tag { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.section-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.15; margin-bottom: 1rem; }
.section-sub { color: var(--muted); font-size: 1rem; max-width: 460px; line-height: 1.7; margin-bottom: 3.5rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 2rem;
  transition: border-color 0.25s, background 0.25s;
}
.feature-card:hover { border-color: var(--gold); background: var(--gold-glow); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 8px;
  background: rgba(201,168,76,0.12); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1.2rem;
}
.feature-card h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 0.6rem; }
.feature-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

/* ── HOW IT WORKS ── */
#how { padding: 7rem 6%; background: var(--bg2); }
.how-inner { max-width: 1100px; margin: 0 auto; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-top: 3.5rem; }
.step { position: relative; }
.step-num { font-family: 'Syne', sans-serif; font-size: 3.5rem; font-weight: 800; color: rgba(201,168,76,0.12); line-height: 1; margin-bottom: 1rem; }
.step h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

/* ── ABOUT / SEO CONTENT ── */
#about { padding: 7rem 6%; max-width: 1100px; margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 2rem; } }
.about-text h2 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.2rem; line-height: 1.2; }
.about-text p { color: var(--muted); font-size: 0.95rem; line-height: 1.8; margin-bottom: 1rem; }
.about-text p strong { color: var(--text); }
.about-list { list-style: none; margin-top: 1.5rem; }
.about-list li { color: var(--muted); font-size: 0.9rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); display: flex; align-items: flex-start; gap: 0.6rem; line-height: 1.6; }
.about-list li:last-child { border-bottom: none; }
.about-list li::before { content: '→'; color: var(--gold); font-weight: 700; flex-shrink: 0; margin-top: 0.05rem; }

/* ── MARKETS ── */
#markets { padding: 7rem 6%; background: var(--bg2); }
.markets-inner { max-width: 1100px; margin: 0 auto; }
.markets-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 3rem; }
.market-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.5rem; text-align: center;
  transition: border-color 0.25s;
}
.market-card:hover { border-color: var(--gold); }
.market-icon { font-size: 2rem; margin-bottom: 0.8rem; display: block; }
.market-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.4rem; }
.market-desc { color: var(--muted); font-size: 0.8rem; line-height: 1.5; }

/* ── TESTIMONIALS ── */
#testimonials { padding: 7rem 6%; max-width: 1100px; margin: 0 auto; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.testimonial-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem;
  transition: border-color 0.25s;
}
.testimonial-card:hover { border-color: var(--gold); }
.testimonial-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 1rem; letter-spacing: 0.1em; }
.testimonial-text { color: var(--muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-text::before { content: '"'; color: var(--gold); font-size: 1.5rem; line-height: 0; vertical-align: -0.4em; margin-right: 0.2rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.8rem; }
.testimonial-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(201,168,76,0.15); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: var(--gold); flex-shrink: 0;
}
.testimonial-name { font-weight: 500; font-size: 0.88rem; }
.testimonial-role { color: var(--muted); font-size: 0.78rem; margin-top: 0.1rem; }

/* ── DASHBOARD PREVIEW ── */
#dashboard-section { padding: 7rem 6%; max-width: 1100px; margin: 0 auto; }
.dashboard-mockup {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 12px;
  padding: 2rem; margin-top: 3rem; overflow: hidden;
}
.dash-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.dash-dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th {
  background: rgba(201,168,76,0.08); color: var(--gold);
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border);
}
.dash-table td { padding: 0.8rem 1rem; font-size: 0.88rem; border-bottom: 1px solid rgba(255,255,255,0.04); }
.dash-table tr:last-child td { border-bottom: none; }
.up { color: var(--green); font-weight: 500; }
.down { color: var(--red); font-weight: 500; }
.flat { color: var(--muted); }
.dash-row-fade { animation: dashFadeIn 0.4s ease; }
@keyframes dashFadeIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

/* ── PRICING ── */
#pricing { padding: 7rem 6%; background: var(--bg2); }
.pricing-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.pricing-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 3.5rem; text-align: left; }
.pricing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 2.5rem 2rem; position: relative;
  transition: transform 0.2s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured { border-color: var(--gold); background: rgba(201,168,76,0.05); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #000; font-size: 0.7rem; font-weight: 700;
  padding: 0.3rem 1rem; border-radius: 100px; letter-spacing: 0.08em; white-space: nowrap;
}
.plan-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem; }
.plan-price { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 3rem; line-height: 1; margin-bottom: 0.3rem; }
.plan-price sup { font-size: 1.2rem; vertical-align: super; margin-right: 2px; }
.plan-period { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.8rem; }
.plan-features { list-style: none; margin-bottom: 2rem; }
.plan-features li {
  padding: 0.6rem 0; font-size: 0.9rem; color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; gap: 0.6rem;
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before { content: '✓'; color: var(--gold); font-weight: 700; }
.plan-features li.inactive { opacity: 0.4; }
.plan-features li.inactive::before { content: '–'; color: var(--muted); }
.btn-plan {
  display: block; text-align: center; padding: 0.9rem;
  border-radius: 5px; font-size: 0.9rem; font-weight: 500; text-decoration: none;
  letter-spacing: 0.03em; transition: opacity 0.2s;
}
.btn-plan-outline { border: 1px solid var(--border); color: var(--text); }
.btn-plan-outline:hover { border-color: var(--gold); }
.btn-plan-gold { background: var(--gold); color: #000; }
.btn-plan-gold:hover { opacity: 0.85; }

/* ── FAQ ── */
#faq { padding: 7rem 6%; max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 500;
  padding: 1.4rem 0; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q .icon { color: var(--gold); font-size: 1.3rem; transition: transform 0.25s; flex-shrink: 0; }
.faq-q.open .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; padding-bottom: 1.4rem; }

/* ── CTA FINAL ── */
#cta-final {
  padding: 8rem 6%; text-align: center;
  background: radial-gradient(ellipse at center top, rgba(201,168,76,0.08) 0%, transparent 65%), var(--bg);
}
#cta-final h2 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(2rem,4vw,3.5rem); margin-bottom: 1.2rem; }
#cta-final p { color: var(--muted); font-size: 1rem; margin-bottom: 2.5rem; }

/* ── FOOTER ── */
footer {
  padding: 2.5rem 6%; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.82rem; color: var(--muted);
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--gold); }

/* ── SCROLL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  nav { padding: 1rem 5%; }
  #hero { padding: 6rem 5% 4rem; }
  #features, #dashboard-section, #testimonials, #about, #faq { padding: 5rem 5%; }
  #how, #markets, #pricing { padding: 5rem 5%; }
  .steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .markets-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   INDEX.HTML – Estilos específicos de página
   ============================================================ */

/* ── Botón descuento ── */
.btn-plan-discount {
  display: block; text-align: center; padding: 0.75rem;
  border-radius: 5px; font-size: 0.85rem; font-weight: 500; text-decoration: none;
  letter-spacing: 0.03em; transition: opacity 0.2s; margin-top: 0.6rem;
  border: 1px dashed rgba(201,168,76,0.5); color: var(--gold);
  cursor: pointer; background: rgba(201,168,76,0.06);
}
.btn-plan-discount:hover { background: rgba(201,168,76,0.14); }

/* ── Plan broker ── */
.pricing-card.broker { border-color: rgba(0,112,255,0.35); background: rgba(0,112,255,0.04); }
.plan-badge-broker {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: #1a6eff; color: #fff; font-size: 0.7rem; font-weight: 700;
  padding: 0.3rem 1rem; border-radius: 100px; letter-spacing: 0.08em; white-space: nowrap;
}
.broker-note {
  background: rgba(0,112,255,0.06); border: 1px solid rgba(0,112,255,0.2);
  border-radius: 8px; padding: 0.85rem 1rem; font-size: 0.8rem;
  color: #7ab0ff; line-height: 1.6; margin-bottom: 1.5rem;
}
.btn-plan-broker {
  display: block; text-align: center; padding: 0.9rem;
  border-radius: 5px; font-size: 0.9rem; font-weight: 500; text-decoration: none;
  letter-spacing: 0.03em; transition: opacity 0.2s;
  background: #1a6eff; color: #fff;
}
.btn-plan-broker:hover { opacity: 0.85; }

/* ── Nav link nosotros ── */
.nav-nosotros {
  font-size: 0.85rem; color: var(--muted); text-decoration: none;
  transition: color 0.2s; margin-right: 0.5rem;
}
.nav-nosotros:hover { color: var(--gold); }

/* ── Plan Accordion ── */
.plan-accordion {
  display: flex; flex-direction: column; gap: 0.6rem;
  margin-top: 3.5rem; max-width: 720px; margin-left: auto; margin-right: auto;
}

.plan-row {
  border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; transition: border-color 0.25s; background: var(--surface);
}
.plan-row.open { border-color: var(--gold); }
.plan-row.featured-row { border-color: var(--gold); background: rgba(201,168,76,0.04); }
.plan-row.best-row { border-color: rgba(201,168,76,0.5); }

.plan-row-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.5rem; cursor: pointer; user-select: none;
  transition: background 0.2s;
}
.plan-row-header:hover { background: rgba(255,255,255,0.02); }

.plan-row-left { flex: 1; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.plan-row-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; min-width: 80px; }
.plan-row-price { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--gold); line-height: 1; }
.plan-row-price sup { font-size: 0.8rem; vertical-align: super; }
.plan-row-sub { font-size: 0.78rem; color: var(--muted); }
.plan-row-badge {
  display: inline-flex; align-items: center;
  border-radius: 6px; padding: 0.25rem 0.7rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap;
}
.badge-none { background: rgba(122,121,117,0.15); border: 1px solid rgba(122,121,117,0.3); color: var(--muted); }
.badge-green { background: rgba(46,204,113,0.1); border: 1px solid rgba(46,204,113,0.3); color: #2ECC71; }
.badge-gold { background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.3); color: var(--gold); }
.badge-popular { background: var(--gold); color: #000; }

.plan-row-chevron { font-size: 1rem; color: var(--muted); transition: transform 0.3s; flex-shrink: 0; }
.plan-row.open .plan-row-chevron { transform: rotate(180deg); color: var(--gold); }

.plan-row-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.plan-row-body-inner { padding: 0 1.5rem 1.5rem; border-top: 1px solid var(--border); }

.plan-body-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.2rem; }
@media (max-width: 600px) { .plan-body-grid { grid-template-columns: 1fr; } }

.plan-body-features { list-style: none; }
.plan-body-features li {
  font-size: 0.88rem; color: var(--muted); padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex; align-items: center; gap: 0.5rem;
}
.plan-body-features li:last-child { border-bottom: none; }
.plan-body-features li::before { content: '✓'; color: var(--gold); font-weight: 700; font-size: 0.8rem; flex-shrink: 0; }
.plan-body-features li.inactive { opacity: 0.35; }
.plan-body-features li.inactive::before { content: '–'; color: var(--muted); }

.plan-body-actions { display: flex; flex-direction: column; gap: 0.7rem; justify-content: flex-start; padding-top: 0.2rem; }


/* ============================================================
   AUTH.HTML – Estilos de página de autenticación
   ============================================================ */

/* ── Auth tabs ── */
.auth-tabs {
  display: flex; border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; margin-bottom: 2rem;
}
.auth-tab {
  flex: 1; padding: 0.7rem; text-align: center; font-size: 0.88rem;
  cursor: pointer; background: transparent; border: none; color: var(--muted);
  font-family: 'DM Sans', sans-serif; transition: background 0.2s, color 0.2s;
}
.auth-tab.active { background: rgba(201,168,76,0.12); color: var(--gold); font-weight: 500; }
.auth-tab:first-child { border-right: 1px solid var(--border); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Auth card ── */
.auth-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; padding: 2.5rem 2rem;
  width: 100%; max-width: 420px; position: relative; z-index: 1;
}

/* ── Auth form ── */
.form-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.4rem; margin-bottom: 0.4rem; }
.form-sub { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.8rem; line-height: 1.6; }

.field-group { margin-bottom: 1rem; }
.field-label { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.45rem; display: block; }
.form-input {
  width: 100%; background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 8px;
  padding: 0.8rem 1rem; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
  outline: none; transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--gold); }
.form-input::placeholder { color: var(--muted); }
.form-input.error { border-color: var(--red) !important; }
.form-input[readonly] { opacity: 0.6; cursor: default; }
textarea.form-input { resize: vertical; min-height: 90px; }

.pass-wrap { position: relative; }
.pass-toggle {
  position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 1rem; padding: 0.2rem; transition: color 0.2s;
}
.pass-toggle:hover { color: var(--gold); }

.field-hint { font-size: 0.75rem; color: var(--muted); margin-top: 0.35rem; }

/* ── Password strength bar ── */
.strength-bar { display: flex; gap: 4px; margin-top: 0.5rem; }
.strength-seg { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.08); transition: background 0.3s; }
.strength-label { font-size: 0.72rem; color: var(--muted); margin-top: 0.3rem; }

/* ── Auth buttons ── */
.btn-auth {
  width: 100%; padding: 0.95rem; background: var(--gold); color: #000;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.04em; border: none; border-radius: 6px;
  cursor: pointer; transition: opacity 0.2s; margin-top: 0.5rem;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-auth:hover { opacity: 0.85; }
.btn-auth:disabled { opacity: 0.5; cursor: not-allowed; }
.spinner {
  width: 16px; height: 16px; border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #000; border-radius: 50%;
  animation: spin 0.7s linear infinite; display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Divider ── */
.divider { display: flex; align-items: center; gap: 0.8rem; margin: 1.2rem 0; color: var(--muted); font-size: 0.78rem; }
.divider::before, .divider::after { content:''; flex:1; height:1px; background:rgba(255,255,255,0.06); }

/* ── Switch link ── */
.switch-link { text-align: center; font-size: 0.85rem; color: var(--muted); margin-top: 1.2rem; }
.switch-link a { color: var(--gold); text-decoration: none; cursor: pointer; }
.switch-link a:hover { text-decoration: underline; }

/* ── Forgot link ── */
.forgot-link { font-size: 0.78rem; color: var(--muted); text-decoration: none; float: right; margin-top: -0.2rem; transition: color 0.2s; }
.forgot-link:hover { color: var(--gold); }

/* ── Auth alerts ── */
.alert { border-radius: 8px; padding: 0.85rem 1rem; font-size: 0.82rem; line-height: 1.6; margin-bottom: 1rem; display: none; }
.alert.visible { display: block; }
.alert-red { background: rgba(231,76,60,0.08); border: 1px solid rgba(231,76,60,0.25); color: #f08080; }
.alert-green { background: rgba(46,204,113,0.08); border: 1px solid rgba(46,204,113,0.25); color: var(--green); }

/* ── Success screen ── */
.success-screen { display: none; text-align: center; padding: 1rem 0; }
.success-screen.visible { display: block; }
.success-icon { font-size: 3rem; margin-bottom: 1rem; }
.success-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.3rem; margin-bottom: 0.5rem; }
.success-sub { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }

/* ── Auth nav ── */
.nav-back { font-size: 0.85rem; color: var(--muted); text-decoration: none; display: flex; align-items: center; gap: 0.4rem; transition: color 0.2s; }
.nav-back:hover { color: var(--gold); }


/* ============================================================
   CHECKOUT.HTML – Estilos de página de pago
   ============================================================ */

/* ── Layout checkout ── */
.checkout-main { max-width: 960px; margin: 0 auto; padding: 9rem 6% 5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 700px) { .checkout-main { grid-template-columns: 1fr; padding: 8rem 5% 4rem; } }
.checkout-main.broker-mode { grid-template-columns: 1fr; max-width: 680px; }

/* ── Summary box ── */
.summary-box { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; position: sticky; top: 6rem; }
.summary-tag { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.summary-plan-name { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.5rem; margin-bottom: 0.3rem; }
.summary-desc { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.8rem; }
.summary-price-row { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); padding: 1.2rem 0; margin-bottom: 1.5rem; }
.summary-price-label { color: var(--muted); font-size: 0.9rem; }
.summary-price-val { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 2rem; color: var(--gold); }
.summary-features { list-style: none; }
.summary-features li { font-size: 0.88rem; color: var(--muted); padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); display: flex; align-items: center; gap: 0.6rem; }
.summary-features li:last-child { border-bottom: none; }
.summary-features li::before { content: '✓'; color: var(--gold); font-weight: 700; font-size: 0.8rem; }

/* ── User banner ── */
.user-banner { background: rgba(201,168,76,0.06); border: 1px solid rgba(201,168,76,0.2); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; display: none; }
.user-banner.visible { display: flex; align-items: center; gap: 0.8rem; }
.user-banner-icon { font-size: 1.3rem; }
.user-banner-text { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.user-banner-text strong { color: var(--gold); }

/* ── Payment box ── */
.payment-box { display: flex; flex-direction: column; gap: 1.2rem; }
.payment-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.6rem; margin-bottom: 0.3rem; }
.payment-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.5rem; }

/* ── Method card ── */
.method-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.method-body { padding: 1.5rem; border-top: 1px solid var(--border); }

/* ── Network badge ── */
.network-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(38,161,123,0.1); border: 1px solid rgba(38,161,123,0.25); border-radius: 100px; padding: 0.3rem 0.9rem; font-size: 0.75rem; color: #26A17B; font-weight: 500; letter-spacing: 0.04em; margin-bottom: 1.2rem; }
.network-badge span { width: 6px; height: 6px; border-radius: 50%; background: #26A17B; display: inline-block; }

/* ── Checkout alerts ── */
.alert-gold { background: rgba(201,168,76,0.06); border: 1px solid rgba(201,168,76,0.2); }
.alert-gold strong { color: var(--gold); }
.alert-blue { background: rgba(0,112,255,0.05); border: 1px solid rgba(0,112,255,0.15); }
.alert-blue strong { color: #4d9fff; }
.alert-green { background: rgba(46,204,113,0.05); border: 1px solid rgba(46,204,113,0.2); }
.alert-green strong { color: var(--green); }

/* ── Address & copy ── */
.address-box { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 1rem 1.2rem; font-family: 'Courier New', monospace; font-size: 0.82rem; color: var(--text); word-break: break-all; line-height: 1.6; margin-bottom: 1rem; }
.copy-btn { display: flex; align-items: center; gap: 0.5rem; background: rgba(201,168,76,0.1); border: 1px solid var(--border); color: var(--gold); border-radius: 6px; padding: 0.5rem 1rem; font-size: 0.8rem; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: background 0.2s; width: fit-content; margin-bottom: 1.2rem; }
.copy-btn:hover { background: rgba(201,168,76,0.18); }
.copy-btn.copied { color: var(--green); border-color: rgba(46,204,113,0.3); background: rgba(46,204,113,0.08); }

/* ── Confirm button ── */
.btn-confirm { width: 100%; padding: 1rem; background: var(--gold); color: #000; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em; border: none; border-radius: 6px; cursor: pointer; transition: opacity 0.2s; margin-top: 0.5rem; }
.btn-confirm:hover { opacity: 0.85; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.78rem; color: var(--muted); margin-top: 1rem; }

/* ── Broker box ── */
.broker-box { background: var(--bg2); border: 1px solid rgba(0,112,255,0.25); border-radius: 12px; padding: 2rem; }
.broker-header-tag { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #4d9fff; margin-bottom: 1rem; }
.broker-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.4rem; margin-bottom: 0.6rem; }
.broker-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.7; margin-bottom: 1.2rem; }
.broker-steps { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; }
.broker-step { display: flex; align-items: flex-start; gap: 0.8rem; font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.broker-step-num { width: 22px; height: 22px; border-radius: 50%; background: rgba(0,112,255,0.15); border: 1px solid rgba(0,112,255,0.3); color: #4d9fff; font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.broker-step strong { color: var(--text); }
.btn-broker-open { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.5rem; background: rgba(0,112,255,0.12); border: 1px solid rgba(0,112,255,0.35); color: #4d9fff; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem; border-radius: 6px; cursor: pointer; text-decoration: none; transition: background 0.2s; margin-bottom: 1.5rem; }
.btn-broker-open:hover { background: rgba(0,112,255,0.22); }

/* ── Comprobante / broker form sections ── */
#comprobante-section,
#broker-form-section { display: none; margin-top: 1.5rem; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; }
#comprobante-section.visible,
#broker-form-section.visible { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
.comp-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.15rem; margin-bottom: 0.4rem; }
.comp-sub { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.5rem; line-height: 1.6; }

/* ── File upload ── */
.file-upload-label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; border: 1.5px dashed var(--border); border-radius: 8px; padding: 1.5rem 1rem; cursor: pointer; transition: border-color 0.2s; margin-bottom: 1rem; color: var(--muted); font-size: 0.85rem; text-align: center; }
.file-upload-label:hover { border-color: var(--gold); color: var(--gold); }
.file-upload-label .icon { font-size: 1.8rem; }
.file-input-hidden { display: none; }
.file-name-display { font-size: 0.78rem; color: var(--green); margin-top: -0.5rem; margin-bottom: 1rem; min-height: 1.2rem; }

/* ── Send button ── */
.btn-send { width: 100%; padding: 1rem; background: var(--gold); color: #000; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em; border: none; border-radius: 6px; cursor: pointer; transition: opacity 0.2s; }
.btn-send:hover { opacity: 0.85; }

/* ── Toast ── */
#toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(80px); background: #1a1a1a; border: 1px solid var(--gold); color: var(--text); font-size: 0.85rem; padding: 0.8rem 1.5rem; border-radius: 8px; transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), opacity 0.3s; opacity: 0; pointer-events: none; white-space: nowrap; z-index: 999; }
#toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }


/* ============================================================
   NOSOTROS.HTML – Estilos de página nosotros
   ============================================================ */

/* ── Nav links ── */
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { font-size: 0.85rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--gold); }

/* ── About hero ── */
.about-hero { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 9rem 6% 5rem; position: relative; overflow: hidden; }
.about-hero h1 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(2.5rem,5vw,4rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.about-hero h1 em { font-style: normal; color: var(--gold); }
.about-hero p { font-size: clamp(1rem,2vw,1.15rem); color: var(--muted); max-width: 560px; line-height: 1.75; }

/* ── Nosotros sections ── */
.nosotros-section { padding: 7rem 6%; max-width: 1100px; margin: 0 auto; }
.nosotros-section.bg2 { background: var(--bg2); max-width: 100%; padding: 7rem 0; }
.nosotros-section.bg2 .inner { max-width: 1100px; margin: 0 auto; padding: 0 6%; }

/* ── Misión grid ── */
.mision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 768px) { .mision-grid { grid-template-columns: 1fr; gap: 2rem; } }
.mision-text p { color: var(--muted); font-size: 0.95rem; line-height: 1.8; margin-bottom: 1rem; }
.mision-text p strong { color: var(--text); }
.mision-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.mision-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; text-align: center; transition: border-color 0.25s; }
.mision-stat:hover { border-color: var(--gold); }
.mision-stat-num { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 2.2rem; color: var(--gold); display: block; }
.mision-stat-label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.3rem; }

/* ── Productos grid ── */
.productos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.5rem; }
.producto-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; transition: border-color 0.25s, background 0.25s; }
.producto-card:hover { border-color: var(--gold); background: var(--gold-glow); }
.producto-icon { font-size: 2.2rem; margin-bottom: 1.2rem; display: block; }
.producto-card h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.1rem; margin-bottom: 0.6rem; }
.producto-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

/* ── FODA grid ── */
.foda-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 600px) { .foda-grid { grid-template-columns: 1fr; } }
.foda-card { border-radius: 12px; padding: 2rem; }
.foda-f { background: rgba(46,204,113,0.06); border: 1px solid rgba(46,204,113,0.2); }
.foda-o { background: rgba(201,168,76,0.06); border: 1px solid rgba(201,168,76,0.2); }
.foda-d { background: rgba(231,76,60,0.06); border: 1px solid rgba(231,76,60,0.2); }
.foda-a { background: rgba(0,112,255,0.05); border: 1px solid rgba(0,112,255,0.15); }
.foda-label { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin-bottom: 0.8rem; display: block; }
.foda-f .foda-label { color: var(--green); }
.foda-o .foda-label { color: var(--gold); }
.foda-d .foda-label { color: var(--red); }
.foda-a .foda-label { color: #4d9fff; }
.foda-card h3 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem; margin-bottom: 0.8rem; }
.foda-card ul { list-style: none; }
.foda-card ul li { font-size: 0.88rem; color: var(--muted); padding: 0.45rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); display: flex; align-items: flex-start; gap: 0.5rem; line-height: 1.5; }
.foda-card ul li:last-child { border-bottom: none; }
.foda-card ul li::before { content: '→'; flex-shrink: 0; margin-top: 0.05rem; }
.foda-f ul li::before { color: var(--green); }
.foda-o ul li::before { color: var(--gold); }
.foda-d ul li::before { color: var(--red); }
.foda-a ul li::before { color: #4d9fff; }

/* ── Valores grid ── */
.valores-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1.2rem; }
.valor-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; text-align: center; transition: border-color 0.25s; }
.valor-card:hover { border-color: var(--gold); }
.valor-icon { font-size: 1.8rem; margin-bottom: 0.8rem; display: block; }
.valor-card h4 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.4rem; }
.valor-card p { color: var(--muted); font-size: 0.82rem; line-height: 1.55; }

/* ── About CTA ── */
.about-cta { padding: 8rem 6%; text-align: center; background: radial-gradient(ellipse at center top, rgba(201,168,76,0.08) 0%, transparent 65%), var(--bg); }
.about-cta h2 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(2rem,4vw,3.2rem); margin-bottom: 1.2rem; }
.about-cta p { color: var(--muted); font-size: 1rem; margin-bottom: 2.5rem; }