/* ============================================
   US LIBERTY ORGANIZATION — Design System
   Colores extraídos del logo oficial:
   Navy #1a2d57 | Gold #d8a019 | White #ffffff
   ============================================ */

:root {
  --navy: #1a2d57;
  --navy-dark: #0f1c3a;
  --navy-light: #2a4074;
  --navy-tint: #eef1f8;
  --gold: #d8a019;
  --gold-light: #f0c14e;
  --gold-dark: #a97b0f;
  --white: #ffffff;
  --off-white: #f8f7f3;
  --ink: #1c2230;
  --gray-700: #4a5164;
  --gray-500: #7a8194;
  --gray-300: #d7dae2;
  --gray-100: #eef0f4;
  --shadow-sm: 0 2px 8px rgba(15, 28, 58, 0.08);
  --shadow-md: 0 8px 30px rgba(15, 28, 58, 0.12);
  --shadow-lg: 0 20px 60px rgba(15, 28, 58, 0.18);
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1180px;
  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy);
}

p { margin: 0 0 1em; color: var(--gray-700); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding-left: 1.2em; }
li { margin-bottom: 0.5em; color: var(--gray-700); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(216, 160, 25, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.eyebrow.on-dark { color: var(--gold-light); background: rgba(216, 160, 25, 0.18); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-dark);
  box-shadow: 0 8px 24px rgba(216, 160, 25, 0.35);
}
.btn-gold:hover { box-shadow: 0 12px 30px rgba(216, 160, 25, 0.45); }
.btn-outline-light {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
  background: transparent;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-outline-navy {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-light); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.02rem;
}
.brand img { height: 46px; width: 46px; }
.brand small {
  display: block;
  font-weight: 500;
  font-size: 0.65rem;
  color: var(--gray-500);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--gold-dark); }
.main-nav .dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 130%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 10px;
  border: 1px solid var(--gray-100);
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
}
.dropdown-menu a:hover { background: var(--navy-tint); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  display: flex;
  border: 1.5px solid var(--gray-300);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
}
.lang-toggle button {
  border: none;
  background: transparent;
  padding: 7px 13px;
  cursor: pointer;
  color: var(--gray-500);
}
.lang-toggle button.active { background: var(--navy); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
}

@media (max-width: 920px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--white);
    padding: 20px 24px;
    box-shadow: var(--shadow-md);
    gap: 16px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .dropdown-menu { display: block; position: static; box-shadow: none; border: none; padding: 4px 0 0 12px; }
}

