html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
}

h1,
h2,
h3,
.section-title,
.hero-title,
.footer-title {
  font-family: 'Oswald', sans-serif;
}


.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border: 1px solid #e7e5e4;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  font-weight: 600;
  color: #44403c;
  transition: all 0.25s ease;
}

.nav-pill:hover {
  transform: translateY(-1px);
  border-color: #86efac;
  color: #166534;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav-dropdown {
  position: relative;
  padding-bottom: 6px;
}

.nav-dropdown-toggle {
  width: 100%;
  justify-content: center;
  position: relative;
}

.nav-dropdown-icon {
  font-size: 0.8rem;
  line-height: 1;
  position: static;
  transform: none;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  padding: 0.5rem;
  display: none;
  z-index: 999;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-link {
  display: block;
  text-align: center;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  color: #44403c;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-dropdown-link:hover {
  background: #f5f5f4;
  color: #15803d;
}

@media (max-width: 991px) {
  .main-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-dropdown {
    width: 100%;
    padding-bottom: 0;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 100%;
    margin-top: 0.5rem;
    box-shadow: none;
    border-radius: 16px;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

.nav-dropdown-toggle {
  width: 100%;
  justify-content: center;
  position: relative;
}

.nav-dropdown-icon {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.nav-dropdown-link {
  text-align: center;
}
}

.mobile-link {
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 0.9rem;
  font-weight: 600;
}

.hero-gradient {
  background:
    radial-gradient(circle at top left, rgba(255, 237, 213, 0.85), transparent 40%),
    linear-gradient(180deg, #fafaf9 0%, #f5f5f4 100%);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  border: none;
  background: rgba(120, 53, 15, 0.18);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.hero-arrow:hover {
  background: rgba(120, 53, 15, 0.28);
}

.slide {
  display: none;
}

.slide.active {
  display: block;
}

.hero-slider {
  min-height: 440px;
}

.hero-slide-image {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  display: block;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #92400e;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.09);
  margin-top: 0.9rem;
}

.hero-text {
  max-width: 38rem;
  margin-top: 1rem;
  font-size: 1.06rem;
  color: #78350f;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  border-radius: 0.9rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

.btn-primary {
  background: #16a34a;
  color: white;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.25);
}

.btn-primary:hover {
  background: #15803d;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: #44403c;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-secondary:hover {
  background: white;
}

.hero-icons {
  display: grid;
  grid-template-columns: repeat(3, minmax(80px, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 460px;
}

.hero-icons span,
.glass-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  color: white;
  font-size: 3rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.glass-card {
  font-size: 1.1rem;
  font-weight: 700;
  min-height: 120px;
  padding: 1rem;
  text-align: center;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  color: #57534e;
}

.quick-card {
  background: white;
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
  padding: 1.5rem;
  min-height: 180px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  animation: fadeUp 0.7s ease both;
}

.quick-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.10);
  border-color: #86efac;
}

.quick-card:hover .quick-icon {
  transform: scale(1.08) rotate(-4deg);
}

.quick-card h3 {
  font-size: 1.35rem;
  color: #292524;
}

.quick-card p {
  color: #78716c;
  margin-top: 0.5rem;
}

.quick-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #2db565;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 10px 20px rgba(45, 181, 101, 0.18);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.quick-icon span {
  font-size: 1.7rem;
  line-height: 1;
  color: white;
}

.quick-card p {
  color: #78716c;
  margin-top: 0.85rem;
  line-height: 1.6;
}

.news-card {
  overflow: hidden;
  background: white;
  border-radius: 1.25rem;
  border: 1px solid #e7e5e4;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  animation: fadeUp 0.8s ease both;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.12);
  border-color: #86efac;
}

.news-card:hover .news-image {
  transform: scale(1.06);
}

.news-image {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: transform 0.45s ease;
}

.news-meta {
  color: #16a34a;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-card h3 {
  font-size: 1.55rem;
  line-height: 1.1;
  margin-top: 0.55rem;
  color: #292524;
}

.news-card p:last-of-type {
  color: #57534e;
  margin-top: 0.75rem;
}

.news-btn {
  display: inline-flex;
  margin-top: 1rem;
  background: #16a34a;
  color: white;
  border-radius: 9999px;
  padding: 0.7rem 1rem;
  font-weight: 700;
}

.service-card {
  min-height: 190px;
  border-radius: 1.1rem;
  background: #2db565;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 12px 24px rgba(45, 181, 101, 0.23);
  transition: transform 0.25s ease, background 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  background: #25a25a;
}

.service-card span {
  font-size: 3rem;
}

.service-card strong {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 500;
}

.footer-title {
  font-size: 1.8rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .hero-slider,
  .hero-slide-image {
    min-height: 260px;
  }
}

/* ===== CHATBOT FLOTANTE ===== */
.chatbot-wrapper {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 9999;
}

.chatbot-fab {
  width: 68px;
  height: 68px;
  border: none;
  border-radius: 9999px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.chatbot-fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 36px rgba(22, 163, 74, 0.42);
}

.chatbot-fab-icon {
  line-height: 1;
}

.chatbot-window {
  position: absolute;
  left: 0;
  bottom: 86px;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: #edf2ef;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transform-origin: bottom left;
  animation: chatbotPopIn 0.28s ease;
}

.chatbot-header {
  background: linear-gradient(135deg, #2edb68, #24c95d);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.4rem;
}

.chatbot-header-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.chatbot-header-icon {
  font-size: 2rem;
  line-height: 1;
}

.chatbot-close {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.22);
  color: white;
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-body {
  padding: 1.5rem 1.25rem 1.25rem;
  min-height: 210px;
}

.chatbot-message {
  position: relative;
  background: #ffffff;
  color: #44403c;
  border-radius: 2rem;
  padding: 1.3rem 1.4rem;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 280px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.chatbot-message::before {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 28px;
  width: 24px;
  height: 24px;
  background: white;
  border-bottom-right-radius: 18px;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.chatbot-open-btn {
  margin-top: 1.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: linear-gradient(135deg, #2edb68, #24c95d);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(46, 219, 104, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-open-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(46, 219, 104, 0.36);
}

.chatbot-open-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.hidden {
  display: none;
}

@keyframes chatbotPopIn {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(18px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (max-width: 480px) {
  .chatbot-wrapper {
    left: 14px;
    bottom: 14px;
  }

  .chatbot-window {
    width: 320px;
    max-width: calc(100vw - 28px);
    bottom: 80px;
  }

  .chatbot-message {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-icons {
    grid-template-columns: repeat(2, minmax(90px, 1fr));
  }

  .hero-arrow {
    width: 2.7rem;
    height: 2.7rem;
  }

  .news-image {
    min-height: 220px;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pequeñas demoras para que entren escalonadas */
.quick-card:nth-child(1),
.news-card:nth-child(1) {
  animation-delay: 0.05s;
}

.quick-card:nth-child(2),
.news-card:nth-child(2) {
  animation-delay: 0.12s;
}

.quick-card:nth-child(3),
.news-card:nth-child(3) {
  animation-delay: 0.19s;
}

.quick-card:nth-child(4) {
  animation-delay: 0.26s;
}


/* ===== DÍAS AMBIENTALES ===== */
.day-card {
  overflow: hidden;
  background: white;
  border-radius: 1.25rem;
  border: 1px solid #e7e5e4;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  animation: fadeUp 0.85s ease both;
}

.day-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.12);
  border-color: #86efac;
}

.day-card:hover .day-card-image {
  transform: scale(1.05);
}

.day-card-image-wrapper {
  position: relative;
  height: 430px;
  overflow: hidden;
  background: #e7e5e4;
}

.day-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}

.day-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.04));
  pointer-events: none;
}

.day-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #16a34a;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.8rem;
  border-radius: 9999px;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.24);
}

.day-card-content {
  padding: 1.25rem;
}

.day-meta {
  color: #16a34a;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.day-card h3 {
  font-size: 1.55rem;
  line-height: 1.1;
  margin-top: 0.55rem;
  color: #292524;
}

.day-card p:last-of-type {
  color: #57534e;
  margin-top: 0.75rem;
  line-height: 1.6;
}

.day-card:nth-child(1) {
  animation-delay: 0.05s;
}

.day-card:nth-child(2) {
  animation-delay: 0.12s;
}

.day-card:nth-child(3) {
  animation-delay: 0.19s;
}

@media (max-width: 768px) {
  .day-card-image-wrapper {
    height: 360px;
  }
}

/* ===== REELS LOCALES ===== */
.reel-card-local {
  overflow: hidden;
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid #e7e5e4;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.06);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
  animation: fadeUp 0.85s ease both;
}

.reel-card-local:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.13);
  border-color: #86efac;
}

.reel-card-local:hover .reel-video {
  transform: scale(1.02);
}

.reel-video-wrap {
  position: relative;
  background: linear-gradient(180deg, #0f172a, #111827);
  padding: 14px;
}

.reel-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  display: block;
  border-radius: 1.15rem;
  background: #000;
  transition: transform 0.4s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.reel-content {
  padding: 1.35rem 1.35rem 1.5rem;
}

.reel-meta {
  color: #16a34a;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.reel-card-local h3 {
  font-size: 1.55rem;
  line-height: 1.1;
  margin-top: 0.6rem;
  color: #292524;
}

.reel-content p:last-of-type {
  color: #57534e;
  margin-top: 0.8rem;
  line-height: 1.7;
}

.reel-badge {
  position: absolute;
  top: 26px;
  left: 26px;
  z-index: 2;
  background: #16a34a;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.8rem;
  border-radius: 9999px;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.24);
}

.featured-reel {
  position: relative;
}

.featured-reel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.18);
}

.reel-card-local:nth-child(1) {
  animation-delay: 0.05s;
}

.reel-card-local:nth-child(2) {
  animation-delay: 0.12s;
}

.reel-card-local:nth-child(3) {
  animation-delay: 0.19s;
}

@media (max-width: 768px) {
  .reel-video-wrap {
    padding: 10px;
  }

  .reel-content {
    padding: 1.1rem 1.1rem 1.3rem;
  }
}


/* ===== MODAL REEL VERTICAL ===== */
.reel-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.reel-modal.hidden {
  display: none;
}

.reel-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
}

