/*
Theme Name: Fondear
Theme URI: https://plataformasdecrowdfunding.es/
Author: Fondear
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: fondear
*/

:root {
  --platcf-primary: #28445C;
  --platcf-primary-dark: #1C2F40;
  --platcf-secondary: #2F80ED;
  --platcf-accent: #B5D444;
  --platcf-accent-dark: #94AD37;
  --platcf-accent-soft: #F4F8E4;
  --platcf-bg: #FAF8FB;
  --platcf-surface: #FFFFFF;
  --platcf-text: #241A2A;
  --platcf-muted: #6E6276;
  --platcf-border: #E7E0EC;
  --platcf-success: #2F8F5B;
  --platcf-danger: #C8434B;
  --platcf-shadow: 0 4px 18px rgba(59,31,71,.08);
  --platcf-shadow-lg: 0 14px 40px rgba(59,31,71,.16);
  --platcf-radius: 14px;
  --platcf-radius-sm: 8px;
  --platcf-font-head: 'Plus Jakarta Sans', Georgia, serif;
  --platcf-font-body: 'Spectral', system-ui, -apple-system, sans-serif;
  --platcf-maxw: 1180px;
  --platcf-gradient: linear-gradient(135deg, #28445C 0%, #2F80ED 100%);
}

/* Reset base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--platcf-font-body);
  font-size: 16px;
  line-height: 1.74;
  color: var(--platcf-text);
  background: var(--platcf-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--platcf-secondary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--platcf-primary); }

h1, h2, h3, h4 {
  font-family: var(--platcf-font-head);
  font-weight: 400;
  line-height: 1.18;
  color: var(--platcf-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(--platcf-border); margin: 2.4em 0; }

/* ============================================================
   PIE DE PÁGINA — F6 CTA-split: boletín + enlaces
   ============================================================ */
.platcf-footer {
  background: #3B1F47;
  color: #c4b8cc;
  margin-top: auto;
  position: relative;
}

/* Onda SVG superior */
.platcf-footer-wave {
  display: block;
  line-height: 0;
  margin-bottom: -2px;
}
.platcf-footer-wave svg { width: 100%; height: 60px; display: block; }

/* Cuerpo del pie */
.platcf-footer-body {
  max-width: var(--platcf-maxw);
  margin: 0 auto;
  padding: 0 1.5rem 0;
}

/* Split CTA */
.platcf-footer-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  padding: 2.4rem 0 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

/* Bloque boletín */
.platcf-footer-split-newsletter h4 {
  font-family: var(--platcf-font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 .6rem;
}
.platcf-footer-nl-desc {
  font-size: .88rem;
  color: #b0a0bb;
  line-height: 1.65;
  margin: 0 0 1rem;
}
.platcf-footer-nl-form {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.platcf-footer-nl-form input[type="email"] {
  flex: 1 1 200px;
  padding: .55rem .9rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--platcf-radius-sm);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: .875rem;
  font-family: var(--platcf-font-body);
}
.platcf-footer-nl-form input[type="email"]::placeholder { color: #7a6888; }
.platcf-footer-nl-form button {
  padding: .55rem 1.2rem;
  background: var(--platcf-accent);
  color: var(--platcf-primary);
  border: none;
  border-radius: var(--platcf-radius-sm);
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s;
  font-family: var(--platcf-font-body);
  white-space: nowrap;
}
.platcf-footer-nl-form button:hover { background: var(--platcf-accent-dark); }
.platcf-footer-nl-note {
  font-size: .75rem;
  color: #7a6888;
  margin: .6rem 0 0;
}

/* Grupos de enlaces */
.platcf-footer-split-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.platcf-footer-link-group { flex: 1 1 120px; }
.platcf-footer-link-group h5 {
  font-family: var(--platcf-font-head);
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 .75rem;
}
.platcf-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.platcf-footer-menu li { margin-bottom: .48rem; }
.platcf-footer-menu a {
  font-size: .875rem;
  color: #b0a0bb;
  transition: color .18s;
}
.platcf-footer-menu a:hover { color: var(--platcf-accent); }
.platcf-footer-menu--extra { margin-top: .5rem; }

/* Nota de riesgo slim */
.platcf-footer-risk {
  font-size: .78rem;
  color: #6e5c7a;
  line-height: 1.6;
  margin: 1.4rem 0 0;
  padding: 0;
}

/* Barra inferior */
.platcf-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);
  padding: .9rem 0;
  margin-top: 1rem;
  font-size: .82rem;
  color: #6e5c7a;
}
.platcf-footer-bottom span { color: #6e5c7a; }
.platcf-footer-llms { color: #6e5c7a; }
.platcf-footer-llms:hover { color: var(--platcf-accent); }

/* Accesibilidad */
.platcf-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Responsivo */
@media (max-width: 860px) {
  .platcf-footer-split { grid-template-columns: 1fr; gap: 2rem; }
  .platcf-footer-split-links { flex-direction: row; }
}
@media (max-width: 560px) {
  .platcf-footer-body { padding: 0 1rem; }
  .platcf-footer-nl-form { flex-direction: column; }
  .platcf-footer-split-links { flex-direction: column; gap: 1.5rem; }
  .platcf-footer-bottom { flex-direction: column; align-items: flex-start; padding: .9rem 0; }
}
