/* ==========================================================================
   SOMOS ENERGÍA - THEME DESIGN SYSTEM & STYLESHEET
   Inspirado en la propuesta editorial de "Tamaulipas: Somos Energía"
   ========================================================================== */

:root {
  /* Color Palette */
  --color-bg: #f7f6ef;
  --color-surface: #ffffff;
  --color-surface-card: #ffffff;
  --color-surface-subtle: #f0efe8;
  
  --color-dark: #102f2c;
  --color-pine: #123d39;
  --color-forest: #12332e;
  --color-forest-dark: #0a1f1c;

  --color-emerald: #145c4b;
  --color-emerald-light: #26775a;
  --color-emerald-pill: #e5f2ea;
  --color-emerald-pill-text: #145c4b;
  --color-emerald-soft: #dcebe2;
  --color-emerald-border: #d2e1d8;

  --color-gold: #e7af53;
  --color-gold-light: #f2c374;
  --color-gold-bg: #fff3dc;
  --color-gold-text: #725321;
  --color-gold-btn-text: #19352c;

  --color-text-title: #12332e;
  --color-text-body: #51645e;
  --color-text-light: #d2e1d8;
  --color-text-white: #ffffff;

  --color-border: #e6e4dc;
  --color-border-card: rgba(18, 51, 46, 0.08);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(18, 51, 46, 0.04);
  --shadow-md: 0 8px 20px rgba(18, 51, 46, 0.07);
  --shadow-lg: 0 16px 36px rgba(18, 51, 46, 0.11);
  --shadow-hover: 0 14px 28px rgba(20, 92, 75, 0.14);

  /* Transitions & Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Normalization */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-title);
  line-height: 1.25;
  font-weight: 700;
}

a {
  color: var(--color-emerald);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-emerald-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

/* Layout container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Kicker Badge styling */
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-emerald-light);
  margin-bottom: 0.75rem;
}

.section-kicker::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-emerald);
}

.section-header {
  margin-bottom: 2.75rem;
}

.section-header.text-center {
  text-align: center;
}

.section-header.text-center .section-kicker {
  justify-content: center;
}

.section-title {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  color: var(--color-forest);
  margin-bottom: 0.85rem;
}

.section-intro {
  font-size: 1.075rem;
  color: var(--color-text-body);
  max-width: 680px;
  line-height: 1.65;
}

.section-header.text-center .section-intro {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(247, 246, 239, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18, 51, 46, 0.08);
  transition: var(--transition);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #145c4b 0%, #26775a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(20, 92, 75, 0.25);
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-forest);
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
}

.brand-title span.brand-sub {
  font-size: 0.725rem;
  font-weight: 500;
  color: var(--color-emerald);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.main-navigation {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-menu li a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-forest);
  position: relative;
  padding: 0.4rem 0;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-emerald);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.45rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-emerald);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(20, 92, 75, 0.25);
}

.btn-primary:hover {
  background-color: #0f483a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(20, 92, 75, 0.35);
}

.btn-gold {
  background-color: var(--color-gold);
  color: var(--color-gold-btn-text);
  box-shadow: 0 4px 14px rgba(231, 175, 83, 0.3);
}

.btn-gold:hover {
  background-color: #df9e38;
  color: var(--color-gold-btn-text);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 175, 83, 0.45);
}

