/* Parlamento Soviético */

:root {
  --red-deep: #6b0f0f;
  --red-bright: #c41e1e;
  --red-glow: #e83535;
  --gold: #d4a843;
  --gold-light: #f0d078;
  --ink: #0d0a0a;
  --ink-soft: #1a1414;
  --ink-card: #221818;
  --text: #e8e0d8;
  --text-muted: #a89888;
  --border: rgba(212, 168, 67, 0.2);
  --font-display: "Oswald", sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.soviet-watermark {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.13;
  background: url("../img/hoz-martillo.svg") center 38% / min(68vw, 480px) no-repeat;
}

.soviet-stripes {
  position: fixed;
  top: 0;
  width: 14px;
  height: 100vh;
  z-index: 50;
  background: repeating-linear-gradient(
    180deg,
    var(--red-bright) 0px,
    var(--red-bright) 32px,
    var(--gold) 32px,
    var(--gold) 40px
  );
  opacity: 1;
  box-shadow: 0 0 24px rgba(196, 30, 58, 0.45);
}

.soviet-stripes-left {
  left: 0;
}

.soviet-stripes-right {
  right: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.65rem 1.5rem 0.75rem;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.35rem 1.25rem;
  align-items: center;
}

.logo-span {
  grid-row: 1 / 3;
  grid-column: 1;
  align-self: center;
}

.header-cta-row {
  grid-row: 1;
  grid-column: 2;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding-bottom: 0;
  border-bottom: none;
}

.header-nav-row {
  grid-row: 2;
  grid-column: 2;
  justify-self: end;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.logo-emblem {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 3px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(196, 30, 30, 0.45);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.05;
  max-width: 14rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.2rem;
  justify-content: flex-end;
}

.nav a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--gold);
}

.header-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: flex-end;
}

