/* ============================================
   ESTILOS PARA PÁGINA DE LEGISLACIÓN
   (Mismo estilo que afiliacion.css)
   ============================================ */

/* Sección principal */
.legislacion-section {
  margin: var(--spacing-xl) 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Header */
.legislacion-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

/* Documento */
.legislacion-documento {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 15px 35px -12px rgba(0, 0, 0, 0.1);
  border: 1px solid #f0f0f0;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.legislacion-documento:hover {
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

.documento-info {
  display: flex;
  gap: var(--spacing-xl);
  padding: var(--spacing-xl);
  align-items: flex-start;
}

.info-icono {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(205, 0, 0, 0.08), rgba(178, 34, 34, 0.04));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-icono svg {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
}

.info-texto {
  flex: 1;
}

.info-texto h3 {
  font-size: 1.3rem;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-sm);
}

.info-texto p {
  font-size: 0.95rem;
  color: var(--color-gray-dark);
  line-height: 1.5;
  margin-bottom: var(--spacing-md);
}

.documento-metadata {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.documento-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(205, 0, 0, 0.1);
  color: var(--color-primary);
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
}

.documento-tamaño {
  font-size: 0.75rem;
  color: var(--color-gray-light);
  display: flex;
  align-items: center;
}

.btn-ver {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-ver svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  color: white;
}

.btn-ver:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(205, 0, 0, 0.25);
  color: white;
}

.btn-ver:hover svg {
  transform: scale(1.05);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .documento-info {
    flex-direction: column;
    text-align: center;
    padding: var(--spacing-lg);
  }
  
  .info-icono {
    margin: 0 auto;
  }
  
  .documento-metadata {
    justify-content: center;
  }
  
  .btn-ver {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .legislacion-section {
    margin: var(--spacing-lg) 0;
  }
  
  .documento-info {
    padding: var(--spacing-md);
  }
  
  .info-icono {
    width: 60px;
    height: 60px;
  }
  
  .info-icono svg {
    width: 30px;
    height: 30px;
  }
  
  .info-texto h3 {
    font-size: 1.1rem;
  }
  
  .info-texto p {
    font-size: 0.85rem;
  }
  
  .btn-ver {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
  }
}