/* ============================================================
   lebeninschweiz.ch — Article Styles
   ALL article components: hero, cards, tables, FAQ, share, etc.
   ============================================================ */

/* --- Article Page Wrapper --- */
.page-article {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* --- Article Hero Image --- */
.article-hero-img {
  margin-top: var(--header-height);
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* --- Article Header --- */
.article-header {
  background: #ffffff;
  padding: 32px 0 24px;
}

.article-header .container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

.article-breadcrumbs {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.article-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}
.article-breadcrumbs a:hover {
  color: var(--red);
}

.article-header .category-tag {
  margin-bottom: 12px;
}

.article-header h1 {
  margin-bottom: 8px;
}

.article-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.5;
}

/* --- Article Content Wrapper --- */
.article-content {
  background: var(--bg-page);
  padding: 40px 0 60px;
}

.article-content .container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   QUICK SUMMARY — 6 stat cards, 3-col grid
   ============================================================ */
.quick-summary {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 32px;
  padding: 0;
}

.quick-summary li {
  background: var(--bg-summary);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-3d);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  border-top: 3px solid var(--border-light);
}

.quick-summary li:nth-child(1),
.quick-summary li:nth-child(4) { border-top-color: var(--red); }
.quick-summary li:nth-child(2),
.quick-summary li:nth-child(5) { border-top-color: var(--gold); }
.quick-summary li:nth-child(3),
.quick-summary li:nth-child(6) { border-top-color: var(--gray-700); }

.quick-summary li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3d-hover);
}

.quick-summary .qs-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.quick-summary .qs-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ============================================================
   TABLE OF CONTENTS — Journey Card Premium (estándar del sitio)
   ============================================================ */
.toc {
  background: #fff;
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  padding: 32px 36px;
  margin-bottom: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05), 0 1px 0 rgba(0,0,0,0.02);
}

.toc h3 {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red) !important;
  background: rgba(220,38,38,0.12);
  padding: 5px 14px;
  border-radius: 50px;
  margin: 0 0 8px;
}

.toc ol {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 32px;
  counter-reset: toc-counter;
}

.toc ol li { counter-increment: toc-counter; }

.toc ol a {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.86rem;
  color: var(--text-body);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.toc ol a::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-400);
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  margin-right: 12px;
  transition: all 0.2s ease;
}

.toc ol a::after {
  content: '→';
  margin-left: auto;
  padding-left: 8px;
  color: var(--red);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
  font-size: 1rem;
}

.toc ol a:hover { color: var(--text-primary); text-decoration: none; }
.toc ol a:hover::before { color: var(--red); border-color: var(--red); }
.toc ol a:hover::after { opacity: 1; transform: translateX(0); }

/* ============================================================
   INFO CARDS — 3-column grid
   ============================================================ */
.info-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.info-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: var(--shadow-3d);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s;
}

.info-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3d-hover);
}

.info-card.revealed:hover {
  transform: translateY(-3px);
}

.info-card .info-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.info-card--red  .info-card-icon { background: var(--red-light); color: var(--red-dark); }
.info-card--gold .info-card-icon { background: var(--gold-light); color: var(--gold-dark); }
.info-card--green .info-card-icon { background: var(--green-light); color: var(--green-dark); }
.info-card--blue  .info-card-icon { background: var(--gray-200); color: var(--gray-700); }

.info-card h3,
.info-card h4 {
  color: var(--text-primary) !important;
  margin-bottom: 6px;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* ============================================================
   BUDGET CARDS
   ============================================================ */
.budget-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-3d);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s;
}

.budget-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.budget-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3d-hover);
}

.budget-card.revealed:hover {
  transform: translateY(-3px);
}

.budget-card .budget-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.budget-badge--red  { background: var(--red-light); color: var(--red-dark); }
.budget-badge--gold { background: var(--gold-light); color: var(--gold-dark); }

.budget-card h3,
.budget-card h4 {
  color: var(--text-primary) !important;
  margin-bottom: 6px;
}

.budget-card .budget-total {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 2px solid var(--red);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.05rem;
}

/* Tablas interiores de las budget-cards: se revelan junto con la card
   (heredan el reveal del contenedor, no necesitan article-reveal propio) */
