/* ============================================================
   Iberlend — layout.css
   Estructura: cabecera F (logo + nav + barra de progreso de lectura),
   pie D (asimetrico 40/60), contenedores y secciones.
   ============================================================ */

/* ---------- Contenedores ---------- */
.crowdl-wrap { width: 100%; max-width: var(--crowdl-maxw); margin-inline: auto; padding-inline: 22px; }
.crowdl-wrap-narrow { max-width: 820px; }
.crowdl-main { display: block; }
.crowdl-block { width: 100%; }

/* ---------- Secciones ---------- */
.crowdl-section { padding: 60px 0; }
.crowdl-section-alt { background: var(--crowdl-bg); }
.crowdl-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.crowdl-section-head h2 { margin: 0; }
.crowdl-section-link { font-weight: 600; font-size: 15px; color: var(--crowdl-secondary); white-space: nowrap; }
.crowdl-section-link:hover { color: var(--crowdl-primary); }

/* ---------- Cabecera (variante F) ---------- */
.crowdl-header { position: sticky; top: 0; z-index: 200; background: var(--crowdl-surface); border-bottom: 1px solid var(--crowdl-border); }
.crowdl-header-inner { max-width: var(--crowdl-maxw); margin-inline: auto; padding: 14px 22px; display: flex; align-items: center; gap: 26px; }
.crowdl-brand { display: flex; align-items: center; }
.crowdl-brand-text { display: inline-flex; align-items: center; gap: 10px; }
.crowdl-brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--crowdl-primary); position: relative; flex: none; }
.crowdl-brand-mark::after { content: ""; position: absolute; inset: auto 6px 6px 6px; height: 5px; border-radius: 2px; background: var(--crowdl-accent); }
.crowdl-brand-name { font-family: var(--crowdl-font-head); font-size: 21px; font-weight: 700; color: var(--crowdl-primary); }
.crowdl-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.crowdl-menu { list-style: none; display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; }
.crowdl-menu a { font-size: 15px; font-weight: 500; color: var(--crowdl-text); }
.crowdl-menu a:hover { color: var(--crowdl-secondary); }

/* Desplegable de plataformas */
.crowdl-nav-platforms { position: relative; }
.crowdl-platforms-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font: 500 15px/1 var(--crowdl-font-body); color: var(--crowdl-text); }
.crowdl-caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; }
.crowdl-platforms-panel { position: absolute; top: calc(100% + 14px); right: 0; min-width: 240px; background: var(--crowdl-surface); border: 1px solid var(--crowdl-border); border-radius: var(--crowdl-radius); box-shadow: var(--crowdl-shadow-lg); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
.crowdl-nav-platforms:hover .crowdl-platforms-panel, .crowdl-nav-platforms:focus-within .crowdl-platforms-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.crowdl-platforms-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.crowdl-platforms-list a { display: block; padding: 8px 12px; border-radius: var(--crowdl-radius-sm); font-size: 14.5px; color: var(--crowdl-text); }
.crowdl-platforms-list a:hover { background: var(--crowdl-accent-soft); color: var(--crowdl-primary); }
.crowdl-nav-cta { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: var(--crowdl-radius-sm); background: var(--crowdl-primary); color: #fff; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.crowdl-nav-cta:hover { background: var(--crowdl-primary-dark); color: #fff; }

/* Barra de progreso de lectura */
.crowdl-progress { height: 3px; background: transparent; }
.crowdl-progress-bar { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--crowdl-accent); }

/* ---------- Pie (variante D: 40/60) ---------- */
.crowdl-footer { background: var(--crowdl-primary-dark); color: rgba(255,255,255,.8); margin-top: 70px; }
.crowdl-footer-inner { max-width: var(--crowdl-maxw); margin-inline: auto; padding: 54px 22px 40px; display: grid; grid-template-columns: 2fr 3fr; gap: 48px; }
.crowdl-footer-brand { font-family: var(--crowdl-font-head); font-size: 22px; font-weight: 700; color: #fff; margin: 0 0 14px; }
.crowdl-footer-lead p { font-size: 14.5px; color: rgba(255,255,255,.78); }
.crowdl-footer-risk { font-size: 13px; color: rgba(255,255,255,.58); }
.crowdl-footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.crowdl-footer-col h5 { color: #fff; margin: 0 0 14px; font-size: 15px; }
.crowdl-footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.crowdl-footer-menu a { color: rgba(255,255,255,.76); font-size: 14.5px; }
.crowdl-footer-menu a:hover { color: var(--crowdl-accent); }
.crowdl-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); max-width: var(--crowdl-maxw); margin-inline: auto; padding: 18px 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255,255,255,.6); }
.crowdl-footer-bottom a { color: rgba(255,255,255,.6); }
.crowdl-footer-bottom a:hover { color: var(--crowdl-accent); }
