body {
  scroll-behavior: smooth;
  background: linear-gradient(to bottom, #1a330d 0%, #223a13 100%);
}


::-webkit-scrollbar {
  width: 8px;
  background: #223a13;
}

::-webkit-scrollbar-thumb {
  background: #b6c93c;
  border-radius: 4px;
}

/* Animaciones personalizadas */
@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fade-in 1s ease;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fade-in-up 1s cubic-bezier(.4, 0, .2, 1);
}

.animate-fade-in-up.delay-100 {
  animation-delay: 0.1s;
}

.animate-fade-in-up.delay-200 {
  animation-delay: 0.2s;
}

.animate-fade-in-up.delay-300 {
  animation-delay: 0.3s;
}

.animate-fade-in-up.delay-400 {
  animation-delay: 0.4s;
}

@keyframes grow {
  from {
    width: 0;
    opacity: 0;
  }

  to {
    width: 8rem;
    opacity: 1;
  }
}

.animate-grow {
  animation: grow 1.2s cubic-bezier(.4, 0, .2, 1);
}

@keyframes bounce-in {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  60% {
    transform: scale(1.05);
    opacity: 1;
  }

  100% {
    transform: scale(1);
  }
}

.animate-bounce-in {
  animation: bounce-in 1s cubic-bezier(.4, 0, .2, 1);
}

.card-pilar {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform .3s ease;
}

.card-pilar:hover {
  transform: scale(1.05);
}

.card-pilar h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a330d;
  margin-bottom: .5rem;
}

.card-pilar p {
  color: #4b5e3c;
  margin-bottom: .5rem;
}

.card-pilar ul {
  font-size: .9rem;
}


/* style.css (opcional) */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* DETAILS & SUMMARY STYLING */
details summary::-webkit-details-marker {
  display: none;
}

details summary {
  list-style: none;
}

/* MOBILE NAV */
#nav-menu.active {
  display: flex !important;
}

/* FORMS */
input,
textarea {
  transition: all 0.3s ease;
}

input:focus,
textarea:focus {
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.2);
}

/* PILLAR CARDS ACCORDION — Controlado por main.js */
.pilar-card .pilar-content {
  transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out;
  opacity: 0;
  pointer-events: none;
}

.pilar-card.expanded .pilar-content {
  opacity: 1;
  pointer-events: auto;
  margin-top: 0.5rem;
}

.pilar-card.expanded .arrow-icon {
  transform: rotate(180deg);
}

.pilar-card.expanded .view-more-text {
  content: "Ver menos";
}

/* ===== SLIDER ===== */

.slider {
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 100%;
  cursor: grab;
  touch-action: pan-x;
}

.slide-track {
  display: flex;
  gap: 20px;
}

.slide-track img {
  height: 220px;
  width: auto;
  border-radius: 16px;
  flex-shrink: 0;
  object-fit: cover;
  transition: transform 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.slide-track img:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .slide-track img {
    height: 150px;
  }
}

/* ===== MODAL ===== */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 16px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 40px;
  color: white;
  z-index: 10001;
}