@media (max-width: 560px) {
  .header-inner { padding: 10px 16px; gap: 8px; }
  .brand img { height: 36px; width: 36px; }
  .brand { font-size: 0.85rem; }
  .brand small { font-size: 0.55rem; }
  .header-actions { gap: 8px; }
  .lang-toggle { font-size: 0.68rem; }
  .lang-toggle button { padding: 6px 9px; }
  .header-actions .btn-gold.btn-sm { display: none; } /* CTA already lives in the mobile menu + sticky bar */
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(ellipse at top right, var(--navy-light) 0%, var(--navy) 45%, var(--navy-dark) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 100px 0 90px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath fill='%23d8a019' fill-opacity='0.07' d='M60 10l6.2 19.1h20.1L69.9 41.3l6.2 19.1L60 48.2 43.9 60.4l6.2-19.1L33.7 29.1h20.1z'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 4vw, 3.4rem); margin-bottom: 20px; }
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero p.lead { color: rgba(255,255,255,0.82); font-size: 1.1rem; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.hero-badge-wrap { display: flex; justify-content: center; }
.hero-seal {
  width: min(320px, 80%);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-14px);} }

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 46px;
  flex-wrap: wrap;
}
.hero-stats div { }
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--gold-light); }
.hero-stats span { font-size: 0.8rem; color: rgba(255,255,255,0.7); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-badge-wrap { order: -1; }
}

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-head { max-width: 680px; margin: 0 auto 50px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-alt { background: var(--off-white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.78); }

/* ---------- Cards: 5 Ejes ---------- */
.grid-5 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.eje-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.eje-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.eje-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--navy-tint);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.eje-icon svg { width: 26px; height: 26px; stroke: var(--navy); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page-hero .eje-icon svg { stroke: var(--gold-light); }
.cta-card .eje-icon { background: rgba(255,255,255,0.18); margin: 0 auto 18px; }
.cta-card.outline .eje-icon { background: var(--navy-tint); }
.cta-card .eje-icon svg { stroke: var(--white); }
.cta-card.outline .eje-icon svg { stroke: var(--navy); }
.cta-card.gold .eje-icon svg { stroke: var(--navy-dark); }
.eje-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.eje-card p { font-size: 0.92rem; flex-grow: 1; }
.eje-card .link-more { font-weight: 700; color: var(--gold-dark); font-size: 0.85rem; margin-top: 14px; }

/* ---------- Benefits grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 28px; }
.benefit { text-align: center; padding: 10px; }
.benefit .eje-icon { margin: 0 auto 18px; }

/* ---------- CTA triple ---------- */
.cta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 24px; }
.cta-card {
  border-radius: var(--radius);
  padding: 38px 30px;
  text-align: center;
  color: var(--white);
}
.cta-card.gold { background: linear-gradient(160deg, var(--gold-light), var(--gold-dark)); color: var(--navy-dark); }
.cta-card.navy { background: linear-gradient(160deg, var(--navy-light), var(--navy-dark)); }
.cta-card.outline { background: var(--white); border: 2px solid var(--navy); color: var(--navy); }
.cta-card h3 { color: inherit; }
.cta-card p { color: inherit; opacity: 0.85; }

/* ---------- Quote / leadership ---------- */
.quote-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 40px;
}
.quote-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--navy-tint);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; color: var(--navy);
  border: 4px solid var(--gold);
}
.quote-block blockquote { font-size: 1.15rem; font-style: italic; color: var(--navy); margin: 0 0 14px; }
.quote-block cite { font-style: normal; font-weight: 700; color: var(--gold-dark); font-family: var(--font-head); }
@media (max-width: 700px) { .quote-block { grid-template-columns: 1fr; text-align: center; } }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 70px 0 60px;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.page-hero .eje-icon { margin: 0 auto 20px; background: rgba(255,255,255,0.12); font-size: 2rem; width: 74px; height: 74px; }
.breadcrumb { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-bottom: 18px; }
.breadcrumb a { color: var(--gold-light); }

