/*
Theme Name: Iberlend
Theme URI: https://crowdlendingespana.es/
Author: Iberlend
Description: Tema proprio — perfis de plataforma, avaliacoes, comparativos e otimizacao para motores de resposta.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: iberlend
*/

:root {
  --crowdl-primary: #102A43;
  --crowdl-primary-dark: #0B1D2E;
  --crowdl-secondary: #C9A227;
  --crowdl-accent: #43D9A3;
  --crowdl-accent-dark: #1FB888;
  --crowdl-accent-soft: #E4F9F2;
  --crowdl-bg: #F4F7FB;
  --crowdl-surface: #FFFFFF;
  --crowdl-text: #15203A;
  --crowdl-muted: #5A6781;
  --crowdl-border: #DCE4F0;
  --crowdl-success: #1FA971;
  --crowdl-danger: #D9483B;
  --crowdl-shadow: 0 4px 18px rgba(26,62,140,.08);
  --crowdl-shadow-lg: 0 14px 40px rgba(26,62,140,.16);
  --crowdl-radius: 14px;
  --crowdl-radius-sm: 8px;
  --crowdl-font-head: 'Libre Franklin', Georgia, serif;
  --crowdl-font-body: 'Lora', system-ui, -apple-system, sans-serif;
  --crowdl-maxw: 1180px;
  --crowdl-gradient: linear-gradient(135deg, #102A43 0%, #C9A227 100%);
}

/* Reset base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--crowdl-font-body);
  font-size: 16px;
  line-height: 1.74;
  color: var(--crowdl-text);
  background: var(--crowdl-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--crowdl-secondary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--crowdl-primary); }

h1, h2, h3, h4 {
  font-family: var(--crowdl-font-head);
  font-weight: 400;
  line-height: 1.18;
  color: var(--crowdl-primary);
  margin: 1.5em 0 .5em;
}
h1 { font-size: clamp(32px, 4.6vw, 50px); margin-top: 0; letter-spacing: .2px; }
h2 { font-size: clamp(25px, 3.2vw, 34px); }
h3 { font-size: clamp(19px, 2.3vw, 24px); }
h4 { font-size: 18px; }
p { margin: 0 0 1.2em; }
ul, ol { padding-left: 1.4em; margin: 0 0 1.25em; }
li { margin-bottom: .45em; }
strong { font-weight: 700; }
blockquote { margin: 1.6em 0; }
hr { border: 0; border-top: 1px solid var(--crowdl-border); margin: 2.4em 0; }

/* ============================================================
   PIE DE PAGINA — F2 Trust/risk-bar + fila slim
   ============================================================ */
.crowdl-footer {
  background: var(--crowdl-primary);
  color: #b0bdd0;
  margin-top: auto;
}

/* Barra de aviso de riesgo (ancho completo) */
.crowdl-footer-riskbar {
  background: rgba(0,0,0,.22);
  border-bottom: 3px solid var(--crowdl-secondary);
}
.crowdl-footer-riskbar-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: var(--crowdl-maxw);
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
}
.crowdl-footer-riskbar-icon {
  font-size: 1.4rem;
  color: var(--crowdl-secondary);
  flex-shrink: 0;
  line-height: 1.5;
}
.crowdl-footer-riskbar-inner p {
  font-size: .82rem;
  line-height: 1.65;
  color: #8a99b4;
  margin: 0;
}

/* Fila slim 3 col */
.crowdl-footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 2rem 2rem;
  max-width: var(--crowdl-maxw);
  margin: 0 auto;
  padding: 2.4rem 1.5rem 1.8rem;
}

.crowdl-footer-slim-col--brand .crowdl-footer-brand {
  font-family: var(--crowdl-font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  display: block;
  margin: 0 0 .6rem;
}
.crowdl-footer-slim-col--brand p {
  font-size: .85rem;
  color: #8a99b4;
  line-height: 1.65;
  margin: 0;
}

.crowdl-footer-slim-col h5 {
  font-family: var(--crowdl-font-head);
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 .75rem;
}

/* Menus */
.crowdl-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.crowdl-footer-menu li { margin-bottom: .48rem; }
.crowdl-footer-menu a {
  font-size: .875rem;
  color: #8a99b4;
  transition: color .18s;
}
.crowdl-footer-menu a:hover { color: var(--crowdl-secondary); }
.crowdl-footer-menu--extra { margin-top: .5rem; }

/* Barra inferior */
.crowdl-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.08);
  max-width: var(--crowdl-maxw);
  margin: 0 auto;
  padding: .9rem 1.5rem;
  font-size: .82rem;
  color: #5a6781;
}
.crowdl-footer-bottom a { color: #5a6781; }
.crowdl-footer-bottom a:hover { color: var(--crowdl-secondary); }

/* Responsivo */
@media (max-width: 860px) {
  .crowdl-footer-inner { grid-template-columns: 1fr 1fr; }
  .crowdl-footer-slim-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .crowdl-footer-inner { grid-template-columns: 1fr; padding: 2rem 1rem 1.5rem; }
  .crowdl-footer-riskbar-inner { flex-direction: column; padding: 1rem; }
  .crowdl-footer-bottom { flex-direction: column; align-items: flex-start; padding: .9rem 1rem; }
}
