@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

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

:root {
  --blue: #3B82F6;
  --blue-bright: #60a5fa;
  --blue-deep: #1e40af;
  --blue-soft: #bfdbfe;
  --bg-dark: #080b14;
  --bg-card: #0f1626;
  --bg-card-hover: #16203a;
  --text-primary: #f1f5f9;
  --text-secondary: #9fb0c9;
  --text-muted: #5d6f8f;
  --border: #1b2742;
  --cream: #e3ded6;
  --green: #52a870;
  --green-bright: #7dd49a;
  --orange: #d4914d;
  --orange-bright: #e8a862;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Instrument Sans', -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 7vw; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 7vw; }

/* ---------- NAV ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 20, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
nav .logo { font-weight: 700; font-size: 1.2rem; letter-spacing: 3px; color: var(--text-primary); }
nav .logo span { color: var(--blue-bright); }
nav .links { display: flex; gap: 1.75rem; font-size: 0.85rem; }
nav .links a { color: var(--text-secondary); transition: color 0.2s; }
nav .links a:hover { color: var(--text-primary); }
@media (max-width: 760px) { nav .links { display: none; } }
nav { transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
nav .logo, nav .links a { transition: color 0.25s ease; }
nav .icon-dark { display: none; }
nav.scrolled .icon-light { display: none; }
nav.scrolled .icon-dark { display: inline-block; }
nav.scrolled { background: rgba(232,226,214,0.94); border-bottom-color: rgba(0,0,0,0.06); box-shadow: 0 10px 30px rgba(0,0,0,0.22); }
nav.scrolled .logo, nav.scrolled .logo span { color: #1a1a1a; }
nav.scrolled .links a { color: #4a463e; }
nav.scrolled .links a:hover { color: #1a1a1a; }
nav.scrolled .lang-toggle { color: #4a463e; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.25s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-bright); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(59,130,246,0.3); }
.btn-ghost { border-color: var(--border); color: var(--text-primary); }
.btn-ghost:hover { border-color: var(--blue-deep); background: var(--bg-card); }

/* ---------- DIARIO INDEX ---------- */
.diario-hero { padding: 7rem 0 3rem; }
.diario-hero .tag {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 5px;
  color: var(--blue-bright); margin-bottom: 1.25rem; font-weight: 600;
}
.diario-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700;
  line-height: 1.05; letter-spacing: -1.5px; margin-bottom: 1.25rem;
}
.diario-hero p { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--text-secondary); max-width: 620px; }

.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; padding: 2rem 0 7rem; }
@media (max-width: 760px) { .article-grid { grid-template-columns: 1fr; } }

.diario-empty {
  padding: 2rem 0 8rem; border-top: 1px solid var(--border); margin-top: 2rem;
}
.diario-empty .badge {
  display: inline-block; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 2px;
  font-weight: 600; color: var(--orange-bright); border: 1px solid var(--border);
  border-radius: 100px; padding: 0.4rem 0.9rem; margin: 2.5rem 0 1.25rem;
}
.diario-empty p { font-size: 1.05rem; color: var(--text-secondary); }

.a-card {
  display: block; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; transition: all 0.3s;
}
.a-card:hover { border-color: var(--blue-deep); background: var(--bg-card-hover); transform: translateY(-4px); }
.a-card .cover { width: 100%; height: 220px; object-fit: cover; display: block; }
.a-card .body { padding: 1.5rem 1.75rem 1.75rem; }
.a-card .meta-row { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.8rem; }
.a-card .cat {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--blue-bright); font-weight: 600;
}
.a-card .read { font-size: 0.78rem; color: var(--text-muted); }
.a-card h2 { font-size: 1.35rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.5px; margin-bottom: 0.6rem; }
.a-card p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.5; }

/* ---------- ARTICLE PAGE ---------- */
.a-header { padding: 6.5rem 0 0; }
.a-header .meta-row { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.5rem; }
.a-header .cat {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 3px;
  color: var(--blue-bright); font-weight: 600;
}
.a-header .read { font-size: 0.82rem; color: var(--text-muted); }
.a-header .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }
.a-header h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 700;
  line-height: 1.08; letter-spacing: -1.5px; margin-bottom: 1.25rem;
}
.a-header .subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--text-secondary);
  max-width: 680px; margin-bottom: 3rem;
}

.a-cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: 16px; margin-bottom: 3.5rem; }

.a-body { padding-bottom: 5rem; }
.a-body h3 {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.5px;
  color: var(--text-primary); margin: 3rem 0 1.1rem;
}
.a-body p {
  font-size: 1.08rem; line-height: 1.75; color: var(--text-secondary); margin-bottom: 1.3rem;
}
.a-body p b, .a-body p strong { color: var(--text-primary); }
.a-body img {
  width: 100%; border-radius: 16px; margin: 2.5rem 0;
}
.a-body ul { margin: 0 0 1.3rem 1.3rem; color: var(--text-secondary); }
.a-body li { font-size: 1.05rem; line-height: 1.7; margin-bottom: 0.4rem; }

.a-cta {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 3.5rem 0; text-align: center; margin: 1rem 0 5rem;
}
.a-cta .kicker { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 4px; color: var(--blue-bright); font-weight: 600; margin-bottom: 1rem; }
.a-cta h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -1px; margin-bottom: 1.75rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- BRAND PULL-QUOTE (accento avorio, brand manual) ---------- */
.a-pullquote {
  background: #E8E2D6; color: #2c2a26; border-radius: 16px;
  padding: 3rem 3.5rem; margin: 3rem 0; text-align: center;
}
.a-pullquote p {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 700;
  line-height: 1.3; letter-spacing: -0.5px; color: #2c2a26; margin: 0;
}
.a-pullquote .becomes { color: #5687B0; }
.a-pullquote cite {
  display: block; margin-top: 1.25rem; font-style: normal;
  font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase;
  color: #829B85; font-weight: 600;
}

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--border); padding: 4.5rem 0 2.5rem; background: linear-gradient(180deg, transparent, rgba(15,22,38,0.55)); }
.f-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.1fr; gap: 2.5rem; }
@media (max-width: 820px) { .f-top { grid-template-columns: 1fr 1fr; gap: 2.25rem; } }
@media (max-width: 480px) { .f-top { grid-template-columns: 1fr; } }
.f-brand .mark { font-weight: 700; font-size: 1.5rem; letter-spacing: 3px; color: var(--text-primary); }
.f-brand .mark span { color: var(--blue-bright); }
.f-brand p { font-size: 0.88rem; margin-top: 0.9rem; max-width: 300px; }
.f-brand .payoff { margin-top: 1.1rem; font-size: 0.62rem; letter-spacing: 4px; text-transform: uppercase; color: var(--blue-bright); font-weight: 600; }
.f-social { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.f-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border); color: var(--text-secondary);
  transition: all 0.25s;
}
.f-social a:hover { color: var(--blue-bright); border-color: var(--blue-deep); background: var(--bg-card); transform: translateY(-2px); }
.f-social svg { width: 18px; height: 18px; }
.f-col h4 { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 3px; color: var(--text-muted); font-weight: 600; margin-bottom: 1.1rem; }
.f-col a, .f-col .li { display: block; font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0.65rem; transition: color 0.2s; }
.f-col a:hover { color: var(--blue-bright); }
.f-col .li { color: var(--text-muted); }
.f-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.f-bottom .legal { font-size: 0.74rem; color: var(--text-muted); letter-spacing: 0.3px; }
.f-legal-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.f-legal-links a { font-size: 0.74rem; color: var(--text-muted); transition: color 0.2s; }
.f-legal-links a:hover { color: var(--blue-bright); }
