/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cream: #fafafa;
  --paper: #ffffff;
  --cream-soft: #f2f2f2;
  --navy: #1a4da0;
  --navy-deep: #0f3175;
  --gold: #f5c200;
  --gold-light: #ffd740;
  --red: #e8201a;
  --red-deep: #c41410;
  --green: #1b8a2e;
  --black: #111111;
  --ink: #1a1a1a;
  --ink-soft: #555555;
  --line: rgba(26,77,160,0.13);
  --radius: 10px;
  --maxw: 1180px;
  --ff-display: 'Oswald', sans-serif;
  --ff-body: 'Source Serif 4', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

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

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--navy-deep);
  text-transform: uppercase;
  line-height: 1.15;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.75rem; }
.container.narrow { max-width: 760px; }

.center { text-align: center; }

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== KICKER / LABELS ===== */
.kicker {
  font-family: var(--ff-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-deep);
  margin-bottom: 0.9rem;
}
.kicker.light { color: var(--gold-light); }

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 1.1rem 0;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  border-radius: 4px;
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary {
  background: var(--red-deep);
  color: var(--paper);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(122,31,32,0.3); }
.btn-outline {
  border-color: var(--navy);
  color: var(--navy-deep);
}
.btn-outline:hover { background: var(--navy); color: var(--paper); }
.btn-outline-dark { border-color: var(--gold-light); color: var(--gold-light); }
.btn-outline-dark:hover { background: var(--gold-light); color: var(--navy-deep); }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(244,239,226,0.0);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 1.3rem 0;
}
.site-header.scrolled {
  background: rgba(244,239,226,0.96);
  box-shadow: 0 2px 18px rgba(0,0,0,0.08);
  padding: 0.7rem 0;
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark { width: 34px; height: 34px; color: var(--navy-deep); }
.brand-fist { width: 100%; height: 100%; fill: currentColor; }
.brand-text {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--navy-deep);
}
.brand-dash { color: var(--red-deep); }

.main-nav { display: flex; gap: 1.8rem; }
.nav-link {
  font-family: var(--ff-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--red-deep);
  transition: width 0.25s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.header-cta { padding: 0.6rem 1.3rem; font-size: 0.8rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--navy-deep);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(199,154,46,0.12), transparent 60%),
    var(--paper);
  overflow: hidden;
}

.hero-flagbar {
  position: absolute; top: 0; left: 0; right: 0; height: 8px;
  background: linear-gradient(90deg,
    var(--gold) 0% 20%, var(--paper) 20% 40%,
    var(--navy) 40% 60%, var(--green) 60% 80%, var(--red-deep) 80% 100%);
}

.hero-inner { display: flex; flex-direction: column; align-items: center; max-width: 720px; }

.emblem {
  position: relative;
  width: 190px; height: 190px;
  margin-bottom: 2.2rem;
  display: flex; align-items: center; justify-content: center;
}
.emblem-rays { position: absolute; inset: 0; color: var(--gold); }
.rays-spin { transform-origin: 100px 100px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.emblem-laurel { position: absolute; inset: 0; color: var(--green); }

.emblem-core {
  position: relative;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px var(--paper), 0 8px 24px rgba(20,45,84,0.18);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.4rem;
}
.emblem-fist { width: 46px; height: 46px; color: var(--black); }
.emblem-word {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--red-deep);
  letter-spacing: 0.02em;
}

.hero-eyebrow {
  font-family: var(--ff-display);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.8rem;
}
.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 1rem;
}
.hero-sub {
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
}

.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%;
  width: 26px; height: 42px;
  border: 2px solid var(--navy);
  border-radius: 20px;
  display: flex; justify-content: center; padding-top: 8px;
  transform: translateX(-50%);
}
.scroll-cue span {
  width: 4px; height: 8px; border-radius: 2px;
  background: var(--navy);
  animation: scrollDown 1.6s ease infinite;
}
@keyframes scrollDown { 0%{transform:translateY(0);opacity:1;} 100%{transform:translateY(12px);opacity:0;} }

