:root {
  --green-900: #0a2e1a;
  --green-800: #0d3b22;
  --green-700: #14532d;
  --green-600: #1a6b3a;
  --green-500: #228b47;
  --green-400: #2d9e54;
  --green-300: #4caf50;
  --green-200: #81c784;
  --green-100: #a5d6a7;
  --green-50: #e8f5e9;
  --gold: #c9a961;
  --gold-light: #e0c878;
  --white: #ffffff;
  --gray-100: #f5f7f5;
  --gray-200: #e8ebe8;
  --gray-600: #6b7280;
  --text-dark: #1f2937;
}

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

body {
  color: var(--text-dark);
  background: var(--gray-100);
  line-height: 1.7;
  margin: 0;
  padding-top: 16px;
}

.content-section h1, .content-section h2,
.content-section h3, .content-section h4,
.content-section h5, .content-section h6 {
  font-weight: 700;
}

/* Header */
.site-header {
  background: #215145;
  padding: 1.2rem 0;
}

.logo-img {
  max-height: 130px;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.logo-identity {
  max-height: 70px;
  width: auto;
}

.site-title {
  color: var(--white);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
  font-size: 25px;
}

.site-subtitle {
  color: var(--gold);
  font-weight: 300;
  letter-spacing: 3px;
  margin-bottom: 0;
}

/* Navigation */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 2px;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin: 0.25rem 0 1.25rem;
}

.sidebar-nav-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.5rem;
  text-align: center;
}

.sidebar-separator {
  width: 60%;
  height: 1px;
  background: rgba(212, 160, 23, 0.25);
  margin: 0.75rem 0 5px;
}

/* Hamburger */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.hamburger-label {
  display: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #d4a017;
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.side-link {
  display: flex;
  align-items: center;
  padding: 0.3rem 1rem;
  color: #fff;
  font-weight: 400;
  font-size: 1.4rem;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-align: left;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.side-link i {
  color: #d4a017;
  width: 1.5rem;
  text-align: center;
  margin-right: 0.75rem;
}

.side-link:hover {
  background: transparent;
  color: #d4a017;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #d4a017;
}

.side-link.active {
  background: transparent;
  color: #fff;
  font-weight: 700;
}

.side-link.active i {
  color: #fff;
}

/* Content */
.content-section {
  min-height: 60vh;
}

.home-layout {
  display: flex;
  gap: 0;
  min-height: 70vh;
  background: rgba(0,0,0,0.98);
}

.home-layout p {
  line-height: 1.85;
  margin-bottom: 1.25rem;
  color: #000;
  text-align: justify;
}


/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 450px;
  display: flex;
  align-items: center;
}

.hero-text {
  width: 100%;
  margin-top: -1rem;
}

.hero-text {
  text-align: center;
}

.hero-text h2 {
  color: var(--green-900);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.hero-text .lead {
  color: var(--green-700);
  font-weight: 600;
  margin-bottom: 2.5rem;
  letter-spacing: 1px;
  text-align: center;
}

.hero-text h2::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: var(--green-500);
  margin: 0.75rem auto 1.5rem;
  border-radius: 2px;
}

.hero-text p {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  text-align: left;
}

.home-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
  background: transparent;
  min-width: 220px;
  align-self: flex-start;
  position: sticky;
  top: 56px;
}

.sidebar-logo {
  position: relative;
}

.sidebar-logo .shine-wrap {
  display: inline-block;
  position: relative;
  border-radius: 12px;
  line-height: 0;
}

.sidebar-logo img {
  max-height: 240px;
  width: auto;
  display: block;
}

.sidebar-social {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.25rem;
}

.sidebar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #228b47;
  font-size: 1.3rem;
  transition: all 0.25s ease;
  text-decoration: none;
  background: transparent;
  color: #228b47;
}

.sidebar-social a:hover {
  background: #228b47;
  color: #fff !important;
  transform: translateY(-2px);
}

.home-main {
  flex: 1;
  padding: 2.5rem;
  background: #f5f5f5;
}

/* Cards stats */

.btn-expo {
  background: #228b47;
  border-color: #228b47;
  color: #fff;
  transition: all 0.2s;
}

.btn-expo:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
}

.btn-articulo {
  background: #1f291e;
  border-color: #000;
  color: #fff;
  margin-top: 0.75rem;
  align-self: center;
  transition: all 0.2s;
}

