/* Partido Liberal Clásico Cubano — design system */
:root {
  --navy: #071b3a;
  --blue: #0d2d5f;
  --blue-2: #123f82;
  --gold: #d6a93a;
  --gold-2: #f2d27a;
  --red: #b7222c;
  --ink: #111827;
  --muted: #5b6472;
  --paper: #f7f3ea;
  --white: #ffffff;
  --line: rgba(7, 27, 58, 0.12);
  --shadow: 0 18px 50px rgba(7, 27, 58, 0.14);
  --radius: 16px;
  --header-h: 72px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue-2); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--navy); margin: 0 0 0.75rem; font-weight: 800; }
h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--gold-2); color: var(--navy); padding: 0.6rem 1rem;
  border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 27, 58, 0.96);
  color: var(--white);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
  width: min(100% - 2rem, 1240px); margin-inline: auto;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  font-weight: 800; letter-spacing: 0.02em; color: var(--white);
  flex-shrink: 0;
}
.brand:hover { color: var(--gold-2); }
.brand img { width: 44px; height: 44px; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 0.92rem; }
.brand-text span { font-size: 0.68rem; font-weight: 500; color: rgba(255,255,255,0.7); letter-spacing: 0.04em; }

.nav-toggle {
  display: none; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: var(--white); width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
  font-size: 1.35rem; line-height: 1;
}
.nav-toggle[aria-expanded="true"] { background: var(--gold-2); color: var(--navy); }

.main-nav { display: flex; align-items: center; gap: 0.35rem 1rem; flex-wrap: wrap; }
.main-nav a, .dropdown-trigger {
  color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 500;
  padding: 0.35rem 0.2rem; border-radius: 6px;
}
.main-nav a:hover, .dropdown-trigger:hover { color: var(--gold-2); }
.main-nav a[aria-current="page"] { color: var(--gold-2); font-weight: 700; }

.nav-dropdown { position: relative; }
.dropdown-trigger {
  background: none; border: none; cursor: pointer; font: inherit;
  display: inline-flex; align-items: center; gap: 0.25rem;
}
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
  background: var(--white); color: var(--ink); border-radius: 12px;
  box-shadow: var(--shadow); padding: 0.5rem; border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: 0.18s ease; z-index: 60;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: none;
}
.dropdown-menu a {
  display: block; padding: 0.65rem 0.75rem; color: var(--ink);
  border-radius: 8px; font-size: 0.9rem;
}
.dropdown-menu a:hover { background: var(--paper); color: var(--blue-2); }

.header-cta {
  margin-left: 0.5rem; padding: 0.55rem 1.1rem;
  border: 1.5px solid var(--gold); color: var(--gold-2) !important;
  font-weight: 800; border-radius: 999px; font-size: 0.88rem; white-space: nowrap;
}
.header-cta:hover { background: var(--gold-2); color: var(--navy) !important; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.8rem 1.35rem; border-radius: 999px; font-weight: 800; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer; transition: 0.15s ease;
}
.btn.primary { background: var(--gold); color: var(--navy); }
.btn.primary:hover { background: var(--gold-2); color: var(--navy); }
.btn.secondary { background: transparent; border-color: rgba(255,255,255,0.45); color: var(--white); }
.btn.secondary:hover { border-color: var(--gold-2); color: var(--gold-2); }
.btn.outline {
  background: transparent; border-color: var(--navy); color: var(--navy);
}
.btn.outline:hover { background: var(--navy); color: var(--white); }
.btn.light { background: var(--white); color: var(--navy); }
.btn.light:hover { background: var(--gold-2); }
.btn.disabled, .btn[aria-disabled="true"] {
  opacity: 0.45; pointer-events: none; cursor: not-allowed;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

/* Hero */
.hero {
  position: relative; color: var(--white);
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 55%, var(--blue-2) 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; opacity: 0.28;
  background: url("../assets/hero-image.jpg") center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(7,27,58,0.92) 0%, rgba(13,45,95,0.78) 55%, rgba(18,63,130,0.55) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  display: grid; gap: 2rem;
  grid-template-columns: 1.2fr 0.8fr; align-items: center;
}
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-2);
  margin-bottom: 0.75rem;
}
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero .lead { font-size: clamp(1rem, 2vw, 1.12rem); color: rgba(255,255,255,0.9); max-width: 54ch; }
.hero-card {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius); padding: 1.4rem; backdrop-filter: blur(8px);
}
.hero-card h3 { color: var(--gold-2); font-size: 1rem; margin-bottom: 0.5rem; }
.hero-card p { color: rgba(255,255,255,0.88); margin: 0; font-size: 0.95rem; }
.founding-note {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.25rem; padding: 0.5rem 0.85rem;
  background: rgba(214,169,58,0.15); border: 1px solid rgba(242,210,122,0.35);
  border-radius: 999px; font-size: 0.82rem; color: var(--gold-2); font-weight: 600;
}

