/* ==========================================================================
   Trezum — Blog feature posts (standalone, layout: false)
   Referencia: BLOG-STYLE-GUIDE.md
   Usado por: blog/pagar-yuanes-*.html, blog/que-es-swift-*.html
   ========================================================================== */

:root {
  --trz-navy: #191C46;
  --trz-coral: #D05C46;
  --trz-white: #FFFFFF;
  --trz-text-2: #4A4A62;
  --trz-gray: #F5F5FA;
  --trz-border: rgba(25,28,70,.15);
  --shadow-card: 0 12px 60px rgba(25,28,70,.12), 0 2px 8px rgba(25,28,70,.06);
  --gradient-brand: linear-gradient(to right, #D05C46, #191C46);
  --r-20: 20px;
  --r-12: 12px;
  --r-10: 10px;
  --brand-angle: 21deg;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--trz-text-2);
  background: var(--trz-white);
  padding-top: 68px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--trz-navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-weight: 800; }
h2 { font-weight: 800; }
h3 { font-weight: 700; }
h4 { font-weight: 700; }

.hl { color: var(--trz-coral); font-weight: inherit; }

.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  background: var(--gradient-brand);
  width: 0%;
  z-index: 1000;
  transition: width .1s ease;
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */

.hero-blog {
  position: relative;
  background: var(--trz-navy);
  color: var(--trz-white);
  padding: 80px 24px 88px;
  overflow: hidden;
}
.hero-blog::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: rgba(255,255,255,.06);
  transform: skewX(-21deg);
  pointer-events: none;
}
.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.trz-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border: 1px solid var(--trz-coral);
  border-radius: var(--r-10);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--trz-coral);
  background: transparent;
  margin-bottom: 24px;
}
.hero-blog h1 {
  color: var(--trz-white);
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.015em;
}
.hero-sub {
  color: rgba(255,255,255,.75);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 620px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  color: rgba(255,255,255,.5);
  font-size: 13px;
  font-weight: 600;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .dot { opacity: .4; }

/* -------------------------------------------------------------------------- */
/* Article base                                                               */
/* -------------------------------------------------------------------------- */

article {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

article h2 {
  font-size: 30px;
  font-weight: 800;
  margin-top: 48px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 16px;
}
article h2::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  background: var(--trz-coral);
  border-radius: 2px;
}
article h3 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
}
article p { margin-bottom: 16px; }
article strong { color: var(--trz-navy); font-weight: 700; }
article em { font-style: italic; }
.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--trz-navy);
  margin-bottom: 28px;
  font-weight: 400;
}
article a {
  color: var(--trz-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .12s ease;
}
article a:hover { color: var(--trz-coral); }

/* -------------------------------------------------------------------------- */
/* Lists                                                                      */
/* -------------------------------------------------------------------------- */

.numbered {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  margin: 0 0 20px 0;
}
.numbered li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 14px;
  line-height: 1.65;
}
.numbered li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 2px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--trz-navy);
  color: var(--trz-white);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checks-trezum {
  list-style: none;
  padding-left: 0;
  margin: 0 0 20px 0;
}
.checks-trezum li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 14px;
  line-height: 1.65;
}
.checks-trezum li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background-color: var(--trz-navy);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='3.5 8.5 6.5 11.5 12.5 5'/></svg>");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

/* -------------------------------------------------------------------------- */
/* Text blocks                                                                */
/* -------------------------------------------------------------------------- */

.pull-quote {
  border-left: 3px solid var(--trz-coral);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
  font-size: 20px;
  line-height: 1.5;
  color: var(--trz-navy);
  font-weight: 700;
}

/* Answer-first TL;DR — surfaces the direct answer for AI engines and voice assistants */
.tldr-answer {
  background: var(--trz-white);
  border: 1px solid var(--trz-border);
  border-left: 3px solid var(--trz-navy);
  border-radius: var(--r-12);
  padding: 20px 24px;
  margin: 0 0 28px 0;
}
.tldr-answer .tldr-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--trz-coral);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}
.tldr-answer p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--trz-navy);
  margin-bottom: 0;
  font-weight: 500;
}