.btn-articulo:hover {
  background: #228b47;
  border-color: #228b47;
  color: #fff;
}

.pdf-icon-btn {
  height: 1.4em;
  width: auto;
  vertical-align: middle;
  margin-right: 6px;
}

.card-stat {
  background: var(--white);
  border-radius: 10px;
  padding: 1.75rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--green-500);
  transition: transform 0.2s;
}

.card-stat:hover {
  transform: translateY(-3px);
}

.card-stat .stat-number {
  font-weight: 800;
  color: var(--green-700);
  line-height: 1;
}

.card-stat .stat-label {
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gray-600);
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.card-stat p {
  color: var(--gray-600);
  margin-bottom: 0;
}

.card-stat.sm {
  padding: 1.25rem;
}

/* Video */
.video-container {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  padding: 6px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.video-container .embed-responsive {
  border-radius: 6px;
  overflow: hidden;
}

/* TikTok */
.tiktok-container {
  text-align: center;
  min-height: 100px;
}

/* Audio */
.audio-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid var(--gray-200);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.audio-card p {
  font-weight: 600;
  color: var(--green-800);
  margin-bottom: 0.5rem;
}

.audio-card i {
  color: var(--gold);
}

.audio-card audio {
  border-radius: 25px;
  height: 40px;
  width: 100%;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}

/* Modal */
#imageModal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}

#imageModal.open {
  display: flex;
}

#imageModal .modal-content {
  max-width: 90%;
  max-height: 85%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

#imageModal .modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  cursor: pointer;
  font-weight: 300;
  transition: color 0.3s;
}

#imageModal .modal-close:hover {
  color: var(--gold);
}

/* Footer */
.site-footer {
  background: #05170d;
  padding: 20px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-text {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 1px;
  text-align: center;
}

.footer-text .hl {
  font-weight: 700;
  color: #f0c040;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.footer-text .tagline {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 4px;
  color: #fff;
  margin-top: 6px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-logo {
  max-height: 120px;
}

.social-icons {
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  gap: 0.85rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e8ede8;
  color: #2d5a3d;
  font-size: 1.2rem;
  transition: all 0.25s ease;
  text-decoration: none;
}

.social-icons a:hover {
  background: #d0dbd0;
  color: #0a2e1a;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .logo-img { max-height: 50px; }
  .footer-logo { max-height: 80px; }
  .footer-inner { flex-direction: column; text-align: center; }

}

@media (max-width: 576px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-item img { height: 120px; }
}

/* Crónicas del Mundial */
.section {
  margin-top: 5rem;
  padding: 3rem 1.5rem;
  background: linear-gradient(180deg, #f5f9f5 0%, #eef5ee 100%);
  border-radius: 20px;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--green-500), transparent);
  border-radius: 2px;
}

.cronicas { }

.curso {
  background: none;
}

.capsulas {
  background: none;
}

.audios {
  background: none;
}

.documentos {
  background: none;
}

.documentos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.documento-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.documento-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.documento-card.placeholder {
  opacity: 0.4;
  border-style: dashed;
}

.documento-card.placeholder:hover {
  transform: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.documento-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
}

.documento-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #faf6ec, #f0e4c4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.documento-pdf-img {
  width: 28px;
  height: auto;
  display: block;
}

.documento-card.placeholder .documento-icon {
  background: linear-gradient(135deg, #f0f0f0, #e4e4e4);
  color: #999;
}

.documento-info {
  flex: 1;
  min-width: 0;
}

.documento-title {
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 2px;
  opacity: 0.9;
  text-transform: uppercase;
  color: #000;
  margin: 0 0 0.15rem;
  line-height: 1.3;
}

.documento-meta {
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 2px;
  opacity: 0.7;
  text-transform: uppercase;
  color: #c9a961;
}

@media (max-width: 768px) {
  .documentos-grid {
    grid-template-columns: 1fr;
  }
}

.hidden {
  display: none !important;
}

.audios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.audio-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}

.audio-card-icon {
  padding: 2rem 1rem 0.5rem;
  text-align: center;
  font-size: 2.5rem;
  color: #228b47;
}

.audio-card-body {
  padding: 0 1.5rem 1.5rem;
}

.audio-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  margin: 0 0 1rem;
  text-align: center;
  line-height: 1.4;
}

.audio-player {
  width: 100%;
  height: 40px;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .audios-grid {
    grid-template-columns: 1fr;
  }
}

