/* Innovación Solidaria · web corporativa
   Colores, tipografía y radios según el Kit de Marca v1.0 (Opción B). */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/nunito-800-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/nunito-sans-latin.woff2") format("woff2");
}

:root {
  /* Paleta de marca */
  --ink: #1B1B2F;
  --coral: #E85D4A;
  --cream: #FFF8EE;
  --cream-2: #F4ECDA;
  --amber: #F5B83D;
  --teal: #1FA6A0;
  --indigo: #3D4FC4;
  --paper: #FFFFFF;
  --line: #E8DFC9;
  --muted: #6B6A60;
  /* Coral oscurecido para texto pequeño y enlaces sobre crema (contraste AA) */
  --coral-text: #B23A2A;

  --display: "Nunito", system-ui, sans-serif;
  --body: "Nunito Sans", system-ui, Arial, sans-serif;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--coral-text); }
a:hover { color: var(--ink); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

/* Logotipo (isotipo + "innovación solidaria" en Nunito 800) */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.logo svg { flex: none; }
.logo .s { color: var(--coral); }
.logo:hover { color: var(--ink); }

/* Cabecera */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 248, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.9rem;
}
.site-nav a:hover { color: var(--coral-text); }

/* Portada */
.hero {
  background: var(--ink);
  color: var(--cream);
  padding: 88px 0 80px;
}
.eyebrow {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 20px;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.04;
  max-width: 18ch;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--coral); }
.hero p {
  color: #BFC0D4;
  font-size: 1.15rem;
  max-width: 60ch;
  margin: 0 0 32px;
}
.hero p strong { color: var(--cream); }
.dots { display: flex; gap: 8px; margin-top: 48px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }

/* Botones */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  border: 2px solid transparent;
}
.button.primary { background: var(--coral); color: var(--ink); }
.button.primary:hover { background: var(--amber); color: var(--ink); }
.button.ghost { border-color: var(--cream); color: var(--cream); }
.button.ghost:hover { background: var(--cream); color: var(--ink); }

/* Secciones */
section { padding: 80px 0; border-bottom: 1px solid var(--line); }
section.paper { background: var(--paper); }
.label {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral-text);
  margin: 0 0 12px;
}
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 8px; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 65ch; margin: 0 0 16px; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
}
.card .node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: block;
  margin-bottom: 18px;
}
.card p { margin: 0; color: var(--muted); }

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 32px;
  margin: 28px 0 0;
  padding: 28px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.facts dt { font-family: var(--display); font-weight: 800; }
.facts dd { margin: 0; }

/* Páginas legales */
.legal { padding: 56px 0 72px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 8px; }
.legal p, .legal li { max-width: 75ch; }
.updated { color: var(--muted); font-size: 0.95rem; }

/* Pie */
.site-footer {
  background: var(--ink);
  color: #BFC0D4;
  padding: 44px 0;
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.site-footer .logo { color: var(--cream); margin-bottom: 14px; }
.site-footer p { margin: 0 0 4px; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--amber); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: flex-start; }

@media (max-width: 780px) {
  .wrap { padding: 0 16px; }
  .cards { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0 56px; }
}

@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; gap: 2px; padding: 20px; }
  .facts dd { margin-bottom: 12px; }
}
