/* ==================== ESTILOS DECRETOS ==================== */

/* Hero Section */
.hero-decretos {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-decretos::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-decretos h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fadeInDown 0.8s ease;
}

.hero-decretos p {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease 0.2s both;
}

/* Content Section */
.seccion-contenido {
  padding: 4rem 0;
  background: linear-gradient(to bottom, #f8f9fa 0%, white 100%);
}

.contenido-principal {
  max-width: 1200px;
  margin: 0 auto;
}

.decretos-container {
  background: white;
  padding: 3rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Intro Section */
.intro-section {
  background: linear-gradient(135deg, #f8f9ff 0%, white 100%);
  padding: 2rem;
  border-radius: 1rem;
  margin-bottom: 3rem;
  border-left: 4px solid var(--primary);
}

.intro-section p {
  font-size: 1.125rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin: 0;
}

/* Filtro Section */
.filtro-section {
  margin-bottom: 3rem;
}

.filtro-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.filtro-btn {
  padding: 0.75rem 1.75rem;
  background: white;
  border: 2px solid var(--gray-300);
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.938rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.filtro-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.filtro-btn:hover::before {
  left: 100%;
}

.filtro-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

.filtro-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

/* Estilos para filter-btn (alternativa) */
.filter-btn {
  padding: 0.75rem 1.75rem;
  background: white;
  border: 2px solid var(--gray-300);
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.938rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.filter-btn:hover::before {
  left: 100%;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

/* Decretos List */
.decretos-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.decreto-item {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--primary);
  transition: opacity 0.3s ease, transform 0.3s ease, display 0.3s ease;
  opacity: 1;
  transform: translateY(0);
  display: block;
}

.decreto-item:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-left-width: 6px;
}

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

.decreto-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
  flex: 1;
}

.decreto-header .fecha {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(46, 125, 50, 0.1);
  color: var(--primary);
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}

.decreto-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.decreto-content p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.btn-descargar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-descargar:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3);
}

/* Descargas Section */
.descargas-section {
  margin-top: 4rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9ff 0%, white 100%);
  border-radius: 1rem;
  border-left: 4px solid var(--primary);
  text-align: center;
}

.descargas-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.descargas-section p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.descargas-section .btn-descargar {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1.063rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.descargas-section .btn-descargar:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
}

.descargas-section .btn-descargar svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-descargar-grande {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
}

.btn-descargar-grande:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(46, 125, 50, 0.4);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-decretos {
    padding: 4rem 0 3rem;
  }

  .hero-decretos h1 {
    font-size: 2.25rem;
  }

  .hero-decretos p {
    font-size: 1.125rem;
  }

  .decretos-container {
    padding: 2rem 1.5rem;
  }

  .filtro-buttons {
    gap: 0.75rem;
  }

  .filtro-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }

  .decreto-item {
    padding: 1.5rem;
  }

  .decreto-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .decreto-header h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-decretos h1 {
    font-size: 1.875rem;
  }

  .decretos-container {
    padding: 1.5rem 1rem;
  }

  .decreto-item {
    padding: 1rem;
  }

  .filtro-buttons {
    flex-direction: column;
  }

  .filtro-btn {
    width: 100%;
    text-align: center;
  }
}
