/* CLW Vehículos — Editorial Buying Guides & Responsive Table System v1 */
.prose {
  max-width: 860px;
  font-size: 1.03rem;
  line-height: 1.74;
  color: #1c293a;
}

.prose h2 {
  margin: 2.15em 0 .68em;
  font-size: clamp(1.42rem, 2.3vw, 1.88rem);
  font-weight: 760;
  letter-spacing: -.025em;
  line-height: 1.2;
  color: #101a2b;
  padding-bottom: .35em;
  border-bottom: 1px solid #e3e8ee;
}

.prose h3 {
  margin: 1.55em 0 .5em;
  font-size: clamp(1.12rem, 1.6vw, 1.3rem);
  font-weight: 720;
  letter-spacing: -.015em;
  line-height: 1.3;
  color: #162840;
}

.prose p {
  margin: 0 0 1.15em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.35em;
  padding-left: 1.35em;
}

.prose li {
  margin-bottom: .5em;
}

.prose a {
  color: #154c86;
  font-weight: 620;
  text-decoration: underline;
  text-decoration-color: rgba(21, 76, 134, 0.38);
  text-underline-offset: .22em;
  transition: color .16s ease, text-decoration-color .16s ease;
}

.prose a:hover {
  color: #0e345e;
  text-decoration-color: #d97706;
}

/* Direct-answer lead summary box */
.guide-direct-answer {
  margin: 0 0 2rem;
  padding: 1.25rem 1.45rem;
  background: linear-gradient(180deg, #fdfbf6 0%, #f6f3ea 100%);
  border: 1px solid #e6dfd0;
  border-left: 4px solid #d97706;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(16, 26, 43, 0.04);
}

.guide-direct-answer p {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.68;
  color: #101a2b;
}

.guide-direct-answer strong {
  color: #9a4d00;
}

/* Responsive magazine-grade data tables */
.guide-table-wrap {
  margin: 1.75rem 0 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid #d8e1ec;
  background: #ffffff;
  box-shadow: 0 6px 22px rgba(16, 26, 43, 0.055);
}

.guide-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: .93rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.guide-table thead th {
  background: #101a2b;
  color: #ffffff;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .02em;
  line-height: 1.35;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid #ffca54;
  white-space: normal;
  vertical-align: bottom;
}

.guide-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #e7edf4;
  color: #1f2f42;
  vertical-align: top;
}

.guide-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.guide-table tbody tr:hover td {
  background: #f1f6fc;
}

.guide-table tbody tr:last-child td {
  border-bottom: none;
}

.guide-table tbody td:first-child {
  font-weight: 660;
  color: #101a2b;
}

/* Editorial figures */
.guide-figure {
  margin: 2rem 0;
  background: #ffffff;
  border: 1px solid #dfe6ee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(16, 26, 43, 0.05);
}

.guide-figure img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  background: #edf1f5;
}

.guide-figure figcaption {
  padding: 11px 16px;
  font-size: .86rem;
  line-height: 1.48;
  color: #4d5d6e;
  background: #f9fafb;
  border-top: 1px solid #e7edf4;
}

/* Engineering tip / callout box */
.guide-tip {
  margin: 1.85rem 0;
  padding: 1.25rem 1.45rem;
  background: #f3f7fb;
  border: 1px solid #d2e0ee;
  border-left: 4px solid #1d4e89;
  border-radius: 10px;
}

.guide-tip h3 {
  margin: 0 0 .45rem;
  font-size: 1.05rem;
  color: #101a2b;
}

.guide-tip p:last-child {
  margin-bottom: 0;
}

/* End-of-article conversion CTA band */
.guide-cta-band {
  margin: 2.4rem 0 .5rem;
  padding: 1.6rem 1.75rem;
  background: linear-gradient(135deg, #101a2b 0%, #1b2f4a 100%);
  color: #f4f7fb;
  border-radius: 12px;
  border-left: 4px solid #ffca54;
}

.guide-cta-band h3 {
  margin: 0 0 .55rem;
  color: #ffffff;
  font-size: 1.22rem;
}

.guide-cta-band p {
  margin: 0 0 1rem;
  color: #d4e0ee;
  font-size: .96rem;
  line-height: 1.65;
}

.guide-cta-band p:last-child {
  margin-bottom: 0;
}

/* Case 1: Inline prose links inside a single-paragraph CTA band */
.guide-cta-band p:only-of-type a {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  color: #ffca54 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(255, 202, 84, 0.72) !important;
  text-underline-offset: 3px !important;
}

.guide-cta-band p:only-of-type a:hover {
  color: #ffe08a !important;
  text-decoration-color: #ffe08a !important;
}

/* Case 2: Dedicated action-button row (second <p> inside CTA band) */
.guide-cta-band p:nth-of-type(2) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 1.1rem 0 0 !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

.guide-cta-band p:nth-of-type(2) a,
.guide-cta-band > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 !important;
  padding: 11px 20px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: .92rem !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  transition: background .16s ease, border-color .16s ease, transform .14s ease;
}

.guide-cta-band p:nth-of-type(2) a:first-of-type,
.guide-cta-band > a:first-of-type {
  background: #ffca54 !important;
  color: #101a2b !important;
  border: 1px solid #ffca54 !important;
}

.guide-cta-band p:nth-of-type(2) a:first-of-type:hover,
.guide-cta-band > a:first-of-type:hover {
  background: #ffda82 !important;
  border-color: #ffda82 !important;
  color: #101a2b !important;
}

.guide-cta-band p:nth-of-type(2) a:nth-of-type(n+2),
.guide-cta-band > a:nth-of-type(n+2) {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.36) !important;
}

.guide-cta-band p:nth-of-type(2) a:nth-of-type(n+2):hover,
.guide-cta-band > a:nth-of-type(n+2):hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: #ffca54 !important;
  color: #ffffff !important;
}

@media (max-width: 640px) {
  .guide-direct-answer,
  .guide-tip,
  .guide-cta-band {
    padding: 1.1rem 1.15rem;
  }
  .guide-table {
    font-size: .86rem;
  }
  .guide-table thead th,
  .guide-table tbody td {
    padding: 10px 12px;
  }
}