/* ===== SECTIONS ===== */
.section { padding: 6rem 0; }
.section-alt { background: var(--cream-soft); }
.section-dark {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy) 60%, var(--navy-deep));
  color: var(--cream);
}
.section-dark h2, .section-dark h3 { color: var(--paper); }

.section h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 1.2rem; }

.tag-row { display: flex; gap: 0.7rem; margin-top: 1.5rem; flex-wrap: wrap; }
.tag {
  font-family: var(--ff-display);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--navy);
}

/* ===== ORIGEN ===== */
.date-card {
  display: flex; gap: 1.5rem; align-items: flex-start;
  background: var(--paper);
  border-left: 4px solid var(--red-deep);
  padding: 1.8rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  box-shadow: 0 6px 20px rgba(20,45,84,0.06);
}
.date-number {
  font-family: var(--ff-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--red-deep);
  white-space: nowrap;
}

/* ===== IDEOLOGÍA ===== */
.ideology-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.ideology-card {
  background: var(--paper);
  padding: 2.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  position: relative;
}
.ideology-num {
  font-family: var(--ff-display);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.ideology-card h3 { margin: 0.6rem 0 0.8rem; font-size: 1.2rem; }
.ideology-card p { color: var(--ink-soft); }

/* ===== CARDS GRID (defendemos) ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 2.5rem;
}
.value-card {
  background: var(--paper);
  padding: 2rem 1.6rem;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.value-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(20,45,84,0.1); }
.value-card .icon {
  width: 38px; height: 38px;
  margin: 0 auto 1rem;
  color: var(--red-deep);
}
.value-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.value-card p { font-size: 0.95rem; color: var(--ink-soft); }

/* ===== DEMAND LIST (exigimos) ===== */
.demand-list { list-style: none; margin-top: 2rem; }
.demand-list li {
  display: flex; gap: 1.2rem; align-items: flex-start;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}
.demand-num {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--paper);
  font-family: var(--ff-display);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ===== COLORS GRID (símbolos) ===== */
.colors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.5rem;
}
.color-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.6rem;
  border: 1px solid var(--line);
}
.color-dot {
  display: inline-block;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--c);
  margin-bottom: 0.8rem;
}
.color-card h3 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.color-card p { font-size: 0.9rem; color: var(--ink-soft); }

.symbols-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
  text-align: center;
}
.symbol-icon {
  width: 56px; height: 56px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-deep);
}
.symbol-icon svg { width: 26px; height: 26px; }
.symbol-item p { font-size: 0.85rem; color: var(--ink-soft); }