/* ---------- Problem / Proposal layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.panel {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.panel.problem { border-top: 4px solid var(--gray-500); }
.panel.proposal { border-top: 4px solid var(--gold); }
.callout {
  background: var(--navy-tint);
  border-left: 4px solid var(--navy);
  padding: 22px 26px;
  border-radius: var(--radius-sm);
  margin: 30px 0;
}
.callout strong { color: var(--navy); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 40px;
  border: 1px solid var(--gray-100);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--navy);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--off-white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { width: auto; margin-top: 4px; }
.form-msg {
  display: none;
  background: rgba(216,160,25,0.12);
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-bottom: 20px;
}
.form-msg.show { display: block; }

/* ---------- Tabs (Únete hub) ---------- */
.tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid var(--gray-300);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Donation tiers ---------- */
.donate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 16px; margin-bottom: 26px; }
.donate-tier {
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 20px 10px;
  text-align: center;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  transition: all 0.15s ease;
}
.donate-tier.active, .donate-tier:hover { border-color: var(--gold); background: rgba(216,160,25,0.08); }
.donate-tier span { display: block; font-size: 0.7rem; font-weight: 500; color: var(--gray-500); margin-top: 4px; }
.freq-toggle { display: flex; justify-content: center; gap: 0; margin-bottom: 30px; }
.freq-toggle button {
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  padding: 10px 22px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--gray-500);
}
.freq-toggle button:first-child { border-radius: 999px 0 0 999px; }
.freq-toggle button:last-child { border-radius: 0 999px 999px 0; }
.freq-toggle button.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- Article ---------- */
.article-body { max-width: 720px; margin: 0 auto; }
.article-body p { font-size: 1.05rem; color: var(--gray-700); }
.article-meta { color: var(--gray-500); font-size: 0.85rem; margin-bottom: 30px; }
.article-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.article-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.article-row .thumb {
  width: 100px; height: 100px; border-radius: var(--radius-sm);
  background: var(--navy-tint); display:flex; align-items:center; justify-content:center; font-size:2rem;
}
@media (max-width: 560px) { .article-row { grid-template-columns: 1fr; text-align: center; } .article-row .thumb { margin: 0 auto; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 70px 0 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 44px; width: 44px; }
.footer-brand strong { color: var(--white); font-family: var(--font-head); }
.site-footer h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.site-footer a { color: rgba(255,255,255,0.65); font-size: 0.9rem; display: block; margin-bottom: 10px; }
.site-footer a:hover { color: var(--gold-light); }
.newsletter-form { display: flex; gap: 8px; margin-top: 10px; }
.newsletter-form input {
  flex: 1;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 0.85rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  margin: 0;
}
.social-row a:hover { background: var(--gold); color: var(--navy-dark); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy-dark);
  padding: 12px 20px;
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  z-index: 600;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.2);
}
@media (max-width: 640px) { .sticky-cta.show { display: flex; } body { padding-bottom: 70px; } }
.sticky-cta span { color: var(--white); font-size: 0.85rem; font-weight: 600; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
/* Reveal-on-load animation. Runs automatically once per element regardless of
   scroll position or JS state, so content is never left invisible (e.g. if a
   user's viewport already shows the section, or JS fails to load). */
.reveal {
  animation: revealIn 0.7s ease both;
}
@keyframes revealIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
}

/* language visibility: initial state (Spanish) set inline by main.js on load,
   toggling handled entirely in JS by setting element.style.display so that
   each tag's natural display type (block/inline/list-item/etc.) is preserved. */

/* ===== Banner global (gestionado desde el admin) ===== */
.site-banner{
  display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;
  padding:11px 20px;font-size:0.92rem;font-weight:600;text-align:center;
}
.site-banner .site-banner-btn{
  padding:5px 14px;border-radius:999px;font-size:0.82rem;font-weight:700;
  text-decoration:none;white-space:nowrap;
}
.site-banner.banner-gold{background:linear-gradient(135deg,#e0bd4a,#c9a227);color:#0b1830;}
.site-banner.banner-gold .site-banner-btn{background:#0b1830;color:#fff;}
.site-banner.banner-navy{background:#0f2142;color:#fff;}
.site-banner.banner-navy .site-banner-btn{background:#c9a227;color:#0b1830;}
.site-banner.banner-red{background:#b2261f;color:#fff;}
.site-banner.banner-red .site-banner-btn{background:#fff;color:#b2261f;}

/* ===== Cuerpo de artículo (contenido del blog) ===== */
.articulo-cuerpo{font-size:1.05rem;line-height:1.75;color:var(--navy-900,#0f2142);}
.articulo-cuerpo p{margin:0 0 1.2em;color:#33415c;}
.articulo-cuerpo h2,.articulo-cuerpo h3{margin:1.6em 0 .5em;}
.articulo-cuerpo ul,.articulo-cuerpo ol{margin:0 0 1.2em 1.2em;color:#33415c;}
.articulo-cuerpo blockquote{border-left:4px solid #c9a227;margin:1.4em 0;padding:.4em 0 .4em 1.2em;font-style:italic;color:#0f2142;}
.articulo-cuerpo a{color:#c9a227;}