.callout {
  background: var(--trz-gray);
  border-radius: var(--r-12);
  padding: 28px 28px 24px;
  margin: 32px 0;
  border: 1px solid var(--trz-border);
  position: relative;
  overflow: hidden;
}
.callout::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-brand);
}
.callout h4 {
  font-size: 12px;
  color: var(--trz-coral);
  margin-bottom: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.callout p { color: var(--trz-navy); margin-bottom: 0; }

.risk-callout {
  background: var(--trz-white);
  border: 1px solid var(--trz-border);
  border-left: 3px solid var(--trz-coral);
  border-radius: var(--r-12);
  padding: 20px 24px;
  margin: 28px 0;
}
.risk-callout h4 {
  font-size: 13px;
  color: var(--trz-navy);
  margin-bottom: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.risk-callout h4::before {
  content: "";
  display: inline-block;
  width: 16px; height: 16px;
  background-color: var(--trz-coral);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'><line x1='8' y1='4' x2='8' y2='9'/><circle cx='8' cy='12' r='0.5' fill='white' stroke='none'/></svg>");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.risk-callout p {
  color: var(--trz-text-2);
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.6;
}
.risk-callout p + p { margin-top: 10px; }
.risk-callout strong { color: var(--trz-navy); font-weight: 700; }

.method-note {
  background: var(--trz-gray);
  border-radius: var(--r-10);
  padding: 14px 18px;
  margin: 16px 0 32px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--trz-text-2);
}
.method-note strong {
  color: var(--trz-navy);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 4px;
}
.method-note a { color: var(--trz-navy); }

/* -------------------------------------------------------------------------- */
/* KPI block                                                                  */
/* -------------------------------------------------------------------------- */

.kpi-block {
  background: var(--trz-navy);
  border-radius: var(--r-20);
  padding: 36px 32px;
  margin: 32px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  overflow: hidden;
}
.kpi-block::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-brand);
}
.kpi-item {
  text-align: left;
  min-width: 0;
  padding: 0 20px;
  position: relative;
}
.kpi-item:first-child { padding-left: 0; }
.kpi-item:last-child  { padding-right: 0; }
.kpi-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(255,255,255,.12);
}
.kpi-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--trz-coral);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.kpi-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  line-height: 1.45;
}
@media (max-width: 720px) {
  .kpi-block {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }
  .kpi-item {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,.15);
  }
  .kpi-item:first-child { padding-top: 0; }
  .kpi-item:last-child  { padding-bottom: 0; border-bottom: none; }
  .kpi-item::after { display: none !important; }
  .kpi-num { font-size: 28px; }
}

/* -------------------------------------------------------------------------- */
/* Compare table                                                              */
/* -------------------------------------------------------------------------- */

.compare-wrap {
  margin: 32px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-12);
  border: 1px solid var(--trz-border);
}
table.compare {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}
table.compare caption {
  caption-side: top;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--trz-text-2);
  text-align: left;
  background: var(--trz-white);
  border-bottom: 1px solid var(--trz-border);
  font-style: italic;
}
table.compare th, table.compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--trz-border);
  vertical-align: top;
}
table.compare thead th {
  background: var(--trz-navy);
  color: var(--trz-white);
  font-weight: 700;
  font-size: 14px;
}
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare tbody tr:nth-child(even) { background: var(--trz-gray); }
table.compare td:first-child { font-weight: 600; color: var(--trz-navy); }
table.compare .tag-trz {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--trz-coral);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* -------------------------------------------------------------------------- */
/* Flow card (step-by-step process)                                           */
/* -------------------------------------------------------------------------- */