.capsulas .curso-card-icon {
  background: linear-gradient(135deg, #eccac7, #f0f0f2);
}

.capsulas .curso-card-icon i,
.capsulas .curso-card-icon .curso-card-num {
  color: #888;
  opacity: 0.3;
}

.capsulas .curso-card-label {
  color: #000;
  font-size: 1.2rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--green-900);
  text-align: center;
  margin-bottom: 0.5rem;
  position: relative;
}

.section-title i {
  color: var(--green-500);
  margin-right: 0.5rem;
}

.home-layout .section-sub {
  text-align: center;
  color: var(--green-600);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 2px;
  margin-bottom: 2.5rem;
  opacity: 0.7;
  text-transform: uppercase;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-300));
}

.section-divider::after {
  background: linear-gradient(90deg, var(--green-300), transparent);
}

.section-divider i {
  color: var(--green-400);
  font-size: 1.2rem;
}

.cronicas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.cronica-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  background: #fff;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid rgba(0,0,0,0.04);
}

.cronica-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.cronica-link {
  display: block;
  text-decoration: none;
}

.cronica-thumb {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  overflow: hidden;
}

.cronica-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cronica-card:hover .cronica-thumb img {
  transform: scale(1.05);
}

.cronica-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0,0,0,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.cronica-play i {
  color: #fff;
  font-size: 1.5rem;
  margin-left: 4px;
}

.cronica-card:hover .cronica-play {
  background: rgba(0,0,0,0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

.curso-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.curso-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
}

.curso-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.curso-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.curso-card-icon {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.curso-card-icon i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: #228b47;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.curso-card-icon .curso-card-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  font-weight: 800;
  color: #228b47;
  opacity: 0.15;
  z-index: 1;
}

.curso-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 50px;
  height: 50px;
  background: rgba(0,0,0,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
}

.curso-card-play i {
  color: #fff;
  font-size: 1.2rem;
  margin-left: 3px;
  opacity: 1 !important;
  position: static !important;
  transform: none !important;
}

.curso-card:hover .curso-card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.curso-card:hover .curso-card-icon i {
  opacity: 0.15;
}

.curso-card-label {
  padding: 0.75rem;
  margin: 0;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--green-800);
  letter-spacing: 0.5px;
  border-top: 1px solid #eee;
}

.cronica-label {
  padding: 1rem;
  margin: 0;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--green-800);
  letter-spacing: 1px;
  border-top: 1px solid #eee;
}

.curso .curso-card-label {
  font-size: 1.2rem;
  color: #000;
}

.cronica-placeholder .cronica-placeholder-box {
  width: 100%;
  padding-bottom: 56.25%;
  background: linear-gradient(135deg, #e8ede8, #d0dbd0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cronica-placeholder .cronica-placeholder-box i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-size: 3rem;
  color: var(--green-600);
  opacity: 0.4;
}

.cronica-placeholder .cronica-placeholder-box p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 40%);
  color: var(--green-700);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.6;
  margin: 0;
}

@media (max-width: 768px) {
  .cronica-card { border-radius: 12px; }
  .section { padding: 2rem 1rem; border-radius: 12px; }
  .cronicas-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 1200px) {
  .curso-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .curso-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .curso-grid {
    grid-template-columns: 1fr;
  }
}

.capsulas-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .capsulas-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .capsulas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .capsulas-grid {
    grid-template-columns: 1fr;
  }
}

/* Postales */
.portfolio-menu {
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.filter-btn {
  display: inline-block;
  padding: 8px 20px;
  border: 2px solid #228b47;
  background: transparent;
  color: #000;
  font-weight: 600;
  font-size: 1.3rem;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-btn:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

.filter-btn.active {
  background: #228b47;
  color: #fff;
  border-color: #228b47;
}

.postales-edicion {
  margin-bottom: 3rem;
}

.postales-edicion:last-child {
  margin-bottom: 0;
}

.postales-edicion-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-800);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e8ede8;
}

.postales-grid {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.postal-item {
  width: 18%;
  margin: 0.5%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.04);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.postal-item a {
  display: block;
  line-height: 0;
}

.postal-item img {
  width: 100%;
  display: block;
}

.postal-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .postal-item {
    width: 30%;
    margin: 1.5%;
  }
}

@media (max-width: 480px) {
  .postal-item {
    width: 46%;
    margin: 2%;
  }
}

