/* ================================================================
   Web Analyzer & Optimizer — Estilos
   ================================================================ */

:root {
  --bg: #0a0e14;
  --bg2: #131820;
  --bg3: #1c2333;
  --border: #2a3344;
  --text: #e8edf5;
  --text2: #9aa3b5;
  --text3: #6b7385;
  --blue: #5c9eff;
  --green: #3fb950;
  --yellow: #d29922;
  --red: #f85149;
  --accent: #2563eb;
  --accent-warm: #f59e0b;
  --radius: 8px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

#app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

/* ---- Header ---- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.header-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.header-subtitle {
  font-size: 11px;
  color: var(--text3);
  margin-left: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.status-text {
  font-size: 12px;
  color: var(--text2);
  background: var(--bg2);
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* ---- Hero ---- */
.hero-section {
  text-align: center;
  padding: 48px 16px 40px;
}
.hero-title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.hero-desc {
  font-size: 15px;
  color: var(--text2);
  max-width: 650px;
  margin: 0 auto 20px;
  line-height: 1.7;
}
.hero-links {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.hero-links a {
  color: var(--blue);
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: background 0.15s, border-color 0.15s;
}
.hero-links a:hover {
  background: rgba(88,166,255,0.08);
  border-color: var(--blue);
}
.hero-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text3);
}
.hero-stats strong {
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
}

/* ---- Input ---- */
.input-section {
  margin-bottom: 24px;
}
.analyze-form {
  display: flex;
  gap: 12px;
}
.url-input-wrap {
  flex: 1;
  position: relative;
}
.url-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.url-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(88,166,255,0.1);
}
.url-input::placeholder {
  color: var(--text3);
}

.btn-analyze {
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
  font-family: inherit;
}
.btn-analyze:hover { background: #388bfd; }
.btn-analyze:active { transform: scale(0.98); }
.btn-analyze:disabled { opacity: 0.6; cursor: not-allowed; }

.input-hint {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text3);
}

/* ---- Loading ---- */
.loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: var(--bg2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  color: var(--text2);
  font-size: 13px;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Error ---- */
.error-box {
  background: rgba(248,81,73,0.1);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
  color: var(--red);
  font-size: 13px;
}

/* ---- Sections ---- */
.section-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text2);
  margin-bottom: 12px;
}

/* ---- Scorecard ---- */
.scorecard-section {
  margin-bottom: 24px;
}
.scorecard-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 700px) {
  .scorecard-grid { grid-template-columns: repeat(2, 1fr); }
}

.score-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.score-card .cat-name {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text2);
  margin-bottom: 6px;
  position: relative;
  cursor: help;
}
.cat-name:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1f2e;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
  width: 200px;
  text-align: left;
  z-index: 100;
  line-height: 1.4;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.score-card .cat-score {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
}
.score-card .cat-score.verde { color: var(--green); }
.score-card .cat-score.amarillo { color: var(--yellow); }
.score-card .cat-score.rojo { color: var(--red); }
.score-card .cat-details {
  font-size: 11px;
  color: var(--text3);
  line-height: 1.4;
}

.scorecard-promedio {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.scorecard-promedio .prom-num {
  font-size: 28px;
  font-weight: 700;
}

/* ---- Tech bar ---- */
.tech-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.tech-tag {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3px 12px;
  font-size: 11px;
  color: var(--text2);
  font-family: monospace;
}

/* ---- Grids ---- */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 700px) {
  .results-grid { grid-template-columns: 1fr; }
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 700px) {
  .details-grid { grid-template-columns: 1fr; }
}

/* ---- Cards ---- */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.card-header {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.card-body {
  padding: 16px;
}

/* ---- Hallazgos ---- */
.hallazgo-item {
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: var(--radius);
  border-left: 3px solid var(--red);
  background: rgba(248,81,73,0.05);
  font-size: 13px;
}
.hallazgo-item .hal-cat {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text3);
}

/* ---- Recomendaciones ---- */
.rec-item {
  padding: 12px;
  margin-bottom: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 13px;
}
.rec-item .rec-titulo {
  font-weight: 600;
  margin-bottom: 4px;
}
.rec-item .rec-meta {
  font-size: 11px;
  color: var(--text3);
  margin-top: 6px;
}