.flow-card {
  background: var(--trz-gray);
  border-radius: var(--r-12);
  padding: 28px 28px 24px;
  margin: 32px 0;
  border: 1px solid var(--trz-border);
}
.flow-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--trz-navy);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.flow-steps {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.flow-step {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: 8px 0;
  position: relative;
}
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 48px;
  bottom: -8px;
  width: 2px;
  background: var(--trz-border);
}
.flow-marker {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--r-10);
  background: var(--trz-white);
  border: 1px solid var(--trz-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--trz-navy);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.flow-marker.accent {
  background: var(--trz-coral);
  color: var(--trz-white);
  border-color: var(--trz-coral);
}
.flow-marker.final {
  background: var(--trz-navy);
  color: var(--trz-white);
  border-color: var(--trz-navy);
}
.flow-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2px 0;
}
.flow-body strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--trz-navy);
  line-height: 1.3;
  display: block;
}
.flow-note {
  font-size: 13px;
  color: var(--trz-text-2);
  font-weight: 400;
  line-height: 1.4;
  margin-top: 2px;
  display: block;
}
.flow-note.cost { color: var(--trz-coral); font-weight: 600; }
.flow-note.win  { color: #2E6B21; font-weight: 600; }

/* -------------------------------------------------------------------------- */
/* Pricing card                                                               */
/* -------------------------------------------------------------------------- */

.pricing-card {
  background: var(--trz-white);
  border-radius: var(--r-12);
  padding: 28px;
  margin: 32px 0;
  border: 1px solid var(--trz-border);
  position: relative;
  overflow: hidden;
}
.pricing-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-brand);
}
.pricing-card .pricing-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--trz-coral);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.pricing-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--trz-navy);
  margin-bottom: 20px;
}
.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--trz-border);
  gap: 16px;
}
.pricing-row:last-of-type { border-bottom: 2px solid var(--trz-navy); }
.pricing-row.total {
  border-bottom: none;
  padding-top: 16px;
}
.pricing-label {
  font-size: 15px;
  color: var(--trz-text-2);
  font-weight: 400;
}
.pricing-label strong { color: var(--trz-navy); font-weight: 700; }
.pricing-value {
  font-size: 15px;
  color: var(--trz-navy);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pricing-row.total .pricing-label {
  font-size: 16px;
  color: var(--trz-navy);
  font-weight: 700;
}
.pricing-row.total .pricing-value {
  font-size: 24px;
  color: var(--trz-coral);
  font-weight: 800;
}
.pricing-footnote {
  font-size: 13px;
  color: var(--trz-text-2);
  margin-top: 14px;
  line-height: 1.5;
}

/* -------------------------------------------------------------------------- */
/* Source citation                                                            */
/* -------------------------------------------------------------------------- */

.source-cite {
  display: block;
  font-size: 13px;
  color: var(--trz-text-2);
  font-weight: 400;
  font-style: italic;
  margin-top: 10px;
  padding-left: 12px;
  border-left: 2px solid var(--trz-border);
  line-height: 1.5;
}

/* -------------------------------------------------------------------------- */
/* FAQ                                                                        */
/* -------------------------------------------------------------------------- */

.faq {
  margin: 32px 0;
}
.faq-item {
  border-bottom: 1px solid var(--trz-border);
  padding: 20px 0;
}
.faq-item:first-child {
  border-top: 1px solid var(--trz-border);
}
.faq-item h3 {
  font-size: 18px;
  margin: 0 0 10px 0;
  font-weight: 700;
  color: var(--trz-navy);
}
.faq-item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}

/* -------------------------------------------------------------------------- */
/* Related links                                                              */
/* -------------------------------------------------------------------------- */

.related-links {
  background: var(--trz-gray);
  border-radius: var(--r-12);
  padding: 28px;
  margin: 40px 0;
  border: 1px solid var(--trz-border);
}
.related-links h4 {
  font-size: 12px;
  color: var(--trz-coral);
  margin-bottom: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.related-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.related-links li {
  position: relative;
  padding-left: 20px;
}
.related-links li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--trz-coral);
  font-weight: 700;
}
.related-links a {
  color: var(--trz-navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.related-links a:hover {
  color: var(--trz-coral);
  text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/* CTA + article footer                                                       */
/* -------------------------------------------------------------------------- */

.cta-block {
  background: var(--trz-navy);
  color: var(--trz-white);
  padding: 48px 32px;
  border-radius: var(--r-20);
  margin: 56px 0 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-brand);
}
.cta-block h3 {
  color: var(--trz-white);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-block p {
  color: rgba(255,255,255,.75);
  margin-bottom: 24px;
  font-size: 17px;
}
.cta-button {
  display: inline-block;
  background: var(--trz-coral);
  color: var(--trz-white);
  text-decoration: none;
  padding: 14px 32px;
  border-radius: var(--r-10);
  font-weight: 600;
  font-size: 16px;
  transition: background .2s ease, transform .2s ease;
}
.cta-button:hover {
  background: #B84A36;
  transform: translateY(-1px);
  color: var(--trz-white);
}

.article-footer {
  margin-top: 48px;
  padding: 32px;
  background: var(--trz-navy);
  color: rgba(255,255,255,.75);
  border-radius: var(--r-20);
  font-size: 13px;
  line-height: 1.7;
  position: relative;
  overflow: hidden;
}
.article-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-brand);
}
.article-footer strong { color: var(--trz-white); font-weight: 700; }
.article-footer a { color: var(--trz-white); }
.article-footer p + p { margin-top: 14px; }

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .hero-blog { padding: 56px 20px 64px; }
  .hero-blog h1 { font-size: 30px; }
  .hero-sub { font-size: 17px; }
  article { padding: 40px 20px 64px; }
  article h2 { font-size: 24px; margin-top: 40px; }
  .lead { font-size: 17px; }
  .pull-quote { font-size: 18px; padding-left: 20px; }
  .cta-block { padding: 36px 24px; }
  .cta-block h3 { font-size: 22px; }
  .article-footer { padding: 24px; }
}