.reel-modal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  animation: fadeUp 0.25s ease;
}

.reel-modal-video-wrap {
  background: #000;
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.reel-modal-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  display: block;
  background: #000;
}

.reel-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 9999px;
  background: #ffffff;
  color: #111827;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

@media (max-width: 480px) {
  .reel-modal-content {
    max-width: 92vw;
  }
}



/* ===== PÁGINA BOSQUES NATIVOS ===== */
.forest-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.forest-hero-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.forest-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.08));
}

.forest-hero-content {
  max-width: 520px;
}

.forest-title {
  font-family: 'Oswald', sans-serif;
  color: white;
  text-transform: uppercase;
  line-height: 0.95;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.forest-title span {
  display: block;
}

.forest-title span:first-child {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
}

.forest-title span:last-child {
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 300;
}

.forest-intro-section {
  background: #f5f5f4;
  padding: 5rem 0 4rem;
}

.forest-intro-box {
  min-height: 250px;
  display: flex;
  align-items: center;
}

.forest-intro-box p {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.15;
  text-transform: uppercase;
  color: #57534e;
  max-width: 1100px;
}

.forest-law-section {
  background: #f5f5f4;
  padding: 0 0 3.5rem;
}

.forest-law-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
  border-radius: 0;
  background: #ddd;
}