/* ---- Soluciones ---- */
.soluciones-card {
  margin-bottom: 16px;
}
.soluciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.solucion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.solucion-item .sol-type {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
  margin-bottom: 4px;
}
.solucion-item .sol-name {
  font-family: monospace;
  font-size: 12px;
  color: var(--text);
  word-break: break-all;
  margin-bottom: 8px;
}
.solucion-item .sol-desc {
  font-size: 11px;
  color: var(--text3);
  margin-bottom: 12px;
  line-height: 1.4;
}

/* ---- Next Steps ---- */
.next-steps-card {
  border: 2px solid var(--blue);
  margin-bottom: 24px;
}
.next-steps-card .card-header {
  background: rgba(88,166,255,0.08);
  border-bottom: 1px solid rgba(88,166,255,0.2);
  font-size: 14px;
}
.next-steps-urgency {
  background: rgba(248,81,73,0.1);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
}
.next-steps-ok {
  background: rgba(63,185,80,0.08);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--green);
}
.next-steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.next-step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  color: #000;
}
.step-download { background: var(--green); }
.step-do { background: var(--yellow); }
.step-recheck { background: var(--blue); }
.step-reminder { background: #7c3aed; }
.step-content {
  flex: 1;
}
.step-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.step-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 8px;
}
.step-btn {
  display: inline-block;
  font-size: 13px;
  padding: 10px 20px;
  margin-top: 4px;
  text-decoration: none;
}