.btn-outline-white {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-emerald {
  background-color: transparent;
  color: var(--color-emerald);
  border: 1.5px solid var(--color-emerald);
}

.btn-outline-emerald:hover {
  background-color: var(--color-emerald);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-forest);
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* Mobile Drawer */
.mobile-nav-drawer {
  display: none;
}

@media (max-width: 991px) {
  .main-navigation,
  .header-actions .btn-desktop {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .mobile-nav-drawer {
    display: block;
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    border-bottom: 2px solid var(--color-emerald);
  }
  .mobile-nav-drawer.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .mobile-nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .mobile-nav-menu li a {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-forest);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
  }
  .mobile-nav-footer {
    margin-top: 1.5rem;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
/* ==========================================================================
   HERO FULL-SCREEN IMMERSIVE BANNER
   ========================================================================== */
.hero-fullscreen-banner {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 76px);
  min-height: max(680px, calc(100vh - 76px));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff;
  background-color: var(--color-pine);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Full-screen Background Media */
.hero-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  display: block;
  transform: scale(1.02);
  transition: transform 12s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-fullscreen-banner:hover .hero-bg-media img {
  transform: scale(1.06);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(
      180deg,
      rgba(10, 31, 28, 0.76) 0%,
      rgba(14, 43, 39, 0.62) 32%,
      rgba(16, 47, 44, 0.78) 70%,
      rgba(10, 31, 28, 0.98) 100%
    ),
    radial-gradient(
      circle at 50% 38%,
      rgba(20, 92, 75, 0.3) 0%,
      rgba(10, 31, 28, 0.75) 100%
    );
}

/* Container & Content directly on top */
.hero-container-rel {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 4.5rem;
  padding-bottom: 5.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-content-wrapper {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Badges Cluster */
.hero-badges-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.hero-kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(242, 195, 116, 0.18);
  border: 1px solid rgba(242, 195, 116, 0.5);
  color: var(--color-gold-light);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero-kicker-pill svg {
  width: 16px;
  height: 16px;
}

.hero-image-badge {
  background: rgba(16, 47, 44, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero-image-badge.gold {
  background: rgba(231, 175, 83, 0.35);
  border-color: rgba(242, 195, 116, 0.6);
  color: #fff9e6;
}

/* Overlaid Hero Title */
.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  line-height: 1.12;
  color: #ffffff;
  margin-bottom: 1.35rem;
  letter-spacing: -0.025em;
  font-weight: 800;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.7);
}

/* Overlaid Hero Description */
.hero-description {
  font-size: clamp(1.125rem, 2.2vw, 1.35rem);
  line-height: 1.7;
  color: #f1f8f4;
  margin: 0 auto 2.5rem;
  max-width: 740px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
  font-weight: 400;
}

/* Button Sizes & CTAs */
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-lg {
  padding: 0.95rem 2.2rem;
  font-size: 1.05rem;
}

/* Bottom Caption */
.hero-bottom-caption {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(10, 31, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.5rem 1.4rem;
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.925rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.hero-bottom-caption::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-gold-light);
  box-shadow: 0 0 10px var(--color-gold);
}

/* Scroll Indicator Down */
.hero-scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.hero-scroll-indicator svg {
  width: 20px;
  height: 20px;
  animation: heroBounce 2s infinite ease-in-out;
}

.hero-scroll-indicator:hover {
  color: #ffffff;
  transform: translateX(-50%) translateY(2px);
}

@keyframes heroBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(6px);
  }
  60% {
    transform: translateY(3px);
  }
}

@media (max-width: 768px) {
  .hero-fullscreen-banner {
    min-height: max(560px, calc(100vh - 70px));
  }
  .hero-container-rel {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-description {
    font-size: 1.05rem;
  }
  .hero-scroll-indicator {
    display: none;
  }
}


/* ==========================================================================
   SECCIÓN 01: ENERGÍAS RENOVABLES
   ========================================================================== */
.section-renewables {
  padding: 6rem 0;
}

.renewables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.renew-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.renew-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-emerald-border);
}

.renew-card-media {
  position: relative;
  height: 220px;
  overflow: hidden;
  background-color: #e5f2ea;
}

.renew-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.renew-card:hover .renew-card-media img {
  transform: scale(1.06);
}

.renew-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: var(--color-emerald);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.renew-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.renew-card-title {
  font-size: 1.35rem;
  color: var(--color-forest);
  margin-bottom: 0.65rem;
  font-weight: 700;
}

.renew-card-text {
  font-size: 0.975rem;
  color: var(--color-text-body);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.renew-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(18, 51, 46, 0.06);
  padding-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-emerald);
}

.renew-card-footer svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.renew-card:hover .renew-card-footer svg {
  transform: translateX(4px);
}

/* ==========================================================================
   SECCIÓN 02: ENERGÍAS NO RENOVABLES
   ========================================================================== */
.section-nonrenewable {
  padding: 6rem 0;
  background-color: #f1efe6;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.nonrenewable-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.75rem;
}

.nonrenew-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.nonrenew-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5d0;
}

