/* ============================================================
   Iberlend — main.css
   Componentes: hero dividido con panel de datos, barra de confianza,
   escala 1-10, fila de plataforma (lista), contadores, perfil y prosa.
   ============================================================ */

/* ---------- Botones ---------- */
.crowdl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--crowdl-radius-sm); border: 1px solid transparent; font-family: var(--crowdl-font-body); font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer; transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease; }
.crowdl-btn:hover { transform: translateY(-1px); }
.crowdl-btn-accent { background: var(--crowdl-accent); color: var(--crowdl-primary-dark); }
.crowdl-btn-accent:hover { background: var(--crowdl-accent-dark); color: #fff; }
.crowdl-btn-outline { background: transparent; border-color: var(--crowdl-primary); color: var(--crowdl-primary); }
.crowdl-btn-outline:hover { background: var(--crowdl-primary); color: #fff; }
.crowdl-btn-ghost { background: transparent; border-color: var(--crowdl-border); color: var(--crowdl-primary); }
.crowdl-btn-ghost:hover { background: var(--crowdl-accent-soft); }
.crowdl-btn-sm { padding: 8px 14px; font-size: 13.5px; }

/* ---------- Distintivo + escala 1-10 (variante c) ---------- */
.crowdl-badge { display: inline-block; background: var(--crowdl-accent-soft); color: var(--crowdl-accent-dark); font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; letter-spacing: .3px; }
.crowdl-badge-sm { font-size: 11px; padding: 3px 9px; }
.crowdl-scale { display: inline-flex; gap: 3px; vertical-align: middle; }
.crowdl-seg { width: 9px; height: 16px; border-radius: 3px; background: var(--crowdl-border); }
.crowdl-seg-on { background: var(--crowdl-accent); }

/* ---------- HERO dividido ---------- */
.crowdl-hero { background: var(--crowdl-gradient); color: #fff; padding: 72px 0; }
.crowdl-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: center; }
.crowdl-hero-kicker { text-transform: uppercase; letter-spacing: 1.2px; font-size: 12.5px; color: var(--crowdl-accent); margin: 0 0 14px; font-weight: 600; }
.crowdl-hero-text h1 { color: #fff; margin: 0 0 14px; }
.crowdl-hero-sub { color: rgba(255,255,255,.86); font-size: 18px; margin: 0 0 26px; }
.crowdl-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.crowdl-hero-panel { background: var(--crowdl-surface); color: var(--crowdl-text); border-radius: var(--crowdl-radius); box-shadow: var(--crowdl-shadow-lg); padding: 26px; }
.crowdl-hero-panel-badge { display: inline-block; background: var(--crowdl-accent-soft); color: var(--crowdl-accent-dark); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .4px; }
.crowdl-hero-panel-label { font-size: 12.5px; color: var(--crowdl-muted); margin: 12px 0 4px; text-transform: uppercase; letter-spacing: .5px; }
.crowdl-hero-panel-title { margin: 0 0 4px; font-size: 24px; }
.crowdl-hero-panel-title a { color: var(--crowdl-primary); }
.crowdl-hero-panel-tag { font-size: 13.5px; color: var(--crowdl-muted); margin: 0 0 14px; }
.crowdl-hero-panel-score { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.crowdl-hero-panel-num { font-family: var(--crowdl-font-head); font-size: 30px; color: var(--crowdl-primary); }
.crowdl-hero-panel-num small { font-size: .45em; color: var(--crowdl-muted); }
.crowdl-hero-panel-facts { display: flex; gap: 24px; margin: 0 0 18px; padding: 14px 0; border-top: 1px solid var(--crowdl-border); border-bottom: 1px solid var(--crowdl-border); }
.crowdl-hero-panel-facts dt { font-size: 12px; color: var(--crowdl-muted); }
.crowdl-hero-panel-facts dd { margin: 3px 0 0; font-weight: 700; color: var(--crowdl-primary); }

/* ---------- Barra de confianza ---------- */
.crowdl-trustbar { background: var(--crowdl-surface); border-bottom: 1px solid var(--crowdl-border); }
.crowdl-trustbar-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 24px 22px; }
.crowdl-trust { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.crowdl-trust-ic { font-family: var(--crowdl-font-head); font-size: 22px; color: var(--crowdl-primary); font-weight: 700; }
.crowdl-trust span:last-child { font-size: 13px; color: var(--crowdl-muted); }

/* ---------- Tablas comparativas ---------- */
.crowdl-tablewrap-comp, .crowdl-tablewrap-arch { overflow-x: auto; border-radius: var(--crowdl-radius); box-shadow: var(--crowdl-shadow); }
.crowdl-compare-table, .crowdl-arch-table { width: 100%; border-collapse: collapse; min-width: 680px; background: var(--crowdl-surface); }
.crowdl-compare-table thead th, .crowdl-arch-table thead th { background: var(--crowdl-primary); color: #fff; font-weight: 600; font-size: 14px; text-align: left; padding: 14px 16px; }
.crowdl-compare-table td, .crowdl-arch-table td { padding: 14px 16px; border-top: 1px solid var(--crowdl-border); }
.crowdl-cell-score { font-family: var(--crowdl-font-head); font-weight: 700; color: var(--crowdl-primary); }
.crowdl-arch-pos { width: 48px; font-family: var(--crowdl-font-head); font-size: 18px; color: var(--crowdl-secondary); text-align: center; }
.crowdl-arch-anchor { background: rgba(67,217,163,.10); }
.crowdl-arch-act { text-align: right; white-space: nowrap; }
.crowdl-arch-rate { display: inline-flex; align-items: center; gap: 8px; }
.crowdl-prow-btn { margin-top: 4px; }

/* ---------- Lista de plataformas (fila horizontal) ---------- */
.crowdl-platform-list { display: grid; gap: 16px; }
.crowdl-prow { display: grid; grid-template-columns: 70px 1fr auto; gap: 20px; align-items: center; background: var(--crowdl-surface); border: 1px solid var(--crowdl-border); border-radius: var(--crowdl-radius); padding: 20px 22px; box-shadow: var(--crowdl-shadow); }
.crowdl-prow-anchor { border-color: var(--crowdl-accent); }
.crowdl-prow-logo img, .crowdl-prow-mark { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.crowdl-prow-mark { display: grid; place-items: center; background: var(--crowdl-accent-soft); color: var(--crowdl-primary); font-family: var(--crowdl-font-head); font-size: 26px; }
.crowdl-prow-main { min-width: 0; }
.crowdl-prow-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.crowdl-prow-title h3 { margin: 0; font-size: 20px; }
.crowdl-prow-title h3 a { color: var(--crowdl-primary); }
.crowdl-prow-tag { color: var(--crowdl-muted); font-size: 14px; margin: 4px 0 10px; }
.crowdl-prow-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }
.crowdl-prow-facts li { display: flex; flex-direction: column; }
.crowdl-prow-facts span { font-size: 12px; color: var(--crowdl-muted); }
.crowdl-prow-facts strong { color: var(--crowdl-primary); font-size: 14.5px; }
.crowdl-prow-side { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.crowdl-prow-score { font-family: var(--crowdl-font-head); font-size: 26px; color: var(--crowdl-primary); }
.crowdl-prow-score small { font-size: .45em; color: var(--crowdl-muted); }

/* ---------- Contadores ---------- */
.crowdl-counters { background: var(--crowdl-primary); color: #fff; }
.crowdl-counters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.crowdl-counter { min-width: 0; }
.crowdl-counter-num { display: block; font-family: var(--crowdl-font-head); font-size: 40px; line-height: 1; color: var(--crowdl-accent); }
.crowdl-counter-label { display: block; font-size: 13.5px; color: rgba(255,255,255,.8); margin-top: 8px; }

/* ---------- Nota del experto ---------- */
.crowdl-expert { display: flex; gap: 20px; background: var(--crowdl-surface); border: 1px solid var(--crowdl-border); border-radius: var(--crowdl-radius); padding: 30px 32px; }
.crowdl-expert-mark { flex: none; width: 6px; border-radius: 6px; background: var(--crowdl-accent); }
.crowdl-expert-body h2 { margin: 0 0 12px; }
.crowdl-expert-link { font-weight: 600; margin: 6px 0 0; }

/* ---------- Migas / prosa ---------- */
.crowdl-crumbs { font-size: 13.5px; color: var(--crowdl-muted); margin-bottom: 14px; }
.crowdl-crumbs a { color: var(--crowdl-secondary); }
.crowdl-profile-main { min-width: 0; }
.crowdl-prose { font-size: 16.5px; }
.crowdl-prose h2 { margin-top: 1.7em; }
.crowdl-prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.crowdl-prose th, .crowdl-prose td { border: 1px solid var(--crowdl-border); padding: 11px 14px; text-align: left; }
.crowdl-prose thead th { background: var(--crowdl-accent-soft); color: var(--crowdl-primary); }
.crowdl-prose caption { caption-side: bottom; font-size: 12.5px; color: var(--crowdl-muted); margin-top: 8px; }

/* ---------- Cabecera de perfil (phero) ---------- */
.crowdl-phero { padding: 44px 0 36px; background: var(--crowdl-surface); border-bottom: 1px solid var(--crowdl-border); }
.crowdl-phero-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 40px; align-items: center; }
.crowdl-phero-main { min-width: 0; }
.crowdl-phero-badge { display: inline-block; margin-bottom: 10px; }
.crowdl-phero h1 { margin: 6px 0 10px; }
.crowdl-phero-tagline { font-size: 18px; color: var(--crowdl-muted); margin: 0 0 18px; }
.crowdl-phero-rating { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.crowdl-phero-score { font-family: var(--crowdl-font-head); font-size: 48px; color: var(--crowdl-primary); line-height: 1; }
.crowdl-phero-score small { font-size: .42em; color: var(--crowdl-muted); }
.crowdl-phero-rcount { margin: 6px 0 0; font-size: 13px; color: var(--crowdl-muted); }
.crowdl-phero-visual img { border-radius: var(--crowdl-radius); box-shadow: var(--crowdl-shadow-lg); }

/* ---------- Ficha + barras de criterio ---------- */
.crowdl-facts-table { width: 100%; border-collapse: collapse; }
.crowdl-facts-table th, .crowdl-facts-table td { padding: 11px 0; border-bottom: 1px solid var(--crowdl-border); text-align: left; font-size: 15px; }
.crowdl-facts-table th { width: 45%; color: var(--crowdl-muted); font-weight: 500; }
.crowdl-facts-table td { font-weight: 600; color: var(--crowdl-primary); }
.crowdl-cbars { display: grid; gap: 14px; }
.crowdl-cbar { display: grid; grid-template-columns: 130px 1fr 44px; gap: 12px; align-items: center; }
.crowdl-cbar-label { font-size: 14px; color: var(--crowdl-text); }
.crowdl-cbar-track { height: 8px; border-radius: 999px; background: var(--crowdl-border); overflow: hidden; }
.crowdl-cbar-fill { height: 100%; border-radius: 999px; background: var(--crowdl-accent); }
.crowdl-cbar-val { font-weight: 700; color: var(--crowdl-primary); font-size: 14px; text-align: right; }

/* ---------- Pros/cons, aviso, FAQ ---------- */
.crowdl-pc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.crowdl-pc-pros, .crowdl-pc-cons { background: var(--crowdl-surface); border: 1px solid var(--crowdl-border); border-radius: var(--crowdl-radius); padding: 20px 22px; }
.crowdl-pc-pros { border-color: var(--crowdl-success); }
.crowdl-pc-cons { border-color: var(--crowdl-danger); }
.crowdl-pc-pros h3 { color: var(--crowdl-success); margin: 0 0 12px; font-size: 18px; }
.crowdl-pc-cons h3 { color: var(--crowdl-danger); margin: 0 0 12px; font-size: 18px; }
.crowdl-pc-pros ul, .crowdl-pc-cons ul { list-style: none; padding: 0; margin: 0; }
.crowdl-pc-pros li, .crowdl-pc-cons li { position: relative; padding-left: 26px; margin-bottom: 9px; font-size: 14.5px; }
.crowdl-pc-pros li::before { content: '+'; position: absolute; left: 0; color: var(--crowdl-success); font-weight: 700; }
.crowdl-pc-cons li::before { content: '\2212'; position: absolute; left: 0; color: var(--crowdl-danger); font-weight: 700; }
.crowdl-disc-box { background: var(--crowdl-accent-soft); border: 1px solid var(--crowdl-border); border-radius: var(--crowdl-radius); padding: 16px 20px; font-size: 13.5px; color: var(--crowdl-muted); }
.crowdl-faq-acc { display: flex; flex-direction: column; gap: 12px; }
.crowdl-faq-acc details { background: var(--crowdl-surface); border: 1px solid var(--crowdl-border); border-radius: var(--crowdl-radius); padding: 4px 20px; }
.crowdl-faq-acc summary { cursor: pointer; font-weight: 600; font-size: 16.5px; padding: 14px 28px 14px 0; list-style: none; position: relative; color: var(--crowdl-primary); }
.crowdl-faq-acc summary::-webkit-details-marker { display: none; }
.crowdl-faq-acc summary::after { content: '+'; position: absolute; right: 0; top: 12px; font-size: 22px; color: var(--crowdl-secondary); transition: transform .2s ease; }
.crowdl-faq-acc details[open] summary::after { transform: rotate(45deg); }
.crowdl-faq-acc details p { padding: 0 0 16px; margin: 0; }

/* ---------- Formulario de opinion (escala) ---------- */
.crowdl-review-form { display: flex; flex-direction: column; gap: 14px; }
.crowdl-rf-scale { display: inline-flex; gap: 4px; }
.crowdl-rf-seg { width: 22px; height: 26px; border-radius: 4px; border: 1px solid var(--crowdl-border); background: var(--crowdl-surface); cursor: pointer; }
.crowdl-rf-seg.is-on { background: var(--crowdl-accent); border-color: var(--crowdl-accent); }
.crowdl-rcard-rate { display: inline-flex; align-items: center; gap: 8px; }
.crowdl-helpful-count { font-weight: 700; color: var(--crowdl-primary); }

/* ---------- Archivo / artículo ---------- */
.crowdl-archive-head { background: var(--crowdl-gradient); color: #fff; padding: 56px 0 46px; }
.crowdl-archive-head h1 { color: #fff; margin: 0 0 .4em; }
.crowdl-archive-sub { color: rgba(255,255,255,.85); max-width: 64ch; margin: 0; }
.crowdl-article { padding: 40px 0 10px; }
.crowdl-article-head { margin-bottom: 24px; }
.crowdl-article-img img { width: 100%; border-radius: var(--crowdl-radius); margin: 10px 0 24px; box-shadow: var(--crowdl-shadow); }
.crowdl-article-meta { font-size: 13.5px; color: var(--crowdl-muted); }
.crowdl-card { background: var(--crowdl-surface); border: 1px solid var(--crowdl-border); border-radius: var(--crowdl-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--crowdl-shadow); }
.crowdl-card-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.crowdl-card-body { padding: 20px 22px; display: flex; flex-direction: column; flex: 1 1 auto; }
.crowdl-cat { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--crowdl-secondary); font-weight: 700; }
.crowdl-card-body h2, .crowdl-card-body h3 { margin: 8px 0 10px; font-size: 20px; }
.crowdl-card-body h2 a, .crowdl-card-body h3 a { color: var(--crowdl-primary); }
.crowdl-card-meta { margin-top: auto; font-size: 13px; color: var(--crowdl-muted); }
.crowdl-card-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.crowdl-card-cat { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--crowdl-secondary); font-weight: 700; }
.crowdl-card-h { margin: 8px 0 10px; font-size: 20px; }
.crowdl-card-h a { color: var(--crowdl-primary); }

/* ---------- Blog / listados genericos ---------- */
.crowdl-list-pad { padding: 50px 0; }
.crowdl-agrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.crowdl-pagination { margin-top: 36px; }
.crowdl-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--crowdl-border); border-radius: var(--crowdl-radius-sm); color: var(--crowdl-text); margin-right: 6px; }
.crowdl-pagination .page-numbers.current { background: var(--crowdl-primary); color: #fff; border-color: var(--crowdl-primary); }

/* ---------- Busqueda / 404 ---------- */
.crowdl-searchform { display: flex; gap: 10px; margin: 18px 0 30px; }
.crowdl-searchform input[type="search"] { flex: 1; padding: 12px 16px; border: 1px solid var(--crowdl-border); border-radius: var(--crowdl-radius-sm); font: inherit; }
.crowdl-search-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.crowdl-search-list li { background: var(--crowdl-surface); border: 1px solid var(--crowdl-border); border-radius: var(--crowdl-radius); padding: 16px 20px; }
.crowdl-search-list a { color: var(--crowdl-primary); }
.crowdl-404 { text-align: center; padding: 80px 0 70px; }
.crowdl-404-code { font-family: var(--crowdl-font-head); font-size: clamp(70px,16vw,150px); color: var(--crowdl-accent); line-height: 1; }
.crowdl-404-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