.forest-law-image-col {
  min-height: 420px;
}

.forest-law-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.forest-law-text-col {
  position: relative;
  background: linear-gradient(135deg, rgba(39, 56, 35, 0.96), rgba(74, 98, 61, 0.94));
  display: flex;
  align-items: center;
  padding: 2rem;
}

.forest-law-text-box {
  max-width: 500px;
  margin-left: auto;
  color: white;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.forest-law-text-box h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 1rem;
}

.forest-law-text-box p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.forest-law-text-box ul {
  margin: 0;
  padding-left: 1.1rem;
}

.forest-law-text-box li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.forest-content-section {
  background: #f5f5f4;
  padding: 0 0 5rem;
}

.forest-content-wrapper {
  display: grid;
  grid-template-columns: 1.7fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.forest-links-block h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  color: #44403c;
  margin-bottom: 2rem;
}

.forest-links-grid {
  display: grid;
  gap: 2rem;
}

.forest-links-group {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.forest-links-group h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  text-transform: uppercase;
  color: #57534e;
  margin: 0;
}

.forest-links-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.forest-links-group li {
  margin-bottom: 0.75rem;
}

.forest-links-group a {
  color: #78716c;
  font-size: 1.05rem;
  text-decoration: none;
  transition: color 0.25s ease;
}