/* Sections */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section.alt { background: var(--white); }
.section.navy { background: var(--navy); color: var(--white); }
.section.navy h2, .section.navy h3 { color: var(--white); }
.section-label {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem;
}
.section-intro { max-width: 62ch; color: var(--muted); margin-bottom: 1.75rem; }
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--blue-2));
  color: var(--white); padding: clamp(2rem, 4vw, 3.25rem) 0;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.88); max-width: 60ch; margin: 0; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pillar {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: 0 8px 28px rgba(7,27,58,0.06);
  border-top: 4px solid var(--gold);
}
.pillar-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--blue-2));
  color: var(--gold-2); display: grid; place-items: center;
  font-size: 1.35rem; margin-bottom: 1rem;
}
.pillar h3 { margin-bottom: 0.4rem; }
.pillar p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Cards / grids */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem; box-shadow: 0 6px 22px rgba(7,27,58,0.05);
}
.card h3 { font-size: 1.05rem; }
.card p, .card li { color: var(--muted); font-size: 0.95rem; }
.card.accent { border-top: 3px solid var(--gold); }

/* Team strip */
.team-strip {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}
.team-chip {
  text-align: center; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 0.75rem; transition: 0.15s ease;
}
.team-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.team-chip img {
  width: 88px; height: 88px; object-fit: cover; border-radius: 50%;
  margin: 0 auto 0.75rem; border: 3px solid var(--gold-2);
}
.team-chip strong { display: block; font-size: 0.85rem; color: var(--navy); line-height: 1.3; }
.team-chip span { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }

/* Member cards */
.member-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.member-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 8px 28px rgba(7,27,58,0.06);
}
.member-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--blue);
}
.member-body { padding: 1.15rem 1.25rem 1.35rem; flex: 1; }
.member-body .role {
  color: var(--gold); font-weight: 800; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.35rem;
}
.member-body .pais { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.65rem; }
.member-body p { font-size: 0.9rem; color: var(--muted); margin: 0; white-space: pre-line; }
.tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.tab-btn {
  padding: 0.55rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--white); font-weight: 700; cursor: pointer; color: var(--muted);
  font-family: inherit; font-size: 0.9rem;
}
.tab-btn[aria-selected="true"] {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.tab-panel[hidden] { display: none; }

/* FAQ */
.faq-list { display: grid; gap: 0.75rem; max-width: 760px; }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1rem 1.15rem;
  font-weight: 700; color: var(--navy); display: flex; justify-content: space-between;
  align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.25rem; color: var(--gold); font-weight: 800;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-answer {
  padding: 0 1.15rem 1.15rem; color: var(--muted); font-size: 0.95rem;
}
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* Empty state */
.empty-state {
  text-align: center; padding: 2.5rem 1.5rem; border: 2px dashed var(--line);
  border-radius: var(--radius); background: rgba(255,255,255,0.6);
}
.empty-state h3 { margin-bottom: 0.5rem; }
.empty-state p { color: var(--muted); max-width: 42ch; margin: 0 auto 1rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--blue-2));
  color: var(--white); border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 2.5rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
}
.cta-band h2 { color: var(--white); margin: 0 0 0.4rem; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; max-width: 48ch; }

/* Content prose */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose li { color: var(--ink); }
.content-layout { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.anchor-nav {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem;
}
.anchor-nav a {
  padding: 0.4rem 0.85rem; background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--blue);
}
.anchor-nav a:hover { border-color: var(--gold); color: var(--navy); }

