/* Estilos compartidos de los articulos del blog.
   Los dos primeros articulos (yape-falso, verificar-pago) lo llevan inline por
   historia; los nuevos enlazan este archivo. Si tocas uno, toca el otro. */

html { scroll-behavior: smooth; }

/* Cloudflare inyecta iframes y ofuscacion de correo que rompen el layout */
body > iframe,
iframe[height="1"],
iframe[style*="position:absolute"],
iframe[style*="position: absolute"],
iframe[height="1"][width="1"],
[data-cfemail],
a[href*="/cdn-cgi/l/email-protection"],
.cf-icon-letter,
i[data-cfemail] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.nav-back:hover {
  border-color: #6D28D9;
  color: #6D28D9;
  background-color: #FAF5FF;
}
.footer-link:hover { color: rgba(255,255,255,.7); }

.article-section { scroll-margin-top: 88px; }
.article-section:hover { box-shadow: 0 4px 20px rgba(0,0,0,.09); }

.article-body p {
  font-size: 15px;
  color: #4B5563;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.article-body p:last-child { margin-bottom: 0; }
.article-body strong { color: #1F2937; font-weight: 600; }
.article-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1F2937;
  margin: 1.5rem 0 .6rem;
  letter-spacing: -.01em;
}
.article-body ul.plain {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.article-body ul.plain li {
  font-size: 15px;
  color: #4B5563;
  line-height: 1.7;
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: .5rem;
}
.article-body ul.plain li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #A855F7;
}

/* Lista numerada de senales */
.signal-list { counter-reset: signal-counter; list-style: none; padding: 0; margin: 0; }
.signal-list li {
  counter-increment: signal-counter;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid #F3F4F6;
}
.signal-list li:last-child { border-bottom: none; padding-bottom: 0; }
.signal-list li:first-child { padding-top: 0; }
.signal-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #6D28D9;
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* Pasos */
.steps-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.step-item { display: flex; gap: 1rem; align-items: flex-start; }
.step-dot {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* Respuesta directa arriba del articulo: es lo que Google levanta como
   fragmento destacado, por eso va primero y en 2 parrafos cortos */
.respuesta-rapida {
  background: linear-gradient(135deg, #FAF5FF 0%, #F5F3FF 100%);
  border: 1px solid #DDD6FE;
  border-left: 4px solid #7C3AED;
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
}
.respuesta-rapida p {
  font-size: 15.5px;
  color: #3B2E5A;
  line-height: 1.7;
  margin-bottom: .8rem;
}
.respuesta-rapida p:last-child { margin-bottom: 0; }
.respuesta-rapida strong { color: #4C1D95; font-weight: 700; }

/* Tablas: scroll propio para que el body nunca se desborde en movil */
.tabla-wrap { overflow-x: auto; margin: 0 0 1rem; }
table.comparativa {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 460px;
}
table.comparativa th {
  text-align: left;
  background: #F9FAFB;
  color: #374151;
  font-weight: 700;
  font-size: 13px;
  padding: .7rem .85rem;
  border-bottom: 2px solid #E5E7EB;
}
table.comparativa td {
  padding: .7rem .85rem;
  border-bottom: 1px solid #F3F4F6;
  color: #4B5563;
  line-height: 1.55;
  vertical-align: top;
}
table.comparativa tr:last-child td { border-bottom: none; }

.callout {
  border-radius: 10px;
  padding: 1rem 1.15rem;
  font-size: 14.5px;
  line-height: 1.65;
  margin: 1.1rem 0;
}
.callout strong { font-weight: 700; }
.callout-alerta { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.callout-ok     { background: #F0FDF4; border: 1px solid #BBF7D0; color: #166534; }
.callout-nota   { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }

.faq-item { border-bottom: 1px solid #F3F4F6; padding: 1.05rem 0; }
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-item:first-child { padding-top: 0; }
.faq-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1F2937;
  margin: 0 0 .45rem;
  letter-spacing: -.01em;
}
.faq-item p { font-size: 14.5px; color: #4B5563; line-height: 1.7; margin: 0; }

.cta-aside { transition: box-shadow 0.2s ease, transform 0.2s ease; }
.cta-aside:hover { box-shadow: 0 8px 32px rgba(109,40,217,.25); }

.btn-primary { transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease; }
.btn-primary:hover {
  background-color: #5B21B6;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(109,40,217,.4);
}

.btn-secondary { transition: background-color 0.2s ease, border-color 0.2s ease; }
.btn-secondary:hover {
  background-color: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.5);
}

:focus-visible { outline: 3px solid #7c3aed; outline-offset: 3px; border-radius: 4px; }