/* ---- Download buttons ---- */
.btn-download {
  display: inline-block;
  padding: 6px 16px;
  background: var(--green);
  color: #000;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.15s;
}
.btn-download:hover { background: #2ea043; }

/* ---- Table ---- */
.table-wrap {
  overflow-x: auto;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.table-wrap th {
  text-align: left;
  padding: 8px 12px;
  color: var(--text2);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.5px;
}
.table-wrap td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(48,54,61,0.5);
  color: var(--text);
  font-family: monospace;
  font-size: 11px;
  word-break: break-word;
}

/* ---- Historial ---- */
.historial-card {
  margin-bottom: 40px;
}
.historial-item {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(48,54,61,0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.historial-item:last-child { border-bottom: none; }
.historial-item .hist-url {
  color: var(--blue);
  font-family: monospace;
  font-size: 12px;
}
.historial-item .hist-fecha {
  color: var(--text3);
  font-size: 11px;
}
.historial-item .hist-score {
  font-weight: 700;
  font-size: 14px;
}
.hist-delta {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  display: inline-block;
}
.hist-delta.up {
  background: rgba(63,185,80,0.15);
  color: var(--green);
}
.hist-delta.down {
  background: rgba(248,81,73,0.15);
  color: var(--red);
}
.hist-delta.same {
  background: rgba(110,118,129,0.15);
  color: var(--text3);
}
.reanalisis-badge {
  font-size: 10px;
  background: rgba(88,166,255,0.2);
  color: var(--blue);
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 6px;
  font-weight: 600;
}

/* ---- Empty ---- */
.empty-text {
  color: var(--text3);
  text-align: center;
  padding: 20px;
  font-size: 13px;
}

/* ---- Auth Buttons (header) ---- */
.btn-auth {
  padding: 6px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.15s;
}
.btn-auth:hover { background: #388bfd; }

.btn-auth-outline {
  padding: 6px 16px;
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.btn-auth-outline:hover { background: rgba(88,166,255,0.1); }

.user-tier {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  margin-right: 8px;
}
.user-tier.free {
  background: rgba(210,153,34,0.15);
  color: var(--yellow);
  border: 1px solid rgba(210,153,34,0.3);
}
.user-tier.paid {
  background: rgba(63,185,80,0.15);
  color: var(--green);
  border: 1px solid rgba(63,185,80,0.3);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Modal ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}
.modal-content {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  width: 380px;
  max-width: 90vw;
  z-index: 1;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 22px;
  color: var(--text3);
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--text); }

/* ---- Upgrade Banner ---- */
.upgrade-banner {
  background: linear-gradient(135deg, rgba(210,153,34,0.15), rgba(210,153,34,0.05));
  border: 1px solid rgba(210,153,34,0.3);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text);
}
.btn-upgrade {
  padding: 8px 20px;
  background: var(--yellow);
  color: #000;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn-upgrade:hover { background: #e2a71d; }

/* ---- Locked download ---- */
.solucion-item.locked {
  opacity: 0.7;
  position: relative;
}
.solucion-item .locked-badge {
  display: inline-block;
  background: rgba(210,153,34,0.2);
  color: var(--yellow);
  border: 1px solid rgba(210,153,34,0.4);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 8px;
}

/* ---- Share link ---- */
.share-section {
  margin-bottom: 20px;
}
.share-box {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.share-box .share-url {
  flex: 1;
  font-family: monospace;
  font-size: 12px;
  color: var(--blue);
  word-break: break-all;
}
.btn-copy {
  padding: 6px 14px;
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn-copy:hover { background: var(--border); }
.btn-copy.copied {
  background: var(--green);
  border-color: var(--green);
  color: #000;
}

/* ---- Footer ---- */
.footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.footer a {
  color: var(--text3);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.15s;
}
.footer a:hover { color: var(--blue); }

/* ---- Demo CTA ---- */
.demo-cta {
  background: linear-gradient(135deg, #1a1f3a 0%, #0f1525 100%);
  border: 1px solid var(--blue);
  border-radius: 12px;
  padding: 32px 24px;
  margin: 24px auto;
  max-width: 700px;
  text-align: center;
}
.demo-cta h3 {
  color: #fff;
  font-size: 18px;
  margin: 0 0 8px;
}
.demo-cta p {
  color: #aaa;
  font-size: 14px;
  margin: 0 0 20px;
}
.demo-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.demo-cta-buttons .btn-upgrade {
  font-size: 15px;
  padding: 12px 24px;
}

/* ---- Notification Toast ---- */
.notification-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #238636;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.notification-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Utilities ---- */
.verde { color: var(--green); }
.amarillo { color: var(--yellow); }
.rojo { color: var(--red); }

/* ================================================================
   NUEVAS SECCIONES — Landing de ventas
   ================================================================ */

/* ---- Hero Stats ---- */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
}
.hero-stat-label {
  font-size: 12px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- How It Works ---- */
.how-section {
  margin: 56px 0 40px;
  text-align: center;
}
.section-sub {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 28px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.step-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.15s;
}
.step-card:hover {
  border-color: var(--blue);
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 14px;
}
.step-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.step-card p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
}

/* ---- Features Section ---- */
.features-section {
  margin: 56px 0 48px;
  text-align: center;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  transition: border-color 0.15s;
}
.feature-card:hover {
  border-color: var(--blue);
}
.feature-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 8px;
}
.feature-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
}

/* ---- Pricing Section ---- */
.pricing-section {
  margin: 56px 0 48px;
  text-align: center;
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 720px;
  margin: 28px auto 0;
}
.pricing-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 24px;
  text-align: center;
  position: relative;
  transition: border-color 0.15s;
}
.pricing-pro {
  border: 2px solid var(--accent-warm);
}
.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-warm);
  color: #000;
  padding: 4px 20px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.pricing-header {
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.pricing-price {
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  margin: 4px 0;
}
.pricing-sub {
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 20px;
}
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
  padding: 0;
}
.pricing-features li {
  padding: 7px 0;
  font-size: 13px;
  color: var(--text2);
  border-bottom: 1px solid rgba(48,54,61,0.3);
}
.pricing-features li:last-child {
  border-bottom: none;
}
.pricing-features li::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 700;
}
.btn-pricing-cta {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent-warm);
  color: #000;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.btn-pricing-cta:hover {
  background: #e5a80d;
}
.btn-pricing-cta:active {
  transform: scale(0.98);
}
.btn-pricing-outline {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.btn-pricing-outline:hover {
  background: rgba(88,166,255,0.08);
}

/* ---- Testimonials ---- */
.testimonials-section {
  margin: 56px 0 48px;
  text-align: center;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.testimonial-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
}
.testimonial-metric {
  font-size: 28px;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 4px;
}
.testimonial-label {
  font-size: 12px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.testimonial-card p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
}

/* ---- FAQ Section ---- */
.faq-section {
  margin: 48px 0;
}
.faq-items {
  margin-top: 20px;
}
.faq-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 10px;
}
.faq-q {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.faq-a {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
}
.faq-a strong {
  color: var(--text);
}

/* ---- Final CTA ---- */
.final-cta {
  text-align: center;
  padding: 48px 24px;
  margin: 48px 0 32px;
  background: linear-gradient(135deg, #111d2e 0%, #0f1a2a 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.final-cta h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.final-cta p {
  font-size: 15px;
  color: var(--text2);
  margin-bottom: 24px;
}

/* ---- Auth UI ---- */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-right .btn-auth,
.header-right .btn-auth-outline {
  font-size: 12px;
  padding: 5px 14px;
}
#user-info {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text2);
}
#user-info .user-tier-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
}
.user-tier-badge.free {
  background: rgba(210,153,34,0.18);
  color: var(--yellow);
}
.user-tier-badge.paid {
  background: rgba(63,185,80,0.18);
  color: var(--green);
}

