/* ============================================================
   Afiliados Widget — GeneratePress
   accent #1e73be · texto #3a3a3a · fondo #efefef
   ============================================================ */

:root {
  --af-accent:   #1e73be;
  --af-accent2:  #1558a0;
  --af-dark:     #222222;
  --af-dark2:    #2c2c3e;
  --af-text:     #3a3a3a;
  --af-muted:    #666;
  --af-border:   #ddd;
  --af-bg:       #f7f8f9;
  --af-card:     #ffffff;
  --af-green:    #16a34a;
  --af-purple:   #7c3aed;
  --af-radius:   6px;
  --af-shadow:   0 1px 8px rgba(0,0,0,.07);
}

.afil-wrap { font-family: inherit; }

/* ── Intro ──────────────────────────────────────────────── */

.afil-intro {
  text-align: center;
  padding: 1.5rem 1rem 1rem;
  margin-bottom: 1.5rem;
}

.afil-intro__title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--af-dark);
  margin: 0 0 .5rem;
}

.afil-intro__sub {
  font-size: .82rem;
  color: var(--af-muted);
  margin: 0;
}

/* ── Secciones ──────────────────────────────────────────── */

.afil-section {
  background: var(--af-card);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: var(--af-shadow);
}

.afil-section--dark {
  background: var(--af-dark2);
  border-color: #3a3a50;
}

.afil-section-header {
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--af-border);
}

.afil-section-header--dark {
  border-bottom-color: #3a3a50;
}

.afil-section-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--af-dark);
  margin: .4rem 0 .2rem;
}

.afil-section-header--dark h3 { color: #fff; }

.afil-section-header p {
  font-size: .78rem;
  color: var(--af-muted);
  margin: 0;
}

.afil-section-header--dark p { color: rgba(255,255,255,.45); }

/* ── Badges ─────────────────────────────────────────────── */

.afil-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .65rem;
  border-radius: 20px;
}

.afil-badge--purple { background: rgba(124,58,237,.1); color: var(--af-purple); border: 1px solid rgba(124,58,237,.25); }
.afil-badge--green  { background: rgba(22,163,74,.1);  color: var(--af-green);  border: 1px solid rgba(22,163,74,.25);  }

.afil-badge-tipo {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 4px;
  background: rgba(30,115,190,.1);
  color: var(--af-accent);
  border: 1px solid rgba(30,115,190,.2);
  white-space: nowrap;
}

.afil-trial {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  color: var(--af-green);
  background: rgba(22,163,74,.08);
  padding: .15rem .5rem;
  border-radius: 4px;
}

/* ── Tablas ─────────────────────────────────────────────── */

.afil-table-wrap { overflow-x: auto; }

.afil-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}

.afil-table thead th {
  padding: .65rem 1rem;
  text-align: left;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--af-muted);
  background: var(--af-bg);
  border-bottom: 2px solid var(--af-border);
  white-space: nowrap;
}

.afil-table--dark thead th {
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.45);
  border-bottom-color: #3a3a50;
}

.afil-table tbody tr {
  border-bottom: 1px solid var(--af-border);
  transition: background .15s;
}

.afil-table--dark tbody tr {
  border-bottom-color: #3a3a50;
}

.afil-table tbody tr:last-child { border-bottom: none; }
.afil-table tbody tr:hover { background: rgba(30,115,190,.04); }
.afil-table--dark tbody tr:hover { background: rgba(255,255,255,.04); }

.afil-table tbody td {
  padding: .75rem 1rem;
  color: var(--af-text);
  vertical-align: middle;
}

.afil-table--dark tbody td { color: rgba(255,255,255,.8); }

.afil-platform-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none !important;
  color: inherit !important;
}

.afil-platform-link:hover strong { color: var(--af-accent); }