@media (max-width: 768px) {
  .postales-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

.articulos {
  background: none;
}

.articulos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.articulo-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.articulo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.articulo-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.articulo-body {
  padding: 1.25rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.articulo-titulo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #616161;
  margin-bottom: 0.35rem;
  line-height: 1.3;
  flex: 1;
}

.articulo-meta {
  font-size: 0.85rem;
  color: #c9a961;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.articulo-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.articulo-card.placeholder {
  background: transparent;
  border: 2px dashed #ccc;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

.articulo-card.placeholder:hover {
  transform: none;
  box-shadow: none;
}

.articulo-placeholder-box {
  text-align: center;
  color: #aaa;
}

.articulo-placeholder-box i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.articulo-placeholder-box p {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@media (max-width: 992px) {
  .articulos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .articulos-grid {
    grid-template-columns: 1fr;
  }
}

/* Línea del Tiempo */
.timeline-separator {
  height: 4px;
  margin: 4rem 10% 2.5rem;
  background: linear-gradient(90deg, transparent, var(--green-500), transparent);
  border-radius: 2px;
  opacity: 0.6;
}

.cd-horizontal-timeline {
  opacity: 0;
  margin: 1em auto;
  transition: opacity 0.2s;
}
.cd-horizontal-timeline ol, .cd-horizontal-timeline ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cd-horizontal-timeline::before {
  content: 'mobile';
  display: none;
}
.cd-horizontal-timeline.loaded {
  opacity: 1;
  padding: 2rem 0;
}

.cd-horizontal-timeline .events-content li {
  position: absolute;
  z-index: 1;
  width: 100%;
  left: 0;
  top: 0;
  transform: translateX(-100%);
  padding: 0 5%;
  opacity: 0;
  animation-duration: 0.4s;
  animation-timing-function: ease-in-out;
}

.cd-horizontal-timeline.loaded::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--green-500), transparent);
  border-radius: 2px;
}
.cd-horizontal-timeline .timeline {
  position: relative;
  height: 100px;
  width: 100%;
  max-width: 90%;
  margin: 0 auto;
}
.cd-horizontal-timeline .events-wrapper {
  position: relative;
  height: 100%;
  margin: 0 40px;
  overflow: hidden;
}
.cd-horizontal-timeline .events-wrapper::after,
.cd-horizontal-timeline .events-wrapper::before {
  content: '';
  position: absolute;
  z-index: 2;
  top: 0;
  height: 100%;
  width: 20px;
}
.cd-horizontal-timeline .events-wrapper::before {
  left: 0;
}
.cd-horizontal-timeline .events-wrapper::after {
  right: 0;
}
.cd-horizontal-timeline .events {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 49px;
  height: 4px;
  background: #000;
  transition: transform 0.4s;
}
.cd-horizontal-timeline .filling-line {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: var(--green-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s;
}
.cd-horizontal-timeline .events a {
  position: absolute;
  bottom: 0;
  z-index: 2;
  text-align: center;
  font-size: 1.3rem;
  padding-bottom: 15px;
  color: var(--green-900);
  font-weight: 700;
  text-decoration: none;
  transform: translateZ(0);
}

.cd-horizontal-timeline .events a i {
  color: #d4a017;
  margin-right: 6px;
}

.cd-horizontal-timeline .events a.selected i {
  color: #d4a017;
}
.cd-horizontal-timeline .events a::after {
  content: '';
  position: absolute;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  bottom: -6px;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  border: 2px solid var(--green-400);
  background-color: #fff;
  transition: background-color 0.3s, border-color 0.3s;
}
.cd-horizontal-timeline .events a.selected::after {
  background-color: var(--green-500);
  border-color: var(--green-500);
}
.cd-horizontal-timeline .events a.older-event::after {
  border-color: var(--gold);
}
.cd-timeline-navigation a {
  position: absolute;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  width: 34px;
  border-radius: 50%;
  border: 2px solid #000;
  overflow: hidden;
  color: transparent;
  text-indent: 100%;
  white-space: nowrap;
  transition: border-color 0.3s;
}
.cd-timeline-navigation a::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--green-700);
  border-bottom: 2px solid var(--green-700);
  transform: translate(-50%, -50%) rotate(-45deg);
}
.cd-timeline-navigation a.prev {
  left: 0;
}
.cd-timeline-navigation a.prev::after {
  transform: translate(-50%, -50%) rotate(135deg);
}
.cd-timeline-navigation a.next {
  right: 0;
}
.cd-timeline-navigation a.next::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.cd-timeline-navigation a.inactive {
  cursor: pointer;
  opacity: 1;
}
.cd-horizontal-timeline .events-content {
  position: relative;
  width: 100%;
  margin: 2em 0;
  overflow: hidden;
  transition: height 0.4s;
}
.cd-horizontal-timeline .events-content li {
  position: absolute;
  z-index: 1;
  width: 100%;
  left: 0;
  top: 0;
  transform: translateX(-100%);
  padding: 0 5%;
  opacity: 0;
  animation-duration: 0.4s;
  animation-timing-function: ease-in-out;
}
.cd-horizontal-timeline .events-content li.selected {
  position: relative;
  z-index: 2;
  opacity: 1;
  transform: translateX(0);
}
.cd-horizontal-timeline .events-content li.enter-right,
.cd-horizontal-timeline .events-content li.leave-right {
  animation-name: cd-enter-right;
}
.cd-horizontal-timeline .events-content li.enter-left,
.cd-horizontal-timeline .events-content li.leave-left {
  animation-name: cd-enter-left;
}
.cd-horizontal-timeline .events-content li.leave-right,
.cd-horizontal-timeline .events-content li.leave-left {
  animation-direction: reverse;
}
.cd-horizontal-timeline .events-content li > * {
  max-width: 100%;
  margin: 0 auto;
}

