/* ============================================================
   OPBIOS — Home v2 (automatización primero)
   Se carga después de style.css y reutiliza sus variables.
   ============================================================ */

.section-pad { padding: var(--section-py) 0; }
.bg-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header.left { text-align: left; max-width: 760px; margin-left: 0; }
.section-header.left .section-desc { margin-left: 0; }
.section-note { margin-top: 28px; font-size: 0.9rem; color: var(--text-3); }
.section-note a { color: var(--purple-l); text-decoration: underline; }

/* ── HERO ── */
.hero-title { font-size: clamp(2.2rem, 3.4vw, 2.85rem); }
.hero-micro { margin-top: 20px; font-size: 0.88rem; color: var(--text-3); }
.hero-desc strong { color: var(--text); }
.eval-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border-h);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-glow);
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}
.eval-card-tag { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple-l); }
.check-list { display: flex; flex-direction: column; gap: 16px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.check-list svg { width: 22px; height: 22px; margin-top: 2px; color: var(--yellow); }
.check-list strong { display: block; font-size: 1rem; color: var(--text); }
.check-list span { font-size: 0.88rem; line-height: 1.5; color: var(--text-2); }
.eval-card .btn-primary { justify-content: center; }

/* ── TOOLS STRIP ── */
.tools-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.tools-row span { font-size: 0.95rem; font-weight: 600; color: var(--text-2); }
.tools-row .clients-label { font-weight: 400; }

/* ── AUTOMATIZACIONES ── */
.auto-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.auto-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.3s, transform 0.3s;
}
.auto-card:hover { border-color: var(--border-h); transform: translateY(-3px); }
.chip {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
}
.auto-card h3 { font-size: 1.15rem; line-height: 1.35; }
.auto-card p { font-size: 0.92rem; line-height: 1.6; color: var(--text-2); }
.auto-meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 12px;
  font-size: 0.85rem;
  color: var(--text-3);
}
.price-from { font-weight: 800; font-size: 1rem; color: var(--yellow); white-space: nowrap; }

/* ── SERVICIOS (badge punto de partida) ── */
.services-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.services-head .section-header { margin-bottom: 0; }
.card-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 20px; }
.card-foot .card-link { margin-top: 0; }
.card-price { font-size: 0.9rem; font-weight: 700; color: var(--yellow); }

/* ── RUBROS ── */
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 28px; }
.compare-box { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.compare-box.ours { background: rgba(162,69,173,0.08); border-color: var(--border-h); }
.compare-box h3 { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.compare-box.ours h3 { color: var(--purple-l); }
.compare-box ul { display: flex; flex-direction: column; gap: 12px; }
.compare-box li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; font-size: 0.95rem; line-height: 1.5; color: var(--text-2); }
.compare-box.ours li { color: var(--text); }
.compare-box svg { width: 18px; height: 18px; margin-top: 3px; }
.niche-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.niche-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.niche-card h3 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow); }
.niche-card .pain { font-size: 1rem; font-weight: 600; font-style: italic; line-height: 1.45; }
.niche-card p:last-child { font-size: 0.88rem; line-height: 1.55; color: var(--text-2); }
.niche-card.open { border-style: dashed; border-color: var(--border-h); background: transparent; justify-content: center; transition: background 0.3s; }
.niche-card.open:hover { background: rgba(162,69,173,0.06); }
.niche-card.open strong { font-size: 1.1rem; }
.niche-card.open span { font-size: 0.88rem; color: var(--text-2); }
.niche-card.open em { font-style: normal; font-weight: 700; color: var(--purple-l); }

/* ── PRECIOS ── */
.price-table-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow-x: auto; }
.price-table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
.price-table th { background: var(--surface); font-family: var(--font-mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); padding: 16px 24px; }
.price-table td { padding: 20px 24px; border-top: 1px solid var(--border); vertical-align: middle; }
.price-table td strong { display: block; font-size: 1rem; }
.price-table td span { font-size: 0.88rem; color: var(--text-2); }
.price-table .range { font-weight: 800; font-size: 1.05rem; color: var(--yellow); white-space: nowrap; }
.price-table .monthly { font-weight: 700; color: var(--purple-l); white-space: nowrap; }

/* ── MODELO GESTIONADO ── */
.managed { padding-bottom: 0; }
.managed .compare-grid { margin-bottom: 0; }

/* ── PROCESO (4 pasos en fila) ── */
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.step-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.step-card .step-num { font-family: var(--font-mono); font-weight: 700; color: var(--yellow); }
.step-card h3 { font-size: 1.1rem; }
.step-card p { font-size: 0.92rem; line-height: 1.55; color: var(--text-2); }

/* ── COMPROMISOS ── */
.promise-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.promise { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.promise h3 { font-size: 1.05rem; margin-bottom: 8px; }
.promise p { font-size: 0.9rem; line-height: 1.55; color: var(--text-2); }

/* ── FAQ ── */
.faq-list { max-width: 820px; }
.faq-list details { border-top: 1px solid var(--border); padding: 20px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--border); }
.faq-list summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-family: var(--font-mono); color: var(--purple-l); }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { margin-top: 12px; color: var(--text-2); line-height: 1.6; }

/* ── CONTACTO ── */
.form-hint { font-weight: 400; color: var(--text-3); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-visual.eval { display: flex; grid-column: 1; grid-row: 2; }
  .auto-grid, .niche-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-grid, .promise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .auto-grid, .niche-grid, .compare-grid, .steps-grid, .promise-grid { grid-template-columns: 1fr; }
  .eval-card { padding: 24px; }

  /* Tabla de precios como tarjetas apiladas */
  .price-table-wrap { border: 0; overflow: visible; }
  .price-table { min-width: 0; }
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; }
  .price-table tr { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 18px 20px; margin-bottom: 14px; }
  .price-table td { border: 0; padding: 6px 0; }
  .price-table td:first-child { padding-bottom: 10px; }
  .price-table td[data-label] { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); }
  .price-table td[data-label]::before { content: attr(data-label); font-weight: 400; color: var(--text-3); font-size: 0.85rem; white-space: nowrap; }
  .price-table td.range, .price-table td.monthly { white-space: normal; text-align: right; }
}