/* ===== BANNER ===== */
.banner-strip {
  background: var(--navy-deep);
  padding: 1.6rem 1rem;
  text-align: center;
}
.banner-strip p {
  font-family: var(--ff-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  color: var(--paper);
}
.hl-gold { color: var(--gold-light); }
.hl-green { color: #8fb786; }
.hl-red { color: #e08a8b; }

/* ===== COMPROMISO ===== */
.manifesto {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  text-align: center;
  line-height: 1.6;
  margin: 2rem 0;
  color: var(--paper);
}
.manifesto-sub {
  color: rgba(251,248,240,0.78);
  margin-bottom: 2.4rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--black);
  color: rgba(244,239,226,0.75);
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(244,239,226,0.12);
}
.footer-brand .brand-text { color: var(--paper); font-size: 1.4rem; }
.footer-quote { font-style: italic; margin-top: 0.6rem; font-size: 0.9rem; }
.footer-links h4, .footer-tags h4 {
  font-family: var(--ff-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.footer-links a { display: block; margin-bottom: 0.6rem; font-size: 0.92rem; }
.footer-tags span { display: block; margin-bottom: 0.6rem; font-size: 0.9rem; }
.footer-bottom { padding-top: 1.5rem; font-size: 0.85rem; text-align: center; }

/* ===== TO TOP ===== */
.to-top {
  position: fixed; bottom: 1.6rem; right: 1.6rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--red-deep);
  color: var(--paper);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 90;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .colors-grid { grid-template-columns: repeat(2, 1fr); }
  .symbols-row { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .container { padding: 0 1.2rem; }

  .main-nav {
    position: fixed; top: 0; right: -100%;
    width: 78%; height: 100vh;
    background: var(--paper);
    flex-direction: column;
    padding: 7rem 2rem 2rem;
    gap: 1.6rem;
    transition: right 0.35s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  }
  .main-nav.open { right: 0; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .nav-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .nav-overlay.open { opacity: 1; pointer-events: auto; }

  .ideology-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .colors-grid { grid-template-columns: 1fr; }
  .symbols-row { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .date-card { flex-direction: column; }

  .section { padding: 4rem 0; }
  .emblem { width: 150px; height: 150px; }
  .emblem-core { width: 105px; height: 105px; }
  .emblem-fist { width: 36px; height: 36px; }
  .hero { padding: 9rem 1.2rem 5rem; min-height: auto; }

  .site-header {
    background: rgba(244,239,226,0.97);
    box-shadow: 0 2px 14px rgba(0,0,0,0.08);
    backdrop-filter: blur(6px);
  }

  .hero-eyebrow { font-size: 0.75rem; padding: 0 0.5rem; }
  .hero-title { margin-bottom: 1.2rem; }
  .hero-sub { margin-bottom: 2.6rem; }
  .hero-actions { gap: 0.9rem; margin-bottom: 2.5rem; }

  .scroll-cue { display: none; }

  .lead { font-size: 1.05rem; }
  .kicker { margin-bottom: 0.7rem; }
  .tag-row { gap: 0.5rem; }
  .value-card { padding: 1.7rem 1.3rem; }
  .demand-list li { padding: 1rem 0; font-size: 1rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }

  .hero-title { font-size: 1.8rem; }
  .hero-sub { font-size: 1rem; }
  .hero { padding: 8.5rem 1.2rem 4rem; }
  .emblem { width: 120px; height: 120px; margin-bottom: 1.6rem; }
  .emblem-core { width: 85px; height: 85px; }
  .emblem-fist { width: 30px; height: 30px; }
  .emblem-word { font-size: 0.8rem; }

  .btn { padding: 0.7rem 1.3rem; font-size: 0.82rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }

  .cards-grid { grid-template-columns: 1fr; }
  .symbols-row { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 3rem 0; }
  .section h2 { font-size: 1.5rem; }

  .ideology-card { padding: 1.5rem; }
  .value-card { padding: 1.5rem 1.2rem; }

  .demand-list li { flex-direction: column; gap: 0.6rem; }
  .demand-num { align-self: flex-start; }

  .manifesto { font-size: 1.05rem; }
}

/* ===== MODAL REDES SOCIALES ===== */
.social-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,20,30,0.6);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.social-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.social-modal {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  max-width: 440px;
  width: 100%;
  padding: 2.4rem 2rem 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s ease;
}
.social-modal-overlay.open .social-modal {
  transform: translateY(0) scale(1);
}

.social-modal h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.social-modal-sub {
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}

.social-modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--cream-soft);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.social-modal-close:hover { background: var(--line); }

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.social-link:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(20,45,84,0.1);
}

.social-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--cream-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-deep);
  overflow: hidden;
}
/* Pega aquí el <svg> o <img> de cada red dentro del span correspondiente (data-icon="discord|x|tiktok|instagram") */
.social-icon svg, .social-icon img {
  width: 24px;
  height: 24px;
}

.social-text { display: flex; flex-direction: column; }
.social-text strong {
  font-family: var(--ff-display);
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.social-text small {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .social-modal { padding: 2rem 1.4rem 1.6rem; }
}