.block {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; margin-bottom: 1.25rem;
}
.block h2, .block h3 { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Steps / commissions */
.steps { display: grid; gap: 1rem; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.35rem; border-left: 4px solid var(--gold);
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p, .step li { color: var(--muted); font-size: 0.95rem; }

/* Estatutos accordion */
.estatuto-accordion {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 0.65rem; overflow: hidden;
}
.estatuto-accordion summary {
  list-style: none; cursor: pointer; padding: 1rem 1.15rem;
  font-weight: 700; color: var(--navy); display: flex; gap: 0.75rem; align-items: baseline;
}
.estatuto-accordion summary::-webkit-details-marker { display: none; }
.estatuto-accordion summary span {
  color: var(--gold); font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.04em; flex-shrink: 0; min-width: 5.5rem;
}
.estatuto-accordion[open] summary { border-bottom: 1px solid var(--line); }
.estatuto-accordion > *:not(summary) { padding: 0 1.15rem; }
.estatuto-accordion > *:last-child { padding-bottom: 1.15rem; }
.estatuto-preamble {
  background: var(--paper); border-left: 4px solid var(--gold);
  padding: 1rem 1.15rem; border-radius: 0 12px 12px 0; margin-bottom: 1.5rem;
  color: var(--ink); font-size: 0.98rem;
}
.btn-download {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.2rem; background: var(--navy); color: var(--white) !important;
  border-radius: 999px; font-weight: 800; font-size: 0.92rem; margin: 0.5rem 0 1.5rem;
}
.btn-download:hover { background: var(--blue-2); color: var(--gold-2) !important; }
.btn-download svg { fill: currentColor; }

/* Afiliarse */
.principios-doc {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; margin-bottom: 1.5rem;
}
.principios-accept {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white); border-radius: var(--radius); padding: 1.5rem;
}
.accept-check {
  display: flex; align-items: flex-start; gap: 0.75rem;
  cursor: pointer; margin-bottom: 1.15rem; font-weight: 600;
}
.accept-check input { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; accent-color: var(--gold); }

/* Proposals categories */
.cat-grid { display: grid; gap: 1.25rem; }
.cat-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; border-top: 4px solid var(--gold);
}
.cat-card h3 {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem;
}
.cat-num {
  display: inline-grid; place-items: center; width: 28px; height: 28px;
  background: var(--navy); color: var(--gold-2); border-radius: 8px;
  font-size: 0.8rem; font-weight: 800;
}
.subhead { font-weight: 800; color: var(--navy); margin: 1rem 0 0.4rem; font-size: 0.95rem; }
.subhead:first-of-type { margin-top: 0; }

/* Social */
.social-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem;
}
.social-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.25rem; transition: 0.15s ease;
}
.social-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--navy); }
.social-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--navy); color: var(--gold-2);
  display: grid; place-items: center; font-weight: 900; font-size: 1.1rem; flex-shrink: 0;
}
.social-card strong { display: block; }
.social-card span { font-size: 0.85rem; color: var(--muted); }

/* Footer */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,0.85); padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand-block { display: flex; gap: 0.85rem; align-items: flex-start; }
.footer-brand-block img { width: 56px; height: 56px; border-radius: 10px; }
.footer-brand-block strong { display: block; color: var(--white); font-size: 1rem; margin-bottom: 0.35rem; }
.footer-brand-block p { font-size: 0.88rem; color: rgba(255,255,255,0.7); margin: 0; }
.footer-col h4 {
  color: var(--gold-2); font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 0.85rem;
}
.footer-col a {
  display: block; color: rgba(255,255,255,0.75); font-size: 0.9rem;
  padding: 0.25rem 0;
}
.footer-col a:hover { color: var(--gold-2); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
  padding-top: 1.25rem; font-size: 0.82rem; color: rgba(255,255,255,0.55);
}
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: rgba(255,255,255,0.75); font-weight: 600; }
.footer-social a:hover { color: var(--gold-2); }

/* Misc */
.note-banner {
  background: rgba(214,169,58,0.12); border: 1px solid rgba(214,169,58,0.35);
  border-radius: 12px; padding: 0.9rem 1.1rem; color: var(--ink);
  font-size: 0.92rem; margin-bottom: 1.5rem;
}
main { min-height: 50vh; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .pillars, .cards-3 { grid-template-columns: 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .brand-text span { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; place-items: center; order: -1; }
  .header-inner { flex-wrap: wrap; }
  .brand { flex: 1; }
  .header-cta { display: none; }
  .main-nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    gap: 0.15rem; padding: 0.5rem 0 1rem;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a, .dropdown-trigger {
    padding: 0.7rem 0.5rem; width: 100%; text-align: left;
  }
  .nav-dropdown { width: 100%; }
  .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: rgba(255,255,255,0.06); border: none;
    border-left: 2px solid var(--gold); border-radius: 0 8px 8px 0;
    margin: 0.15rem 0 0.35rem 0.75rem; padding: 0.25rem;
  }
  .dropdown-menu a { color: rgba(255,255,255,0.85); }
  .dropdown-menu a:hover { background: rgba(255,255,255,0.08); color: var(--gold-2); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