/* ---- Auth Modal ---- */
.form-group {
  margin-bottom: 10px;
}
.form-group input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}
.form-group input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(88,166,255,0.1);
}
.form-group input::placeholder {
  color: var(--text3);
}
#auth-form .btn-auth {
  width: 100%;
  padding: 12px;
  font-size: 14px;
}
.auth-toggle-text {
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text2);
}
.auth-toggle-text a {
  color: var(--blue);
  text-decoration: none;
}
.auth-toggle-text a:hover {
  text-decoration: underline;
}

/* ---- Upgrade Banner ---- */
.upgrade-banner {
  background: linear-gradient(135deg, rgba(245,158,11,0.12) 0%, rgba(245,158,11,0.04) 100%);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text);
}
.upgrade-banner strong {
  color: var(--accent-warm);
}
.upgrade-banner .btn-upgrade {
  flex-shrink: 0;
  font-size: 14px;
  padding: 10px 22px;
}

/* ================================================================
   RESPONSIVE — Mobile & Tablet
   ================================================================ */

/* Tablet */
@media (max-width: 900px) {
  .hero-title { font-size: 28px; }
  .scorecard-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile grande (existente + refuerzo) */
@media (max-width: 700px) {
  .scorecard-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 24px; }
  .hero-stat-num { font-size: 22px; }
  .upgrade-banner { flex-direction: column; text-align: center; }
  .upgrade-banner .btn-upgrade { width: 100%; }
}

/* Mobile pequeno */
@media (max-width: 480px) {
  .hero-title { font-size: 22px; }
  .hero-desc { font-size: 13px; }
  .analyze-form { flex-direction: column; }
  .btn-analyze { width: 100%; }
  .scorecard-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  #app { padding: 0 12px 40px; }
  .header { flex-wrap: wrap; gap: 8px; }
  .final-cta h2 { font-size: 20px; }
  .final-cta { padding: 32px 16px; }
  .pricing-price { font-size: 32px; }
  .hero-stats { gap: 16px; flex-direction: column; }
  .hero-stat { display: flex; align-items: baseline; gap: 8px; }
  .hero-stat-num { font-size: 18px; }
}

/* ---- Launch Banner ---- */
.launch-banner {
  display: inline-block;
  padding: 10px 24px;
  background: rgba(63,185,80,0.08);
  border: 1px solid rgba(63,185,80,0.25);
  border-radius: 8px;
  color: var(--green);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
}

/* ---- Feedback Modal ---- */
#star-rating {
  display: flex;
  justify-content: center;
  gap: 8px;
}
#star-rating .star {
  font-size: 36px;
  color: #444;
  cursor: pointer;
  transition: color 0.15s, transform 0.1s;
  user-select: none;
}
#star-rating .star:hover,
#star-rating .star.active {
  color: #f59e0b;
  transform: scale(1.15);
}