.budget-card.revealed .data-table-wrap {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   DATA TABLES
   ============================================================ */
.data-table-wrap {
  background: var(--bg-card);
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: var(--shadow-3d);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.data-table-wrap.revealed {
  opacity: 1;
  transform: translateY(0);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table thead th {
  background: var(--bg-summary);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.85rem;
  border-bottom: 2px solid var(--border-medium);
}

.data-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
}

.data-table tbody tr:nth-child(even) td {
  background: #fafbfc;
}

.data-table .cell-highlight {
  color: var(--red);
  font-weight: 600;
}

.data-table .cell-gold {
  color: var(--gold-dark);
  font-weight: 600;
}

/* ============================================================
   HIGHLIGHT BOXES
   ============================================================ */
.highlight-box {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-3d);
  border-left: 4px solid var(--border-medium);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.highlight-box.revealed {
  opacity: 1;
  transform: translateY(0);
}

.highlight-box--red  { border-left-color: var(--red); }
.highlight-box--gold { border-left-color: var(--gold); }
.highlight-box--gray { border-left-color: var(--gray-500); }

.highlight-box h3,
.highlight-box h4 {
  color: var(--text-primary) !important;
  margin-bottom: 8px;
}

.highlight-box p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ============================================================
   VS GRID — 2-column comparison
   ============================================================ */
.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.vs-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-3d);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s;
}

.vs-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.vs-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3d-hover);
}

.vs-card.revealed:hover {
  transform: translateY(-3px);
}

.vs-card:nth-child(odd) { border-top: 3px solid var(--red); }
.vs-card:nth-child(even) { border-top: 3px solid var(--gold); }

.vs-card h3,
.vs-card h4 {
  color: var(--text-primary) !important;
  margin-bottom: 6px;
}

/* ============================================================
   SECTION IMAGES
   ============================================================ */
.section-img {
  margin-bottom: 28px;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-img.revealed {
  opacity: 1;
  transform: translateY(0);
}

.section-img img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 12px;
}

/* Variante sin crop: conserva el aspect ratio natural de la imagen
   (para fotos con texto/documentos que no deben recortarse) */
.section-img--natural img {
  max-height: none;
  height: auto;
}

/* ============================================================
   KEY TAKEAWAY
   ============================================================ */
.key-takeaway {
  background: linear-gradient(135deg, #334358, #2a3548);
  border-radius: 12px;
  padding: 36px 32px;
  margin-bottom: 32px;
  color: #ffffff;
  box-shadow: var(--shadow-3d);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.key-takeaway.revealed {
  opacity: 1;
  transform: translateY(0);
}

.key-takeaway h3 {
  color: #ffffff !important;
  margin-bottom: 24px;
  font-size: 1.2rem;
}

.key-takeaway .kt-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.key-takeaway .kt-stat-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.key-takeaway .kt-stat-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.key-takeaway .kt-stat-label {
  font-size: 0.85rem;
  opacity: 0.75;
  line-height: 1.3;
}

/* ============================================================
   TIPS LIST
   ============================================================ */
.tips-list {
  list-style: none;
  padding: 0;
  margin-bottom: 28px;
  counter-reset: tip-counter;
}

.tips-list li {
  counter-increment: tip-counter;
  padding: 12px 0 12px 44px;
  position: relative;
  border-bottom: 1px solid var(--border-light);
  line-height: 1.6;
}

.tips-list li::before {
  content: counter(tip-counter);
  position: absolute;
  left: 0;
  top: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list {
  margin-bottom: 32px;
}

.faq-item {
  background: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-3d);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 18px 48px 18px 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  position: relative;
  line-height: 1.4;
}

.faq-question::after {
  content: '›';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 1.6rem;
  color: var(--red);
  transition: transform 0.3s;
  line-height: 1;
}

.faq-item.open .faq-question::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ============================================================
   SOURCES BOX
   ============================================================ */
.sources-box {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-3d);
}

.sources-box h3 {
  color: var(--text-primary) !important;
  margin-bottom: 14px;
}

.sources-box ul {
  list-style: none;
  padding: 0;
}

.sources-box li {
  padding: 6px 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.sources-box li a {
  font-weight: 500;
}

/* ============================================================
   AUTHOR BOX
   ============================================================ */
.author-box {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-3d);
  display: flex;
  gap: 20px;
  align-items: center;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-summary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.author-info h4 {
  color: var(--text-primary) !important;
  margin-bottom: 4px;
}

.author-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.author-trust {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.author-trust .trust-pill {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--green-light);
  color: var(--green-dark);
}

/* ============================================================
   RELATED ARTICLES
   ============================================================ */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.related-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-3d);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3d-hover);
  text-decoration: none;
}