.afil-platform-link--dark:hover strong { color: #60b4ff; }

.afil-platform-link strong {
  font-size: .88rem;
  font-weight: 700;
  color: var(--af-dark);
  transition: color .15s;
  display: block;
}

.afil-platform-link--dark strong { color: #fff; }

.afil-logo { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }

.afil-desc {
  max-width: 220px;
  font-size: .78rem;
  color: var(--af-muted);
  line-height: 1.5;
}

.afil-tags {
  font-size: .72rem;
  color: var(--af-muted);
  white-space: nowrap;
}

.afil-integ {
  font-size: .75rem;
  color: var(--af-muted);
  max-width: 150px;
}

.afil-highlight {
  font-weight: 700;
  color: #60b4ff;
}

.afil-table .afil-highlight { color: var(--af-accent); }
.afil-table--dark .afil-highlight { color: #60b4ff; }

.afil-rating { font-weight: 800; font-size: .95rem; }
.afil-stars  { color: #f59e0b; font-size: .75rem; }
.afil-up     { color: #4ade80 !important; font-weight: 700; }

.afil-cta {
  display: inline-block;
  background: var(--af-accent);
  color: #fff !important;
  text-decoration: none !important;
  font-size: .75rem;
  font-weight: 700;
  padding: .35rem .75rem;
  border-radius: var(--af-radius);
  transition: background .2s;
  white-space: nowrap;
}

.afil-cta:hover { background: var(--af-accent2); }

/* ── Landing de herramienta ─────────────────────────────── */

.afil-landing { font-family: inherit; }

.afil-breadcrumb {
  font-size: .78rem;
  color: var(--af-muted);
  margin-bottom: 1.25rem;
}

.afil-breadcrumb a {
  color: var(--af-accent);
  text-decoration: none;
  font-weight: 600;
}

.afil-landing-hero {
  background: linear-gradient(135deg, var(--af-dark) 0%, var(--af-dark2) 100%);
  border-radius: var(--af-radius);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.afil-landing-hero__left { display: flex; align-items: center; gap: 1.25rem; }

.afil-landing-hero__logo { font-size: 3rem; line-height: 1; }

.afil-landing-hero__nombre {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: .35rem;
}

.afil-landing-hero__tipo {
  display: inline-block;
  background: rgba(30,115,190,.35);
  border: 1px solid rgba(30,115,190,.5);
  color: #60b4ff;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .6rem;
  border-radius: 20px;
  margin-bottom: .4rem;
}

.afil-landing-hero__nichos {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  margin-top: .35rem;
}

.afil-landing-hero__right { text-align: right; }

.afil-rating-big {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
}

.afil-stars-big { color: #f59e0b; font-size: 1rem; display: block; }

.afil-btn-cta {
  display: inline-block;
  background: var(--af-accent);
  color: #fff !important;
  text-decoration: none !important;
  font-size: .9rem;
  font-weight: 700;
  padding: .65rem 1.5rem;
  border-radius: var(--af-radius);
  margin-top: .75rem;
  transition: background .2s, transform .1s;
  white-space: nowrap;
}

.afil-btn-cta:hover { background: var(--af-accent2); transform: translateY(-1px); }
.afil-btn-cta--large { font-size: 1rem; padding: .8rem 2rem; }

.afil-trial-note {
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  margin-top: .35rem;
}

.afil-landing-desc {
  background: var(--af-card);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--af-shadow);
  font-size: .9rem;
  color: var(--af-text);
  line-height: 1.7;
}

.afil-landing-desc p { margin: 0; }

.afil-metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.afil-metric {
  background: var(--af-card);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--af-shadow);
}

.afil-metric span {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--af-muted);
  margin-bottom: .4rem;
}

.afil-metric strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--af-dark);
}

.afil-landing-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.afil-landing-col {
  background: var(--af-card);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--af-shadow);
}

.afil-landing-col h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--af-dark);
  margin: 0 0 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--af-accent);
}

.afil-detail-table { width: 100%; border-collapse: collapse; font-size: .83rem; }

.afil-detail-table tr { border-bottom: 1px solid var(--af-border); }
.afil-detail-table tr:last-child { border-bottom: none; }

.afil-detail-table td {
  padding: .55rem .25rem;
  color: var(--af-text);
  vertical-align: middle;
}

.afil-detail-table td:first-child {
  color: var(--af-muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  width: 45%;
}

.afil-detail-table td:last-child { font-weight: 600; }

.afil-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.afil-pros, .afil-cons {
  background: var(--af-card);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--af-shadow);
}

.afil-pros h3 { font-size: .95rem; font-weight: 700; color: var(--af-green); margin: 0 0 .75rem; }
.afil-cons h3 { font-size: .95rem; font-weight: 700; color: #dc2626; margin: 0 0 .75rem; }

.afil-pros ul, .afil-cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.afil-pros ul li, .afil-cons ul li {
  font-size: .84rem;
  color: var(--af-text);
  padding: .35rem 0;
  border-bottom: 1px solid var(--af-border);
  padding-left: 1rem;
  position: relative;
}

.afil-pros ul li:last-child, .afil-cons ul li:last-child { border-bottom: none; }

.afil-pros ul li::before { content: '✓'; color: var(--af-green); position: absolute; left: 0; font-weight: 700; }
.afil-cons ul li::before { content: '✗'; color: #dc2626; position: absolute; left: 0; font-weight: 700; }

.afil-landing-cta {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--af-bg);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  margin-bottom: 1.5rem;
}

.afil-cta-note { font-size: .74rem; color: var(--af-muted); margin: .6rem 0 0; }

.afil-footer {
  font-size: .74rem;
  color: var(--af-muted);
  text-align: center;
  padding: .75rem 0;
  border-top: 1px solid var(--af-border);
}

.afil-footer a { color: var(--af-accent); text-decoration: none; font-weight: 600; }

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 900px) {
  .afil-metrics-grid    { grid-template-columns: repeat(3, 1fr); }
  .afil-landing-cols    { grid-template-columns: 1fr; }
  .afil-pros-cons       { grid-template-columns: 1fr; }
  .afil-landing-hero    { flex-direction: column; align-items: flex-start; }
  .afil-landing-hero__right { text-align: left; }
}

@media (max-width: 600px) {
  .afil-metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
