/* =========================================================
   Bienveillant · Colmena DAO
   Tema: "Miel digital" – moderno, tecnológico y legible
   ========================================================= */

/* ---------- Variables básicas ---------- */

:root {
  --bg-dark: #020617;
  --bg-card: rgba(15, 23, 42, 0.96);
  --bg-chip: rgba(15, 23, 42, 0.9);

  --miel-1: #fbbf24;    /* dorado miel */
  --miel-2: #f97316;    /* ámbar */
  --miel-3: #fef3c7;    /* crema */

  --text-main: #e5e7eb;
  --text-soft: #9ca3af;
  --text-strong: #fefce8;

  --border-soft: rgba(148, 163, 184, 0.55);

  --radius-pill: 999px;
  --radius-card: 1.25rem;

  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.75);
}

/* ---------- Reset sencillo ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

/* ---------- Fondo general ---------- */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main);

  background:
    radial-gradient(circle at 0% 0%, rgba(251, 191, 36, 0.22), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(15, 23, 42, 0.9), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(249, 115, 22, 0.2), transparent 55%),
    var(--bg-dark);
}

/* Limitar ancho de todo el contenido y centrarlo */
body > * {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ---------- Tipografía ---------- */

h1,
h2,
h3 {
  color: var(--text-strong);
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: 0.03em;
  margin-top: 2.4rem;
  margin-bottom: 0.6rem;
}

h2 {
  font-size: clamp(1.6rem, 2.3vw, 2rem);
  margin-top: 1.9rem;
  margin-bottom: 0.4rem;
}

h3 {
  font-size: 1.15rem;
  margin-top: 1.4rem;
  margin-bottom: 0.3rem;
}

p {
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

ul,
ol {
  margin: 0.3rem 0 0.9rem 1.4rem;
  color: var(--text-main);
}

li + li {
  margin-top: 0.22rem;
}

strong {
  color: var(--miel-1);
  font-weight: 600;
}

/* Primer bloque de texto bajo el título (hero text) */
h1 + p {
  font-size: 0.98rem;
  color: var(--text-soft);
  max-width: 620px;
}

/* ---------- Enlaces ---------- */

a {
  color: var(--miel-1);
  text-decoration: none;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

a:hover {
  color: var(--miel-3);
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.7);
}

/* ---------- Barra de navegación ---------- */

.navbar {
  margin-top: 1.5rem;
  margin-bottom: 1.8rem;

  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;

  padding: 0.32rem;
  border-radius: var(--radius-pill);

  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--border-soft);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
}

.navbar a {
  position: relative;
  padding: 0.4rem 1.05rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: #e5e7eb;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

/* Estado normal */
.navbar a:hover {
  background: radial-gradient(circle at top left, #f97316, #fbbf24);
  color: #111827;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.5);
}

/* Marca manual: añade class="active" al enlace de la página actual si quieres */
.navbar a.active {
  background: linear-gradient(120deg, #fbbf24, #f97316);
  color: #111827;
  font-weight: 600;
}

/* ---------- Tarjeta de contenido principal ---------- */

main,
section,
article {
  margin-bottom: 2.4rem;
}

/* “Caja” que envuelve la mayor parte del contenido de cada página */
body > h1,
body > .navbar + h1,
body > .navbar + h1 + p,
body > .navbar + h1 + p + p {
  /* se dejan libres para que el flujo no se rompa */
}

.content-card {
  margin-top: 1.7rem;
  margin-bottom: 2rem;
  padding: 1.7rem 1.9rem;

  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.96),
      rgba(15, 23, 42, 0.92)
    );
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

/* Si no tienes div.content-card en el HTML,
   aplica el estilo a TODO el bloque de texto principal */
body > h1 + p + p {
  /* segundo párrafo en home que ya empieza a explicar el sitio */
  margin-top: 0.9rem;
}

body > h1,
body > .navbar + h1 {
  /* que el título “flote” sobre una base suave */
  padding: 1.1rem 1.3rem 0.7rem;
  border-radius: var(--radius-card);
  background: radial-gradient(circle at 0 0, rgba(251, 191, 36, 0.16), transparent 60%);
}

/* ---------- Bloques destacados tipo “chip” ---------- */

/* Para frases como “Apicultura regenerativa + tecnología abierta” etc. */
.highlight-line {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  margin-bottom: 0.6rem;
  border-radius: var(--radius-pill);

  font-size: 0.85rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;

  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 60%);
  border: 1px solid rgba(251, 191, 36, 0.75);
  color: #fef9c3;
}

/* ---------- Listas y secciones largas (gobernanza, reputación, etc.) ---------- */

section,
article {
  background: rgba(15, 23, 42, 0.88);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-soft);
}

/* Para evitar que TODO se vea como un bloque enorme en gobernanza.html */
section + section,
article + article {
  margin-top: 1.3rem;
}

section p,
article p {
  font-size: 0.96rem;
}

section ul,
article ul {
  font-size: 0.94rem;
}

/* ---------- Cajas especiales para cosas como “Reputación (0–100)” ---------- */

.box-info {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: radial-gradient(
      circle at 0 0,
      rgba(251, 191, 36, 0.17),
      rgba(15, 23, 42, 0.98)
    );
  border: 1px solid rgba(251, 191, 36, 0.7);
  font-size: 0.94rem;
}

/* Si en el texto pones Reputación (0–100) en un <strong>,
   lo resaltamos un poco más. */
.box-info strong {
  font-size: 0.96rem;
  color: var(--miel-3);
}

/* ---------- Footer ---------- */

footer {
  margin-top: 2.4rem;
  padding-top: 1rem;
  padding-bottom: 1.4rem;
  border-top: 1px solid rgba(30, 64, 175, 0.9);
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  body > * {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  h1 {
    margin-top: 1.9rem;
  }

  section,
  article {
    padding: 1.2rem 1.25rem;
  }

  .navbar {
    width: 100%;
    justify-content: flex-start;
  }
}