.timeline-card {
  background: #f5f5f5;
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.cd-horizontal-timeline .events-content h2 {
  font-weight: 800;
  color: var(--green-900);
  line-height: 1.2;
}

.timeline-image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.timeline-image img {
  width: 100%;
  display: block;
}

.timeline-body h2 {
  font-weight: 800;
  color: var(--green-900);
  margin-bottom: 0.25rem;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.timeline-body em {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: 2px;
  opacity: 1;
  text-transform: uppercase;
  color: #d4a017;
  margin-bottom: 1.25rem;
  text-align: center;
}

.home-layout p {
  line-height: 1.85;
  margin-bottom: 1.25rem;
  color: #000;
  text-align: justify;
}

.timeline-body p {
  line-height: 1.85;
  color: #000;
  margin-bottom: 1.25rem;
  text-align: justify;
}

@media (max-width: 768px) {
  .cd-horizontal-timeline .timeline {
    max-width: 100%;
  }
  .cd-horizontal-timeline .events-content h2 {
    font-size: 2rem;
  }
  .cd-horizontal-timeline .events-content p {
    font-size: 1rem;
  }
  .cd-horizontal-timeline .events a {
    font-size: 1rem;
  }
}

/* Responsive: Mobile */
@media (max-width: 768px) {
  .home-layout {
    flex-direction: column;
  }

  .home-sidebar {
    position: relative;
    top: auto;
    left: auto;
    min-width: 100%;
    min-height: auto;
    padding: 0.75rem 1rem;
    z-index: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }

  .hamburger-btn {
    display: flex;
  }

  .hamburger-label {
    display: block;
  }

  .sidebar-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 2px;
    padding: 0.5rem 0;
    margin: 0.5rem 0 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    order: 10;
  }

  .home-sidebar.open .sidebar-nav {
    display: flex;
  }

  .home-sidebar .sidebar-separator {
    display: none;
  }

  .home-sidebar .sidebar-social {
    display: none;
  }

  .home-main {
    margin-left: 0;
    padding: 1.25rem;
  }

  .side-link {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
    letter-spacing: 1px;
  }

  .side-link i {
    margin-right: 0.5rem;
    width: 1.2rem;
  }

  .section {
    padding: 1.5rem 1rem;
  }

  .hero-text h2 {
    font-size: 2.2rem;
  }

  .site-title {
    font-size: 2rem;
    text-align: center;
  }

  .site-subtitle {
    font-size: 1.2rem;
    text-align: center;
  }

  .site-header .row {
    flex-direction: column;
    text-align: center;
  }

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

  .home-sidebar .sidebar-logo img {
    max-height: 60px;
  }
}

@media (max-width: 480px) {
  .articulos-grid {
    grid-template-columns: 1fr;
  }

  .side-link {
    font-size: 0.85rem;
    padding: 0.2rem 0.4rem;
    letter-spacing: 0;
  }

  .hero-text h2 {
    font-size: 1.8rem;
  }

  .home-main {
    padding: 0.75rem;
  }
}