.nonrenew-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-emerald-pill);
  color: var(--color-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
}

.nonrenew-icon-box svg {
  width: 24px;
  height: 24px;
}

.nonrenew-card-title {
  font-size: 1.25rem;
  color: var(--color-forest);
  margin-bottom: 0.65rem;
  font-weight: 700;
}

.nonrenew-card-text {
  font-size: 0.95rem;
  color: var(--color-text-body);
  line-height: 1.6;
}

/* ==========================================================================
   SECCIÓN 03: NOTICIAS (EN PERSPECTIVA)
   ========================================================================== */
.section-news {
  padding: 6rem 0;
}

.news-filter-bar {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.75rem 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.news-search-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 220px;
}

.news-search-box svg {
  width: 20px;
  height: 20px;
  color: var(--color-text-body);
  flex-shrink: 0;
}

.news-search-input {
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
  font-size: 0.975rem;
  color: var(--color-forest);
}

.news-search-input::placeholder {
  color: #8c9b96;
}

.news-sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-surface-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
}

.news-sort-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-text-body);
  white-space: nowrap;
}

.news-sort-select {
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-forest);
  cursor: pointer;
  padding-right: 0.5rem;
}

.news-sort-select option {
  background-color: #ffffff;
  color: var(--color-forest);
  font-weight: 500;
}

.news-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.news-tab-btn {
  background: transparent;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-forest);
  cursor: pointer;
  transition: var(--transition);
}

.news-tab-btn:hover {
  background-color: var(--color-surface-subtle);
}

.news-tab-btn.active {
  background-color: var(--color-emerald);
  color: #ffffff;
}

.news-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-emerald-pill);
  color: var(--color-emerald-pill-text);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
}

.news-card-footer-meta {
  font-size: 0.825rem;
  color: #7b8f88;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.news-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-emerald-border);
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.news-category-pill {
  background-color: var(--color-emerald-pill);
  color: var(--color-emerald-pill-text);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.news-date {
  font-size: 0.825rem;
  color: #7b8f88;
}

.news-card-title {
  font-size: 1.25rem;
  color: var(--color-forest);
  line-height: 1.35;
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.news-card-summary {
  font-size: 0.95rem;
  color: var(--color-text-body);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.news-card-quote {
  background-color: var(--color-surface-subtle);
  border-left: 3px solid var(--color-emerald);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-size: 0.875rem;
  color: var(--color-text-body);
  margin-bottom: 1.5rem;
  font-style: italic;
  flex-grow: 1;
}

.news-card-action {
  margin-top: auto;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.925rem;
  color: var(--color-emerald);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.news-read-more:hover {
  color: var(--color-emerald-light);
  gap: 0.65rem;
}

.disclaimer-banner {
  background-color: var(--color-gold-bg);
  border: 1px solid rgba(231, 175, 83, 0.4);
  color: var(--color-gold-text);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.925rem;
  line-height: 1.5;
}

.disclaimer-banner svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-gold);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--color-text-body);
  display: none;
}

.empty-state.visible {
  display: block;
}

/* ==========================================================================
   SECCIÓN 04: EVENTOS
   ========================================================================== */
.section-events {
  padding: 6rem 0;
  background-color: #f1efe6;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.events-filter-bar {
  margin-bottom: 2.5rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.event-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-emerald-border);
}

.event-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.event-type-badge {
  background-color: var(--color-emerald-pill);
  color: var(--color-emerald-pill-text);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
}

.event-date-chip {
  font-size: 0.825rem;
  color: #7b8f88;
  font-weight: 500;
}

.event-card-title {
  font-size: 1.3rem;
  color: var(--color-forest);
  margin-bottom: 0.65rem;
  font-weight: 700;
}

.event-place-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--color-forest);
  font-weight: 600;
  margin-bottom: 1rem;
}

