/* Estilos de las entradas del blog de Gitania (blog/*.html).
   Mismos colores, tipografía y fondo que el resto del sitio. */
@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --red: #c81e3f;
  --red-bright: #ff7a92;
  --gold: #d4a017;
  --gold-bright: #ecc873;
  --aqua-bright: #5fe0cd;
  --void: #0d222b;
  --void-soft: #123243;
  --ink: #f5efe2;
  --ink-muted: #a79d8c;
  --hairline: rgba(245, 239, 226, 0.14);
  --ivory: #fff7e8;
}

* { box-sizing: border-box; }
html { background: var(--void); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 78% 12%, #fff, transparent),
    radial-gradient(2px 2px at 64% 42%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 30% 70%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 88% 82%, #fff, transparent),
    radial-gradient(900px 600px at 50% -10%, rgba(200, 30, 63, 0.18), transparent),
    var(--void);
  background-attachment: fixed;
  font-family: "Karla", -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: calc(18px + env(safe-area-inset-top)) clamp(20px, 4vw, 56px) 18px;
  color: var(--ivory);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: inherit; font-size: 13px; letter-spacing: 0.34em;
  text-decoration: none; text-transform: uppercase;
}
.brand-mark { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; filter: drop-shadow(0 0 10px rgba(245, 239, 226, 0.25)); }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.site-nav a { color: var(--ink-muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-bright); }

.post { max-width: 720px; margin: 0 auto; padding: 48px 22px 72px; }
.breadcrumb { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 28px; }
.breadcrumb a { color: var(--gold-bright); text-decoration: none; }
.post-eyebrow { margin: 0 0 14px; color: var(--red-bright); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; }
.post h1 { margin: 0 0 18px; font-size: clamp(30px, 5vw, 46px); font-weight: 500; line-height: 1.15; color: var(--ivory); }
.post-dek { margin: 0 0 18px; font-size: 19px; line-height: 1.55; color: var(--ink); opacity: 0.9; }
.post-meta { margin: 0 0 36px; font-size: 13px; color: var(--ink-muted); }
.post-figure { margin: 0 0 36px; text-align: center; }
.post-figure img { width: min(280px, 70%); height: auto; border-radius: 14px; border: 1px solid rgba(236, 200, 115, 0.45); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.7); }
.post-figure figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-muted); }

.post-body { font-size: 18px; line-height: 1.75; }
.post-body p { margin: 0 0 1.25em; }
.post-body h2 { margin: 2em 0 0.6em; font-size: 25px; font-weight: 500; line-height: 1.25; color: var(--gold-bright); }
.post-body a { color: var(--gold-bright); text-decoration: none; border-bottom: 1px solid rgba(236, 200, 115, 0.4); }
.post-body a:hover { border-bottom-color: var(--gold-bright); }
.post-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--red-bright); font-style: italic; color: var(--ink); }
.post-body blockquote cite { display: block; margin-top: 6px; font-style: normal; font-size: 14px; color: var(--ink-muted); }
.post-body strong { color: var(--ivory); font-weight: 600; }

.post-cta { margin: 48px 0 0; padding: 26px 26px 22px; border: 1px solid rgba(236, 200, 115, 0.4); border-radius: 18px; background: rgba(18, 50, 67, 0.6); }
.post-cta h2 { margin: 0 0 10px; color: var(--ivory); font-size: 22px; font-weight: 500; }
.post-cta p { margin: 0 0 14px; line-height: 1.65; }
.post-cta .buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.button { display: inline-block; padding: 12px 20px; border-radius: 999px; background: var(--red); color: var(--ivory); text-decoration: none; font-weight: 600; font-size: 15px; }
.button.secondary { background: transparent; border: 1px solid var(--gold-bright); color: var(--gold-bright); }
.post-disclaimer { margin: 18px 0 0; font-size: 13.5px; color: var(--ink-muted); line-height: 1.6; }

.sources { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--hairline); font-size: 15px; line-height: 1.6; }
.sources h2 { margin: 0 0 12px; font-size: 18px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.sources ol { padding-left: 20px; margin: 0; }
.sources li { margin-bottom: 10px; }
.sources a { color: var(--gold-bright); word-break: break-word; }
.sources .note { color: var(--ink-muted); font-size: 14px; }

footer {
  padding: 40px 22px calc(40px + env(safe-area-inset-bottom));
  color: var(--ink-muted);
  border-top: 1px solid var(--hairline);
  font-size: 11px; letter-spacing: 0.12em; text-align: center; text-transform: uppercase;
}
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--gold-bright); }
.footer-address { display: block; font-size: 9px; letter-spacing: 0.08em; opacity: 0.7; margin-bottom: 10px; }
.footer-disclaimer { display: block; margin: 12px auto 0; max-width: 620px; text-transform: none; letter-spacing: 0.02em; line-height: 1.5; opacity: 0.85; }

@media (max-width: 640px) {
  .post-body { font-size: 17px; }
  .site-nav { font-size: 11px; }
}

/* ---------------- idioma (ES / EN / FR) ---------------- */
.header-right { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; justify-content: flex-end; }
.langbar { display: flex; gap: 6px; }
.langbtn {
  font-family: "Karla", -apple-system, "Segoe UI", sans-serif; font-weight: 700; font-size: 0.66rem; letter-spacing: 0.04em;
  padding: 5px 9px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.4); background: transparent; color: var(--ivory); cursor: pointer;
}
.langbtn.active { background: var(--ivory); border-color: var(--ivory); color: #111; }
[data-lang][hidden] { display: none !important; }
@media (max-width: 640px) {
  .header-right { width: 100%; justify-content: space-between; }
  .langbtn { padding: 4px 7px; font-size: 0.6rem; }
}
