/* ==================== ESTILOS EDICTOS ==================== */

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

.hero-edictos::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-edictos h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fadeInDown 0.8s ease;
}

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

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

.contenido-principal {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.edictos-container {
  background: white;
  padding: 2.5rem;
  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: 1.75rem 2rem;
  border-radius: 1rem;
  margin-bottom: 2.5rem;
  border-left: 4px solid var(--primary);
}

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

/* Edictos List - Optimizado para aprovechar espacio */
.edictos-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 0;
}

.edicto-item {
  background: white;
  padding: 1.75rem;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.edicto-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.edicto-item:hover::before {
  transform: scaleY(1);
}

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

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

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

.edicto-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;
}

.edicto-content h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

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

.edicto-detalles {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.edicto-detalles .tipo {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: 1rem;
  font-size: 0.813rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.edicto-detalles .plazo,
.edicto-detalles .alcance {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(46, 125, 50, 0.1);
  color: var(--primary);
  border-radius: 1rem;
  font-size: 0.813rem;
  font-weight: 600;
}

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

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

.btn-descargar::after {
  content: "↓";
  font-size: 1.125rem;
  transition: transform 0.3s ease;
}

.btn-descargar:hover::after {
  transform: translateY(2px);
}

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

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

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

.archivo-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.archivo-link {
  padding: 0.75rem 1.5rem;
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.938rem;
  transition: all 0.3s ease;
}

.archivo-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

/* Suscripción Section */
.suscripcion-section {
  margin-top: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 1rem;
  color: white;
  text-align: center;
}

.suscripcion-section h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.suscripcion-section p {
  font-size: 1rem;
  opacity: 0.95;
  margin-bottom: 1.5rem;
  color: white;
}

.suscripcion-form {
  display: flex;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.suscripcion-form input {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 2rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.suscripcion-form input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.btn-suscribir {
  padding: 0.875rem 2rem;
  background: white;
  color: var(--primary);
  border: none;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-suscribir:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 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: 1200px) {
  .edictos-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-edictos {
    padding: 3rem 0 2.5rem;
  }

  .seccion-contenido {
    padding: 2.5rem 0;
  }

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

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

  .contenido-principal {
    padding: 0 1rem;
  }

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

  .edicto-item {
    padding: 1.5rem;
  }

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

  .suscripcion-form {
    flex-direction: column;
  }

  .btn-suscribir {
    width: 100%;
  }

  .archivo-links {
    flex-direction: column;
  }

  .archivo-link {
    width: 100%;
    text-align: center;
  }
}

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

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

  .edicto-item {
    padding: 1.25rem;
  }

  .intro-section {
    padding: 1.5rem;
  }

  .archivo-section,
  .suscripcion-section {
    padding: 1.5rem;
  }
}

/* Optimización para pantallas grandes */
@media (min-width: 1600px) {
  .edictos-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .edicto-item {
    padding: 2rem;
  }
}

/* Asegurar que el hero content tenga el container correcto */
.hero-edictos .hero-content.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