.forest-links-group a:hover {
  color: #16a34a;
}

.forest-side-card {
  display: grid;
  gap: 0.8rem;
  max-width: 260px;
  margin-left: auto;
}

.forest-side-box {
  background: #dcefdc;
  border: 8px solid #c9e2c9;
  border-radius: 1rem;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

.forest-side-box span {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  color: #44403c;
  text-transform: uppercase;
}

.forest-side-number span {
  font-size: 2.3rem;
}

@media (max-width: 1024px) {
  .forest-law-card,
  .forest-content-wrapper,
  .forest-links-group {
    grid-template-columns: 1fr;
  }

  .forest-law-text-box {
    margin-left: 0;
  }

  .forest-side-card {
    max-width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .forest-hero,
  .forest-hero-image {
    min-height: 360px;
    height: 360px;
  }

  .forest-intro-section {
    padding: 3rem 0 2.5rem;
  }

  .forest-intro-box {
    min-height: auto;
  }

  .forest-law-image-col {
    min-height: 300px;
  }

  .forest-law-text-col {
    padding: 1.5rem;
  }

  .forest-links-group h3 {
    margin-bottom: 0.5rem;
  }
}

/* ===== VISOR PDF BOSQUES ===== */
.forest-pdf-viewer {
  width: 100%;
}

.forest-pdf-card {
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
}

.forest-pdf-header {
  padding: 1.2rem 1.2rem 1rem;
  border-bottom: 1px solid #e7e5e4;
  background: linear-gradient(180deg, #f8fafc, #f5f5f4);
}

.forest-pdf-header h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.7rem;
  color: #292524;
  margin: 0;
}

.forest-pdf-header p {
  margin-top: 0.35rem;
  color: #16a34a;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.forest-pdf-frame-wrap {
  background: #e7e5e4;
  padding: 0;
}

.forest-pdf-frame {
  width: 100%;
  height: 480px;
  border: none;
  display: block;
  background: white;
}

.forest-pdf-actions {
  display: flex;
  gap: 0.8rem;
  padding: 1rem 1.2rem 1.2rem;
  flex-wrap: wrap;
}

.pdf-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: #78716c;
  font-size: 1.05rem;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
}

.pdf-link-btn:hover {
  color: #16a34a;
  transform: translateX(3px);
}

.active-pdf {
  color: #16a34a;
  font-weight: 700;
}

@media (max-width: 768px) {
  .forest-pdf-frame {
    height: 360px;
  }
}

.pdf-subgroup {
  margin-bottom: 0.75rem;
}

.pdf-parent-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  color: #57534e;
  font-size: 1.05rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition: color 0.25s ease;
}

.pdf-parent-btn:hover {
  color: #16a34a;
}

