/* Ofertas y guías: contenido editorial con el mismo tema del sitio. */

.page-lead {
  max-width: 820px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.ofertas-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ofertas-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}

.ofertas-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ofertas-tab:hover {
  color: var(--text);
  background: rgba(79, 70, 229, .07);
}

.ofertas-tab.is-active {
  color: var(--accent-600);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
}

.ofertas-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ofertas-tab__count {
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-600);
  font-size: 10px;
  text-align: center;
}

.ofertas-updated {
  color: var(--muted);
  font-size: 12px;
}

.ofertas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.offer-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.offer-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
}

.offer-card__logo {
  width: 64px;
  height: 30px;
  object-fit: contain;
  flex: 0 0 auto;
}

.offer-card__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.offer-card__title h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.offer-card__tag {
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-600);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.offer-card__headline {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.offer-card__detail,
.offer-card__req {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.offer-card__req {
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-size: 11.5px;
}

.offer-card__link {
  align-self: flex-start;
  margin-top: auto;
  text-decoration: none;
}

.ofertas-empty {
  grid-column: 1 / -1;
  padding: 26px;
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.ofertas-note {
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.55;
}

/* Guías */
.guide-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
}

.guide-toc h2 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-600);
}

.guide-toc ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.guide-toc a {
  color: var(--text);
  text-decoration: none;
}

.guide-toc a:hover {
  color: var(--accent-600);
  text-decoration: underline;
}

.guide-body {
  min-width: 0;
}

.guide-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.guide-section:first-child {
  padding-top: 0;
}

.guide-section:last-child {
  border-bottom: 0;
}

.guide-section h2 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.2;
}

.guide-section h3 {
  margin: 20px 0 6px;
  font-size: 16px;
}

.guide-section p,
.guide-section li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.guide-section ul,
.guide-section ol {
  padding-left: 22px;
}

.guide-section li + li {
  margin-top: 5px;
}

.guide-section a {
  color: var(--accent-600);
  font-weight: 600;
}

.formula {
  margin: 14px 0;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfbff;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.65;
  overflow-x: auto;
}

.callout {
  margin: 16px 0;
  padding: 13px 15px;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.callout--warn {
  border-left-color: #f79009;
  background: #fff8ec;
}

.callout--ok {
  border-left-color: var(--ok);
  background: #f0fdf4;
}

.guide-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.guide-cta a {
  text-decoration: none;
}

.guide-section .btn {
  color: #fff;
}

.guide-section .btn--ghost,
.guide-section .btn--ghost:hover {
  color: var(--text);
}

.guide-section .btn:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-toc {
    position: static;
  }

  .guide-toc ol {
    columns: 2;
  }
}

@media (max-width: 560px) {
  .ofertas-grid {
    grid-template-columns: 1fr;
  }

  .ofertas-tabs {
    width: 100%;
  }

  .ofertas-tab {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  .guide-toc ol {
    columns: 1;
  }
}
