/* ==========================================================================
   PasaFiltro — Sistema de Diseño Editorial (Mobile-First, Sin Estética IA)
   ========================================================================== */

:root {
  /* Colores semánticos */
  --bg-canvas: #f7f6f2;
  --bg-surface: #ffffff;
  --bg-alt: #efeee9;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --border-default: #e2e0d8;
  --border-strong: #c8c5ba;

  /* Acentos */
  --accent-primary: #0f766e;
  --accent-primary-hover: #0d5e58;
  --accent-whatsapp: #15803d;
  --accent-whatsapp-hover: #166534;
  --accent-danger-bg: #fef2f2;
  --accent-danger-text: #b91c1c;
  --accent-success-bg: #ecfdf5;
  --accent-success-text: #047857;

  /* Tipografía */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Escala de espaciado y radios */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px; /* espacio para barra móvil fija */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-alt);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text-primary);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-align: center;
}

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

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.85rem 1.35rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--accent-primary-hover);
}

.btn-whatsapp {
  background-color: var(--accent-whatsapp);
  color: #ffffff;
}
.btn-whatsapp:hover {
  background-color: var(--accent-whatsapp-hover);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background-color: var(--bg-alt);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  background-color: var(--bg-alt);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 242, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-default);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--text-primary);
  color: #ffffff;
  font-size: 0.85rem;
  letter-spacing: -0.03em;
}

.nav-links {
  display: none;
  gap: 1.5rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.nav-links a {
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--text-primary);
}

@media (min-width: 840px) {
  .nav-links {
    display: flex;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 2.75rem 0 3.25rem;
}

@media (min-width: 900px) {
  .hero {
    padding: 4.25rem 0 4.5rem;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.85fr;
    gap: 3rem;
    align-items: center;
  }
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 58ch;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 520px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.925rem;
  color: var(--text-secondary);
}

.trust-list li::before {
  content: "✓ ";
  color: var(--accent-primary);
  font-weight: 700;
}

.hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.score-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.score-arrow {
  color: var(--text-muted);
  font-weight: 700;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.badge-danger {
  background: var(--accent-danger-bg);
  color: var(--accent-danger-text);
}
.badge-success {
  background: var(--accent-success-bg);
  color: var(--accent-success-text);
}

.metric-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

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

.progress-track {
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-primary);
  border-radius: 999px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.check-list li {
  position: relative;
  padding-left: 1.35rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: 700;
}

.payment-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-default);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pill {
  background: var(--bg-alt);
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

/* ==========================================================================
   Secciones Genéricas
   ========================================================================== */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}

.section-header {
  max-width: 680px;
  margin-bottom: 2.25rem;
}

.section-header h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  margin-bottom: 0.6rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ==========================================================================
   Antes vs. Después
   ========================================================================== */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 860px) {
  .comparison-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.compare-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.compare-after {
  border-color: var(--accent-primary);
  border-width: 2px;
}

.compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.compare-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mock-cv {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: #fafafa;
  font-size: 0.78rem;
  line-height: 1.45;
}

.mock-cv-bad {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 0.85rem;
}

.mock-bad-col-left {
  background: #eceef2;
  padding: 0.7rem;
  border-radius: 6px;
}

.mock-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #cbd5e1;
  color: #475569;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.7rem;
  margin-bottom: 0.6rem;
}

.mock-small-title {
  font-weight: 700;
  font-size: 0.68rem;
  color: #475569;
  margin: 0.45rem 0 0.2rem;
}

.mock-tiny {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.mock-cv-good {
  background: #ffffff;
}

.mock-good-name {
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.mock-good-contact {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.mock-divider {
  border: none;
  border-top: 1px solid #d1d5db;
  margin: 0.6rem 0;
}

.mock-good-sec {
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--text-primary);
  margin: 0.55rem 0 0.2rem;
  letter-spacing: 0.04em;
}

.issue-list,
.win-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.issue-list li::before {
  content: "✕ ";
  color: var(--accent-danger-text);
  font-weight: 700;
}

.win-list li::before {
  content: "✓ ";
  color: var(--accent-success-text);
  font-weight: 700;
}

/* ==========================================================================
   Pasos
   ========================================================================== */
.steps-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}

.step-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--accent-primary);
  background: var(--accent-success-bg);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.85rem;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.step-card p {
  font-size: 0.93rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Paquetes / Pricing
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 920px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.price-card-featured {
  border: 2px solid var(--accent-primary);
}

.featured-ribbon {
  position: absolute;
  top: -12px;
  right: 1.25rem;
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.plan-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.35rem;
}

.price-head h3 {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.plan-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.price-old {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-main {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.price-main small {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.delivery-meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  flex-grow: 1;
}

.feature-list li {
  position: relative;
  padding-left: 1.35rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: 700;
}

.pricing-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-container {
  max-width: 780px;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 0.75rem;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   CTA Final y Footer
   ========================================================================== */
.cta-band {
  background: var(--text-primary);
  color: #ffffff;
  padding: 3rem 0;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .cta-inner {
    flex-direction: row;
    align-items: center;
  }
}

.cta-band h2 {
  color: #ffffff;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 0.4rem;
}

.cta-band p {
  color: #d1d5db;
  max-width: 56ch;
}

.site-footer {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border-default);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
  }
}

.footer-note {
  color: var(--text-muted);
}

/* ==========================================================================
   Barra fija móvil
   ========================================================================== */
.mobile-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-strong);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mobile-sticky-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.mobile-sticky-info strong {
  font-size: 0.95rem;
}

.mobile-sticky-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none;
  }
}