.pdf-parent-icon {
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
  color: #16a34a;
  transition: transform 0.25s ease;
}

.pdf-submenu {
  list-style: none;
  margin: 0.7rem 0 0 0;
  padding: 0 0 0 1rem;
  border-left: 2px solid #d6d3d1;
  display: grid;
  gap: 0.55rem;
}

.hidden-submenu {
  display: none;
}

.pdf-subgroup.open .pdf-parent-icon {
  transform: rotate(45deg);
}


/* ===== LEGISLACIÓN AMBIENTAL ===== */
.laws-hero {
  background-image: url('../img/leyes/fondo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 260px;
  display: flex;
  align-items: center;
  position: relative;
}

.laws-hero-box {
  text-align: center;
  width: 100%;
}

.laws-hero-box h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  text-transform: uppercase;
  color: #57534e;
  margin: 0;
}

.laws-search-section {
  background: #f5f5f4;
  padding: 3rem 0 2rem;
}

.laws-search-box {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.laws-search-box h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  color: #57534e;
}

.laws-search-line {
  width: 140px;
  height: 4px;
  background: #22c55e;
  margin: 0.7rem auto 1.6rem;
  border-radius: 9999px;
}

.laws-search-wrapper {
  position: relative;
}

.laws-search-input {
  width: 100%;
  height: 58px;
  border: 1px solid #a8a29e;
  border-radius: 0.8rem;
  padding: 0 1rem;
  font-size: 1rem;
  text-align: center;
  background: white;
  color: #44403c;
  outline: none;
}

.laws-search-input::placeholder {
  color: #a8a29e;
  font-style: italic;
}

.laws-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
  box-shadow: 0 20px 35px rgba(0,0,0,0.08);
  overflow: hidden;
  z-index: 20;
  text-align: left;
}

.laws-suggestion-item {
  width: 100%;
  border: none;
  background: white;
  text-align: left;
  padding: 0.9rem 1rem;
  cursor: pointer;
  color: #44403c;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s ease, color 0.2s ease;
}

.laws-suggestion-item:hover {
  background: #f0fdf4;
  color: #166534;
}

.laws-content-section {
  background: #f5f5f4;
  padding: 2rem 0 5rem;
}

.laws-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.laws-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
  position: relative;
}

.law-category-card {
  background: #ececec;
  border-radius: 0.8rem;
  overflow: hidden;
  border: 1px solid #dfdfdf;
}