.event-place-badge svg {
  width: 16px;
  height: 16px;
  color: var(--color-emerald);
}

.event-card-summary {
  font-size: 0.95rem;
  color: var(--color-text-body);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.event-card-note {
  font-size: 0.825rem;
  color: #7b8f88;
  background-color: var(--color-surface-subtle);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-xs);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   SECCIÓN 05: BLOG PERSONAL & AUTORA
   ========================================================================== */
.section-blog {
  padding: 6rem 0;
}

.blog-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2.75rem;
  align-items: start;
}

.author-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: sticky;
  top: 100px;
}

.author-avatar-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-emerald-pill);
  box-shadow: 0 4px 16px rgba(20, 92, 75, 0.15);
}

.author-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-emerald-light);
  margin-bottom: 0.35rem;
}

.author-name {
  font-size: 1.35rem;
  color: var(--color-forest);
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.author-bio {
  font-size: 0.925rem;
  color: var(--color-text-body);
  line-height: 1.6;
}

.blog-posts-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-post-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-emerald-border);
}

.blog-tags-wrap {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.blog-tag {
  color: var(--color-emerald);
  font-size: 0.825rem;
  font-weight: 600;
}

.blog-post-title {
  font-size: 1.45rem;
  color: var(--color-forest);
  margin-bottom: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
}

.blog-post-summary {
  font-size: 1rem;
  color: var(--color-text-body);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.blog-post-detail {
  background-color: var(--color-surface-subtle);
  border-left: 3px solid var(--color-emerald-light);
  padding: 0.85rem 1.15rem;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-size: 0.925rem;
  color: var(--color-text-body);
  margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .author-card {
    position: static;
  }
}

/* ==========================================================================
   SECCIÓN: SUSCRIPCIÓN (NEWSLETTER)
   ========================================================================== */
.section-subscribe {
  padding: 5rem 0;
}

.subscribe-panel {
  background-color: var(--color-pine);
  background-image: 
    radial-gradient(circle at 100% 0%, rgba(242, 195, 116, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(38, 119, 90, 0.3) 0%, transparent 40%);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.subscribe-title {
  font-size: 2.25rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.subscribe-desc {
  font-size: 1.05rem;
  color: var(--color-emerald-soft);
  line-height: 1.6;
}

.subscribe-form {
  display: flex;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.subscribe-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.65rem 1.25rem;
  color: #ffffff;
  font-size: 0.975rem;
}

.subscribe-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.subscribe-msg {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-gold-light);
  display: none;
}

.subscribe-msg.visible {
  display: block;
}

@media (max-width: 850px) {
  .subscribe-panel {
    grid-template-columns: 1fr;
    padding: 3rem 2rem;
    gap: 2rem;
  }
  .subscribe-form {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
  }
  .subscribe-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-pill);
    padding: 0.85rem 1.25rem;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--color-dark);
  color: #d2e1d8;
  padding: 5rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand-title {
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.footer-description {
  font-size: 0.95rem;
  color: #a4beaf;
  line-height: 1.65;
  max-width: 360px;
}

.footer-col-title {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links li a {
  color: #a4beaf;
  font-size: 0.925rem;
  transition: var(--transition);
}

.footer-links li a:hover {
  color: #ffffff;
  transform: translateX(4px);
  display: inline-block;
}

.social-links {
  display: flex;
  gap: 0.85rem;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.social-btn:hover {
  background: var(--color-emerald);
  transform: translateY(-3px);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(20, 92, 75, 0.3);
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: #7b9687;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ==========================================================================
   MODAL DIALOG (LEER MÁS / MÁS INFORMACIÓN)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(16, 47, 44, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--color-border);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--color-surface-subtle);
  color: var(--color-forest);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background-color: #e5e3d7;
  transform: rotate(90deg);
}

.modal-badge {
  display: inline-block;
  background-color: var(--color-emerald-pill);
  color: var(--color-emerald-pill-text);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 1.65rem;
  color: var(--color-forest);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.modal-meta {
  font-size: 0.875rem;
  color: #7b8f88;
  margin-bottom: 1.5rem;
}

.modal-content {
  font-size: 1.025rem;
  line-height: 1.7;
  color: var(--color-text-body);
  margin-bottom: 2rem;
}

/* ==========================================================================
   PAGES / SINGLE / BLOG ARCHIVE FALLBACK
   ========================================================================== */
.standard-page-header {
  background-color: var(--color-pine);
  color: #ffffff;
  padding: 4rem 0 3.5rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  margin-bottom: 3.5rem;
}

.standard-page-title {
  color: #ffffff;
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
}

.standard-content-wrap {
  padding-bottom: 5rem;
}

.standard-content-wrap p {
  margin-bottom: 1.35rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.standard-content-wrap h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   PORTAL PERIODÍSTICO / NOTAS (/notas)
   ========================================================================== */
.page-notas-main {
  background-color: var(--color-bg);
}

.notas-hero-header {
  background-color: var(--color-pine);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(38, 119, 90, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(242, 195, 116, 0.15) 0%, transparent 40%);
  color: #ffffff;
  padding: 4.5rem 0 3.5rem;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: 2.5rem;
}

.notas-hero-content {
  max-width: 800px;
}

.notas-hero-title {
  color: #ffffff;
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.notas-hero-desc {
  font-size: 1.15rem;
  color: var(--color-emerald-soft);
  line-height: 1.65;
}

.notas-toolbar-section {
  margin-bottom: 2.5rem;
}

.notas-toolbar {
  margin-bottom: 1rem !important;
}

.notas-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.notas-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.75rem;
  align-items: start;
}

.notas-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* Nota Principal Destacada (Lead Story) */
.lead-journal-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #ffffff 0%, #f4f8f5 100%);
  border: 1.5px solid var(--color-emerald-border);
  box-shadow: var(--shadow-md);
  padding: 2.5rem !important;
  position: relative;
}

.lead-journal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-emerald) 0%, var(--color-gold) 100%);
}

.lead-title {
  font-size: 1.85rem !important;
  line-height: 1.25 !important;
  margin-bottom: 1rem !important;
}

.lead-summary {
  font-size: 1.1rem !important;
  line-height: 1.7 !important;
  color: var(--color-text-body);
  margin-bottom: 1.5rem !important;
}

/* Sidebar Periodístico */
.notas-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.notas-sidebar-box {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.notas-sidebar-title {
  font-size: 1.15rem;
  color: var(--color-forest);
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--color-emerald-pill);
  font-weight: 700;
}

.notas-category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.notas-cat-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--color-forest);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.notas-cat-link:hover {
  background-color: var(--color-emerald-pill);
  color: var(--color-emerald);
  transform: translateX(4px);
}

.notas-cat-count {
  background-color: var(--color-surface-subtle);
  color: var(--color-text-body);
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.notas-cat-link:hover .notas-cat-count {
  background-color: var(--color-emerald);
  color: #ffffff;
}

@media (max-width: 991px) {
  .notas-layout-grid {
    grid-template-columns: 1fr;
  }
  .notas-sidebar {
    position: static;
  }
  .notas-hero-title {
    font-size: 2.25rem;
  }
}