.related-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  flex-shrink: 0;
}

.related-card-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-card-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary) !important;
  margin-bottom: 4px;
  min-height: 2.6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-card-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.4;
}

/* ============================================================
   BTT BUTTON
   ============================================================ */
.btt-btn {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 99999;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(220,38,38,0.5);
  opacity: 0.85;
  transition: opacity 0.3s, transform 0.3s;
}

.btt-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.btt-btn.visible {
  opacity: 1;
}

.btt-btn svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   ARTICLE-REVEAL BASE — cards start invisible, JS reveals them
   ============================================================ */
.article-reveal {
  /* base state handled per component via opacity:0 + transform */
}

/* ============================================================
   QUICK ANSWER BOX (Kurz gesagt) — dark, direct answer
   ============================================================ */
.quick-answer-box {
  background: linear-gradient(135deg, #334358, #2a3548);
  border-radius: 12px;
  padding: 32px 36px;
  margin-bottom: 32px;
  color: #fff;
  box-shadow: var(--shadow-3d);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.quick-answer-box.revealed {
  opacity: 1;
  transform: translateY(0);
}

.quick-answer-box h3 {
  color: #ffffff !important;
  margin-bottom: 14px;
}

.quick-answer-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-answer-box li {
  padding: 7px 0 7px 28px;
  position: relative;
  line-height: 1.6;
  font-size: 0.98rem;
  color: rgba(255,255,255,0.92);
}

.quick-answer-box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 7px;
  color: #fca5a5;
  font-weight: 700;
}

.quick-answer-box li strong {
  color: #ffffff;
}

/* ============================================================
   TIMELINE — visual phases
   ============================================================ */
.timeline {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline.revealed {
  opacity: 1;
  transform: translateY(0);
}

.timeline li {
  position: relative;
  padding: 0 0 26px 54px;
  border-left: 2px solid var(--border-light);
  margin-left: 15px;
}

.timeline li:last-child {
  border-left: 2px solid transparent;
  padding-bottom: 0;
}

.timeline .phase-dot {
  position: absolute;
  left: -15px;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  box-shadow: 0 2px 8px rgba(220,38,38,0.35);
}

.timeline li:nth-child(even) .phase-dot {
  background: var(--gold);
  box-shadow: 0 2px 8px rgba(180,83,9,0.35);
}

.timeline h3 {
  color: var(--text-primary) !important;
  margin-bottom: 3px;
  font-size: 1rem;
}

.timeline p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

.timeline .phase-note {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg-summary);
  color: var(--text-muted);
}

/* ============================================================
   SCENARIO CARDS
   ============================================================ */
.scenario-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 26px 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-3d);
  border-top: 3px solid var(--red);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.scenario-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scenario-card:nth-of-type(even) {
  border-top-color: var(--gold);
}

.scenario-card h3 {
  color: var(--text-primary) !important;
  margin-bottom: 4px;
}

.scenario-card .scenario-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg-summary);
  color: var(--text-muted);
}

.scenario-card p {
  font-size: 0.93rem;
  margin-bottom: 8px;
}

.scenario-card p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   BANKFINDER TOOL
   ============================================================ */
.finder {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 32px 36px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-3d);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.finder.revealed {
  opacity: 1;
  transform: translateY(0);
}

.finder h3 {
  color: var(--text-primary) !important;
  margin-bottom: 6px;
}

.finder .finder-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.finder fieldset {
  border: none;
  margin: 0 0 20px;
  padding: 0;
}

.finder legend {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 10px;
  padding: 0;
}

.finder .finder-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.finder label {
  position: relative;
  cursor: pointer;
}

.finder input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.finder .finder-opt {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 22px;
  border: 1.5px solid var(--border-medium);
  background: #fff;
  font-size: 0.88rem;
  color: var(--text-body);
  transition: all 0.2s;
  user-select: none;
}