.law-category-toggle {
  width: 100%;
  min-height: 62px;
  border: none;
  background: #dddddd;
  color: #44403c;
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  text-transform: uppercase;
  cursor: pointer;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.law-category-toggle span {
  color: #16a34a;
  font-size: 1.5rem;
  font-weight: 700;
}

.law-category-content {
  display: grid;
  gap: 0.4rem;
  padding: 0.9rem;
  background: #f9fafb;
}

.hidden-law-group {
  display: none;
}

.law-category-card.open .hidden-law-group {
  display: grid;
}

.law-category-card.open .law-category-toggle span {
  transform: rotate(45deg);
}

.law-pdf-btn {
  width: 100%;
  border: none;
  border-radius: 0.7rem;
  background: white;
  padding: 0.85rem 0.95rem;
  text-align: left;
  color: #57534e;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid #ececec;
}

.law-pdf-btn:hover {
  background: #f0fdf4;
  color: #166534;
  transform: translateX(3px);
}

.law-pdf-btn.active-law-pdf {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
  font-weight: 700;
}

.laws-pdf-card {
  background: white;
  border: 1px solid #e7e5e4;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 100px;
}

.laws-pdf-header {
  padding: 1.2rem 1.2rem 1rem;
  border-bottom: 1px solid #e7e5e4;
  background: linear-gradient(180deg, #f8fafc, #f5f5f4);
}

.laws-pdf-header h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.7rem;
  color: #292524;
  margin: 0;
}

.laws-pdf-header p {
  margin-top: 0.35rem;
  color: #16a34a;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.laws-pdf-frame {
  width: 100%;
  height: 650px;
  border: none;
  display: block;
  background: white;
}

.laws-pdf-actions {
  display: flex;
  gap: 0.8rem;
  padding: 1rem 1.2rem 1.2rem;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .laws-hero {
    align-items: flex-start;
    padding-top: 1.5rem;
  }

  .laws-hero-box {
    padding-top: 0.5rem;
  }

  .laws-layout {
    grid-template-columns: 1fr;
  }

  .laws-categories-grid {
    grid-template-columns: 1fr;
  }

  .laws-pdf-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .laws-hero {
    min-height: 220px;
    align-items: flex-start;
    padding-top: 1rem;
  }

  .laws-hero-box {
    padding-top: 0;
  }

  .laws-hero-box h1 {
    font-size: clamp(2.2rem, 7vw, 3.4rem);
    line-height: 1.05;
  }

  .laws-pdf-frame {
    height: 420px;
  }

  .laws-search-input {
    text-align: left;
  }
}


/* ===== MAPAS OTBN ===== */
.maps-hero {
  background-image: url('../img/mapas/fondo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 220px;
  display: flex;
  align-items: center;
}

.maps-hero-box {
  width: 100%;
  text-align: right;
  padding: 2rem 0;
}

.maps-hero-box h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  text-transform: uppercase;
  color: #57534e;
  margin: 0;
}

.maps-section {
  background: #f5f5f4;
  padding: 3rem 0 5rem;
}

.maps-green-title {
  background: #1faa00;
  padding: 1.2rem 1rem;
  text-align: center;
  margin-bottom: 2rem;
}

.maps-green-title h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: white;
  text-transform: uppercase;
  margin: 0;
}

.maps-intro-text {
  text-align: center;
  margin-bottom: 2rem;
}

.maps-intro-text p {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  color: #44403c;
  margin-bottom: 0.5rem;
}

.maps-intro-text span {
  display: inline-block;
  color: #78716c;
  font-style: italic;
  font-size: 0.95rem;
}

.maps-categories-image-wrap {
  margin: 2rem auto 2.5rem;
  text-align: center;
}

.maps-categories-image {
  width: 100%;
  max-width: 1100px;
  height: auto;
  display: inline-block;
}

.maps-iframe-wrap {
  margin-top: 1rem;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.10);
  border: 1px solid #e7e5e4;
  background: white;
}

.maps-iframe {
  width: 100%;
  min-height: 620px;
  border: none;
  display: block;
}

@media (max-width: 1024px) {
  .maps-hero {
    align-items: flex-start;
    padding-top: 1rem;
  }

  .maps-hero-box {
    text-align: center;
    padding-top: 1rem;
  }
}

@media (max-width: 768px) {
  .maps-hero {
    min-height: 180px;
  }

  .maps-hero-box h1 {
    font-size: clamp(2.4rem, 8vw, 3.3rem);
  }

  .maps-green-title {
    padding: 1rem 0.8rem;
  }

  .maps-iframe {
    min-height: 420px;
  }
}


/* ===== PERMISOS ===== */
.permits-hero {
  background-image: url('../img/permisos/fondo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 220px;
  display: flex;
  align-items: center;
}

.permits-hero-box {
  width: 100%;
  padding: 2rem 0;
}

.permits-hero-box h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  text-transform: uppercase;
  color: #57534e;
  margin: 0;
}

.permits-section {
  background: #f5f5f4;
  padding: 2.5rem 0 3rem;
}

.permits-section-last {
  padding-bottom: 5rem;
}

.permits-green-title {
  background: #1faa00;
  padding: 1.1rem 1rem;
  text-align: center;
  margin-bottom: 1.8rem;
}

.permits-green-title h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  color: white;
  text-transform: uppercase;
  margin: 0;
}

.permits-text-block {
  max-width: 1050px;
  margin: 0 auto 2rem;
}