a.nav-noticias,
a.nav-comunicados {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  padding: 0.45rem 0.75rem;
  border: 2px solid var(--gold-light);
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(135deg, var(--red-bright) 0%, var(--red-glow) 55%, #ff6b3d 100%);
  box-shadow:
    0 0 18px rgba(232, 53, 53, 0.55),
    0 0 10px rgba(240, 208, 120, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: nav-noticias-glow 2.2s ease-in-out infinite;
}

a.nav-noticias:hover,
a.nav-comunicados:hover {
  color: #fff;
  border-color: #fff;
  transform: translateY(-1px);
  box-shadow:
    0 0 28px rgba(232, 53, 53, 0.75),
    0 0 18px rgba(240, 208, 120, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

a.nav-noticias[aria-current="page"],
a.nav-comunicados[aria-current="page"] {
  background: linear-gradient(135deg, #ff4a4a 0%, var(--red-glow) 100%);
  color: #fff;
  border-color: #fff;
  box-shadow:
    0 0 32px rgba(232, 53, 53, 0.85),
    0 0 20px rgba(240, 208, 120, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

@keyframes nav-noticias-glow {
  0%, 100% {
    box-shadow:
      0 0 18px rgba(232, 53, 53, 0.55),
      0 0 10px rgba(240, 208, 120, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
  50% {
    box-shadow:
      0 0 32px rgba(232, 53, 53, 0.85),
      0 0 22px rgba(240, 208, 120, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 7.5rem 1.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url("../img/hero-soviet-poster.png") center / cover no-repeat,
    linear-gradient(180deg, var(--ink-soft) 0%, var(--ink) 100%);
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(13, 10, 10, 0.92) 0%, rgba(13, 10, 10, 0.75) 45%, rgba(107, 15, 15, 0.55) 100%);
  z-index: -1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  background: rgba(34, 24, 24, 0.6);
}

.hero-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--red-glow);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.25s;
}

.btn-primary {
  background: var(--red-bright);
  color: #fff;
  border-color: var(--red-bright);
}

.btn-primary:hover {
  background: var(--red-glow);
  border-color: var(--red-glow);
  box-shadow: 0 0 30px rgba(232, 53, 53, 0.35);
}

.btn-ghost {
  color: var(--gold);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(212, 168, 67, 0.08);
}

.hero-visual {
  position: relative;
  flex-shrink: 0;
  text-align: center;
}

.hero-shield {
  width: min(280px, 40vw);
  height: auto;
  border: 3px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(196, 30, 30, 0.35);
  animation: float 6s ease-in-out infinite;
}

.hero-stars {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  opacity: 0.85;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Sections */
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.section-intro {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

/* Mission */
.mission {
  background: var(--ink-soft);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.mission-text p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.mission-text strong {
  color: var(--text);
}

.mission-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mission-img {
  width: 100%;
  border: 2px solid var(--gold);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.mission-quote {
  border-left: 4px solid var(--red-bright);
  padding: 1.5rem 2rem;
  background: var(--ink-card);
  font-size: 1.2rem;
  font-style: italic;
}

.mission-quote footer {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--text-muted);
}

/* Ideals */
.ideals {
  background: var(--ink);
}

.ideals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.ideal-card {
  padding: 1.6rem 1.5rem;
  background: var(--ink-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red-bright);
  transition: border-color 0.25s, transform 0.25s;
}

.ideal-card:hover {
  border-color: var(--gold);
  border-left-color: var(--gold);
  transform: translateY(-3px);
}

.ideal-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.ideal-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Gallery */
.gallery {
  background: var(--ink-soft);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.gallery-item {
  margin: 0;
  background: var(--ink-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.25s;
}

.gallery-item:hover {
  border-color: var(--red-bright);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-hero img {
  height: 280px;
}

.gallery-crop img {
  object-position: 55% 62%;
}

.gallery-wide {
  grid-column: span 2;
}

.gallery-wide img {
  height: 260px;
}

.gallery-item figcaption {
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  border-top: 1px solid var(--border);
}

/* Heritage timeline */
.heritage {
  background: var(--ink);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.timeline-item {
  padding: 1.5rem;
  background: var(--ink-card);
  border-left: 4px solid var(--red-bright);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 0.4rem;
}

.timeline-item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Method */
.method-chain {
  list-style: none;
  max-width: 520px;
}

.method-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.5rem;
  align-items: baseline;
  padding: 1.2rem 1.5rem;
  background: var(--ink-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
}

.method-step:hover {
  border-color: var(--gold);
  transform: translateX(6px);
}

.step-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.step-name::before {
  content: attr(data-step);
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  margin-bottom: 0.2rem;
}

.method-step[data-step="1"] .step-name::before { content: "Paso 01"; }
.method-step[data-step="2"] .step-name::before { content: "Paso 02"; }
.method-step[data-step="3"] .step-name::before { content: "Paso 03"; }
.method-step[data-step="4"] .step-name::before { content: "Paso 04"; }

.step-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.method-arrow {
  text-align: center;
  color: var(--red-bright);
  font-size: 1.2rem;
  padding: 0.3rem 0;
  list-style: none;
}

/* Fields */
.fields {
  background: var(--ink-soft);
}

.fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.field-card {
  position: relative;
  padding: 1.5rem;
  background: var(--ink-card);
  border: 1px solid var(--border);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.field-star {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  color: var(--red-bright);
  font-size: 0.75rem;
  opacity: 0.6;
}

.field-card:hover {
  border-color: var(--red-bright);
  box-shadow: 0 4px 24px rgba(196, 30, 30, 0.12);
}

.field-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
}

.field-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Parliament */
.parliament-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.parliament-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.parliament-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold) !important;
  margin-top: 1.5rem !important;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.banner-emblem {
  display: block;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 18px rgba(212, 168, 67, 0.55));
}

.parliament-banner {
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--red-deep) 0%, var(--red-bright) 100%);
  border: 3px solid var(--gold);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.parliament-banner::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212, 168, 67, 0.4);
  pointer-events: none;
}

.banner-line {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.5;
}

.banner-accent {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--gold-light);
  margin-top: 0.3rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--ink);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-note {
  font-style: italic;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 5rem;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    margin: 0 auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-wide {
    grid-column: span 1;
  }

  .mission-grid,
  .parliament-inner {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 0.8rem;
  }

  .nav a {
    font-size: 0.7rem;
  }
}

@media (max-width: 720px) {
  .header-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.5rem;
  }

  .logo-span {
    grid-row: 1;
    grid-column: 1;
    justify-self: start;
  }

  .header-cta-row {
    grid-row: 2;
    grid-column: 1;
    justify-content: flex-end;
  }

  .header-nav-row {
    grid-row: 3;
    grid-column: 1;
    justify-self: stretch;
    justify-content: center;
  }

  .logo-emblem {
    width: 52px;
    height: 52px;
  }

  .logo-text {
    font-size: 1.35rem;
    max-width: none;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