.finder input[type="radio"]:focus-visible + .finder-opt {
  outline: 3px solid rgba(220,38,38,0.4);
  outline-offset: 2px;
}

.finder input[type="radio"]:checked + .finder-opt {
  border-color: var(--red);
  background: var(--red-light);
  color: var(--red-dark);
  font-weight: 600;
}

.finder-reset {
  display: inline-block;
  margin-top: 4px;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  background: var(--bg-summary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-body);
  cursor: pointer;
  transition: background 0.2s;
}

.finder-reset:hover {
  background: var(--gray-200);
}

.finder-output {
  display: none;
  background: var(--bg-summary);
  border-radius: 10px;
  padding: 24px 28px;
  margin-top: 24px;
  border-left: 4px solid var(--red);
}

.finder-output.visible {
  display: block;
}

.finder-output h4 {
  color: var(--text-primary) !important;
  margin-bottom: 12px;
}

.finder-output ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}

.finder-output li {
  padding: 6px 0 6px 26px;
  position: relative;
  font-size: 0.92rem;
  line-height: 1.55;
}

.finder-output li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--red);
  font-weight: 700;
}

.finder-output a {
  font-weight: 600;
}

.finder-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 18px;
  font-style: italic;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .article-hero-img {
    height: 260px;
  }

  /* Tablas: scroll horizontal controlado, sin desbordar la página */
  .data-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    min-width: 560px;
  }

  .quick-summary {
    grid-template-columns: 1fr 1fr;
  }

  .info-card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .vs-grid {
    grid-template-columns: 1fr;
  }

  .key-takeaway .kt-stats {
    grid-template-columns: 1fr 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* TOC móvil: acordeón con toggle (estándar del sitio) */
  .toc { padding: 20px; }
  .toc ol { grid-template-columns: 1fr; display: none; }
  .toc.open ol { display: grid; }
  .toc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0;
  }
  .toc-toggle svg { transition: transform 0.2s; }
  .toc.open .toc-toggle svg { transform: rotate(180deg); }
  .toc h3 { margin-bottom: 10px; }

  .author-box {
    flex-direction: column;
    text-align: center;
  }

  .quick-answer-box {
    padding: 24px 22px;
  }

  .finder {
    padding: 24px 20px;
  }

  .finder .finder-opt {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .scenario-card {
    padding: 22px 20px;
  }

  /* BTT mobile — REGLA GRABADA A FUEGO */
  .btt-btn {
    bottom: 16px !important;
    right: 14px !important;
    width: 44px !important;
    height: 44px !important;
    opacity: 1 !important;
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 2147483647 !important;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.5), 0 4px 24px rgba(220,38,38,0.9) !important;
  }
}

@media (max-width: 480px) {
  .article-hero-img {
    height: 200px;
  }

  .quick-summary {
    grid-template-columns: 1fr;
  }

  .info-card-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .btt-btn {
    width: 42px !important;
    height: 42px !important;
    bottom: 14px !important;
    right: 10px !important;
  }
}

/* ============================================================
   SHARE BAR — estilos oficiales del sitio (article.css)
   ============================================================ */
.share-bar {
  max-width: 920px; margin-inline: auto; padding-inline: var(--space-lg);
  margin-top: var(--space-2xl);
  text-align: center;
}
.share-bar h4 {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: #9ca3af; margin-bottom: var(--space-md);
}
.share-links {
  display: flex; justify-content: center; gap: var(--space-sm); flex-wrap: wrap;
}
.share-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px;
  font-size: 0.84rem; font-weight: 500; color: #4b5563; text-decoration: none;
  background: #fff; border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.15s ease;
}
.share-link:hover { border-color: #d1d5db; box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }
.share-link i { font-size: 1.1em; }
.share-link--x:hover { color: #000; }
.share-link--fb:hover { color: #1877f2; }
.share-link--wa:hover { color: #25d366; }
.share-link--li:hover { color: #0a66c2; }
.share-link--mail:hover { color: #dc2626; }
.share-link--copy:hover { color: #6b7280; }
.share-link--copy.copied { color: #059669; border-color: #059669; }

/* Móvil: mostrar la parte derecha de la foto del hero (nombre del banco) */
@media (max-width: 768px) {
  .article-hero-img img { object-position: 90% center !important; }
}