.permits-text-block p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.7;
  color: #44403c;
}

.permits-preview-block {
  margin-top: 2rem;
  text-align: center;
}

.permits-preview-block h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.7rem;
  color: #292524;
  text-transform: none;
  margin-bottom: 1rem;
}

.permits-pdf-card {
  background: white;
  border: 1px solid #e7e5e4;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
}

.permits-pdf-frame {
  width: 100%;
  height: 620px;
  border: none;
  display: block;
  background: white;
}

.permits-actions {
  display: flex;
  gap: 0.8rem;
  padding: 1rem 1.2rem 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.permits-rich-text {
  max-width: 1100px;
  margin: 0 auto 2rem;
  color: #292524;
}

.permits-rich-text h3 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  text-decoration: underline;
}

.permits-rich-text p {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.permits-rich-text ul {
  margin: 0 0 1rem 1.2rem;
  padding: 0;
}

.permits-rich-text li {
  margin-bottom: 0.55rem;
  line-height: 1.7;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.permits-switcher {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0 1.5rem;
}

.center-switcher {
  margin-top: 1rem;
}

.permits-doc-btn {
  border: none;
  background: #57bf00;
  color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 1.4rem;
  border-radius: 0.75rem;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(87, 191, 0, 0.22);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.permits-doc-btn:hover {
  transform: translateY(-2px);
  background: #47a100;
}

.permits-doc-btn.active-permit-doc {
  background: #2f8a00;
  box-shadow: 0 14px 24px rgba(47, 138, 0, 0.25);
}

@media (max-width: 1024px) {
  .permits-hero {
    align-items: flex-start;
    padding-top: 1rem;
  }

  .permits-hero-box {
    padding-top: 1rem;
  }
}

@media (max-width: 768px) {
  .permits-hero {
    min-height: 180px;
  }

  .permits-hero-box h1 {
    font-size: clamp(2.4rem, 8vw, 3.3rem);
  }

  .permits-pdf-frame {
    height: 420px;
  }

  .permits-switcher {
    flex-direction: column;
    align-items: center;
  }

  .permits-doc-btn {
    width: 100%;
    max-width: 320px;
  }
}


/* ===== BIBLIOTECA ===== */
.library-hero {
  background-image: url('../img/biblioteca/fondo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
}

.library-hero-box {
  width: 100%;
  padding: 0 0 1.2rem;
  text-align: right;
}

.library-hero-box h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  text-transform: uppercase;
  color: white;
  margin: 0;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.library-intro {
  background: #3b3129;
  padding: 3rem 0;
}

.library-intro-box {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.library-intro-box p {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.35;
  text-transform: uppercase;
  color: white;
  margin: 0;
}

.library-categories-section {
  background: #f5f5f4;
  padding: 4rem 0 6rem;
}

.library-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  justify-items: center;
}

.library-card {
  position: relative;
  width: 100%;
  min-height: 170px;
  border-radius: 0.8rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.10);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  background-size: cover;
  background-position: center;
}

.library-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  transition: background 0.25s ease;
}

.library-card span {
  position: relative;
  z-index: 2;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.4rem, 2vw, 2rem);
  color: white;
  text-align: center;
  padding: 0 1rem;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.library-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.14);
}

.library-card:hover::before {
  background: rgba(0, 0, 0, 0.18);
}

/* segunda fila centrada */
.library-card-album {
  grid-column: 1 / 2;
}

.library-card-circular {
  grid-column: 2 / 3;
}

/* imágenes de muestra temporales */
.library-card-fire {
  background-image:
    linear-gradient(rgba(186, 86, 38, 0.25), rgba(186, 86, 38, 0.25)),
    url('https://images.unsplash.com/photo-1473773508845-188df298d2d1?auto=format&fit=crop&w=1200&q=80');
}

.library-card-bio {
  background-image:
    linear-gradient(rgba(65, 154, 68, 0.22), rgba(65, 154, 68, 0.22)),
    url('https://images.unsplash.com/photo-1473773508845-188df298d2d1?auto=format&fit=crop&w=1200&q=80');
}

.library-card-compost {
  background-image:
    linear-gradient(rgba(135, 94, 45, 0.22), rgba(135, 94, 45, 0.22)),
    url('https://images.unsplash.com/photo-1466692476868-aef1dfb1e735?auto=format&fit=crop&w=1200&q=80');
}

.library-card-album {
  background-image:
    linear-gradient(rgba(120, 145, 153, 0.22), rgba(120, 145, 153, 0.22)),
    url('https://images.unsplash.com/photo-1444464666168-49d633b86797?auto=format&fit=crop&w=1200&q=80');
}

.library-card-circular {
  background-image:
    linear-gradient(rgba(193, 188, 138, 0.25), rgba(193, 188, 138, 0.25)),
    url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1200&q=80');
}

@media (max-width: 1024px) {
  .library-hero {
    align-items: flex-end;
    min-height: 250px;
  }

  .library-hero-box {
    text-align: center;
  }

  .library-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-card-album,
  .library-card-circular {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .library-hero {
    min-height: 220px;
  }

  .library-hero-box h1 {
    font-size: clamp(2.5rem, 8vw, 3.6rem);
  }

  .library-categories-grid {
    grid-template-columns: 1fr;
  }

  .library-card {
    min-height: 150px;
  }
}


/* ===== PROGRAMAS ===== */
.programs-hero {
background-image: url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?fit=crop&w=1600&q=80');  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 300px;
  display: flex;
  align-items: center;
  position: relative;
}

.programs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(120, 160, 120, 0.18);
}

.programs-hero-box {
  position: relative;
  z-index: 2;
  width: 100%;
}

.programs-hero-box h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  text-transform: uppercase;
  color: white;
  margin: 0;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.programs-intro-section {
  background: #f5f5f4;
  padding: 3rem 0 2rem;
}

.programs-intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.programs-intro-text-col {
  position: relative;
}

.programs-badge {
  display: inline-block;
  background: #b7d86e;
  color: white;
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  border-radius: 0.25rem;
  margin-left: 2rem;
  margin-bottom: -0.5rem;
  position: relative;
  z-index: 2;
}

.programs-intro-card {
  background: #2f9736;
  color: white;
  padding: 1.6rem;
  border-radius: 0.6rem;
  max-width: 540px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.programs-intro-card p {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  line-height: 1.5;
  text-transform: uppercase;
  margin: 0;
}

.programs-intro-image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 0.4rem;
  display: block;
}

.programs-grid-section {
  background: #ececec;
  padding: 3rem 0 6rem;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.program-card {
  position: relative;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: 0.45rem;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.program-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(112, 181, 96, 0.28);
  transition: background 0.25s ease;
}

.program-card span {
  position: relative;
  z-index: 2;
  width: 100%;
  background: #1faa00;
  color: white;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.15rem, 1.8vw, 1.8rem);
  text-transform: uppercase;
  text-align: center;
  padding: 0.8rem 1rem;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.12);
}

.program-card:hover::before {
  background: rgba(112, 181, 96, 0.18);
}

@media (max-width: 1024px) {
  .programs-intro-grid {
    grid-template-columns: 1fr;
  }

  .programs-hero {
    min-height: 240px;
  }
}

@media (max-width: 768px) {
  .programs-hero {
    min-height: 220px;
  }

  .programs-hero-box h1 {
    font-size: clamp(2.5rem, 8vw, 3.6rem);
  }

  .programs-badge {
    margin-left: 0;
    font-size: 1.2rem;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

  .program-card {
    min-height: 190px;
  }
}

/*boton subir arriba*/
.scroll-top-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #15803d, #16a34a);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.28s ease;
  z-index: 999;
}

.scroll-top-btn:hover {
  transform: translateY(0) scale(1.06);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .scroll-top-btn {
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
}